ETH Price: $3,353.11 (-1.21%)

Token

Advent Stars (STARS)
 

Overview

Max Total Supply

0 STARS

Holders

61

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
cpf.eth
Balance
1 STARS
0xe0d209b7324d982bacb757f724ebe00a9792ac28
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
AdventStars

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : AdventStars.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.22;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./StarSky.sol";

/*
 *                               A celestial Advent Calendar,
 *                   to accompany its holder throughout the advent days.
 *
 *              Every day until Dec. 24th, a new star will shine in the night
 *                      sky, sometimes together with colorful nebulae.
 *
 *                 Each NFT will generate its own unique vibrant firmament.
 *                Only at Christmas Eve the cosmic artwork will be complete.
 *
 *                 Next year? Restart it, and the magic will happen again.
 *
 *                                                                           %@@-
 *                                                                          :%@@=
 *
 *
 *    @@
 *      @%
 *      @@
 *                                     .       . ...
 *                          . .          ... .              .@:.
 *                        . .   .
 *                    .     . . .      ..       .
 *      @                 .   . . . @ .    . .     .     .
 *               .    .  .  . . ...*@-:.:... ....     .    .. .
 *                  .-@- . .......     . .... ..  ..  . . .
 *               .           ............: .... .. ..
 *                  .. ..    .......... ..........   ..         ...    .               @@@
 *                 . . .. @@ ...:......    ..........    .              .
 *             .    .  .     ........::-%@:..........:.... ..    .
 *                ...............::.::.    .:..:.. .....  ..  ..
 *             .  ..  ........:.:.:::..::..:::..::.:..........  ...  ..
 *               . .  ....:..:..::.:.::..:.....::...:........ ...  ...   ..
 *                . .........:.:.::.:.::::...:...::::::.......... .   .    ..    .
 *                . ...........::::....::::---::::::.::::.:........:.... ....
 *            .   . ......:.:::.:::::::::.:...:.::::::::...::.:...... ...   ...  .      .
 *            .    ............::.:..:::::::::::::-.::::::.:.::.:::..:....  .  ..       .
 *             .    .............::::::::::    .::::::::.:.:.::::::.::. :-.... .  .
 *        .    .  ..  ......:::::..:.:::::: @@ -:::::::::-:::::::-::::::... ...:.  .
 *            . . ..  ..........:..:::.::::    ::::::::-:   :::-:::..:. :::.. ...
 *                  .  ....    .:.:..::::.::.::::::-::--- @ ---:---:.    ..:..:: .: .   .. .
 *           .    .  . .... @@ ..::::::::::-::::::-:--::-   --:-::---*@@=::::.::  :...
 *                .  . ....    ....:.::::::.:::::::--:----::::------:.-.::::-.:.:  ...   ..
 *            ..     . .  .........:.:...::::::--:--:----:   :-----:::...:.:-.::........ . .
 *                . .  .   ..........:.::::::::::-:----:--:@%------:-:::----:::::::.. ..      .
 *                    . ... ........:.:..:.:::::-:-:------:@=:-----=----:-:--:::::..-..:....
 *                      .  ..   ...........:::::::-:--:------:  :----:-----:-:-:::::..:.. :
 *                           .  .. . ..:.....::.:::-::    ----@@:--:-----:-:--::::::.::.: . ..
 *                        .   ..  ............::::-:-- @@ ---:=+.--:---:-:--.   -:::.:.:.. ..   ..
 *                          .       .  ..........::.::    ---::.:-------:---.=@ ::::::.:.....  .
 *              :            ..   .   .. ....:::::::::::-:::-:-::---:---:--::   ::.:-::: ..... .
 *                    .      .  .  ..    ...........::.:::-:------::::::   -:--::::::.:. ... . .
 *                                 . .... . ... ::-:::::.::::::::.::-----@:--:::.:::-..:...  . .
 *                                 .       . .::  ....:.::.:::-:-:-::..: ..::...::.-..      .
 *                            .     . .  .       .   :. .:.:....:.::--::-::..:----.: .:-+- ...
 *                                           .   .:..:-:...::::::::.::....::::..:.::..-#+::
 *                                             ..... .   ..  ....:.:.. .:.::: ::... ..
 *                                    @@   . .         .. . :.....  .::.:..:.... . .. ...  .
 *                                                 . .. .  ..  ...::::.        . .:...
 *                                                               .    .........
 *
 */

contract AdventStars is StarSky, ERC721, Ownable {
    uint256 public immutable MINT_END;
    uint256 public immutable PRICE;
    uint256 public constant MAX_SUPPLY = 432;

    uint256 currentToken = 1;

    mapping(uint256 => uint256) _seeds;
    mapping(uint256 => uint256) _tokenToYear;
    mapping(address => uint256) _discordUsersDiscount;

    constructor(
        uint256 price,
        uint256 mintEnd
    ) ERC721("Advent Stars", "STARS") {
        PRICE = price;
        MINT_END = mintEnd;
    }

    /* Admin */

    function withdraw() public onlyOwner {
        (bool success, ) = msg.sender.call{ value: address(this).balance }("");
        require(success, "fail");
    }

    function setDiscounts(
        address[] memory wallets,
        uint256[] memory discounts
    ) public onlyOwner {
        uint256 length = wallets.length;
        for (uint256 i = 0; i < length; ) {
            _discordUsersDiscount[wallets[i]] = discounts[i];
            unchecked {
                i++;
            }
        }
    }

    /* Public Write */

    function mint(uint256 amount) public payable {
        require(msg.value >= PRICE * amount, "not enough ether");
        require(block.timestamp < MINT_END, "mint ended");
        for (uint256 i = 0; i < amount; ) {
            _mint();
            unchecked {
                i++;
            }
        }
    }

    function restart(uint256 tokenId) public {
        require(msg.sender == ownerOf(tokenId), "not the owner");
        (uint256 month, uint256 day, uint256 year) = toDate(block.timestamp);
        require(2023 != year, "not this year");
        require(_tokenToYear[tokenId] != year, "already restarted");
        require((month == 11 && day > 23) || month == 12, "too early");

        _tokenToYear[tokenId] = year;
        _seeds[tokenId] = uint256(
            keccak256(abi.encodePacked(blockhash(block.number - 1), tokenId))
        );
    }

    function mintDiscount(uint256 amount) public payable {
        require(_discordUsersDiscount[msg.sender] > 0, "you have no discount");
        require(
            msg.value >=
                ((PRICE * amount) * 100) / _discordUsersDiscount[msg.sender],
            "not enough ether"
        );
        delete _discordUsersDiscount[msg.sender];
        require(block.timestamp < MINT_END, "mint ended");
        for (uint256 i = 0; i < amount; ) {
            _mint();
            unchecked {
                i++;
            }
        }
    }

    /* Public Read */

    function minted() public view returns (uint256) {
        return currentToken - 1;
    }

    function tokenAtIndex(uint256 index) public view returns (uint256) {
        for (uint256 i = 1; i < currentToken; ) {
            if (msg.sender == ownerOf(i)) {
                if (index == 0) {
                    return i;
                } else {
                    index--;
                }
            }

            unchecked {
                i = i + 1;
            }
        }

        revert("you don't that many tokens");
    }

    function adventDay() public view returns (uint256) {
        (uint256 month, uint256 day, ) = toDate(block.timestamp);

        if (month == 12 && day < 25) {
            return day;
        } else if (month == 12) {
            return 24;
        } else {
            return 0;
        }
    }

    function render(uint256 tokenId) public view returns (string memory) {
        (uint256 currentAdventDay, uint256 year) = _validateRequest(tokenId);
        return _render(_seeds[tokenId], currentAdventDay, year);
    }

    function tokenURI(
        uint256 tokenId
    ) public view override returns (string memory) {
        (uint256 currentAdventDay, uint256 year) = _validateRequest(tokenId);
        return _json(tokenId, _seeds[tokenId], currentAdventDay, year);
    }

    /* Possibly useful public utilities */

    function toDate(
        uint256 s
    ) public pure returns (uint256 month, uint256 day, uint256 year) {
        uint256 z = s / 86400 + 719468;
        uint256 era = (z >= 0 ? z : z - 146096) / 146097;
        uint256 doe = z - era * 146097;
        uint256 yoe = (doe - doe / 1460 + doe / 36524 - doe / 146096) / 365;
        year = yoe + era * 400;
        uint256 doy = doe - (365 * yoe + yoe / 4 - yoe / 100);
        uint256 mp = (5 * doy + 2) / 153;
        day = doy - (153 * mp + 2) / 5 + 1;
        month = uint256(int256(mp) + (mp < 10 ? int256(3) : -9));
        year += (month <= 2 ? 1 : 0);
    }

    /* Internal */

    function _validateRequest(
        uint256 tokenId
    ) internal view returns (uint256 currentAdventDay, uint256 tokenYear) {
        require(_exists(tokenId), "not a token");
        tokenYear = _tokenToYear[tokenId];
        if (tokenYear == 0) {
            tokenYear = 2023;
        }

        (uint256 month, uint256 day, uint256 currentYear) = toDate(
            block.timestamp
        );

        if (tokenYear == currentYear && month == 12 && day <= 24) {
            currentAdventDay = day;
        } else if (tokenYear == currentYear && month < 12) {
            currentAdventDay = 0;
        } else {
            currentAdventDay = 24;
        }
    }

    function _mint() internal {
        require(currentToken <= MAX_SUPPLY, "beyond supply");
        _seeds[currentToken] = uint256(
            keccak256(
                abi.encodePacked(blockhash(block.number - 1), currentToken)
            )
        );
        _mint(msg.sender, currentToken++);
    }
}

File 2 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

File 4 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 5 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 6 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 7 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 8 of 15 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 9 of 15 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 10 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 11 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 12 of 15 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 13 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 14 of 15 : DynamicBuffer.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)

pragma solidity 0.8.22;

/// @title DynamicBuffer
/// @author David Huber (@cxkoda) and Simon Fremaux (@dievardump). See also
///         https://raw.githubusercontent.com/dievardump/solidity-dynamic-buffer
/// @notice This library is used to allocate a big amount of container memory
//          which will be subsequently filled without needing to reallocate
///         memory.
/// @dev First, allocate memory.
///      Then use `buffer.appendUnchecked(theBytes)` or `appendSafe()` if
///      bounds checking is required.
library DynamicBuffer {
    /// @notice Allocates container space for the DynamicBuffer
    /// @param capacity_ The intended max amount of bytes in the buffer
    /// @return buffer The memory location of the buffer
    /// @dev Allocates `capacity_ + 0x60` bytes of space
    ///      The buffer array starts at the first container data position,
    ///      (i.e. `buffer = container + 0x20`)
    function allocate(
        uint256 capacity_
    ) internal pure returns (bytes memory buffer) {
        assembly {
            // Get next-free memory address
            let container := mload(0x40)

            // Allocate memory by setting a new next-free address
            {
                // Add 2 x 32 bytes in size for the two length fields
                // Add 32 bytes safety space for 32B chunked copy
                let size := add(capacity_, 0x60)
                let newNextFree := add(container, size)
                mstore(0x40, newNextFree)
            }

            // Set the correct container length
            {
                let length := add(capacity_, 0x40)
                mstore(container, length)
            }

            // The buffer starts at idx 1 in the container (0 is length)
            buffer := add(container, 0x20)

            // Init content with length 0
            mstore(buffer, 0)
        }

        return buffer;
    }

    /// @notice Appends data to buffer, and update buffer length
    /// @param buffer the buffer to append the data to
    /// @param data the data to append
    /// @dev Does not perform out-of-bound checks (container capacity)
    ///      for efficiency.
    function appendUnchecked(
        bytes memory buffer,
        bytes memory data
    ) internal pure {
        assembly {
            let length := mload(data)
            for {
                data := add(data, 0x20)
                let dataEnd := add(data, length)
                let copyTo := add(buffer, add(mload(buffer), 0x20))
            } lt(data, dataEnd) {
                data := add(data, 0x20)
                copyTo := add(copyTo, 0x20)
            } {
                // Copy 32B chunks from data to buffer.
                // This may read over data array boundaries and copy invalid
                // bytes, which doesn't matter in the end since we will
                // later set the correct buffer length, and have allocated an
                // additional word to avoid buffer overflow.
                mstore(copyTo, mload(data))
            }

            // Update buffer length
            mstore(buffer, add(mload(buffer), length))
        }
    }

    /// @notice Appends data to buffer, and update buffer length
    /// @param buffer the buffer to append the data to
    /// @param data the data to append
    /// @dev Performs out-of-bound checks and calls `appendUnchecked`.
    function appendSafe(bytes memory buffer, bytes memory data) internal pure {
        checkOverflow(buffer, data.length);
        appendUnchecked(buffer, data);
    }

    /// @notice Appends data encoded as Base64 to buffer.
    /// @param fileSafe  Whether to replace '+' with '-' and '/' with '_'.
    /// @param noPadding Whether to strip away the padding.
    /// @dev Encodes `data` using the base64 encoding described in RFC 4648.
    /// See: https://datatracker.ietf.org/doc/html/rfc4648
    /// Author: Modified from Solady (https://github.com/vectorized/solady/blob/main/src/utils/Base64.sol)
    /// Author: Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/Base64.sol)
    /// Author: Modified from (https://github.com/Brechtpd/base64/blob/main/base64.sol) by Brecht Devos.
    function appendSafeBase64(
        bytes memory buffer,
        bytes memory data,
        bool fileSafe,
        bool noPadding
    ) internal pure {
        uint256 dataLength = data.length;

        if (data.length == 0) {
            return;
        }

        uint256 encodedLength;
        uint256 r;
        assembly {
            // For each 3 bytes block, we will have 4 bytes in the base64
            // encoding: `encodedLength = 4 * divCeil(dataLength, 3)`.
            // The `shl(2, ...)` is equivalent to multiplying by 4.
            encodedLength := shl(2, div(add(dataLength, 2), 3))

            r := mod(dataLength, 3)
            if noPadding {
                // if r == 0 => no modification
                // if r == 1 => encodedLength -= 2
                // if r == 2 => encodedLength -= 1
                encodedLength := sub(
                    encodedLength,
                    add(iszero(iszero(r)), eq(r, 1))
                )
            }
        }

        checkOverflow(buffer, encodedLength);

        assembly {
            let nextFree := mload(0x40)

            // Store the table into the scratch space.
            // Offsetted by -1 byte so that the `mload` will load the character.
            // We will rewrite the free memory pointer at `0x40` later with
            // the allocated size.
            mstore(0x1f, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef")
            mstore(
                0x3f,
                sub(
                    "ghijklmnopqrstuvwxyz0123456789-_",
                    // The magic constant 0x0230 will translate "-_" + "+/".
                    mul(iszero(fileSafe), 0x0230)
                )
            )

            // Skip the first slot, which stores the length.
            let ptr := add(add(buffer, 0x20), mload(buffer))
            let end := add(data, dataLength)

            // Run over the input, 3 bytes at a time.
            // prettier-ignore
            // solhint-disable-next-line no-empty-blocks
            for {} 1 {} {
                    data := add(data, 3) // Advance 3 bytes.
                    let input := mload(data)

                    // Write 4 bytes. Optimized for fewer stack operations.
                    mstore8(    ptr    , mload(and(shr(18, input), 0x3F)))
                    mstore8(add(ptr, 1), mload(and(shr(12, input), 0x3F)))
                    mstore8(add(ptr, 2), mload(and(shr( 6, input), 0x3F)))
                    mstore8(add(ptr, 3), mload(and(        input , 0x3F)))
                    
                    ptr := add(ptr, 4) // Advance 4 bytes.
                    // prettier-ignore
                    if iszero(lt(data, end)) { break }
                }

            if iszero(noPadding) {
                // Offset `ptr` and pad with '='. We can simply write over the end.
                mstore8(sub(ptr, iszero(iszero(r))), 0x3d) // Pad at `ptr - 1` if `r > 0`.
                mstore8(sub(ptr, shl(1, eq(r, 1))), 0x3d) // Pad at `ptr - 2` if `r == 1`.
            }

            mstore(buffer, add(mload(buffer), encodedLength))
            mstore(0x40, nextFree)
        }
    }

    /// @notice Returns the capacity of a given buffer.
    function capacity(bytes memory buffer) internal pure returns (uint256) {
        uint256 cap;
        assembly {
            cap := sub(mload(sub(buffer, 0x20)), 0x40)
        }
        return cap;
    }

    /// @notice Reverts if the buffer will overflow after appending a given
    /// number of bytes.
    function checkOverflow(
        bytes memory buffer,
        uint256 addedLength
    ) internal pure {
        uint256 cap = capacity(buffer);
        uint256 newLength = buffer.length + addedLength;
        if (cap < newLength) {
            revert("DynamicBuffer: Appending out of bounds.");
        }
    }
}

File 15 of 15 : StarSky.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity 0.8.22;

import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "./DynamicBuffer.sol";

contract StarSky {
    using Strings for uint8;
    using Strings for uint16;
    using Strings for uint256;

    string constant html1 =
        "<!DOCTYPE html><html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0, viewport-fit=cover'> <title>Advent Stars</title> <style> * { margin: 0; padding: 0; border: 0; } body { overflow: hidden; } </style></head><body>";
    string constant html2 = "</body></html>";

    bytes constant svg1 =
        "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' width='100%' height='100%'> <defs><style> @keyframes ifl { 0% { opacity: 1 } 40% { opacity: 0.3; }  100% { opacity: 0.8; } } #star { animation: ifl 20s infinite alternate-reverse; } #sky {transform-origin: center;} .year {font: 20px Times;fill: rgb(153,153,153);} .t {fill: transparent; } .sg { stroke: rgb(153,153,153) } .p { font: 25px Times; } .w { fill: white; }</style> <clipPath id='frame'><circle cx='300' cy='300' r='420' /></clipPath><filter id='blur' filterUnits='userSpaceOnUse' x='-50%' y='-50%' width='200%' height='200%'> <feGaussianBlur in='SourceGraphic' stdDeviation='5' result='blur5' /> <feGaussianBlur in='SourceGraphic' stdDeviation='10' result='blur10' /> <feGaussianBlur in='SourceGraphic' stdDeviation='20' result='blur30' /> <feMerge result='merged'> <feMergeNode in='blur10' /> <feMergeNode in='blur30' /> </feMerge> <feMerge > <feMergeNode in='blur5' /> <feMergeNode in='merged' /> </feMerge> </filter> ";
    bytes constant svg2 =
        " </defs> <rect x='0' y='0' width='600' height='600' class='sg' fill='black' />  <g id='sky' transform='rotate(";
    bytes constant svg3 = ") scale(0.7)' clip-path='url(#frame)'>";
    bytes constant svg4 =
        "</g> <circle cx='300' cy='300' r='294' class='t sg' />";
    bytes constant svg5 =
        "<line class='sg' x1='0' x2='40' y1='0' y2='40' /> <line class='sg' x1='600' x2='560' y1='0' y2='40' /> <line class='sg' x1='0' x2='40' y1='600' y2='560' /> <line class='sg' x1='600' x2='560' y1='600' y2='560' /></svg>";

    bytes constant text1 =
        "<circle cx='49' cy='51' r='13' class='t sg' /><text class='year' x='44' y='57'>";
    bytes constant text2 =
        "<circle cx='551' cy='51' r='13' class='t sg' /><text class='year' x='546' y='57'>";
    bytes constant text3 =
        "<circle cx='49' cy='549' r='13' class='t sg' /><text class='year' x='44' y='556'>";
    bytes constant text4 =
        "<circle cx='551' cy='549' r='13' class='t sg' /><text class='year' x='546' y='556'>";
    bytes constant textClose = "</text>";
    bytes constant frame =
        "<rect x='0' y='0' width='600' height='600' class='t sg' />";

    bytes constant placeholder0 =
        "<circle cx='300' cy='300' r='50' filter='url(#pb)' id='star' fill='hsl(";
    bytes constant placeholder1 =
        ",100%,60%)' /><circle cx='300' cy='300' r='30' filter='url(#pbc)' id='star' fill='rgba(255,255,255,0.5)' /><text text-anchor='middle' x='50%' y='47%' width='600' heigh='50' class='p w'>The first Star will appear on the</text> <text text-anchor='middle' x='50%' y='53%' width='600' heigh='50' class='p w'>first of December</text>";
    bytes constant placeholderBlur =
        "<filter id='pb' filterUnits='userSpaceOnUse' x='-50%' y='-50%' width='200%' height='200%'> <feGaussianBlur in='SourceGraphic' stdDeviation='50' result='b1' /> <feGaussianBlur in='SourceGraphic' stdDeviation='70' result='b2' /> <feGaussianBlur in='SourceGraphic' stdDeviation='120' result='b3' /> <feMerge result='m'> <feMergeNode in='b1' /> <feMergeNode in='b2' /> </feMerge> <feMerge> <feMergeNode in='b3' /> <feMergeNode in='m' /> </feMerge> </filter><filter id='pbc' filterUnits='userSpaceOnUse' x='-50%' y='-50%' width='200%' height='200%'> <feGaussianBlur in='SourceGraphic' stdDeviation='10' result='b1' /> <feGaussianBlur in='SourceGraphic' stdDeviation='30' result='b2' /> <feGaussianBlur in='SourceGraphic' stdDeviation='40' result='b3' /> <feMerge result='m'> <feMergeNode in='b1' /> <feMergeNode in='b2' /> </feMerge> <feMerge> <feMergeNode in='b3' /> <feMergeNode in='m' /> </feMerge> </filter>";

    bytes constant star0 = "<circle cx='";
    bytes constant star1 = "' cy='";
    bytes constant star2 = "' r='";
    bytes constant star3 = "' id='star' style='animation-duration:";
    bytes constant star4 = "s;' fill='rgba(";
    bytes constant starComma = ",";
    bytes constant star5 = ")' filter='url(#blur)' />";

    bytes constant starCore0 = "<circle cx='";
    bytes constant starCore1 = "' cy='";
    bytes constant starCore2 = "' r='";
    bytes constant starCore3 = "' class='w' />";

    bytes constant dustFilter0 = "<filter id='d";
    bytes constant dustFilter1 =
        "' filterUnits='userSpaceOnUse' x='-50%' y='-50%' width='200%' height='200%'> <feGaussianBlur in='SourceGraphic' stdDeviation='";
    bytes constant dustFilter2 =
        "' result='b1' /> <feGaussianBlur in='SourceGraphic' stdDeviation='";
    bytes constant dustFilter3 =
        "' result='b2' /> <feGaussianBlur in='SourceGraphic' stdDeviation='";
    bytes constant dustFilter4 =
        "' result='b3' /> <feMerge result='b'> <feMergeNode in='b1' /> <feMergeNode in='b2' /> <feMergeNode in='b3' /> </feMerge> <feColorMatrix result='cb' in='b' type='matrix' values=' ";
    bytes constant dustFilter5 = " 0 0 0 0 0 ";
    bytes constant dustFilter6 = " 0 0 0 0 0 ";
    bytes constant dustFilter7 = " 0 0 0 0 0 ";
    bytes constant dustFilter8 = " 0' /> </filter>";

    bytes constant dust0 = "<path d='M ";
    bytes constant dust1 = "' filter='url(#d";
    bytes constant dust2 = ")' stroke='white' stroke-width='";
    bytes constant dust3 = "px' />";

    uint256 constant STAR_TRAITS = 8;
    uint256 constant STAR_TRAIT_SIZE = 256 / STAR_TRAITS;
    uint256 constant STAR_TRAIT_MASK = 2 ** STAR_TRAIT_SIZE - 1;

    uint256 constant CONSTELLATION_TRAITS = 10;
    uint256 constant CONSTELLATION_TRAIT_SIZE = 256 / CONSTELLATION_TRAITS;
    uint256 constant CONSTELLATION_TRAIT_MASK =
        2 ** CONSTELLATION_TRAIT_SIZE - 1;

    struct Star {
        uint8 r;
        uint8 g;
        uint8 b;
        uint8 a;
        uint16 xRand;
        uint16 yRand;
        uint16 radius;
        uint16 duration;
        uint256 seed;
    }

    struct Constellation {
        bool incRand;
        uint8 keepProb;
        uint16 rotation;
        uint16 maxDust;
        uint16 startX;
        uint16 startY;
        uint16 minX;
        uint16 minY;
        uint16 maxX;
        uint16 maxY;
    }

    constructor() {}

    function _renderName(
        uint256 randomness
    ) internal pure returns (bytes memory) {
        uint256 lettersCount = (_starTrait(randomness, 0) % 4) + 1;
        uint256 numbersCount = (_starTrait(randomness, 1) % 5) + 1;
        bytes memory letters;
        for (uint8 i = 2; i < lettersCount + 2; i++) {
            letters = abi.encodePacked(
                letters,
                uint8((randomness >> i) % 25) + 65
            );
        }
        bytes memory numbers;
        for (uint8 i = 7; i < 7 + numbersCount; i++) {
            numbers = abi.encodePacked(
                numbers,
                uint8((randomness >> i) % 10) + 48
            );
        }

        return abi.encodePacked(letters, " ", numbers);
    }

    function _renderFloat(bytes memory buffer, uint16 number) internal pure {
        bytes memory numberStr = bytes(number.toString());
        if (numberStr.length == 4) {
            DynamicBuffer.appendUnchecked(
                buffer,
                abi.encodePacked(
                    numberStr[0],
                    numberStr[1],
                    ".",
                    numberStr[2],
                    numberStr[3]
                )
            );
        } else if (numberStr.length == 3) {
            DynamicBuffer.appendUnchecked(
                buffer,
                abi.encodePacked(numberStr[0], ".", numberStr[1], numberStr[2])
            );
        } else if (numberStr.length == 2) {
            DynamicBuffer.appendUnchecked(
                buffer,
                abi.encodePacked("0.", numberStr[0], numberStr[1])
            );
        } else {
            DynamicBuffer.appendUnchecked(
                buffer,
                abi.encodePacked("0.0", numberStr[0])
            );
        }
    }

    function _render(
        uint256 seed,
        uint256 day,
        uint256 year
    ) internal pure returns (string memory) {
        Constellation memory constellation = _constellation(seed);
        return string(_renderSVG(seed, day, year, constellation));
    }

    function _json(
        uint256 tokenId,
        uint256 seed,
        uint256 day,
        uint256 year
    ) internal pure returns (string memory) {
        Constellation memory constellation = _constellation(seed);
        bytes memory attributes = abi.encodePacked(
            '","attributes":',
            '[{"trait_type":"Cluster Density","value":"',
            (6 - constellation.keepProb).toString(),
            '"},{"trait_type":"Incremental","value":"',
            (constellation.incRand ? "True" : "False"),
            '"},{"trait_type":"Rotation","value":"',
            constellation.rotation.toString(),
            '"},{"trait_type":"Max Dust","value":"',
            constellation.maxDust.toString(),
            '"}]}'
        );

        bytes memory image = _renderSVG(seed, day, year, constellation);
        string memory imageAnimated = Base64.encode(image);
        image[188] = "c";
        string memory imageStatic = Base64.encode(image);

        bytes memory name = _renderName(seed);
        bytes memory description;
        if (day == 0) {
            description = abi.encodePacked(
                "The Star Cluster **",
                name,
                "** will start forming on 1st Dec. ",
                year.toString()
            );
        } else {
            description = abi.encodePacked(
                "View of the Star Cluster **",
                name,
                "** on ",
                day.toString(),
                "/12/",
                year.toString()
            );
        }
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        abi.encodePacked(
                            '{"name":"#',
                            tokenId.toString(),
                            " - ",
                            name,
                            '", "description":"',
                            description,
                            '","image":"data:image/svg+xml;base64,',
                            imageStatic,
                            '","animation_url":"data:image/svg+xml;base64,',
                            imageAnimated,
                            attributes
                        )
                    )
                )
            );
    }

    function _renderSVG(
        uint256 seed,
        uint256 day,
        uint256 year,
        Constellation memory constellation
    ) internal pure returns (bytes memory) {
        bytes memory starsRender = DynamicBuffer.allocate(100000);
        bytes memory filters = DynamicBuffer.allocate(100000);
        bytes memory dusts;
        bytes memory dustsFilters;

        if (day > 0) {
            uint16[2][25] memory points;
            Star[] memory stars = new Star[](25);
            uint8 i = 0;
            for (; i < day; i++) {
                uint256 seedRound = uint256(
                    keccak256(abi.encodePacked(seed, i + 1))
                );
                Star memory star = _decode(seedRound);
                stars[i] = star;

                uint16 newX;
                uint16 newY;

                if (constellation.incRand) {
                    newX = star.xRand;
                    newY = star.yRand;
                } else {
                    constellation.startX =
                        ((constellation.startX +
                            (star.xRand % constellation.maxX) +
                            constellation.minX) % 581) +
                        10;
                    constellation.startY =
                        ((constellation.startY +
                            (star.yRand % constellation.maxY) +
                            constellation.minY) % 581) +
                        10;
                    newX = constellation.startX;
                    newY = constellation.startY;
                }
                points[i] = [newX, newY];

                DynamicBuffer.appendUnchecked(starsRender, star0);
                DynamicBuffer.appendUnchecked(
                    starsRender,
                    bytes(newX.toString())
                );
                DynamicBuffer.appendUnchecked(starsRender, star1);
                DynamicBuffer.appendUnchecked(
                    starsRender,
                    bytes(newY.toString())
                );
                DynamicBuffer.appendUnchecked(starsRender, star2);
                _renderFloat(starsRender, star.radius + 300);
                DynamicBuffer.appendUnchecked(starsRender, star3);
                _renderFloat(starsRender, star.duration);
                DynamicBuffer.appendUnchecked(starsRender, star4);
                DynamicBuffer.appendUnchecked(
                    starsRender,
                    bytes(
                        (100 + (((uint256(star.r) * 1000) / 256) * 156) / 1000)
                            .toString()
                    )
                );
                DynamicBuffer.appendUnchecked(starsRender, starComma);
                DynamicBuffer.appendUnchecked(
                    starsRender,
                    bytes(
                        (100 + (((uint256(star.g) * 1000) / 256) * 156) / 1000)
                            .toString()
                    )
                );
                DynamicBuffer.appendUnchecked(starsRender, starComma);
                DynamicBuffer.appendUnchecked(
                    starsRender,
                    bytes(
                        (100 + (((uint256(star.b) * 1000) / 256) * 156) / 1000)
                            .toString()
                    )
                );
                DynamicBuffer.appendUnchecked(starsRender, starComma);
                _renderFloat(starsRender, star.a);
                DynamicBuffer.appendUnchecked(starsRender, star5);

                DynamicBuffer.appendUnchecked(starsRender, starCore0);
                DynamicBuffer.appendUnchecked(
                    starsRender,
                    bytes(newX.toString())
                );
                DynamicBuffer.appendUnchecked(starsRender, starCore1);
                DynamicBuffer.appendUnchecked(
                    starsRender,
                    bytes(newY.toString())
                );
                DynamicBuffer.appendUnchecked(starsRender, starCore2);
                _renderFloat(starsRender, star.radius);
                DynamicBuffer.appendUnchecked(starsRender, starCore3);
            }

            (dusts, dustsFilters) = _renderDust(
                points,
                i,
                stars,
                constellation
            );
        }

        bytes memory svg = DynamicBuffer.allocate(1000000);
        DynamicBuffer.appendUnchecked(svg, svg1);
        if (day == 0) {
            DynamicBuffer.appendUnchecked(svg, placeholderBlur);
        }
        DynamicBuffer.appendUnchecked(svg, filters);
        DynamicBuffer.appendUnchecked(svg, dustsFilters);
        DynamicBuffer.appendUnchecked(svg, svg2);
        DynamicBuffer.appendUnchecked(
            svg,
            bytes(constellation.rotation.toString())
        );
        DynamicBuffer.appendUnchecked(svg, svg3);
        DynamicBuffer.appendUnchecked(svg, dusts);
        DynamicBuffer.appendUnchecked(svg, starsRender);
        DynamicBuffer.appendUnchecked(svg, svg4);
        DynamicBuffer.appendUnchecked(svg, _renderYear(year, day));
        if (day == 0) {
            uint16 h = uint16(seed % 360);
            DynamicBuffer.appendUnchecked(svg, placeholder0);
            DynamicBuffer.appendUnchecked(svg, bytes(h.toString()));
            DynamicBuffer.appendUnchecked(svg, placeholder1);
        }
        DynamicBuffer.appendUnchecked(svg, svg5);

        return svg;
    }

    function _renderYear(
        uint256 year,
        uint256 day
    ) internal pure returns (bytes memory) {
        bytes memory yearBytes = bytes(year.toString());
        bytes memory dayBytes = bytes(day.toString());
        bytes memory text = DynamicBuffer.allocate(320);

        DynamicBuffer.appendUnchecked(text, text1);
        if (dayBytes.length == 2) {
            DynamicBuffer.appendUnchecked(text, abi.encodePacked(dayBytes[0]));
            DynamicBuffer.appendUnchecked(text, textClose);
            DynamicBuffer.appendUnchecked(text, text2);
            DynamicBuffer.appendUnchecked(text, abi.encodePacked(dayBytes[1]));
        } else {
            DynamicBuffer.appendUnchecked(text, bytes("0"));
            DynamicBuffer.appendUnchecked(text, textClose);
            DynamicBuffer.appendUnchecked(text, text2);
            DynamicBuffer.appendUnchecked(text, abi.encodePacked(dayBytes[0]));
        }
        DynamicBuffer.appendUnchecked(text, textClose);
        DynamicBuffer.appendUnchecked(text, text3);
        DynamicBuffer.appendUnchecked(text, abi.encodePacked(yearBytes[2]));
        DynamicBuffer.appendUnchecked(text, textClose);
        DynamicBuffer.appendUnchecked(text, text4);
        DynamicBuffer.appendUnchecked(text, abi.encodePacked(yearBytes[3]));
        DynamicBuffer.appendUnchecked(text, textClose);
        DynamicBuffer.appendUnchecked(text, frame);

        return text;
    }

    function _renderDust(
        uint16[2][25] memory points,
        uint8 length,
        Star[] memory stars,
        Constellation memory constellation
    ) internal pure returns (bytes memory, bytes memory) {
        bytes memory dusts = DynamicBuffer.allocate(100000);
        bytes memory dustsFilters = DynamicBuffer.allocate(100000);
        points = _sortPointsByDistance(points, length, [uint16(0), 0]);
        for (uint16 i = 0; i < length; i++) {
            uint16[2][25] memory subarray = createSubArray(points, length, i);
            uint16[2][25] memory sortedPoints = _sortPointsByDistance(
                subarray,
                length - i,
                points[i]
            );

            _buildDust(
                dusts,
                dustsFilters,
                sortedPoints,
                length - i,
                i,
                stars[i],
                constellation
            );
        }

        return (dusts, dustsFilters);
    }

    function _buildDust(
        bytes memory dusts,
        bytes memory dustsFilters,
        uint16[2][25] memory points,
        uint16 length,
        uint16 i,
        Star memory star,
        Constellation memory constellation
    ) internal pure {
        if (i % constellation.keepProb != 0) {
            return;
        }

        bytes memory pathPoints = DynamicBuffer.allocate(3200);
        _constructPath(pathPoints, points[0][0], points[0][1]);

        for (uint16 j = 1; j < length; j++) {
            uint16 diffX = absDiff(points[j][0], points[j - 1][0]);
            uint16 diffY = absDiff(points[j][1], points[j - 1][1]);

            if (diffX <= 200 && diffY <= 200) {
                _constructPath(pathPoints, points[j][0], points[j][1]);
            } else if (j > 3) {
                _constructDust(dusts, pathPoints, i, j, constellation);
                _constructDustsFilters(dustsFilters, i, star);
                break;
            } else {
                break;
            }
        }
    }

    function _constellationTrait(
        uint256 randomness,
        uint8 index
    ) internal pure returns (uint256) {
        return ((randomness >> (CONSTELLATION_TRAIT_SIZE * index)) &
            CONSTELLATION_TRAIT_MASK);
    }

    function _constellation(
        uint256 randomness
    ) internal pure returns (Constellation memory constellation) {
        constellation.rotation = uint16(
            _constellationTrait(randomness, 0) % 360
        );
        constellation.incRand = _constellationTrait(randomness, 1) % 2 == 0;
        constellation.maxDust = uint16(
            (_constellationTrait(randomness, 2) % 401) + 100
        );
        constellation.startX = uint16(
            (_constellationTrait(randomness, 3) % 581) + 10
        );
        constellation.startY = uint16(
            (_constellationTrait(randomness, 4) % 581) + 10
        );
        constellation.keepProb = uint8(
            (_constellationTrait(randomness, 5) % 6) + 1
        );
        constellation.minX = uint16(
            (_constellationTrait(randomness, 6) % 91) + 10
        );
        constellation.minY = uint16(
            (_constellationTrait(randomness, 7) % 91) + 10
        );
        constellation.maxX =
            uint16(
                (_constellationTrait(randomness, 8) %
                    (251 - constellation.minX))
            ) +
            1;
        constellation.maxY =
            uint16(
                (_constellationTrait(randomness, 9) %
                    (251 - constellation.minY))
            ) +
            1;
    }

    function absDiff(uint16 a, uint16 b) private pure returns (uint16) {
        if (a > b) {
            return a - b;
        } else {
            return b - a;
        }
    }

    function createSubArray(
        uint16[2][25] memory array,
        uint16 length,
        uint16 startIndex
    ) private pure returns (uint16[2][25] memory subArray) {
        uint16 newArrayLength = length - startIndex;
        for (uint16 i = 0; i < newArrayLength; i++) {
            subArray[i][0] = array[startIndex + i][0];
            subArray[i][1] = array[startIndex + i][1];
        }
    }

    function _constructPath(
        bytes memory buffer,
        uint16 x,
        uint16 y
    ) internal pure {
        DynamicBuffer.appendUnchecked(buffer, bytes(" "));
        DynamicBuffer.appendUnchecked(buffer, bytes(x.toString()));
        DynamicBuffer.appendUnchecked(buffer, bytes(","));
        DynamicBuffer.appendUnchecked(buffer, bytes(y.toString()));
    }

    function _constructDust(
        bytes memory buffer,
        bytes memory path,
        uint16 index,
        uint16 pathLength,
        Constellation memory constellation
    ) internal pure {
        uint16 thickness = constellation.maxDust / pathLength;

        DynamicBuffer.appendUnchecked(buffer, dust0);
        DynamicBuffer.appendUnchecked(buffer, path);
        DynamicBuffer.appendUnchecked(buffer, dust1);
        DynamicBuffer.appendUnchecked(buffer, bytes(index.toString()));
        DynamicBuffer.appendUnchecked(buffer, dust2);
        DynamicBuffer.appendUnchecked(buffer, bytes(thickness.toString()));
        DynamicBuffer.appendUnchecked(buffer, dust3);
    }

    function _constructDustsFilters(
        bytes memory buffer,
        uint16 index,
        Star memory star
    ) internal pure {
        uint16 baseDust = uint16((star.seed % 80) + 40);
        DynamicBuffer.appendUnchecked(buffer, dustFilter0);
        DynamicBuffer.appendUnchecked(buffer, bytes(index.toString()));
        DynamicBuffer.appendUnchecked(buffer, dustFilter1);
        DynamicBuffer.appendUnchecked(buffer, bytes(baseDust.toString()));
        DynamicBuffer.appendUnchecked(buffer, dustFilter2);
        DynamicBuffer.appendUnchecked(
            buffer,
            bytes((baseDust + 50).toString())
        );
        DynamicBuffer.appendUnchecked(buffer, dustFilter3);
        DynamicBuffer.appendUnchecked(
            buffer,
            bytes((baseDust + 100).toString())
        );
        DynamicBuffer.appendUnchecked(buffer, dustFilter4);
        _renderFloat(buffer, (uint16(star.r) * 100) / 256);
        DynamicBuffer.appendUnchecked(buffer, dustFilter5);
        _renderFloat(buffer, (uint16(star.g) * 100) / 256);
        DynamicBuffer.appendUnchecked(buffer, dustFilter6);
        _renderFloat(buffer, (uint16(star.b) * 100) / 256);
        DynamicBuffer.appendUnchecked(buffer, dustFilter7);
        _renderFloat(buffer, star.a);
        DynamicBuffer.appendUnchecked(buffer, dustFilter8);
    }

    function _sortPointsByDistance(
        uint16[2][25] memory points,
        uint16 length,
        uint16[2] memory origin
    ) internal pure returns (uint16[2][25] memory) {
        _quickSort(points, origin, 0, length - 1);
        return points;
    }

    function _quickSort(
        uint16[2][25] memory arr,
        uint16[2] memory origin,
        uint16 left,
        uint16 right
    ) internal pure {
        int16 i = int16(left);
        int16 j = int16(right);
        if (i == j) return;
        int256 pivot = _distanceSquared(
            arr[uint16(left + (right - left) / 2)],
            origin
        );
        while (i <= j) {
            while (_distanceSquared(arr[uint16(i)], origin) < pivot) i++;
            while (pivot < _distanceSquared(arr[uint16(j)], origin)) j--;
            if (i <= j) {
                (arr[uint16(i)], arr[uint16(j)]) = (
                    arr[uint16(j)],
                    arr[uint16(i)]
                );
                i++;
                j--;
            }
        }
        if (int16(left) < j) _quickSort(arr, origin, left, uint16(j));
        if (i < int16(right)) _quickSort(arr, origin, uint16(i), right);
    }

    function _distanceSquared(
        uint16[2] memory p,
        uint16[2] memory origin
    ) internal pure returns (int256) {
        return
            (int256(int16(p[0])) - int256(int16(origin[0]))) ** 2 +
            (int256(int16(p[1])) - int256(int16(origin[1]))) ** 2;
    }

    function _starTrait(
        uint256 randomness,
        uint8 index
    ) internal pure returns (uint256) {
        return ((randomness >> (STAR_TRAIT_SIZE * index)) & STAR_TRAIT_MASK);
    }

    function _decode(
        uint256 randomness
    ) internal pure returns (Star memory star) {
        star.r = uint8(_starTrait(randomness, 0) % 256);
        star.g = uint8(_starTrait(randomness, 1) % 256);
        star.b = uint8(_starTrait(randomness, 2) % 256);
        star.a = uint8((_starTrait(randomness, 3) % 101) + 1);
        star.xRand = uint16((_starTrait(randomness, 4) % 581) + 10);
        star.yRand = uint16((_starTrait(randomness, 5) % 581) + 10);
        star.radius = uint16((_starTrait(randomness, 6) % 500) + 100);
        star.duration = uint16((_starTrait(randomness, 7) % 1001) + 100);
        star.seed = randomness;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"mintEnd","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_END","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adventDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintDiscount","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"render","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"restart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"},{"internalType":"uint256[]","name":"discounts","type":"uint256[]"}],"name":"setDiscounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"s","type":"uint256"}],"name":"toDate","outputs":[{"internalType":"uint256","name":"month","type":"uint256"},{"internalType":"uint256","name":"day","type":"uint256"},{"internalType":"uint256","name":"year","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenAtIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052600160075534801562000015575f80fd5b50604051620059943803806200599483398101604081905262000038916200011b565b6040518060400160405280600c81526020016b416476656e7420537461727360a01b81525060405180604001604052806005815260200164535441525360d81b815250815f90816200008b9190620001dc565b5060016200009a8282620001dc565b505050620000b7620000b1620000c660201b60201c565b620000ca565b60a091909152608052620002a8565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f80604083850312156200012d575f80fd5b505080516020909101519092909150565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200016757607f821691505b6020821081036200018657634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620001d757805f5260205f20601f840160051c81016020851015620001b35750805b601f840160051c820191505b81811015620001d4575f8155600101620001bf565b50505b505050565b81516001600160401b03811115620001f857620001f86200013e565b620002108162000209845462000152565b846200018c565b602080601f83116001811462000246575f84156200022e5750858301515b5f19600386901b1c1916600185901b178555620002a0565b5f85815260208120601f198616915b82811015620002765788860151825594840194600190910190840162000255565b50858210156200029457878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b60805160a0516156ae620002e65f395f81816103a901528181610bfc015261109901525f81816104d601528181610c64015261112501526156ae5ff3fe6080604052600436106101ba575f3560e01c8063715018a6116100f2578063b88d4fde11610092578063e985e9c511610062578063e985e9c5146104f8578063eef8031a14610517578063f2fde38b14610536578063f85668c614610555575f80fd5b8063b88d4fde14610468578063c321118c14610487578063c87b56dd146104a6578063e6757c99146104c5575f80fd5b806395d89b41116100cd57806395d89b41146103e8578063a0712d68146103fc578063a11e22d91461040f578063a22cb46514610449575f80fd5b8063715018a6146103845780638d859f3e146103985780638da5cb5b146103cb575f80fd5b806332d45b591161015d57806342842e0e1161013857806342842e0e146103135780634f02c420146103325780636352211e1461034657806370a0823114610365575f80fd5b806332d45b59146102cc5780633ccfd60b146102e057806341f1afc7146102f4575f80fd5b8063095ea7b311610198578063095ea7b31461024a5780631801f38e1461026b57806323b872dd1461028a57806332cb6b0c146102a9575f80fd5b806301ffc9a7146101be57806306fdde03146101f2578063081812fc14610213575b5f80fd5b3480156101c9575f80fd5b506101dd6101d8366004613a57565b610568565b60405190151581526020015b60405180910390f35b3480156101fd575f80fd5b506102066105b9565b6040516101e99190613abf565b34801561021e575f80fd5b5061023261022d366004613ad1565b610648565b6040516001600160a01b0390911681526020016101e9565b348015610255575f80fd5b50610269610264366004613b03565b61066d565b005b348015610276575f80fd5b50610269610285366004613ad1565b610786565b348015610295575f80fd5b506102696102a4366004613b2b565b610931565b3480156102b4575f80fd5b506102be6101b081565b6040519081526020016101e9565b3480156102d7575f80fd5b506102be610962565b3480156102eb575f80fd5b506102696109a7565b3480156102ff575f80fd5b506102be61030e366004613ad1565b610a30565b34801561031e575f80fd5b5061026961032d366004613b2b565b610ac2565b34801561033d575f80fd5b506102be610adc565b348015610351575f80fd5b50610232610360366004613ad1565b610af1565b348015610370575f80fd5b506102be61037f366004613b64565b610b50565b34801561038f575f80fd5b50610269610bd4565b3480156103a3575f80fd5b506102be7f000000000000000000000000000000000000000000000000000000000000000081565b3480156103d6575f80fd5b506006546001600160a01b0316610232565b3480156103f3575f80fd5b50610206610be7565b61026961040a366004613ad1565b610bf6565b34801561041a575f80fd5b5061042e610429366004613ad1565b610cdc565b604080519384526020840192909252908201526060016101e9565b348015610454575f80fd5b50610269610463366004613b7d565b610e7e565b348015610473575f80fd5b50610269610482366004613bfb565b610e89565b348015610492575f80fd5b506102066104a1366004613ad1565b610ec1565b3480156104b1575f80fd5b506102066104c0366004613ad1565b610ef4565b3480156104d0575f80fd5b506102be7f000000000000000000000000000000000000000000000000000000000000000081565b348015610503575f80fd5b506101dd610512366004613cb4565b610f21565b348015610522575f80fd5b50610269610531366004613d74565b610f4e565b348015610541575f80fd5b50610269610550366004613b64565b610fbc565b610269610563366004613ad1565b611032565b5f6001600160e01b031982166380ac58cd60e01b148061059857506001600160e01b03198216635b5e139f60e01b145b806105b357506301ffc9a760e01b6001600160e01b03198316145b92915050565b60605f80546105c790613e2e565b80601f01602080910402602001604051908101604052809291908181526020018280546105f390613e2e565b801561063e5780601f106106155761010080835404028352916020019161063e565b820191905f5260205f20905b81548152906001019060200180831161062157829003601f168201915b5050505050905090565b5f61065282611199565b505f908152600460205260409020546001600160a01b031690565b5f61067782610af1565b9050806001600160a01b0316836001600160a01b0316036106e95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061070557506107058133610f21565b6107775760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016106e0565b61078183836111f7565b505050565b61078f81610af1565b6001600160a01b0316336001600160a01b0316146107df5760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a34329037bbb732b960991b60448201526064016106e0565b5f805f6107eb42610cdc565b925092509250806107e7036108325760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a3434b9903cb2b0b960991b60448201526064016106e0565b5f848152600960205260409020548190036108835760405162461bcd60e51b8152602060048201526011602482015270185b1c9958591e481c995cdd185c9d1959607a1b60448201526064016106e0565b82600b1480156108935750601782115b8061089e575082600c145b6108d65760405162461bcd60e51b8152602060048201526009602482015268746f6f206561726c7960b81b60448201526064016106e0565b5f8481526009602052604090208190556108f1600143613e7a565b6040805191406020830152810185905260600160408051601f1981840301815291815281516020928301205f968752600890925290942093909355505050565b61093b3382611264565b6109575760405162461bcd60e51b81526004016106e090613e8d565b6107818383836112c1565b5f805f61096e42610cdc565b509150915081600c1480156109835750601981105b1561098e5792915050565b81600c0361099f5760189250505090565b5f9250505090565b6109af611423565b6040515f90339047908381818185875af1925050503d805f81146109ee576040519150601f19603f3d011682016040523d82523d5f602084013e6109f3565b606091505b5050905080610a2d5760405162461bcd60e51b81526004016106e09060208082526004908201526319985a5b60e21b604082015260600190565b50565b5f60015b600754811015610a7957610a4781610af1565b6001600160a01b03163303610a7157825f03610a635792915050565b82610a6d81613eda565b9350505b600101610a34565b5060405162461bcd60e51b815260206004820152601a60248201527f796f7520646f6e27742074686174206d616e7920746f6b656e7300000000000060448201526064016106e0565b61078183838360405180602001604052805f815250610e89565b5f6001600754610aec9190613e7a565b905090565b5f818152600260205260408120546001600160a01b0316806105b35760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016106e0565b5f6001600160a01b038216610bb95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016106e0565b506001600160a01b03165f9081526003602052604090205490565b610bdc611423565b610be55f61147d565b565b6060600180546105c790613e2e565b610c20817f0000000000000000000000000000000000000000000000000000000000000000613eef565b341015610c625760405162461bcd60e51b815260206004820152601060248201526f3737ba1032b737bab3b41032ba3432b960811b60448201526064016106e0565b7f00000000000000000000000000000000000000000000000000000000000000004210610cbe5760405162461bcd60e51b815260206004820152600a6024820152691b5a5b9d08195b99195960b21b60448201526064016106e0565b5f5b81811015610cd857610cd06114ce565b600101610cc0565b5050565b5f808080610ced6201518086613f1a565b610cfa90620afa6c613f2d565b90505f610d0a62023ab183613f1a565b90505f610d1a8262023ab1613eef565b610d249084613e7a565b90505f61016d610d3762023ab084613f1a565b610d43618eac85613f1a565b610d4f6105b486613f1a565b610d599086613e7a565b610d639190613f2d565b610d6d9190613e7a565b610d779190613f1a565b9050610d8583610190613eef565b610d8f9082613f2d565b94505f610d9d606483613f1a565b610da8600484613f1a565b610db48461016d613eef565b610dbe9190613f2d565b610dc89190613e7a565b610dd29084613e7a565b90505f6099610de2836005613eef565b610ded906002613f2d565b610df79190613f1a565b90506005610e06826099613eef565b610e11906002613f2d565b610e1b9190613f1a565b610e259083613e7a565b610e30906001613f2d565b9750600a8110610e4257600819610e45565b60035b610e4f9082613f40565b98506002891115610e60575f610e63565b60015b610e709060ff1688613f2d565b989a97995050505050505050565b610cd8338383611575565b610e933383611264565b610eaf5760405162461bcd60e51b81526004016106e090613e8d565b610ebb84848484611642565b50505050565b60605f80610ece84611675565b5f868152600860205260409020549193509150610eec908383611748565b949350505050565b60605f80610f0184611675565b5f868152600860205260409020549193509150610eec908590848461176b565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b610f56611423565b81515f5b81811015610ebb57828181518110610f7457610f74613f67565b6020026020010151600a5f868481518110610f9157610f91613f67565b6020908102919091018101516001600160a01b031682528101919091526040015f2055600101610f5a565b610fc4611423565b6001600160a01b0381166110295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106e0565b610a2d8161147d565b335f908152600a60205260409020546110845760405162461bcd60e51b81526020600482015260146024820152731e5bdd481a185d99481b9bc8191a5cd8dbdd5b9d60621b60448201526064016106e0565b335f908152600a60205260409020546110bd827f0000000000000000000000000000000000000000000000000000000000000000613eef565b6110c8906064613eef565b6110d29190613f1a565b3410156111145760405162461bcd60e51b815260206004820152601060248201526f3737ba1032b737bab3b41032ba3432b960811b60448201526064016106e0565b335f908152600a60205260408120557f0000000000000000000000000000000000000000000000000000000000000000421061117f5760405162461bcd60e51b815260206004820152600a6024820152691b5a5b9d08195b99195960b21b60448201526064016106e0565b5f5b81811015610cd8576111916114ce565b600101611181565b5f818152600260205260409020546001600160a01b0316610a2d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016106e0565b5f81815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061122b82610af1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5f8061126f83610af1565b9050806001600160a01b0316846001600160a01b0316148061129657506112968185610f21565b80610eec5750836001600160a01b03166112af84610648565b6001600160a01b031614949350505050565b826001600160a01b03166112d482610af1565b6001600160a01b0316146112fa5760405162461bcd60e51b81526004016106e090613f7b565b6001600160a01b03821661135c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106e0565b826001600160a01b031661136f82610af1565b6001600160a01b0316146113955760405162461bcd60e51b81526004016106e090613f7b565b5f81815260046020908152604080832080546001600160a01b03199081169091556001600160a01b038781168086526003855283862080545f1901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610be55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6101b060075411156115125760405162461bcd60e51b815260206004820152600d60248201526c6265796f6e6420737570706c7960981b60448201526064016106e0565b61151d600143613e7a565b600754604080519240602084015282015260600160408051601f198184030181529181528151602092830120600780545f9081526008909452918320558054610be59233929061156c83613fc0565b9190505561195f565b816001600160a01b0316836001600160a01b0316036115d65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106e0565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61164d8484846112c1565b61165984848484611ae7565b610ebb5760405162461bcd60e51b81526004016106e090613fd8565b5f8181526002602052604081205481906001600160a01b03166116c85760405162461bcd60e51b815260206004820152600b60248201526a3737ba1030903a37b5b2b760a91b60448201526064016106e0565b505f82815260096020526040812054908190036116e457506107e75b5f805f6116f042610cdc565b9250925092508084148015611705575082600c145b8015611712575060188211155b1561171f57819450611740565b808414801561172e5750600c83105b1561173b575f9450611740565b601894505b505050915091565b60605f61175485611be1565b905061176285858584611df0565b95945050505050565b60605f61177785611be1565b90505f6117968260200151600661178e919061402a565b60ff1661252b565b82516117bf576040518060400160405280600581526020016446616c736560d81b8152506117dd565b604051806040016040528060048152602001635472756560e01b8152505b6117ee846040015161ffff1661252b565b6117ff856060015161ffff1661252b565b604051602001611812949392919061405e565b60405160208183030381529060405290505f61183087878786611df0565b90505f61183c826125bb565b9050606360f81b8260bc8151811061185657611856613f67565b60200101906001600160f81b03191690815f1a9053505f611876836125bb565b90505f6118828a61270a565b90506060895f036118be57816118978a61252b565b6040516020016118a89291906141c3565b60405160208183030381529060405290506118f5565b816118c88b61252b565b6118d18b61252b565b6040516020016118e393929190614244565b60405160208183030381529060405290505b61192f6119018d61252b565b838386888b60405160200161191b969594939291906142d3565b6040516020818303038152906040526125bb565b60405160200161193f91906143f1565b604051602081830303815290604052975050505050505050949350505050565b6001600160a01b0382166119b55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106e0565b5f818152600260205260409020546001600160a01b031615611a195760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106e0565b5f818152600260205260409020546001600160a01b031615611a7d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106e0565b6001600160a01b0382165f81815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f6001600160a01b0384163b15611bd957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b2a903390899088908890600401614435565b6020604051808303815f875af1925050508015611b64575060408051601f3d908101601f19168201909252611b6191810190614471565b60015b611bbf573d808015611b91576040519150601f19603f3d011682016040523d82523d5f602084013e611b96565b606091505b5080515f03611bb75760405162461bcd60e51b81526004016106e090613fd8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610eec565b506001610eec565b60408051610140810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810191909152610168611c3e835f61285c565b611c48919061448c565b61ffff1660408201526002611c5e83600161285c565b611c68919061448c565b158152610191611c7983600261285c565b611c83919061448c565b611c8e906064613f2d565b61ffff166060820152610245611ca583600361285c565b611caf919061448c565b611cba90600a613f2d565b61ffff166080820152610245611cd183600461285c565b611cdb919061448c565b611ce690600a613f2d565b61ffff1660a08201526006611cfc83600561285c565b611d06919061448c565b611d11906001613f2d565b60ff166020820152605b611d2683600661285c565b611d30919061448c565b611d3b90600a613f2d565b61ffff1660c0820152605b611d5183600761285c565b611d5b919061448c565b611d6690600a613f2d565b61ffff1660e082015260c0810151611d7f9060fb61449f565b61ffff16611d8e83600861285c565b611d98919061448c565b611da39060016144c1565b61ffff1661010082015260e0810151611dbd9060fb61449f565b61ffff16611dcc83600961285c565b611dd6919061448c565b611de19060016144c1565b61ffff16610120820152919050565b60408051620187008082018352620186e08083525f602093840181815285519384019095529082529101908152606091908280871561236b57611e316139ab565b60408051601980825261034082019092525f91816020015b611e516139d9565b815260200190600190039081611e495790505090505f5b8a8160ff161015612356575f8c611e808360016144dc565b604051602001611ea792919091825260f81b6001600160f81b031916602082015260210190565b604051602081830303815290604052805190602001205f1c90505f611ecb826128a8565b905080848460ff1681518110611ee357611ee3613f67565b60200260200101819052505f808c5f015115611f0a575050608081015160a0820151611fbf565b6102458d60c001518e61010001518560800151611f2791906144f5565b8f60800151611f3691906144c1565b611f4091906144c1565b611f4a91906144f5565b611f5590600a6144c1565b61ffff1660808e015260e08d01516101208e015160a08501516102459291611f7c916144f5565b8f60a00151611f8b91906144c1565b611f9591906144c1565b611f9f91906144f5565b611faa90600a6144c1565b61ffff1660a08e0181905260808e0151925090505b6040805180820190915261ffff8084168252821660208201528760ff871660198110611fed57611fed613f67565b60200201819052506120238b6040518060400160405280600c81526020016b3c636972636c652063783d2760a01b8152506129f2565b6120398b6120348461ffff1661252b565b6129f2565b6120618b60405180604001604052806006815260200165272063793d2760d01b8152506129f2565b6120728b6120348361ffff1661252b565b6120998b604051806040016040528060058152602001642720723d2760d81b8152506129f2565b6120b48b8460c0015161012c6120af91906144c1565b612a28565b6120d68b6040518060600160405280602681526020016154bf602691396129f2565b6120e48b8460e00151612a28565b6121158b6040518060400160405280600f81526020016e0e6764e40ccd2d8d87a4ee4cec4c25608b1b8152506129f2565b6121658b6120346103e8610100875f015160ff166103e86121369190613eef565b6121409190613f1a565b61214b90609c613eef565b6121559190613f1a565b612160906064613f2d565b61252b565b6121888b604051806040016040528060018152602001600b60fa1b8152506129f2565b6121aa8b6120346103e8610100876020015160ff166103e86121369190613eef565b6121cd8b604051806040016040528060018152602001600b60fa1b8152506129f2565b6121ef8b6120346103e8610100876040015160ff166103e86121369190613eef565b6122128b604051806040016040528060018152602001600b60fa1b8152506129f2565b6122238b846060015160ff16612a28565b6122628b6040518060400160405280601981526020017f29272066696c7465723d2775726c2823626c75722927202f3e000000000000008152506129f2565b6122908b6040518060400160405280600c81526020016b3c636972636c652063783d2760a01b8152506129f2565b6122a18b6120348461ffff1661252b565b6122c98b60405180604001604052806006815260200165272063793d2760d01b8152506129f2565b6122da8b6120348361ffff1661252b565b6123018b604051806040016040528060058152602001642720723d2760d81b8152506129f2565b61230f8b8460c00151612a28565b61233f8b6040518060400160405280600e81526020016d139031b630b9b99e93bb9390179f60911b8152506129f2565b50505050808061234e90614515565b915050611e68565b6123628382848c612c5b565b90955093505050505b60408051620f42a08101909152620f428081525f602090910181815290506123ae816040518061040001604052806103e08152602001614d3b6103e091396129f2565b885f036123da576123da81604051806103c0016040528061038a81526020016148e961038a91396129f2565b6123e481856129f2565b6123ee81836129f2565b612410816040518060a00160405280606e8152602001614845606e91396129f2565b61242581612034896040015161ffff1661252b565b61244781604051806060016040528060268152602001614d15602691396129f2565b61245181846129f2565b61245b81866129f2565b61247d816040518060600160405280603681526020016148b3603691396129f2565b61248b816120348a8c612d5a565b885f036124fb575f61249f6101688c61448c565b90506124c38260405180608001604052806047815260200161551f604791396129f2565b6124d4826120348361ffff1661252b565b6124f982604051806101800160405280610148815260200161511b61014891396129f2565b505b61251e8160405180610100016040528060d9815260200161533460d991396129f2565b9998505050505050505050565b60605f61253783612ff0565b60010190505f8167ffffffffffffffff81111561255657612556613bb6565b6040519080825280601f01601f191660200182016040528015612580576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461258a57509392505050565b606081515f036125d857505060408051602081019091525f815290565b5f6040518060600160405280604081526020016152636040913990505f6003845160026126059190613f2d565b61260f9190613f1a565b61261a906004613eef565b67ffffffffffffffff81111561263257612632613bb6565b6040519080825280601f01601f19166020018201604052801561265c576020820181803683370190505b509050600182016020820185865187015b808210156126c8576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061266d565b50506003865106600181146126e457600281146126f7576126ff565b603d6001830353603d60028303536126ff565b603d60018303535b509195945050505050565b60605f6004612719845f6130c7565b612723919061448c565b61272e906001613f2d565b90505f600561273e8560016130c7565b612748919061448c565b612753906001613f2d565b9050606060025b612765846002613f2d565b8160ff1610156127c15781612781601960ff841689901c61448c565b61278c9060416144dc565b60405160200161279d929190614533565b604051602081830303815290604052915080806127b990614515565b91505061275a565b50606060075b6127d2846007613f2d565b8160ff16101561282e57816127ee600a60ff84168a901c61448c565b6127f99060306144dc565b60405160200161280a929190614533565b6040516020818303038152906040529150808061282690614515565b9150506127c7565b508181604051602001612842929190614564565b604051602081830303815290604052945050505050919050565b5f600161286c600a610100613f1a565b6128779060026146cc565b6128819190613e7a565b60ff8316612892600a610100613f1a565b61289c9190613eef565b84901c16905092915050565b6128b06139d9565b6101006128bd835f6130c7565b6128c7919061448c565b60ff1681526101006128da8360016130c7565b6128e4919061448c565b60ff1660208201526101006128fa8360026130c7565b612904919061448c565b60ff16604082015260656129198360036130c7565b612923919061448c565b61292e906001613f2d565b60ff1660608201526102456129448360046130c7565b61294e919061448c565b61295990600a613f2d565b61ffff1660808201526102456129708360056130c7565b61297a919061448c565b61298590600a613f2d565b61ffff1660a08201526101f461299c8360066130c7565b6129a6919061448c565b6129b1906064613f2d565b61ffff1660c08201526103e96129c88360076130c7565b6129d2919061448c565b6129dd906064613f2d565b61ffff1660e082015261010081019190915290565b8051602082019150808201602084510184015b81841015612a1d578351815260209384019301612a05565b505082510190915250565b5f612a368261ffff1661252b565b90508051600403612b075761078183825f81518110612a5757612a57613f67565b602001015160f81c60f81b83600181518110612a7557612a75613f67565b602001015160f81c60f81b84600281518110612a9357612a93613f67565b602001015160f81c60f81b85600381518110612ab157612ab1613f67565b016020908101516040516001600160f81b0319958616928101929092529284166021820152601760f91b60228201529083166023820152911660248201526025015b6040516020818303038152906040526129f2565b8051600303612ba05761078183825f81518110612b2657612b26613f67565b602001015160f81c60f81b83600181518110612b4457612b44613f67565b602001015160f81c60f81b84600281518110612b6257612b62613f67565b016020908101516040516001600160f81b031994851692810192909252601760f91b6021830152918316602282015291166023820152602401612af3565b8051600203612c165761078183825f81518110612bbf57612bbf613f67565b602001015160f81c60f81b83600181518110612bdd57612bdd613f67565b0160209081015160405161181760f11b928101929092526001600160f81b03199283166022830152919091166023820152602401612af3565b61078183825f81518110612c2c57612c2c613f67565b01602090810151604051620302e360ec1b928101929092526001600160f81b0319166023820152602401612af3565b60408051620187008082018352620186e08083525f602093840181815285519384018652918352918301828152845180860190955282855292840191909152606092839290612cb090899060ff8a16906130fd565b97505f5b8760ff168161ffff161015612d4c575f612cd28a8a60ff1684613123565b90505f612d0682612ce68560ff8e1661449f565b8d8661ffff1660198110612cfc57612cfc613f67565b60200201516130fd565b9050612d42858583868e60ff16612d1d919061449f565b878e8961ffff1681518110612d3457612d34613f67565b60200260200101518e6131fa565b5050600101612cb4565b509097909650945050505050565b60605f612d668461252b565b90505f612d728461252b565b604080516101a0810190915261018081525f602090910181815291925050612db2816040518060800160405280604f81526020016152e5604f91396129f2565b8151600203612e5d57612df681835f81518110612dd157612dd1613f67565b016020908101516040516001600160f81b031990911691810191909152602101612af3565b612e1f81604051806040016040528060078152602001661e17ba32bc3a1f60c91b8152506129f2565b612e4181604051806080016040528060518152602001614cc4605191396129f2565b612e588183600181518110612dd157612dd1613f67565b612ee1565b612e8081604051806040016040528060018152602001600360fc1b8152506129f2565b612ea981604051806040016040528060078152602001661e17ba32bc3a1f60c91b8152506129f2565b612ecb81604051806080016040528060518152602001614cc4605191396129f2565b612ee181835f81518110612dd157612dd1613f67565b612f0a81604051806040016040528060078152602001661e17ba32bc3a1f60c91b8152506129f2565b612f2c81604051806080016040528060518152602001614c73605191396129f2565b612f438184600281518110612dd157612dd1613f67565b612f6c81604051806040016040528060078152602001661e17ba32bc3a1f60c91b8152506129f2565b612f8e81604051806080016040528060538152602001615626605391396129f2565b612fa58184600381518110612dd157612dd1613f67565b612fce81604051806040016040528060078152602001661e17ba32bc3a1f60c91b8152506129f2565b611762816040518060600160405280603a81526020016154e5603a91396129f2565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061302e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061305a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061307857662386f26fc10000830492506010015b6305f5e1008310613090576305f5e100830492506008015b61271083106130a457612710830492506004015b606483106130b6576064830492506002015b600a83106105b35760010192915050565b5f60016130d76008610100613f1a565b6130e29060026146cc565b6130ec9190613e7a565b60ff83166128926008610100613f1a565b6131056139ab565b61311b84835f61311660018861449f565b6133a5565b509192915050565b61312b6139ab565b5f613136838561449f565b90505f5b8161ffff168161ffff1610156131f1578561315582866144c1565b61ffff166019811061316957613169613f67565b6020020151518361ffff83166019811061318557613185613f67565b602002015161ffff9190911690528561319e82866144c1565b61ffff16601981106131b2576131b2613f67565b602002015160016020020151838261ffff16601981106131d4576131d4613f67565b6020020151600161ffff909216602092909202015260010161313a565b50509392505050565b602081015161320c9060ff16846144f5565b61ffff165f0361339c5760408051610ce08101909152610cc081525f6020909101818152865151909161324f91839189905b602002015160016020020151613551565b60015b8561ffff168161ffff161015613399575f6132b3888361ffff166019811061327c5761327c613f67565b6020020151518961328e60018661449f565b61ffff16601981106132a2576132a2613f67565b60200201515f5b60200201516135b9565b90505f613307898461ffff16601981106132cf576132cf613f67565b6020020151600160200201518a6132e760018761449f565b61ffff16601981106132fb576132fb613f67565b602002015160016132a9565b905060c88261ffff1611158015613323575060c88161ffff1611155b156133635761335e848a8561ffff166019811061334257613342613f67565b6020020151518b61ffff87166019811061323e5761323e613f67565b61338f565b60038361ffff1611156133885761337d8b858986896135e5565b6133888a88886136f2565b5050613399565b5050600101613252565b50505b50505050505050565b8181600181810b9083900b036133bc575050610ebb565b5f6134008760026133cd888861449f565b6133d791906146d7565b6133e190886144c1565b61ffff16601981106133f5576133f5613f67565b60200201518761393c565b90505b8160010b8360010b1361351d575b80613436888561ffff166019811061342b5761342b613f67565b60200201518861393c565b121561344e5782613446816146f7565b935050613411565b613467878361ffff16601981106133f5576133f5613f67565b81121561348057816134788161470d565b92505061344e565b8160010b8360010b1361351857868261ffff16601981106134a3576134a3613f67565b6020020151878461ffff16601981106134be576134be613f67565b6020020151888561ffff16601981106134d9576134d9613f67565b60200201898561ffff16601981106134f3576134f3613f67565b60200201919091525282613506816146f7565b93505081806135149061470d565b9250505b613403565b8160010b8560010b121561353757613537878787856133a5565b8360010b8360010b121561339c5761339c878785876133a5565b61357483604051806040016040528060018152602001600160fd1b8152506129f2565b613585836120348461ffff1661252b565b6135a883604051806040016040528060018152602001600b60fa1b8152506129f2565b610781836120348361ffff1661252b565b5f8161ffff168361ffff1611156135db576135d4828461449f565b90506105b3565b6135d4838361449f565b5f8282606001516135f691906146d7565b9050613625866040518060400160405280600b81526020016a01e3830ba3410321e93a6960ad1b8152506129f2565b61362f86866129f2565b613661866040518060400160405280601081526020016f09c8199a5b1d195c8f49dd5c9b0a08d960821b8152506129f2565b613672866120348661ffff1661252b565b6136b1866040518060400160405280602081526020017f2927207374726f6b653d27776869746527207374726f6b652d77696474683d278152506129f2565b6136c2866120348361ffff1661252b565b6136ea8660405180604001604052806006815260200165383c1390179f60d11b8152506129f2565b505050505050565b5f6050826101000151613705919061448c565b613710906028613f2d565b9050613741846040518060400160405280600d81526020016c0f199a5b1d195c881a590f49d9609a1b8152506129f2565b613752846120348561ffff1661252b565b613774846040518060a00160405280607e8152602001615566607e91396129f2565b613785846120348361ffff1661252b565b6137a7846040518060800160405280604281526020016155e4604291396129f2565b6137c2846120346137b98460326144c1565b61ffff1661252b565b6137e4846040518060800160405280604281526020016152a3604291396129f2565b6137f6846120346137b98460646144c1565b613818846040518060e0016040528060b2815260200161540d60b291396129f2565b61383c84610100845f015160ff166064613832919061472d565b6120af91906146d7565b613869846040518060400160405280600b81526020016a010181018101810181018160ad1b8152506129f2565b61388484610100846020015160ff166064613832919061472d565b6138b1846040518060400160405280600b81526020016a010181018101810181018160ad1b8152506129f2565b6138cc84610100846040015160ff166064613832919061472d565b6138f9846040518060400160405280600b81526020016a010181018101810181018160ad1b8152506129f2565b61390a84836060015160ff16612a28565b610ebb846040518060400160405280601081526020016f10181390179f101e17b334b63a32b91f60811b8152506129f2565b5f6002826001602002015160010b8460016002811061395d5761395d613f67565b602002015160010b61396f919061474b565b6139799190614836565b8251845160029161399091600191820b910b61474b565b61399a9190614836565b6139a49190613f40565b9392505050565b6040518061032001604052806019905b6139c3613a24565b8152602001906001900390816139bb5790505090565b60408051610120810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081019190915290565b60405180604001604052806002906020820280368337509192915050565b6001600160e01b031981168114610a2d575f80fd5b5f60208284031215613a67575f80fd5b81356139a481613a42565b5f5b83811015613a8c578181015183820152602001613a74565b50505f910152565b5f8151808452613aab816020860160208601613a72565b601f01601f19169290920160200192915050565b602081525f6139a46020830184613a94565b5f60208284031215613ae1575f80fd5b5035919050565b80356001600160a01b0381168114613afe575f80fd5b919050565b5f8060408385031215613b14575f80fd5b613b1d83613ae8565b946020939093013593505050565b5f805f60608486031215613b3d575f80fd5b613b4684613ae8565b9250613b5460208501613ae8565b9150604084013590509250925092565b5f60208284031215613b74575f80fd5b6139a482613ae8565b5f8060408385031215613b8e575f80fd5b613b9783613ae8565b915060208301358015158114613bab575f80fd5b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613bf357613bf3613bb6565b604052919050565b5f805f8060808587031215613c0e575f80fd5b613c1785613ae8565b93506020613c26818701613ae8565b935060408601359250606086013567ffffffffffffffff80821115613c49575f80fd5b818801915088601f830112613c5c575f80fd5b813581811115613c6e57613c6e613bb6565b613c80601f8201601f19168501613bca565b91508082528984828501011115613c95575f80fd5b80848401858401375f8482840101525080935050505092959194509250565b5f8060408385031215613cc5575f80fd5b613cce83613ae8565b9150613cdc60208401613ae8565b90509250929050565b5f67ffffffffffffffff821115613cfe57613cfe613bb6565b5060051b60200190565b5f82601f830112613d17575f80fd5b81356020613d2c613d2783613ce5565b613bca565b8083825260208201915060208460051b870101935086841115613d4d575f80fd5b602086015b84811015613d695780358352918301918301613d52565b509695505050505050565b5f8060408385031215613d85575f80fd5b823567ffffffffffffffff80821115613d9c575f80fd5b818501915085601f830112613daf575f80fd5b81356020613dbf613d2783613ce5565b82815260059290921b84018101918181019089841115613ddd575f80fd5b948201945b83861015613e0257613df386613ae8565b82529482019490820190613de2565b96505086013592505080821115613e17575f80fd5b50613e2485828601613d08565b9150509250929050565b600181811c90821680613e4257607f821691505b602082108103613e6057634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156105b3576105b3613e66565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b5f81613ee857613ee8613e66565b505f190190565b80820281158282048414176105b3576105b3613e66565b634e487b7160e01b5f52601260045260245ffd5b5f82613f2857613f28613f06565b500490565b808201808211156105b3576105b3613e66565b8082018281125f831280158216821582161715613f5f57613f5f613e66565b505092915050565b634e487b7160e01b5f52603260045260245ffd5b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b5f60018201613fd157613fd1613e66565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60ff82811682821603908111156105b3576105b3613e66565b5f8151614054818560208601613a72565b9290920192915050565b6e11161130ba3a3934b13aba32b9911d60891b81527f5b7b2274726169745f74797065223a22436c75737465722044656e7369747922600f8201526916113b30b63ab2911d1160b11b602f82015284515f906140c1816039850160208a01613a72565b7f227d2c7b2274726169745f74797065223a22496e6372656d656e74616c222c22603991840191820152673b30b63ab2911d1160c11b6059820152855161410f816061840160208a01613a72565b7f227d2c7b2274726169745f74797065223a22526f746174696f6e222c2276616c60619290910191820152643ab2911d1160d91b6081820152845161415b816086840160208901613a72565b6141b76141a76141a16086848601017f227d2c7b2274726169745f74797065223a224d61782044757374222c2276616c8152643ab2911d1160d91b602082015260250190565b87614043565b63227d5d7d60e01b815260040190565b98975050505050505050565b722a34329029ba30b91021b63ab9ba32b910151560691b81525f83516141f0816013850160208801613a72565b7f2a2a2077696c6c20737461727420666f726d696e67206f6e203173742044656360139184019182015261017160f51b60338201528351614238816035840160208801613a72565b01603501949350505050565b7f56696577206f6620746865205374617220436c7573746572202a2a000000000081525f845161427b81601b850160208901613a72565b65015151037b7160d51b601b9184019182015284516142a1816021840160208901613a72565b632f31322f60e01b6021929091019182015283516142c6816025840160208801613a72565b0160250195945050505050565b697b226e616d65223a222360b01b815286515f906142f881600a850160208c01613a72565b6201016960ed1b600a91840191820152875161431b81600d840160208c01613a72565b71111610113232b9b1b934b83a34b7b7111d1160711b600d9290910191820152865161434e81601f840160208b01613a72565b7f222c22696d616765223a22646174613a696d6167652f7376672b786d6c3b6261601f9290910191820152641cd94d8d0b60da1b603f820152855161439a816044840160208a01613a72565b7f222c22616e696d6174696f6e5f75726c223a22646174613a696d6167652f7376604492909101918201526c19cade1b5b0ed8985cd94d8d0b609a1b606482015261251e6143eb6071830187614043565b85614043565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081525f825161442881601d850160208701613a72565b91909101601d0192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061446790830184613a94565b9695505050505050565b5f60208284031215614481575f80fd5b81516139a481613a42565b5f8261449a5761449a613f06565b500690565b61ffff8281168282160390808211156144ba576144ba613e66565b5092915050565b61ffff8181168382160190808211156144ba576144ba613e66565b60ff81811683821601908111156105b3576105b3613e66565b5f61ffff8084168061450957614509613f06565b92169190910692915050565b5f60ff821660ff810361452a5761452a613e66565b60010192915050565b5f8351614544818460208801613a72565b60f89390931b6001600160f81b0319169190920190815260010192915050565b5f8351614575818460208801613a72565b600160fd1b9083019081528351614593816001840160208801613a72565b01600101949350505050565b600181815b808511156145d957815f19048211156145bf576145bf613e66565b808516156145cc57918102915b93841c93908002906145a4565b509250929050565b80825b60018086116145f35750614626565b6001600160ff1b0382900482111561460d5761460d613e66565b8086161561461a57918102915b9490941c9380026145e4565b935093915050565b5f8261463c575060016105b3565b8161464857505f6105b3565b816001811461465e576002811461466857614684565b60019150506105b3565b60ff84111561467957614679613e66565b50506001821b6105b3565b5060208310610133831016604e8410600b84101617156146a7575081810a6105b3565b6146b1838361459f565b805f19048211156146c4576146c4613e66565b029392505050565b5f6139a4838361462e565b5f61ffff808416806146eb576146eb613f06565b92169190910492915050565b5f8160010b617fff810361452a5761452a613e66565b5f8160010b617fff19810361472457614724613e66565b5f190192915050565b61ffff818116838216028082169190828114613f5f57613f5f613e66565b8181035f8312801583831316838312821617156144ba576144ba613e66565b5f82801561465e576001810361478357829150506105b3565b508161479057505f6105b3565b5060015f82138082146147a85780156147c7576147e1565b6001600160ff1b038390048311156147c2576147c2613e66565b6147e1565b6001600160ff1b038390058312156147e1576147e1613e66565b50808316156147ed5750805b6147fd8360011c838402836145e1565b5f82136001600160ff1b038290048311161561481b5761481b613e66565b5f8212600160ff1b829005831216156146c4576146c4613e66565b5f6139a460ff84168361476a56fe203c2f646566733e203c7265637420783d27302720793d2730272077696474683d2736303027206865696768743d273630302720636c6173733d277367272066696c6c3d27626c61636b27202f3e20203c672069643d27736b7927207472616e73666f726d3d27726f74617465283c2f673e203c636972636c652063783d27333030272063793d273330302720723d273239342720636c6173733d277420736727202f3e3c66696c7465722069643d277062272066696c746572556e6974733d277573657253706163654f6e5573652720783d272d3530252720793d272d353025272077696474683d273230302527206865696768743d2732303025273e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2735302720726573756c743d27623127202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2737302720726573756c743d27623227202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d273132302720726573756c743d27623327202f3e203c66654d6572676520726573756c743d276d273e203c66654d657267654e6f646520696e3d27623127202f3e203c66654d657267654e6f646520696e3d27623227202f3e203c2f66654d657267653e203c66654d657267653e203c66654d657267654e6f646520696e3d27623327202f3e203c66654d657267654e6f646520696e3d276d27202f3e203c2f66654d657267653e203c2f66696c7465723e3c66696c7465722069643d27706263272066696c746572556e6974733d277573657253706163654f6e5573652720783d272d3530252720793d272d353025272077696474683d273230302527206865696768743d2732303025273e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2731302720726573756c743d27623127202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2733302720726573756c743d27623227202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2734302720726573756c743d27623327202f3e203c66654d6572676520726573756c743d276d273e203c66654d657267654e6f646520696e3d27623127202f3e203c66654d657267654e6f646520696e3d27623227202f3e203c2f66654d657267653e203c66654d657267653e203c66654d657267654e6f646520696e3d27623327202f3e203c66654d657267654e6f646520696e3d276d27202f3e203c2f66654d657267653e203c2f66696c7465723e3c636972636c652063783d273439272063793d273534392720723d2731332720636c6173733d277420736727202f3e3c7465787420636c6173733d27796561722720783d2734342720793d27353536273e3c636972636c652063783d27353531272063793d2735312720723d2731332720636c6173733d277420736727202f3e3c7465787420636c6173733d27796561722720783d273534362720793d273537273e29207363616c6528302e37292720636c69702d706174683d2775726c28236672616d6529273e3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667272076696577426f783d273020302036303020363030272077696474683d273130302527206865696768743d2731303025273e203c646566733e3c7374796c653e20406b65796672616d65732069666c207b203025207b206f7061636974793a2031207d20343025207b206f7061636974793a20302e333b207d202031303025207b206f7061636974793a20302e383b207d207d202373746172207b20616e696d6174696f6e3a2069666c2032307320696e66696e69746520616c7465726e6174652d726576657273653b207d2023736b79207b7472616e73666f726d2d6f726967696e3a2063656e7465723b7d202e79656172207b666f6e743a20323070782054696d65733b66696c6c3a20726762283135332c3135332c313533293b7d202e74207b66696c6c3a207472616e73706172656e743b207d202e7367207b207374726f6b653a20726762283135332c3135332c31353329207d202e70207b20666f6e743a20323570782054696d65733b207d202e77207b2066696c6c3a2077686974653b207d3c2f7374796c653e203c636c6970506174682069643d276672616d65273e3c636972636c652063783d27333030272063793d273330302720723d2734323027202f3e3c2f636c6970506174683e3c66696c7465722069643d27626c7572272066696c746572556e6974733d277573657253706163654f6e5573652720783d272d3530252720793d272d353025272077696474683d273230302527206865696768743d2732303025273e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d27352720726573756c743d27626c75723527202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2731302720726573756c743d27626c7572313027202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2732302720726573756c743d27626c7572333027202f3e203c66654d6572676520726573756c743d276d6572676564273e203c66654d657267654e6f646520696e3d27626c7572313027202f3e203c66654d657267654e6f646520696e3d27626c7572333027202f3e203c2f66654d657267653e203c66654d65726765203e203c66654d657267654e6f646520696e3d27626c75723527202f3e203c66654d657267654e6f646520696e3d276d657267656427202f3e203c2f66654d657267653e203c2f66696c7465723e202c313030252c3630252927202f3e3c636972636c652063783d27333030272063793d273330302720723d273330272066696c7465723d2775726c282370626329272069643d2773746172272066696c6c3d2772676261283235352c3235352c3235352c302e352927202f3e3c7465787420746578742d616e63686f723d276d6964646c652720783d273530252720793d27343725272077696474683d27363030272068656967683d2735302720636c6173733d27702077273e54686520666972737420537461722077696c6c20617070656172206f6e207468653c2f746578743e203c7465787420746578742d616e63686f723d276d6964646c652720783d273530252720793d27353325272077696474683d27363030272068656967683d2735302720636c6173733d27702077273e6669727374206f6620446563656d6265723c2f746578743e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f2720726573756c743d27623227202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d273c636972636c652063783d273439272063793d2735312720723d2731332720636c6173733d277420736727202f3e3c7465787420636c6173733d27796561722720783d2734342720793d273537273e3c6c696e6520636c6173733d277367272078313d2730272078323d273430272079313d2730272079323d27343027202f3e203c6c696e6520636c6173733d277367272078313d27363030272078323d27353630272079313d2730272079323d27343027202f3e203c6c696e6520636c6173733d277367272078313d2730272078323d273430272079313d27363030272079323d2735363027202f3e203c6c696e6520636c6173733d277367272078313d27363030272078323d27353630272079313d27363030272079323d2735363027202f3e3c2f7376673e2720726573756c743d27623327202f3e203c66654d6572676520726573756c743d2762273e203c66654d657267654e6f646520696e3d27623127202f3e203c66654d657267654e6f646520696e3d27623227202f3e203c66654d657267654e6f646520696e3d27623327202f3e203c2f66654d657267653e203c6665436f6c6f724d617472697820726573756c743d2763622720696e3d27622720747970653d276d6174726978272076616c7565733d2720272069643d277374617227207374796c653d27616e696d6174696f6e2d6475726174696f6e3a3c7265637420783d27302720793d2730272077696474683d2736303027206865696768743d273630302720636c6173733d277420736727202f3e3c636972636c652063783d27333030272063793d273330302720723d273530272066696c7465723d2775726c2823706229272069643d2773746172272066696c6c3d2768736c28272066696c746572556e6974733d277573657253706163654f6e5573652720783d272d3530252720793d272d353025272077696474683d273230302527206865696768743d2732303025273e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d272720726573756c743d27623127202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d273c636972636c652063783d27353531272063793d273534392720723d2731332720636c6173733d277420736727202f3e3c7465787420636c6173733d27796561722720783d273534362720793d27353536273ea2646970667358221220a0fcbc36e7fd220a09f1046d8dac423f1a11c5121d14c9c0815b2e17dcd2749564736f6c634300081600330000000000000000000000000000000000000000000000000043a4c774860000000000000000000000000000000000000000000000000000000000006569304d

Deployed Bytecode

0x6080604052600436106101ba575f3560e01c8063715018a6116100f2578063b88d4fde11610092578063e985e9c511610062578063e985e9c5146104f8578063eef8031a14610517578063f2fde38b14610536578063f85668c614610555575f80fd5b8063b88d4fde14610468578063c321118c14610487578063c87b56dd146104a6578063e6757c99146104c5575f80fd5b806395d89b41116100cd57806395d89b41146103e8578063a0712d68146103fc578063a11e22d91461040f578063a22cb46514610449575f80fd5b8063715018a6146103845780638d859f3e146103985780638da5cb5b146103cb575f80fd5b806332d45b591161015d57806342842e0e1161013857806342842e0e146103135780634f02c420146103325780636352211e1461034657806370a0823114610365575f80fd5b806332d45b59146102cc5780633ccfd60b146102e057806341f1afc7146102f4575f80fd5b8063095ea7b311610198578063095ea7b31461024a5780631801f38e1461026b57806323b872dd1461028a57806332cb6b0c146102a9575f80fd5b806301ffc9a7146101be57806306fdde03146101f2578063081812fc14610213575b5f80fd5b3480156101c9575f80fd5b506101dd6101d8366004613a57565b610568565b60405190151581526020015b60405180910390f35b3480156101fd575f80fd5b506102066105b9565b6040516101e99190613abf565b34801561021e575f80fd5b5061023261022d366004613ad1565b610648565b6040516001600160a01b0390911681526020016101e9565b348015610255575f80fd5b50610269610264366004613b03565b61066d565b005b348015610276575f80fd5b50610269610285366004613ad1565b610786565b348015610295575f80fd5b506102696102a4366004613b2b565b610931565b3480156102b4575f80fd5b506102be6101b081565b6040519081526020016101e9565b3480156102d7575f80fd5b506102be610962565b3480156102eb575f80fd5b506102696109a7565b3480156102ff575f80fd5b506102be61030e366004613ad1565b610a30565b34801561031e575f80fd5b5061026961032d366004613b2b565b610ac2565b34801561033d575f80fd5b506102be610adc565b348015610351575f80fd5b50610232610360366004613ad1565b610af1565b348015610370575f80fd5b506102be61037f366004613b64565b610b50565b34801561038f575f80fd5b50610269610bd4565b3480156103a3575f80fd5b506102be7f0000000000000000000000000000000000000000000000000043a4c77486000081565b3480156103d6575f80fd5b506006546001600160a01b0316610232565b3480156103f3575f80fd5b50610206610be7565b61026961040a366004613ad1565b610bf6565b34801561041a575f80fd5b5061042e610429366004613ad1565b610cdc565b604080519384526020840192909252908201526060016101e9565b348015610454575f80fd5b50610269610463366004613b7d565b610e7e565b348015610473575f80fd5b50610269610482366004613bfb565b610e89565b348015610492575f80fd5b506102066104a1366004613ad1565b610ec1565b3480156104b1575f80fd5b506102066104c0366004613ad1565b610ef4565b3480156104d0575f80fd5b506102be7f000000000000000000000000000000000000000000000000000000006569304d81565b348015610503575f80fd5b506101dd610512366004613cb4565b610f21565b348015610522575f80fd5b50610269610531366004613d74565b610f4e565b348015610541575f80fd5b50610269610550366004613b64565b610fbc565b610269610563366004613ad1565b611032565b5f6001600160e01b031982166380ac58cd60e01b148061059857506001600160e01b03198216635b5e139f60e01b145b806105b357506301ffc9a760e01b6001600160e01b03198316145b92915050565b60605f80546105c790613e2e565b80601f01602080910402602001604051908101604052809291908181526020018280546105f390613e2e565b801561063e5780601f106106155761010080835404028352916020019161063e565b820191905f5260205f20905b81548152906001019060200180831161062157829003601f168201915b5050505050905090565b5f61065282611199565b505f908152600460205260409020546001600160a01b031690565b5f61067782610af1565b9050806001600160a01b0316836001600160a01b0316036106e95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061070557506107058133610f21565b6107775760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016106e0565b61078183836111f7565b505050565b61078f81610af1565b6001600160a01b0316336001600160a01b0316146107df5760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a34329037bbb732b960991b60448201526064016106e0565b5f805f6107eb42610cdc565b925092509250806107e7036108325760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a3434b9903cb2b0b960991b60448201526064016106e0565b5f848152600960205260409020548190036108835760405162461bcd60e51b8152602060048201526011602482015270185b1c9958591e481c995cdd185c9d1959607a1b60448201526064016106e0565b82600b1480156108935750601782115b8061089e575082600c145b6108d65760405162461bcd60e51b8152602060048201526009602482015268746f6f206561726c7960b81b60448201526064016106e0565b5f8481526009602052604090208190556108f1600143613e7a565b6040805191406020830152810185905260600160408051601f1981840301815291815281516020928301205f968752600890925290942093909355505050565b61093b3382611264565b6109575760405162461bcd60e51b81526004016106e090613e8d565b6107818383836112c1565b5f805f61096e42610cdc565b509150915081600c1480156109835750601981105b1561098e5792915050565b81600c0361099f5760189250505090565b5f9250505090565b6109af611423565b6040515f90339047908381818185875af1925050503d805f81146109ee576040519150601f19603f3d011682016040523d82523d5f602084013e6109f3565b606091505b5050905080610a2d5760405162461bcd60e51b81526004016106e09060208082526004908201526319985a5b60e21b604082015260600190565b50565b5f60015b600754811015610a7957610a4781610af1565b6001600160a01b03163303610a7157825f03610a635792915050565b82610a6d81613eda565b9350505b600101610a34565b5060405162461bcd60e51b815260206004820152601a60248201527f796f7520646f6e27742074686174206d616e7920746f6b656e7300000000000060448201526064016106e0565b61078183838360405180602001604052805f815250610e89565b5f6001600754610aec9190613e7a565b905090565b5f818152600260205260408120546001600160a01b0316806105b35760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016106e0565b5f6001600160a01b038216610bb95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016106e0565b506001600160a01b03165f9081526003602052604090205490565b610bdc611423565b610be55f61147d565b565b6060600180546105c790613e2e565b610c20817f0000000000000000000000000000000000000000000000000043a4c774860000613eef565b341015610c625760405162461bcd60e51b815260206004820152601060248201526f3737ba1032b737bab3b41032ba3432b960811b60448201526064016106e0565b7f000000000000000000000000000000000000000000000000000000006569304d4210610cbe5760405162461bcd60e51b815260206004820152600a6024820152691b5a5b9d08195b99195960b21b60448201526064016106e0565b5f5b81811015610cd857610cd06114ce565b600101610cc0565b5050565b5f808080610ced6201518086613f1a565b610cfa90620afa6c613f2d565b90505f610d0a62023ab183613f1a565b90505f610d1a8262023ab1613eef565b610d249084613e7a565b90505f61016d610d3762023ab084613f1a565b610d43618eac85613f1a565b610d4f6105b486613f1a565b610d599086613e7a565b610d639190613f2d565b610d6d9190613e7a565b610d779190613f1a565b9050610d8583610190613eef565b610d8f9082613f2d565b94505f610d9d606483613f1a565b610da8600484613f1a565b610db48461016d613eef565b610dbe9190613f2d565b610dc89190613e7a565b610dd29084613e7a565b90505f6099610de2836005613eef565b610ded906002613f2d565b610df79190613f1a565b90506005610e06826099613eef565b610e11906002613f2d565b610e1b9190613f1a565b610e259083613e7a565b610e30906001613f2d565b9750600a8110610e4257600819610e45565b60035b610e4f9082613f40565b98506002891115610e60575f610e63565b60015b610e709060ff1688613f2d565b989a97995050505050505050565b610cd8338383611575565b610e933383611264565b610eaf5760405162461bcd60e51b81526004016106e090613e8d565b610ebb84848484611642565b50505050565b60605f80610ece84611675565b5f868152600860205260409020549193509150610eec908383611748565b949350505050565b60605f80610f0184611675565b5f868152600860205260409020549193509150610eec908590848461176b565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b610f56611423565b81515f5b81811015610ebb57828181518110610f7457610f74613f67565b6020026020010151600a5f868481518110610f9157610f91613f67565b6020908102919091018101516001600160a01b031682528101919091526040015f2055600101610f5a565b610fc4611423565b6001600160a01b0381166110295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106e0565b610a2d8161147d565b335f908152600a60205260409020546110845760405162461bcd60e51b81526020600482015260146024820152731e5bdd481a185d99481b9bc8191a5cd8dbdd5b9d60621b60448201526064016106e0565b335f908152600a60205260409020546110bd827f0000000000000000000000000000000000000000000000000043a4c774860000613eef565b6110c8906064613eef565b6110d29190613f1a565b3410156111145760405162461bcd60e51b815260206004820152601060248201526f3737ba1032b737bab3b41032ba3432b960811b60448201526064016106e0565b335f908152600a60205260408120557f000000000000000000000000000000000000000000000000000000006569304d421061117f5760405162461bcd60e51b815260206004820152600a6024820152691b5a5b9d08195b99195960b21b60448201526064016106e0565b5f5b81811015610cd8576111916114ce565b600101611181565b5f818152600260205260409020546001600160a01b0316610a2d5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016106e0565b5f81815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061122b82610af1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5f8061126f83610af1565b9050806001600160a01b0316846001600160a01b0316148061129657506112968185610f21565b80610eec5750836001600160a01b03166112af84610648565b6001600160a01b031614949350505050565b826001600160a01b03166112d482610af1565b6001600160a01b0316146112fa5760405162461bcd60e51b81526004016106e090613f7b565b6001600160a01b03821661135c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016106e0565b826001600160a01b031661136f82610af1565b6001600160a01b0316146113955760405162461bcd60e51b81526004016106e090613f7b565b5f81815260046020908152604080832080546001600160a01b03199081169091556001600160a01b038781168086526003855283862080545f1901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610be55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106e0565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6101b060075411156115125760405162461bcd60e51b815260206004820152600d60248201526c6265796f6e6420737570706c7960981b60448201526064016106e0565b61151d600143613e7a565b600754604080519240602084015282015260600160408051601f198184030181529181528151602092830120600780545f9081526008909452918320558054610be59233929061156c83613fc0565b9190505561195f565b816001600160a01b0316836001600160a01b0316036115d65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016106e0565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61164d8484846112c1565b61165984848484611ae7565b610ebb5760405162461bcd60e51b81526004016106e090613fd8565b5f8181526002602052604081205481906001600160a01b03166116c85760405162461bcd60e51b815260206004820152600b60248201526a3737ba1030903a37b5b2b760a91b60448201526064016106e0565b505f82815260096020526040812054908190036116e457506107e75b5f805f6116f042610cdc565b9250925092508084148015611705575082600c145b8015611712575060188211155b1561171f57819450611740565b808414801561172e5750600c83105b1561173b575f9450611740565b601894505b505050915091565b60605f61175485611be1565b905061176285858584611df0565b95945050505050565b60605f61177785611be1565b90505f6117968260200151600661178e919061402a565b60ff1661252b565b82516117bf576040518060400160405280600581526020016446616c736560d81b8152506117dd565b604051806040016040528060048152602001635472756560e01b8152505b6117ee846040015161ffff1661252b565b6117ff856060015161ffff1661252b565b604051602001611812949392919061405e565b60405160208183030381529060405290505f61183087878786611df0565b90505f61183c826125bb565b9050606360f81b8260bc8151811061185657611856613f67565b60200101906001600160f81b03191690815f1a9053505f611876836125bb565b90505f6118828a61270a565b90506060895f036118be57816118978a61252b565b6040516020016118a89291906141c3565b60405160208183030381529060405290506118f5565b816118c88b61252b565b6118d18b61252b565b6040516020016118e393929190614244565b60405160208183030381529060405290505b61192f6119018d61252b565b838386888b60405160200161191b969594939291906142d3565b6040516020818303038152906040526125bb565b60405160200161193f91906143f1565b604051602081830303815290604052975050505050505050949350505050565b6001600160a01b0382166119b55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016106e0565b5f818152600260205260409020546001600160a01b031615611a195760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106e0565b5f818152600260205260409020546001600160a01b031615611a7d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016106e0565b6001600160a01b0382165f81815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b5f6001600160a01b0384163b15611bd957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b2a903390899088908890600401614435565b6020604051808303815f875af1925050508015611b64575060408051601f3d908101601f19168201909252611b6191810190614471565b60015b611bbf573d808015611b91576040519150601f19603f3d011682016040523d82523d5f602084013e611b96565b606091505b5080515f03611bb75760405162461bcd60e51b81526004016106e090613fd8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610eec565b506001610eec565b60408051610140810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810191909152610168611c3e835f61285c565b611c48919061448c565b61ffff1660408201526002611c5e83600161285c565b611c68919061448c565b158152610191611c7983600261285c565b611c83919061448c565b611c8e906064613f2d565b61ffff166060820152610245611ca583600361285c565b611caf919061448c565b611cba90600a613f2d565b61ffff166080820152610245611cd183600461285c565b611cdb919061448c565b611ce690600a613f2d565b61ffff1660a08201526006611cfc83600561285c565b611d06919061448c565b611d11906001613f2d565b60ff166020820152605b611d2683600661285c565b611d30919061448c565b611d3b90600a613f2d565b61ffff1660c0820152605b611d5183600761285c565b611d5b919061448c565b611d6690600a613f2d565b61ffff1660e082015260c0810151611d7f9060fb61449f565b61ffff16611d8e83600861285c565b611d98919061448c565b611da39060016144c1565b61ffff1661010082015260e0810151611dbd9060fb61449f565b61ffff16611dcc83600961285c565b611dd6919061448c565b611de19060016144c1565b61ffff16610120820152919050565b60408051620187008082018352620186e08083525f602093840181815285519384019095529082529101908152606091908280871561236b57611e316139ab565b60408051601980825261034082019092525f91816020015b611e516139d9565b815260200190600190039081611e495790505090505f5b8a8160ff161015612356575f8c611e808360016144dc565b604051602001611ea792919091825260f81b6001600160f81b031916602082015260210190565b604051602081830303815290604052805190602001205f1c90505f611ecb826128a8565b905080848460ff1681518110611ee357611ee3613f67565b60200260200101819052505f808c5f015115611f0a575050608081015160a0820151611fbf565b6102458d60c001518e61010001518560800151611f2791906144f5565b8f60800151611f3691906144c1565b611f4091906144c1565b611f4a91906144f5565b611f5590600a6144c1565b61ffff1660808e015260e08d01516101208e015160a08501516102459291611f7c916144f5565b8f60a00151611f8b91906144c1565b611f9591906144c1565b611f9f91906144f5565b611faa90600a6144c1565b61ffff1660a08e0181905260808e0151925090505b6040805180820190915261ffff8084168252821660208201528760ff871660198110611fed57611fed613f67565b60200201819052506120238b6040518060400160405280600c81526020016b3c636972636c652063783d2760a01b8152506129f2565b6120398b6120348461ffff1661252b565b6129f2565b6120618b60405180604001604052806006815260200165272063793d2760d01b8152506129f2565b6120728b6120348361ffff1661252b565b6120998b604051806040016040528060058152602001642720723d2760d81b8152506129f2565b6120b48b8460c0015161012c6120af91906144c1565b612a28565b6120d68b6040518060600160405280602681526020016154bf602691396129f2565b6120e48b8460e00151612a28565b6121158b6040518060400160405280600f81526020016e0e6764e40ccd2d8d87a4ee4cec4c25608b1b8152506129f2565b6121658b6120346103e8610100875f015160ff166103e86121369190613eef565b6121409190613f1a565b61214b90609c613eef565b6121559190613f1a565b612160906064613f2d565b61252b565b6121888b604051806040016040528060018152602001600b60fa1b8152506129f2565b6121aa8b6120346103e8610100876020015160ff166103e86121369190613eef565b6121cd8b604051806040016040528060018152602001600b60fa1b8152506129f2565b6121ef8b6120346103e8610100876040015160ff166103e86121369190613eef565b6122128b604051806040016040528060018152602001600b60fa1b8152506129f2565b6122238b846060015160ff16612a28565b6122628b6040518060400160405280601981526020017f29272066696c7465723d2775726c2823626c75722927202f3e000000000000008152506129f2565b6122908b6040518060400160405280600c81526020016b3c636972636c652063783d2760a01b8152506129f2565b6122a18b6120348461ffff1661252b565b6122c98b60405180604001604052806006815260200165272063793d2760d01b8152506129f2565b6122da8b6120348361ffff1661252b565b6123018b604051806040016040528060058152602001642720723d2760d81b8152506129f2565b61230f8b8460c00151612a28565b61233f8b6040518060400160405280600e81526020016d139031b630b9b99e93bb9390179f60911b8152506129f2565b50505050808061234e90614515565b915050611e68565b6123628382848c612c5b565b90955093505050505b60408051620f42a08101909152620f428081525f602090910181815290506123ae816040518061040001604052806103e08152602001614d3b6103e091396129f2565b885f036123da576123da81604051806103c0016040528061038a81526020016148e961038a91396129f2565b6123e481856129f2565b6123ee81836129f2565b612410816040518060a00160405280606e8152602001614845606e91396129f2565b61242581612034896040015161ffff1661252b565b61244781604051806060016040528060268152602001614d15602691396129f2565b61245181846129f2565b61245b81866129f2565b61247d816040518060600160405280603681526020016148b3603691396129f2565b61248b816120348a8c612d5a565b885f036124fb575f61249f6101688c61448c565b90506124c38260405180608001604052806047815260200161551f604791396129f2565b6124d4826120348361ffff1661252b565b6124f982604051806101800160405280610148815260200161511b61014891396129f2565b505b61251e8160405180610100016040528060d9815260200161533460d991396129f2565b9998505050505050505050565b60605f61253783612ff0565b60010190505f8167ffffffffffffffff81111561255657612556613bb6565b6040519080825280601f01601f191660200182016040528015612580576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461258a57509392505050565b606081515f036125d857505060408051602081019091525f815290565b5f6040518060600160405280604081526020016152636040913990505f6003845160026126059190613f2d565b61260f9190613f1a565b61261a906004613eef565b67ffffffffffffffff81111561263257612632613bb6565b6040519080825280601f01601f19166020018201604052801561265c576020820181803683370190505b509050600182016020820185865187015b808210156126c8576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061266d565b50506003865106600181146126e457600281146126f7576126ff565b603d6001830353603d60028303536126ff565b603d60018303535b509195945050505050565b60605f6004612719845f6130c7565b612723919061448c565b61272e906001613f2d565b90505f600561273e8560016130c7565b612748919061448c565b612753906001613f2d565b9050606060025b612765846002613f2d565b8160ff1610156127c15781612781601960ff841689901c61448c565b61278c9060416144dc565b60405160200161279d929190614533565b604051602081830303815290604052915080806127b990614515565b91505061275a565b50606060075b6127d2846007613f2d565b8160ff16101561282e57816127ee600a60ff84168a901c61448c565b6127f99060306144dc565b60405160200161280a929190614533565b6040516020818303038152906040529150808061282690614515565b9150506127c7565b508181604051602001612842929190614564565b604051602081830303815290604052945050505050919050565b5f600161286c600a610100613f1a565b6128779060026146cc565b6128819190613e7a565b60ff8316612892600a610100613f1a565b61289c9190613eef565b84901c16905092915050565b6128b06139d9565b6101006128bd835f6130c7565b6128c7919061448c565b60ff1681526101006128da8360016130c7565b6128e4919061448c565b60ff1660208201526101006128fa8360026130c7565b612904919061448c565b60ff16604082015260656129198360036130c7565b612923919061448c565b61292e906001613f2d565b60ff1660608201526102456129448360046130c7565b61294e919061448c565b61295990600a613f2d565b61ffff1660808201526102456129708360056130c7565b61297a919061448c565b61298590600a613f2d565b61ffff1660a08201526101f461299c8360066130c7565b6129a6919061448c565b6129b1906064613f2d565b61ffff1660c08201526103e96129c88360076130c7565b6129d2919061448c565b6129dd906064613f2d565b61ffff1660e082015261010081019190915290565b8051602082019150808201602084510184015b81841015612a1d578351815260209384019301612a05565b505082510190915250565b5f612a368261ffff1661252b565b90508051600403612b075761078183825f81518110612a5757612a57613f67565b602001015160f81c60f81b83600181518110612a7557612a75613f67565b602001015160f81c60f81b84600281518110612a9357612a93613f67565b602001015160f81c60f81b85600381518110612ab157612ab1613f67565b016020908101516040516001600160f81b0319958616928101929092529284166021820152601760f91b60228201529083166023820152911660248201526025015b6040516020818303038152906040526129f2565b8051600303612ba05761078183825f81518110612b2657612b26613f67565b602001015160f81c60f81b83600181518110612b4457612b44613f67565b602001015160f81c60f81b84600281518110612b6257612b62613f67565b016020908101516040516001600160f81b031994851692810192909252601760f91b6021830152918316602282015291166023820152602401612af3565b8051600203612c165761078183825f81518110612bbf57612bbf613f67565b602001015160f81c60f81b83600181518110612bdd57612bdd613f67565b0160209081015160405161181760f11b928101929092526001600160f81b03199283166022830152919091166023820152602401612af3565b61078183825f81518110612c2c57612c2c613f67565b01602090810151604051620302e360ec1b928101929092526001600160f81b0319166023820152602401612af3565b60408051620187008082018352620186e08083525f602093840181815285519384018652918352918301828152845180860190955282855292840191909152606092839290612cb090899060ff8a16906130fd565b97505f5b8760ff168161ffff161015612d4c575f612cd28a8a60ff1684613123565b90505f612d0682612ce68560ff8e1661449f565b8d8661ffff1660198110612cfc57612cfc613f67565b60200201516130fd565b9050612d42858583868e60ff16612d1d919061449f565b878e8961ffff1681518110612d3457612d34613f67565b60200260200101518e6131fa565b5050600101612cb4565b509097909650945050505050565b60605f612d668461252b565b90505f612d728461252b565b604080516101a0810190915261018081525f602090910181815291925050612db2816040518060800160405280604f81526020016152e5604f91396129f2565b8151600203612e5d57612df681835f81518110612dd157612dd1613f67565b016020908101516040516001600160f81b031990911691810191909152602101612af3565b612e1f81604051806040016040528060078152602001661e17ba32bc3a1f60c91b8152506129f2565b612e4181604051806080016040528060518152602001614cc4605191396129f2565b612e588183600181518110612dd157612dd1613f67565b612ee1565b612e8081604051806040016040528060018152602001600360fc1b8152506129f2565b612ea981604051806040016040528060078152602001661e17ba32bc3a1f60c91b8152506129f2565b612ecb81604051806080016040528060518152602001614cc4605191396129f2565b612ee181835f81518110612dd157612dd1613f67565b612f0a81604051806040016040528060078152602001661e17ba32bc3a1f60c91b8152506129f2565b612f2c81604051806080016040528060518152602001614c73605191396129f2565b612f438184600281518110612dd157612dd1613f67565b612f6c81604051806040016040528060078152602001661e17ba32bc3a1f60c91b8152506129f2565b612f8e81604051806080016040528060538152602001615626605391396129f2565b612fa58184600381518110612dd157612dd1613f67565b612fce81604051806040016040528060078152602001661e17ba32bc3a1f60c91b8152506129f2565b611762816040518060600160405280603a81526020016154e5603a91396129f2565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061302e5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061305a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061307857662386f26fc10000830492506010015b6305f5e1008310613090576305f5e100830492506008015b61271083106130a457612710830492506004015b606483106130b6576064830492506002015b600a83106105b35760010192915050565b5f60016130d76008610100613f1a565b6130e29060026146cc565b6130ec9190613e7a565b60ff83166128926008610100613f1a565b6131056139ab565b61311b84835f61311660018861449f565b6133a5565b509192915050565b61312b6139ab565b5f613136838561449f565b90505f5b8161ffff168161ffff1610156131f1578561315582866144c1565b61ffff166019811061316957613169613f67565b6020020151518361ffff83166019811061318557613185613f67565b602002015161ffff9190911690528561319e82866144c1565b61ffff16601981106131b2576131b2613f67565b602002015160016020020151838261ffff16601981106131d4576131d4613f67565b6020020151600161ffff909216602092909202015260010161313a565b50509392505050565b602081015161320c9060ff16846144f5565b61ffff165f0361339c5760408051610ce08101909152610cc081525f6020909101818152865151909161324f91839189905b602002015160016020020151613551565b60015b8561ffff168161ffff161015613399575f6132b3888361ffff166019811061327c5761327c613f67565b6020020151518961328e60018661449f565b61ffff16601981106132a2576132a2613f67565b60200201515f5b60200201516135b9565b90505f613307898461ffff16601981106132cf576132cf613f67565b6020020151600160200201518a6132e760018761449f565b61ffff16601981106132fb576132fb613f67565b602002015160016132a9565b905060c88261ffff1611158015613323575060c88161ffff1611155b156133635761335e848a8561ffff166019811061334257613342613f67565b6020020151518b61ffff87166019811061323e5761323e613f67565b61338f565b60038361ffff1611156133885761337d8b858986896135e5565b6133888a88886136f2565b5050613399565b5050600101613252565b50505b50505050505050565b8181600181810b9083900b036133bc575050610ebb565b5f6134008760026133cd888861449f565b6133d791906146d7565b6133e190886144c1565b61ffff16601981106133f5576133f5613f67565b60200201518761393c565b90505b8160010b8360010b1361351d575b80613436888561ffff166019811061342b5761342b613f67565b60200201518861393c565b121561344e5782613446816146f7565b935050613411565b613467878361ffff16601981106133f5576133f5613f67565b81121561348057816134788161470d565b92505061344e565b8160010b8360010b1361351857868261ffff16601981106134a3576134a3613f67565b6020020151878461ffff16601981106134be576134be613f67565b6020020151888561ffff16601981106134d9576134d9613f67565b60200201898561ffff16601981106134f3576134f3613f67565b60200201919091525282613506816146f7565b93505081806135149061470d565b9250505b613403565b8160010b8560010b121561353757613537878787856133a5565b8360010b8360010b121561339c5761339c878785876133a5565b61357483604051806040016040528060018152602001600160fd1b8152506129f2565b613585836120348461ffff1661252b565b6135a883604051806040016040528060018152602001600b60fa1b8152506129f2565b610781836120348361ffff1661252b565b5f8161ffff168361ffff1611156135db576135d4828461449f565b90506105b3565b6135d4838361449f565b5f8282606001516135f691906146d7565b9050613625866040518060400160405280600b81526020016a01e3830ba3410321e93a6960ad1b8152506129f2565b61362f86866129f2565b613661866040518060400160405280601081526020016f09c8199a5b1d195c8f49dd5c9b0a08d960821b8152506129f2565b613672866120348661ffff1661252b565b6136b1866040518060400160405280602081526020017f2927207374726f6b653d27776869746527207374726f6b652d77696474683d278152506129f2565b6136c2866120348361ffff1661252b565b6136ea8660405180604001604052806006815260200165383c1390179f60d11b8152506129f2565b505050505050565b5f6050826101000151613705919061448c565b613710906028613f2d565b9050613741846040518060400160405280600d81526020016c0f199a5b1d195c881a590f49d9609a1b8152506129f2565b613752846120348561ffff1661252b565b613774846040518060a00160405280607e8152602001615566607e91396129f2565b613785846120348361ffff1661252b565b6137a7846040518060800160405280604281526020016155e4604291396129f2565b6137c2846120346137b98460326144c1565b61ffff1661252b565b6137e4846040518060800160405280604281526020016152a3604291396129f2565b6137f6846120346137b98460646144c1565b613818846040518060e0016040528060b2815260200161540d60b291396129f2565b61383c84610100845f015160ff166064613832919061472d565b6120af91906146d7565b613869846040518060400160405280600b81526020016a010181018101810181018160ad1b8152506129f2565b61388484610100846020015160ff166064613832919061472d565b6138b1846040518060400160405280600b81526020016a010181018101810181018160ad1b8152506129f2565b6138cc84610100846040015160ff166064613832919061472d565b6138f9846040518060400160405280600b81526020016a010181018101810181018160ad1b8152506129f2565b61390a84836060015160ff16612a28565b610ebb846040518060400160405280601081526020016f10181390179f101e17b334b63a32b91f60811b8152506129f2565b5f6002826001602002015160010b8460016002811061395d5761395d613f67565b602002015160010b61396f919061474b565b6139799190614836565b8251845160029161399091600191820b910b61474b565b61399a9190614836565b6139a49190613f40565b9392505050565b6040518061032001604052806019905b6139c3613a24565b8152602001906001900390816139bb5790505090565b60408051610120810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081019190915290565b60405180604001604052806002906020820280368337509192915050565b6001600160e01b031981168114610a2d575f80fd5b5f60208284031215613a67575f80fd5b81356139a481613a42565b5f5b83811015613a8c578181015183820152602001613a74565b50505f910152565b5f8151808452613aab816020860160208601613a72565b601f01601f19169290920160200192915050565b602081525f6139a46020830184613a94565b5f60208284031215613ae1575f80fd5b5035919050565b80356001600160a01b0381168114613afe575f80fd5b919050565b5f8060408385031215613b14575f80fd5b613b1d83613ae8565b946020939093013593505050565b5f805f60608486031215613b3d575f80fd5b613b4684613ae8565b9250613b5460208501613ae8565b9150604084013590509250925092565b5f60208284031215613b74575f80fd5b6139a482613ae8565b5f8060408385031215613b8e575f80fd5b613b9783613ae8565b915060208301358015158114613bab575f80fd5b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613bf357613bf3613bb6565b604052919050565b5f805f8060808587031215613c0e575f80fd5b613c1785613ae8565b93506020613c26818701613ae8565b935060408601359250606086013567ffffffffffffffff80821115613c49575f80fd5b818801915088601f830112613c5c575f80fd5b813581811115613c6e57613c6e613bb6565b613c80601f8201601f19168501613bca565b91508082528984828501011115613c95575f80fd5b80848401858401375f8482840101525080935050505092959194509250565b5f8060408385031215613cc5575f80fd5b613cce83613ae8565b9150613cdc60208401613ae8565b90509250929050565b5f67ffffffffffffffff821115613cfe57613cfe613bb6565b5060051b60200190565b5f82601f830112613d17575f80fd5b81356020613d2c613d2783613ce5565b613bca565b8083825260208201915060208460051b870101935086841115613d4d575f80fd5b602086015b84811015613d695780358352918301918301613d52565b509695505050505050565b5f8060408385031215613d85575f80fd5b823567ffffffffffffffff80821115613d9c575f80fd5b818501915085601f830112613daf575f80fd5b81356020613dbf613d2783613ce5565b82815260059290921b84018101918181019089841115613ddd575f80fd5b948201945b83861015613e0257613df386613ae8565b82529482019490820190613de2565b96505086013592505080821115613e17575f80fd5b50613e2485828601613d08565b9150509250929050565b600181811c90821680613e4257607f821691505b602082108103613e6057634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156105b3576105b3613e66565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b5f81613ee857613ee8613e66565b505f190190565b80820281158282048414176105b3576105b3613e66565b634e487b7160e01b5f52601260045260245ffd5b5f82613f2857613f28613f06565b500490565b808201808211156105b3576105b3613e66565b8082018281125f831280158216821582161715613f5f57613f5f613e66565b505092915050565b634e487b7160e01b5f52603260045260245ffd5b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b5f60018201613fd157613fd1613e66565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60ff82811682821603908111156105b3576105b3613e66565b5f8151614054818560208601613a72565b9290920192915050565b6e11161130ba3a3934b13aba32b9911d60891b81527f5b7b2274726169745f74797065223a22436c75737465722044656e7369747922600f8201526916113b30b63ab2911d1160b11b602f82015284515f906140c1816039850160208a01613a72565b7f227d2c7b2274726169745f74797065223a22496e6372656d656e74616c222c22603991840191820152673b30b63ab2911d1160c11b6059820152855161410f816061840160208a01613a72565b7f227d2c7b2274726169745f74797065223a22526f746174696f6e222c2276616c60619290910191820152643ab2911d1160d91b6081820152845161415b816086840160208901613a72565b6141b76141a76141a16086848601017f227d2c7b2274726169745f74797065223a224d61782044757374222c2276616c8152643ab2911d1160d91b602082015260250190565b87614043565b63227d5d7d60e01b815260040190565b98975050505050505050565b722a34329029ba30b91021b63ab9ba32b910151560691b81525f83516141f0816013850160208801613a72565b7f2a2a2077696c6c20737461727420666f726d696e67206f6e203173742044656360139184019182015261017160f51b60338201528351614238816035840160208801613a72565b01603501949350505050565b7f56696577206f6620746865205374617220436c7573746572202a2a000000000081525f845161427b81601b850160208901613a72565b65015151037b7160d51b601b9184019182015284516142a1816021840160208901613a72565b632f31322f60e01b6021929091019182015283516142c6816025840160208801613a72565b0160250195945050505050565b697b226e616d65223a222360b01b815286515f906142f881600a850160208c01613a72565b6201016960ed1b600a91840191820152875161431b81600d840160208c01613a72565b71111610113232b9b1b934b83a34b7b7111d1160711b600d9290910191820152865161434e81601f840160208b01613a72565b7f222c22696d616765223a22646174613a696d6167652f7376672b786d6c3b6261601f9290910191820152641cd94d8d0b60da1b603f820152855161439a816044840160208a01613a72565b7f222c22616e696d6174696f6e5f75726c223a22646174613a696d6167652f7376604492909101918201526c19cade1b5b0ed8985cd94d8d0b609a1b606482015261251e6143eb6071830187614043565b85614043565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081525f825161442881601d850160208701613a72565b91909101601d0192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061446790830184613a94565b9695505050505050565b5f60208284031215614481575f80fd5b81516139a481613a42565b5f8261449a5761449a613f06565b500690565b61ffff8281168282160390808211156144ba576144ba613e66565b5092915050565b61ffff8181168382160190808211156144ba576144ba613e66565b60ff81811683821601908111156105b3576105b3613e66565b5f61ffff8084168061450957614509613f06565b92169190910692915050565b5f60ff821660ff810361452a5761452a613e66565b60010192915050565b5f8351614544818460208801613a72565b60f89390931b6001600160f81b0319169190920190815260010192915050565b5f8351614575818460208801613a72565b600160fd1b9083019081528351614593816001840160208801613a72565b01600101949350505050565b600181815b808511156145d957815f19048211156145bf576145bf613e66565b808516156145cc57918102915b93841c93908002906145a4565b509250929050565b80825b60018086116145f35750614626565b6001600160ff1b0382900482111561460d5761460d613e66565b8086161561461a57918102915b9490941c9380026145e4565b935093915050565b5f8261463c575060016105b3565b8161464857505f6105b3565b816001811461465e576002811461466857614684565b60019150506105b3565b60ff84111561467957614679613e66565b50506001821b6105b3565b5060208310610133831016604e8410600b84101617156146a7575081810a6105b3565b6146b1838361459f565b805f19048211156146c4576146c4613e66565b029392505050565b5f6139a4838361462e565b5f61ffff808416806146eb576146eb613f06565b92169190910492915050565b5f8160010b617fff810361452a5761452a613e66565b5f8160010b617fff19810361472457614724613e66565b5f190192915050565b61ffff818116838216028082169190828114613f5f57613f5f613e66565b8181035f8312801583831316838312821617156144ba576144ba613e66565b5f82801561465e576001810361478357829150506105b3565b508161479057505f6105b3565b5060015f82138082146147a85780156147c7576147e1565b6001600160ff1b038390048311156147c2576147c2613e66565b6147e1565b6001600160ff1b038390058312156147e1576147e1613e66565b50808316156147ed5750805b6147fd8360011c838402836145e1565b5f82136001600160ff1b038290048311161561481b5761481b613e66565b5f8212600160ff1b829005831216156146c4576146c4613e66565b5f6139a460ff84168361476a56fe203c2f646566733e203c7265637420783d27302720793d2730272077696474683d2736303027206865696768743d273630302720636c6173733d277367272066696c6c3d27626c61636b27202f3e20203c672069643d27736b7927207472616e73666f726d3d27726f74617465283c2f673e203c636972636c652063783d27333030272063793d273330302720723d273239342720636c6173733d277420736727202f3e3c66696c7465722069643d277062272066696c746572556e6974733d277573657253706163654f6e5573652720783d272d3530252720793d272d353025272077696474683d273230302527206865696768743d2732303025273e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2735302720726573756c743d27623127202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2737302720726573756c743d27623227202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d273132302720726573756c743d27623327202f3e203c66654d6572676520726573756c743d276d273e203c66654d657267654e6f646520696e3d27623127202f3e203c66654d657267654e6f646520696e3d27623227202f3e203c2f66654d657267653e203c66654d657267653e203c66654d657267654e6f646520696e3d27623327202f3e203c66654d657267654e6f646520696e3d276d27202f3e203c2f66654d657267653e203c2f66696c7465723e3c66696c7465722069643d27706263272066696c746572556e6974733d277573657253706163654f6e5573652720783d272d3530252720793d272d353025272077696474683d273230302527206865696768743d2732303025273e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2731302720726573756c743d27623127202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2733302720726573756c743d27623227202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2734302720726573756c743d27623327202f3e203c66654d6572676520726573756c743d276d273e203c66654d657267654e6f646520696e3d27623127202f3e203c66654d657267654e6f646520696e3d27623227202f3e203c2f66654d657267653e203c66654d657267653e203c66654d657267654e6f646520696e3d27623327202f3e203c66654d657267654e6f646520696e3d276d27202f3e203c2f66654d657267653e203c2f66696c7465723e3c636972636c652063783d273439272063793d273534392720723d2731332720636c6173733d277420736727202f3e3c7465787420636c6173733d27796561722720783d2734342720793d27353536273e3c636972636c652063783d27353531272063793d2735312720723d2731332720636c6173733d277420736727202f3e3c7465787420636c6173733d27796561722720783d273534362720793d273537273e29207363616c6528302e37292720636c69702d706174683d2775726c28236672616d6529273e3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667272076696577426f783d273020302036303020363030272077696474683d273130302527206865696768743d2731303025273e203c646566733e3c7374796c653e20406b65796672616d65732069666c207b203025207b206f7061636974793a2031207d20343025207b206f7061636974793a20302e333b207d202031303025207b206f7061636974793a20302e383b207d207d202373746172207b20616e696d6174696f6e3a2069666c2032307320696e66696e69746520616c7465726e6174652d726576657273653b207d2023736b79207b7472616e73666f726d2d6f726967696e3a2063656e7465723b7d202e79656172207b666f6e743a20323070782054696d65733b66696c6c3a20726762283135332c3135332c313533293b7d202e74207b66696c6c3a207472616e73706172656e743b207d202e7367207b207374726f6b653a20726762283135332c3135332c31353329207d202e70207b20666f6e743a20323570782054696d65733b207d202e77207b2066696c6c3a2077686974653b207d3c2f7374796c653e203c636c6970506174682069643d276672616d65273e3c636972636c652063783d27333030272063793d273330302720723d2734323027202f3e3c2f636c6970506174683e3c66696c7465722069643d27626c7572272066696c746572556e6974733d277573657253706163654f6e5573652720783d272d3530252720793d272d353025272077696474683d273230302527206865696768743d2732303025273e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d27352720726573756c743d27626c75723527202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2731302720726573756c743d27626c7572313027202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d2732302720726573756c743d27626c7572333027202f3e203c66654d6572676520726573756c743d276d6572676564273e203c66654d657267654e6f646520696e3d27626c7572313027202f3e203c66654d657267654e6f646520696e3d27626c7572333027202f3e203c2f66654d657267653e203c66654d65726765203e203c66654d657267654e6f646520696e3d27626c75723527202f3e203c66654d657267654e6f646520696e3d276d657267656427202f3e203c2f66654d657267653e203c2f66696c7465723e202c313030252c3630252927202f3e3c636972636c652063783d27333030272063793d273330302720723d273330272066696c7465723d2775726c282370626329272069643d2773746172272066696c6c3d2772676261283235352c3235352c3235352c302e352927202f3e3c7465787420746578742d616e63686f723d276d6964646c652720783d273530252720793d27343725272077696474683d27363030272068656967683d2735302720636c6173733d27702077273e54686520666972737420537461722077696c6c20617070656172206f6e207468653c2f746578743e203c7465787420746578742d616e63686f723d276d6964646c652720783d273530252720793d27353325272077696474683d27363030272068656967683d2735302720636c6173733d27702077273e6669727374206f6620446563656d6265723c2f746578743e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f2720726573756c743d27623227202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d273c636972636c652063783d273439272063793d2735312720723d2731332720636c6173733d277420736727202f3e3c7465787420636c6173733d27796561722720783d2734342720793d273537273e3c6c696e6520636c6173733d277367272078313d2730272078323d273430272079313d2730272079323d27343027202f3e203c6c696e6520636c6173733d277367272078313d27363030272078323d27353630272079313d2730272079323d27343027202f3e203c6c696e6520636c6173733d277367272078313d2730272078323d273430272079313d27363030272079323d2735363027202f3e203c6c696e6520636c6173733d277367272078313d27363030272078323d27353630272079313d27363030272079323d2735363027202f3e3c2f7376673e2720726573756c743d27623327202f3e203c66654d6572676520726573756c743d2762273e203c66654d657267654e6f646520696e3d27623127202f3e203c66654d657267654e6f646520696e3d27623227202f3e203c66654d657267654e6f646520696e3d27623327202f3e203c2f66654d657267653e203c6665436f6c6f724d617472697820726573756c743d2763622720696e3d27622720747970653d276d6174726978272076616c7565733d2720272069643d277374617227207374796c653d27616e696d6174696f6e2d6475726174696f6e3a3c7265637420783d27302720793d2730272077696474683d2736303027206865696768743d273630302720636c6173733d277420736727202f3e3c636972636c652063783d27333030272063793d273330302720723d273530272066696c7465723d2775726c2823706229272069643d2773746172272066696c6c3d2768736c28272066696c746572556e6974733d277573657253706163654f6e5573652720783d272d3530252720793d272d353025272077696474683d273230302527206865696768743d2732303025273e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d272720726573756c743d27623127202f3e203c6665476175737369616e426c757220696e3d27536f75726365477261706869632720737464446576696174696f6e3d273c636972636c652063783d27353531272063793d273534392720723d2731332720636c6173733d277420736727202f3e3c7465787420636c6173733d27796561722720783d273534362720793d27353536273ea2646970667358221220a0fcbc36e7fd220a09f1046d8dac423f1a11c5121d14c9c0815b2e17dcd2749564736f6c63430008160033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000043a4c774860000000000000000000000000000000000000000000000000000000000006569304d

-----Decoded View---------------
Arg [0] : price (uint256): 19040000000000000
Arg [1] : mintEnd (uint256): 1701392461

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000043a4c774860000
Arg [1] : 000000000000000000000000000000000000000000000000000000006569304d


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.