ETH Price: $3,470.19 (-1.04%)
Gas: 3 Gwei

Token

Zoo-man Manga (ZMMG)
 

Overview

Max Total Supply

3,440 ZMMG

Holders

107

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
20 ZMMG
0x6b3b5eEe8a7096110E8Cb63Be91bD6F37Ad3b219
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:
ZoomanMangaNFT

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-02-01
*/

// SPDX-License-Identifier: MIT
// Sources flattened with hardhat v2.12.5 https://hardhat.org

// File @openzeppelin/contracts/access/[email protected]


// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}


// File @openzeppelin/contracts/utils/[email protected]


// 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 @openzeppelin/contracts/utils/introspection/[email protected]


// 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 @openzeppelin/contracts/utils/introspection/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/utils/math/[email protected]


// 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 @openzeppelin/contracts/utils/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/access/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;




/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}


// File @openzeppelin/contracts/access/[email protected]


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/interfaces/[email protected]


// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}


// File @openzeppelin/contracts/token/common/[email protected]


// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;


/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}


// File @openzeppelin/contracts/token/ERC721/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC721/extensions/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @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 @openzeppelin/contracts/token/ERC721/[email protected]


// 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 @openzeppelin/contracts/utils/[email protected]


// 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 @openzeppelin/contracts/token/ERC721/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;







/**
 * @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 {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @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 {}
}


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.0;



/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {ERC2981-_setDefaultRoyalty}, and/or individually for
 * specific token ids via {ERC2981-_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}


// File contracts/ticketaddresslisttemp.sol


pragma solidity ^0.8.6;

contract ticketaddresslist is AccessControl {

    bytes32 TICKET_ROLE = keccak256('TICKET_ROLE');

    mapping(address => bool) premiumPassAcceptAddress;
    mapping(address => uint256) regularPassAcceptAddress;

    mapping(address => bool) premiumPassUsed;
    mapping(address => uint256) regularPassUsedAmount;

    uint256 premiumPassAccessAmount;
    uint256 regularPassAccessAmount;

    uint256 premiumPassMaxAmount = 10;
    uint256 regularPassMaxAmount = 190;

    constructor() {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setRoleAdmin(TICKET_ROLE, DEFAULT_ADMIN_ROLE);
    }

    function addPremiumPass(address to) public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(premiumPassAcceptAddress[to] == false);
        require(premiumPassAccessAmount < premiumPassMaxAmount);
        premiumPassAcceptAddress[to] = true;
        premiumPassAccessAmount++;
    }

    function addRegularPass(address to, uint256 amount) public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(regularPassAcceptAddress[to] == 0);
        require((regularPassAccessAmount + amount) <= regularPassMaxAmount);
        regularPassAcceptAddress[to] = amount;
        regularPassAccessAmount + amount;
    }

    function changeRegularPassAmount(address to, uint256 amount) public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(regularPassAcceptAddress[to] != 0);
        require((regularPassAccessAmount - regularPassAcceptAddress[to] + amount) <= regularPassMaxAmount);
        regularPassAcceptAddress[to] = amount;
        regularPassAccessAmount = regularPassAccessAmount - regularPassAcceptAddress[to] + amount;
    }

    function revokePremiumPass(address to) public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(premiumPassAcceptAddress[to] == true);
        premiumPassAcceptAddress[to] == false;
        premiumPassAccessAmount--;
    }

    function revokeRegularPassAmount(address to) public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(regularPassAcceptAddress[to] != 0);
        regularPassAccessAmount -= regularPassAcceptAddress[to];
        regularPassAcceptAddress[to] == 0;
    }

    function usePremiumPass(address to) public onlyRole(TICKET_ROLE) {
        premiumPassUsed[to] = true;
    }

    function useRegularPass(address to) public onlyRole(TICKET_ROLE) {
        regularPassUsedAmount[to] ++;
    }

    function premiumPassAcceptCheck(address to) public view returns(bool) {
        if(premiumPassUsed[to] == true) {
            return false;
        } else if(premiumPassAcceptAddress[to] == true) {
            return true;
        } else {
            return false;
        }
    }

    function premiumPassUseCheck(address to) public view returns(bool) {
        return premiumPassUsed[to];
    }

    function regularPassAceeptCheck(address to) public view returns(uint256) {
        return regularPassAcceptAddress[to] - regularPassUsedAmount[to];
    }

}


// File contracts/ticket.sol


pragma solidity ^0.8.6;




contract ZoomanTicketPass is ERC721Royalty, AccessControl {
    using Strings for uint256;
    bytes32 CHANGE_ROLE = keccak256('CHANGE_ROLE');
    // 10枚がプレミアムパス、残り190枚が通常のパス

    constructor() ERC721("Zoo-manTicket", "ZMT") {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setRoleAdmin(CHANGE_ROLE, DEFAULT_ADMIN_ROLE);
        _setDefaultRoyalty(0xEbC1E578eFE8aDEdC3d397fbb7DC25dD902b1748, 1000);
         _safeMint(0x6279a308D1919b62646dd65c14754e706E8d59AF, regularPassCounter++);
         _safeMint(0xc061e8516e3a49c88ffd783DBF73f6327583AEDC, regularPassCounter++);
         for (uint8 i = 0; i < 5; i++){
             _safeMint(0xEbC1E578eFE8aDEdC3d397fbb7DC25dD902b1748, regularPassCounter++);
         }

    }

    string baseURI = "https://zoo-man.com/nftmetadata/pass/json/";

    uint16 premiumPassCounter;
    uint16 regularPassCounter = 10;

    uint16 premiumPassMaxAmount = 10;
    uint16 totalPassMaxAmount = 200;

    uint256 reservationMintFinishTime = 1675162800;
    uint256 usualMintFinishTime = 1675422000;

    uint256 private premiumSalePrice = 0.05 ether;
    uint256 private regularSalePrice = 0.025 ether;

    address listAddress = 0x2A16827C8650164Ee8c4dF840977A4d817b1D5b0;

    function setURI(string memory uri) public onlyRole(DEFAULT_ADMIN_ROLE) {
        baseURI = uri;
    }

    function setListAddress(address contractaddress) public onlyRole(DEFAULT_ADMIN_ROLE) {
        listAddress = contractaddress;
    }

    function changeFeeRoyalty(uint96 fee, address receiver) public onlyRole(DEFAULT_ADMIN_ROLE) {
        _setDefaultRoyalty(receiver, fee);
    }

    function changeFinishTime(uint256 resevation, uint256 usual) public onlyRole(DEFAULT_ADMIN_ROLE) {
        reservationMintFinishTime = resevation;
        usualMintFinishTime = usual;
    }

    function premiumPassMint() public payable {
        require(premiumPassCounter < premiumPassMaxAmount);
        require(block.timestamp < reservationMintFinishTime);
        require(msg.value >= premiumSalePrice);
        require(ticketaddresslist(listAddress).premiumPassAcceptCheck(msg.sender) == true);
        _safeMint(msg.sender, premiumPassCounter++);
        ticketaddresslist(listAddress).usePremiumPass(msg.sender);
    }

    function regularPassMint() public payable {
        require(regularPassCounter < totalPassMaxAmount);
        require(block.timestamp < reservationMintFinishTime);
        require(msg.value >= regularSalePrice);
        require(ticketaddresslist(listAddress).regularPassAceeptCheck(msg.sender) >= 1);
        _safeMint(msg.sender, regularPassCounter++);
        ticketaddresslist(listAddress).useRegularPass(msg.sender);
    }

    function usualMint() public payable {
        require(regularPassCounter < totalPassMaxAmount);
        require(block.timestamp > reservationMintFinishTime);
        require(block.timestamp < usualMintFinishTime);
        require(msg.value >= regularSalePrice);
        _safeMint(msg.sender, regularPassCounter++);
    }

    function premiumPassOwnerMint() public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(premiumPassCounter < premiumPassMaxAmount);
        require(block.timestamp > usualMintFinishTime);
        for(uint256 i = premiumPassCounter; i < premiumPassMaxAmount; i++) {
            _safeMint(msg.sender, premiumPassCounter++);
        }
    }

    function regularPassOwnerMint() public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(regularPassCounter < totalPassMaxAmount);
        require(block.timestamp > usualMintFinishTime);
        for(uint256 i = regularPassCounter; i < totalPassMaxAmount; i++) {
            _safeMint(msg.sender, regularPassCounter++);
        }
    }

    function withdraw() external onlyRole(DEFAULT_ADMIN_ROLE) {
        payable(msg.sender).transfer(address(this).balance);
    }

    function checkReservationMintTime() public view returns(bool) {
        if(block.timestamp < reservationMintFinishTime) {
            return true;
        } else {
            return false;
        }
    }

    function checkUsualMintTime() public view returns(bool) {
        if(block.timestamp >= reservationMintFinishTime && block.timestamp < usualMintFinishTime) {
            return true;
        } else {
            return false;
        }
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns(string memory)
    {
        return getURI(tokenId);
    }

    function getURI(uint256 tokenId)
        public
        view
        returns(string memory)
    {
        return string(abi.encodePacked(baseURI, tokenId.toString(), ".json"));
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721Royalty, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}


// File erc721a/contracts/[email protected]


// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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`,
     * 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 be 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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom}
     * whenever possible.
     *
     * 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 payable;

    /**
     * @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 payable;

    /**
     * @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);

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @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);

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}


// File erc721a/contracts/[email protected]


// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}


// File contracts/manga.sol


pragma solidity ^0.8.6;




contract ZoomanMangaNFT is ERC721A, Ownable {
    using Strings for uint256;

    address passAddress;
    uint16 endPassIdFinished;

    constructor(address _passAddress) ERC721A("Zoo-man Manga", "ZMMG") {
        passAddress = _passAddress;
        for(uint16 i = 0; i <= 9; i++) {
            _safeMint(ZoomanTicketPass(passAddress).ownerOf(i), 22);
        }
        for(uint16 i = 10; i <= 166; i++) {
            _safeMint(ZoomanTicketPass(passAddress).ownerOf(i), 20);
        }
        endPassIdFinished = 166;
    }

    string baseURI = "https://zoo-man.com/nftmetadata/manga/json/";

    function setURI(string memory uri) public onlyOwner {
        baseURI = uri;
    }


    function regularMint(uint16 endpassid) public onlyOwner {
        require(endPassIdFinished < endpassid);
        uint16 _startpassid = endPassIdFinished + 1;
        for(uint16 i = _startpassid; i <= endpassid; i++) {
            _safeMint(ZoomanTicketPass(passAddress).ownerOf(i), 20);
        }
        endPassIdFinished = endpassid;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns(string memory)
    {
        return getURI(tokenId);
    }

    function getURI(uint256 tokenId)
        public
        view
        returns(string memory)
    {
        if(tokenId < 220) {
            uint256 premiumpagenumber = (tokenId % 22);
            if(premiumpagenumber == 0) {
                return string(abi.encodePacked(baseURI, "front-cover.json"));
            } else if(premiumpagenumber == 21) {
                return string(abi.encodePacked(baseURI, "back-cover.json"));
            } else {
                return string(abi.encodePacked(baseURI, premiumpagenumber.toString(), ".json"));
            }
        } else {
            uint256 pagenumber = (tokenId % 20) + 1;
            return string(abi.encodePacked(baseURI, pagenumber.toString(), ".json"));
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_passAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","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":"uint256","name":"tokenId","type":"uint256"}],"name":"getURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"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":"uint16","name":"endpassid","type":"uint16"}],"name":"regularMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setURI","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526040518060600160405280602b815260200162003653602b9139600a9080519060200190620000359291906200090a565b503480156200004357600080fd5b506040516200367e3803806200367e8339818101604052810190620000699190620009e8565b6040518060400160405280600d81526020017f5a6f6f2d6d616e204d616e6761000000000000000000000000000000000000008152506040518060400160405280600481526020017f5a4d4d47000000000000000000000000000000000000000000000000000000008152508160029080519060200190620000ed9291906200090a565b508060039080519060200190620001069291906200090a565b50620001176200037d60201b60201c565b60008190555050506200013f620001336200038260201b60201c565b6200038a60201b60201c565b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060005b60098161ffff1611620002695762000253600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401620001f1919062000b14565b60206040518083038186803b1580156200020a57600080fd5b505afa1580156200021f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002459190620009e8565b60166200045060201b60201c565b8080620002609062000c45565b91505062000183565b506000600a90505b60a68161ffff1611620003575762000341600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401620002df919062000b14565b60206040518083038186803b158015620002f857600080fd5b505afa1580156200030d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003339190620009e8565b60146200045060201b60201c565b80806200034e9062000c45565b91505062000271565b5060a6600960146101000a81548161ffff021916908361ffff1602179055505062000d1d565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620004728282604051806020016040528060008152506200047660201b60201c565b5050565b6200048883836200052760201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b146200052257600080549050600083820390505b620004d160008683806001019450866200071060201b60201c565b62000508576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110620004b65781600054146200051f57600080fd5b50505b505050565b600080549050600082141562000569576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200057e60008483856200088260201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506200060d83620005ef60008660006200088860201b60201c565b6200060085620008b860201b60201c565b17620008c860201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114620006b057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905062000673565b506000821415620006ed576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506200070b6000848385620008f360201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026200073e620008f960201b60201c565b8786866040518563ffffffff1660e01b815260040162000762949392919062000ac0565b602060405180830381600087803b1580156200077d57600080fd5b505af1925050508015620007b157506040513d601f19601f82011682018060405250810190620007ae919062000a1a565b60015b6200082f573d8060008114620007e4576040519150601f19603f3d011682016040523d82523d6000602084013e620007e9565b606091505b5060008151141562000827576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e8620008a78686846200090160201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b828054620009189062000c0f565b90600052602060002090601f0160209004810192826200093c576000855562000988565b82601f106200095757805160ff191683800117855562000988565b8280016001018555821562000988579182015b82811115620009875782518255916020019190600101906200096a565b5b5090506200099791906200099b565b5090565b5b80821115620009b65760008160009055506001016200099c565b5090565b600081519050620009cb8162000ce9565b92915050565b600081519050620009e28162000d03565b92915050565b60006020828403121562000a015762000a0062000cd3565b5b600062000a1184828501620009ba565b91505092915050565b60006020828403121562000a335762000a3262000cd3565b5b600062000a4384828501620009d1565b91505092915050565b62000a578162000b4d565b82525050565b600062000a6a8262000b31565b62000a76818562000b3c565b935062000a8881856020860162000bd9565b62000a938162000cd8565b840191505092915050565b62000aa98162000bc5565b82525050565b62000aba8162000bbb565b82525050565b600060808201905062000ad7600083018762000a4c565b62000ae6602083018662000a4c565b62000af5604083018562000aaf565b818103606083015262000b09818462000a5d565b905095945050505050565b600060208201905062000b2b600083018462000a9e565b92915050565b600081519050919050565b600082825260208201905092915050565b600062000b5a8262000b9b565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600062000bd28262000b8d565b9050919050565b60005b8381101562000bf957808201518184015260208101905062000bdc565b8381111562000c09576000848401525b50505050565b6000600282049050600182168062000c2857607f821691505b6020821081141562000c3f5762000c3e62000ca4565b5b50919050565b600062000c528262000b8d565b915061ffff82141562000c6a5762000c6962000c75565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b62000cf48162000b4d565b811462000d0057600080fd5b50565b62000d0e8162000b61565b811462000d1a57600080fd5b50565b6129268062000d2d6000396000f3fe60806040526004361061011f5760003560e01c806370a08231116100a0578063b88d4fde11610064578063b88d4fde146103be578063bc514729146103da578063c87b56dd14610403578063e985e9c514610440578063f2fde38b1461047d5761011f565b806370a08231146102eb578063715018a6146103285780638da5cb5b1461033f57806395d89b411461036a578063a22cb465146103955761011f565b806318160ddd116100e757806318160ddd1461020e5780631aa347dc1461023957806323b872dd1461027657806342842e0e146102925780636352211e146102ae5761011f565b806301ffc9a71461012457806302fe53051461016157806306fdde031461018a578063081812fc146101b5578063095ea7b3146101f2575b600080fd5b34801561013057600080fd5b5061014b60048036038101906101469190611f10565b6104a6565b60405161015891906122f4565b60405180910390f35b34801561016d57600080fd5b5061018860048036038101906101839190611f6a565b610538565b005b34801561019657600080fd5b5061019f61055a565b6040516101ac919061230f565b60405180910390f35b3480156101c157600080fd5b506101dc60048036038101906101d79190611fe0565b6105ec565b6040516101e9919061228d565b60405180910390f35b61020c60048036038101906102079190611ed0565b61066b565b005b34801561021a57600080fd5b506102236107af565b604051610230919061238c565b60405180910390f35b34801561024557600080fd5b50610260600480360381019061025b9190611fe0565b6107c6565b60405161026d919061230f565b60405180910390f35b610290600480360381019061028b9190611dba565b6108ca565b005b6102ac60048036038101906102a79190611dba565b610bef565b005b3480156102ba57600080fd5b506102d560048036038101906102d09190611fe0565b610c0f565b6040516102e2919061228d565b60405180910390f35b3480156102f757600080fd5b50610312600480360381019061030d9190611d20565b610c21565b60405161031f919061238c565b60405180910390f35b34801561033457600080fd5b5061033d610cda565b005b34801561034b57600080fd5b50610354610cee565b604051610361919061228d565b60405180910390f35b34801561037657600080fd5b5061037f610d18565b60405161038c919061230f565b60405180910390f35b3480156103a157600080fd5b506103bc60048036038101906103b79190611e90565b610daa565b005b6103d860048036038101906103d39190611e0d565b610eb5565b005b3480156103e657600080fd5b5061040160048036038101906103fc9190611fb3565b610f28565b005b34801561040f57600080fd5b5061042a60048036038101906104259190611fe0565b611074565b604051610437919061230f565b60405180910390f35b34801561044c57600080fd5b5061046760048036038101906104629190611d7a565b611086565b60405161047491906122f4565b60405180910390f35b34801561048957600080fd5b506104a4600480360381019061049f9190611d20565b61111a565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061050157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105315750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61054061119e565b80600a9080519060200190610556929190611b0a565b5050565b606060028054610569906125ea565b80601f0160208091040260200160405190810160405280929190818152602001828054610595906125ea565b80156105e25780601f106105b7576101008083540402835291602001916105e2565b820191906000526020600020905b8154815290600101906020018083116105c557829003601f168201915b5050505050905090565b60006105f78261121c565b61062d576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061067682610c0f565b90508073ffffffffffffffffffffffffffffffffffffffff1661069761127b565b73ffffffffffffffffffffffffffffffffffffffff16146106fa576106c3816106be61127b565b611086565b6106f9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006107b9611283565b6001546000540303905090565b606060dc8210156108795760006016836107e09190612678565b9050600081141561081457600a6040516020016107fd919061226b565b6040516020818303038152906040529150506108c5565b601581141561084657600a60405160200161082f9190612249565b6040516020818303038152906040529150506108c5565b600a61085182611288565b60405160200161086292919061221a565b6040516020818303038152906040529150506108c5565b6000600160148461088a9190612678565b61089491906124be565b9050600a6108a182611288565b6040516020016108b292919061221a565b6040516020818303038152906040529150505b919050565b60006108d582611360565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461093c576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806109488461142e565b9150915061095e818761095961127b565b611455565b6109aa576109738661096e61127b565b611086565b6109a9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610a11576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a1e8686866001611499565b8015610a2957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610af785610ad388888761149f565b7c0200000000000000000000000000000000000000000000000000000000176114c7565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610b7f576000600185019050600060046000838152602001908152602001600020541415610b7d576000548114610b7c578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610be786868660016114f2565b505050505050565b610c0a83838360405180602001604052806000815250610eb5565b505050565b6000610c1a82611360565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c89576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610ce261119e565b610cec60006114f8565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054610d27906125ea565b80601f0160208091040260200160405190810160405280929190818152602001828054610d53906125ea565b8015610da05780601f10610d7557610100808354040283529160200191610da0565b820191906000526020600020905b815481529060010190602001808311610d8357829003601f168201915b5050505050905090565b8060076000610db761127b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16610e6461127b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610ea991906122f4565b60405180910390a35050565b610ec08484846108ca565b60008373ffffffffffffffffffffffffffffffffffffffff163b14610f2257610eeb848484846115be565b610f21576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b610f3061119e565b8061ffff16600960149054906101000a900461ffff1661ffff1610610f5457600080fd5b60006001600960149054906101000a900461ffff16610f739190612486565b905060008190505b8261ffff168161ffff16116110525761103f600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610fe89190612371565b60206040518083038186803b15801561100057600080fd5b505afa158015611014573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110389190611d4d565b601461171e565b808061104a9061264d565b915050610f7b565b5081600960146101000a81548161ffff021916908361ffff1602179055505050565b606061107f826107c6565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61112261119e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611192576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118990612331565b60405180910390fd5b61119b816114f8565b50565b6111a661173c565b73ffffffffffffffffffffffffffffffffffffffff166111c4610cee565b73ffffffffffffffffffffffffffffffffffffffff161461121a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121190612351565b60405180910390fd5b565b600081611227611283565b11158015611236575060005482105b8015611274575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60606000600161129784611744565b01905060008167ffffffffffffffff8111156112b6576112b5612736565b5b6040519080825280601f01601f1916602001820160405280156112e85781602001600182028036833780820191505090505b509050600082602001820190505b600115611355578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161133f5761133e6126d8565b5b049450600085141561135057611355565b6112f6565b819350505050919050565b6000808290508061136f611283565b116113f7576000548110156113f65760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156113f4575b60008114156113ea5760046000836001900393508381526020019081526020016000205490506113bf565b8092505050611429565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86114b6868684611897565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026115e461127b565b8786866040518563ffffffff1660e01b815260040161160694939291906122a8565b602060405180830381600087803b15801561162057600080fd5b505af192505050801561165157506040513d601f19601f8201168201806040525081019061164e9190611f3d565b60015b6116cb573d8060008114611681576040519150601f19603f3d011682016040523d82523d6000602084013e611686565b606091505b506000815114156116c3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6117388282604051806020016040528060008152506118a0565b5050565b600033905090565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106117a2577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611798576117976126d8565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106117df576d04ee2d6d415b85acef810000000083816117d5576117d46126d8565b5b0492506020810190505b662386f26fc10000831061180e57662386f26fc100008381611804576118036126d8565b5b0492506010810190505b6305f5e1008310611837576305f5e100838161182d5761182c6126d8565b5b0492506008810190505b612710831061185c576127108381611852576118516126d8565b5b0492506004810190505b6064831061187f5760648381611875576118746126d8565b5b0492506002810190505b600a831061188e576001810190505b80915050919050565b60009392505050565b6118aa838361193d565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461193857600080549050600083820390505b6118ea60008683806001019450866115be565b611920576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106118d757816000541461193557600080fd5b50505b505050565b600080549050600082141561197e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61198b6000848385611499565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611a02836119f3600086600061149f565b6119fc85611afa565b176114c7565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611aa357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050611a68565b506000821415611adf576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050611af560008483856114f2565b505050565b60006001821460e11b9050919050565b828054611b16906125ea565b90600052602060002090601f016020900481019282611b385760008555611b7f565b82601f10611b5157805160ff1916838001178555611b7f565b82800160010185558215611b7f579182015b82811115611b7e578251825591602001919060010190611b63565b5b509050611b8c9190611b90565b5090565b5b80821115611ba9576000816000905550600101611b91565b5090565b6000611bc0611bbb846123cc565b6123a7565b905082815260208101848484011115611bdc57611bdb61276a565b5b611be78482856125a8565b509392505050565b6000611c02611bfd846123fd565b6123a7565b905082815260208101848484011115611c1e57611c1d61276a565b5b611c298482856125a8565b509392505050565b600081359050611c408161287d565b92915050565b600081519050611c558161287d565b92915050565b600081359050611c6a81612894565b92915050565b600081359050611c7f816128ab565b92915050565b600081519050611c94816128ab565b92915050565b600082601f830112611caf57611cae612765565b5b8135611cbf848260208601611bad565b91505092915050565b600082601f830112611cdd57611cdc612765565b5b8135611ced848260208601611bef565b91505092915050565b600081359050611d05816128c2565b92915050565b600081359050611d1a816128d9565b92915050565b600060208284031215611d3657611d35612774565b5b6000611d4484828501611c31565b91505092915050565b600060208284031215611d6357611d62612774565b5b6000611d7184828501611c46565b91505092915050565b60008060408385031215611d9157611d90612774565b5b6000611d9f85828601611c31565b9250506020611db085828601611c31565b9150509250929050565b600080600060608486031215611dd357611dd2612774565b5b6000611de186828701611c31565b9350506020611df286828701611c31565b9250506040611e0386828701611d0b565b9150509250925092565b60008060008060808587031215611e2757611e26612774565b5b6000611e3587828801611c31565b9450506020611e4687828801611c31565b9350506040611e5787828801611d0b565b925050606085013567ffffffffffffffff811115611e7857611e7761276f565b5b611e8487828801611c9a565b91505092959194509250565b60008060408385031215611ea757611ea6612774565b5b6000611eb585828601611c31565b9250506020611ec685828601611c5b565b9150509250929050565b60008060408385031215611ee757611ee6612774565b5b6000611ef585828601611c31565b9250506020611f0685828601611d0b565b9150509250929050565b600060208284031215611f2657611f25612774565b5b6000611f3484828501611c70565b91505092915050565b600060208284031215611f5357611f52612774565b5b6000611f6184828501611c85565b91505092915050565b600060208284031215611f8057611f7f612774565b5b600082013567ffffffffffffffff811115611f9e57611f9d61276f565b5b611faa84828501611cc8565b91505092915050565b600060208284031215611fc957611fc8612774565b5b6000611fd784828501611cf6565b91505092915050565b600060208284031215611ff657611ff5612774565b5b600061200484828501611d0b565b91505092915050565b61201681612514565b82525050565b61202581612526565b82525050565b600061203682612443565b6120408185612459565b93506120508185602086016125b7565b61205981612779565b840191505092915050565b600061206f8261244e565b612079818561246a565b93506120898185602086016125b7565b61209281612779565b840191505092915050565b60006120a88261244e565b6120b2818561247b565b93506120c28185602086016125b7565b80840191505092915050565b600081546120db816125ea565b6120e5818661247b565b94506001821660008114612100576001811461211157612144565b60ff19831686528186019350612144565b61211a8561242e565b60005b8381101561213c5781548189015260018201915060208101905061211d565b838801955050505b50505092915050565b600061215a600f8361247b565b91506121658261278a565b600f82019050919050565b600061217d60268361246a565b9150612188826127b3565b604082019050919050565b60006121a060108361247b565b91506121ab82612802565b601082019050919050565b60006121c360058361247b565b91506121ce8261282b565b600582019050919050565b60006121e660208361246a565b91506121f182612854565b602082019050919050565b61220581612596565b82525050565b6122148161258c565b82525050565b600061222682856120ce565b9150612232828461209d565b915061223d826121b6565b91508190509392505050565b600061225582846120ce565b91506122608261214d565b915081905092915050565b600061227782846120ce565b915061228282612193565b915081905092915050565b60006020820190506122a2600083018461200d565b92915050565b60006080820190506122bd600083018761200d565b6122ca602083018661200d565b6122d7604083018561220b565b81810360608301526122e9818461202b565b905095945050505050565b6000602082019050612309600083018461201c565b92915050565b600060208201905081810360008301526123298184612064565b905092915050565b6000602082019050818103600083015261234a81612170565b9050919050565b6000602082019050818103600083015261236a816121d9565b9050919050565b600060208201905061238660008301846121fc565b92915050565b60006020820190506123a1600083018461220b565b92915050565b60006123b16123c2565b90506123bd828261261c565b919050565b6000604051905090565b600067ffffffffffffffff8211156123e7576123e6612736565b5b6123f082612779565b9050602081019050919050565b600067ffffffffffffffff82111561241857612417612736565b5b61242182612779565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006124918261255e565b915061249c8361255e565b92508261ffff038211156124b3576124b26126a9565b5b828201905092915050565b60006124c98261258c565b91506124d48361258c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612509576125086126a9565b5b828201905092915050565b600061251f8261256c565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006125a18261255e565b9050919050565b82818337600083830152505050565b60005b838110156125d55780820151818401526020810190506125ba565b838111156125e4576000848401525b50505050565b6000600282049050600182168061260257607f821691505b6020821081141561261657612615612707565b5b50919050565b61262582612779565b810181811067ffffffffffffffff8211171561264457612643612736565b5b80604052505050565b60006126588261255e565b915061ffff82141561266d5761266c6126a9565b5b600182019050919050565b60006126838261258c565b915061268e8361258c565b92508261269e5761269d6126d8565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f6261636b2d636f7665722e6a736f6e0000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f66726f6e742d636f7665722e6a736f6e00000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b61288681612514565b811461289157600080fd5b50565b61289d81612526565b81146128a857600080fd5b50565b6128b481612532565b81146128bf57600080fd5b50565b6128cb8161255e565b81146128d657600080fd5b50565b6128e28161258c565b81146128ed57600080fd5b5056fea26469706673582212203be7e91745342d654ce4a81cdd12d1616fe4a1c14ed43dbdb35cacb23f03a76f64736f6c6343000807003368747470733a2f2f7a6f6f2d6d616e2e636f6d2f6e66746d657461646174612f6d616e67612f6a736f6e2f00000000000000000000000030e80b0f5292438b475c489158a754838973d37a

Deployed Bytecode

0x60806040526004361061011f5760003560e01c806370a08231116100a0578063b88d4fde11610064578063b88d4fde146103be578063bc514729146103da578063c87b56dd14610403578063e985e9c514610440578063f2fde38b1461047d5761011f565b806370a08231146102eb578063715018a6146103285780638da5cb5b1461033f57806395d89b411461036a578063a22cb465146103955761011f565b806318160ddd116100e757806318160ddd1461020e5780631aa347dc1461023957806323b872dd1461027657806342842e0e146102925780636352211e146102ae5761011f565b806301ffc9a71461012457806302fe53051461016157806306fdde031461018a578063081812fc146101b5578063095ea7b3146101f2575b600080fd5b34801561013057600080fd5b5061014b60048036038101906101469190611f10565b6104a6565b60405161015891906122f4565b60405180910390f35b34801561016d57600080fd5b5061018860048036038101906101839190611f6a565b610538565b005b34801561019657600080fd5b5061019f61055a565b6040516101ac919061230f565b60405180910390f35b3480156101c157600080fd5b506101dc60048036038101906101d79190611fe0565b6105ec565b6040516101e9919061228d565b60405180910390f35b61020c60048036038101906102079190611ed0565b61066b565b005b34801561021a57600080fd5b506102236107af565b604051610230919061238c565b60405180910390f35b34801561024557600080fd5b50610260600480360381019061025b9190611fe0565b6107c6565b60405161026d919061230f565b60405180910390f35b610290600480360381019061028b9190611dba565b6108ca565b005b6102ac60048036038101906102a79190611dba565b610bef565b005b3480156102ba57600080fd5b506102d560048036038101906102d09190611fe0565b610c0f565b6040516102e2919061228d565b60405180910390f35b3480156102f757600080fd5b50610312600480360381019061030d9190611d20565b610c21565b60405161031f919061238c565b60405180910390f35b34801561033457600080fd5b5061033d610cda565b005b34801561034b57600080fd5b50610354610cee565b604051610361919061228d565b60405180910390f35b34801561037657600080fd5b5061037f610d18565b60405161038c919061230f565b60405180910390f35b3480156103a157600080fd5b506103bc60048036038101906103b79190611e90565b610daa565b005b6103d860048036038101906103d39190611e0d565b610eb5565b005b3480156103e657600080fd5b5061040160048036038101906103fc9190611fb3565b610f28565b005b34801561040f57600080fd5b5061042a60048036038101906104259190611fe0565b611074565b604051610437919061230f565b60405180910390f35b34801561044c57600080fd5b5061046760048036038101906104629190611d7a565b611086565b60405161047491906122f4565b60405180910390f35b34801561048957600080fd5b506104a4600480360381019061049f9190611d20565b61111a565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061050157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105315750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61054061119e565b80600a9080519060200190610556929190611b0a565b5050565b606060028054610569906125ea565b80601f0160208091040260200160405190810160405280929190818152602001828054610595906125ea565b80156105e25780601f106105b7576101008083540402835291602001916105e2565b820191906000526020600020905b8154815290600101906020018083116105c557829003601f168201915b5050505050905090565b60006105f78261121c565b61062d576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061067682610c0f565b90508073ffffffffffffffffffffffffffffffffffffffff1661069761127b565b73ffffffffffffffffffffffffffffffffffffffff16146106fa576106c3816106be61127b565b611086565b6106f9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006107b9611283565b6001546000540303905090565b606060dc8210156108795760006016836107e09190612678565b9050600081141561081457600a6040516020016107fd919061226b565b6040516020818303038152906040529150506108c5565b601581141561084657600a60405160200161082f9190612249565b6040516020818303038152906040529150506108c5565b600a61085182611288565b60405160200161086292919061221a565b6040516020818303038152906040529150506108c5565b6000600160148461088a9190612678565b61089491906124be565b9050600a6108a182611288565b6040516020016108b292919061221a565b6040516020818303038152906040529150505b919050565b60006108d582611360565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461093c576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806109488461142e565b9150915061095e818761095961127b565b611455565b6109aa576109738661096e61127b565b611086565b6109a9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610a11576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a1e8686866001611499565b8015610a2957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610af785610ad388888761149f565b7c0200000000000000000000000000000000000000000000000000000000176114c7565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610b7f576000600185019050600060046000838152602001908152602001600020541415610b7d576000548114610b7c578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610be786868660016114f2565b505050505050565b610c0a83838360405180602001604052806000815250610eb5565b505050565b6000610c1a82611360565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c89576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610ce261119e565b610cec60006114f8565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054610d27906125ea565b80601f0160208091040260200160405190810160405280929190818152602001828054610d53906125ea565b8015610da05780601f10610d7557610100808354040283529160200191610da0565b820191906000526020600020905b815481529060010190602001808311610d8357829003601f168201915b5050505050905090565b8060076000610db761127b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16610e6461127b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610ea991906122f4565b60405180910390a35050565b610ec08484846108ca565b60008373ffffffffffffffffffffffffffffffffffffffff163b14610f2257610eeb848484846115be565b610f21576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b610f3061119e565b8061ffff16600960149054906101000a900461ffff1661ffff1610610f5457600080fd5b60006001600960149054906101000a900461ffff16610f739190612486565b905060008190505b8261ffff168161ffff16116110525761103f600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610fe89190612371565b60206040518083038186803b15801561100057600080fd5b505afa158015611014573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110389190611d4d565b601461171e565b808061104a9061264d565b915050610f7b565b5081600960146101000a81548161ffff021916908361ffff1602179055505050565b606061107f826107c6565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61112261119e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611192576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118990612331565b60405180910390fd5b61119b816114f8565b50565b6111a661173c565b73ffffffffffffffffffffffffffffffffffffffff166111c4610cee565b73ffffffffffffffffffffffffffffffffffffffff161461121a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121190612351565b60405180910390fd5b565b600081611227611283565b11158015611236575060005482105b8015611274575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60606000600161129784611744565b01905060008167ffffffffffffffff8111156112b6576112b5612736565b5b6040519080825280601f01601f1916602001820160405280156112e85781602001600182028036833780820191505090505b509050600082602001820190505b600115611355578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161133f5761133e6126d8565b5b049450600085141561135057611355565b6112f6565b819350505050919050565b6000808290508061136f611283565b116113f7576000548110156113f65760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156113f4575b60008114156113ea5760046000836001900393508381526020019081526020016000205490506113bf565b8092505050611429565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86114b6868684611897565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026115e461127b565b8786866040518563ffffffff1660e01b815260040161160694939291906122a8565b602060405180830381600087803b15801561162057600080fd5b505af192505050801561165157506040513d601f19601f8201168201806040525081019061164e9190611f3d565b60015b6116cb573d8060008114611681576040519150601f19603f3d011682016040523d82523d6000602084013e611686565b606091505b506000815114156116c3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6117388282604051806020016040528060008152506118a0565b5050565b600033905090565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106117a2577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611798576117976126d8565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106117df576d04ee2d6d415b85acef810000000083816117d5576117d46126d8565b5b0492506020810190505b662386f26fc10000831061180e57662386f26fc100008381611804576118036126d8565b5b0492506010810190505b6305f5e1008310611837576305f5e100838161182d5761182c6126d8565b5b0492506008810190505b612710831061185c576127108381611852576118516126d8565b5b0492506004810190505b6064831061187f5760648381611875576118746126d8565b5b0492506002810190505b600a831061188e576001810190505b80915050919050565b60009392505050565b6118aa838361193d565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461193857600080549050600083820390505b6118ea60008683806001019450866115be565b611920576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106118d757816000541461193557600080fd5b50505b505050565b600080549050600082141561197e576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61198b6000848385611499565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550611a02836119f3600086600061149f565b6119fc85611afa565b176114c7565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114611aa357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050611a68565b506000821415611adf576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050611af560008483856114f2565b505050565b60006001821460e11b9050919050565b828054611b16906125ea565b90600052602060002090601f016020900481019282611b385760008555611b7f565b82601f10611b5157805160ff1916838001178555611b7f565b82800160010185558215611b7f579182015b82811115611b7e578251825591602001919060010190611b63565b5b509050611b8c9190611b90565b5090565b5b80821115611ba9576000816000905550600101611b91565b5090565b6000611bc0611bbb846123cc565b6123a7565b905082815260208101848484011115611bdc57611bdb61276a565b5b611be78482856125a8565b509392505050565b6000611c02611bfd846123fd565b6123a7565b905082815260208101848484011115611c1e57611c1d61276a565b5b611c298482856125a8565b509392505050565b600081359050611c408161287d565b92915050565b600081519050611c558161287d565b92915050565b600081359050611c6a81612894565b92915050565b600081359050611c7f816128ab565b92915050565b600081519050611c94816128ab565b92915050565b600082601f830112611caf57611cae612765565b5b8135611cbf848260208601611bad565b91505092915050565b600082601f830112611cdd57611cdc612765565b5b8135611ced848260208601611bef565b91505092915050565b600081359050611d05816128c2565b92915050565b600081359050611d1a816128d9565b92915050565b600060208284031215611d3657611d35612774565b5b6000611d4484828501611c31565b91505092915050565b600060208284031215611d6357611d62612774565b5b6000611d7184828501611c46565b91505092915050565b60008060408385031215611d9157611d90612774565b5b6000611d9f85828601611c31565b9250506020611db085828601611c31565b9150509250929050565b600080600060608486031215611dd357611dd2612774565b5b6000611de186828701611c31565b9350506020611df286828701611c31565b9250506040611e0386828701611d0b565b9150509250925092565b60008060008060808587031215611e2757611e26612774565b5b6000611e3587828801611c31565b9450506020611e4687828801611c31565b9350506040611e5787828801611d0b565b925050606085013567ffffffffffffffff811115611e7857611e7761276f565b5b611e8487828801611c9a565b91505092959194509250565b60008060408385031215611ea757611ea6612774565b5b6000611eb585828601611c31565b9250506020611ec685828601611c5b565b9150509250929050565b60008060408385031215611ee757611ee6612774565b5b6000611ef585828601611c31565b9250506020611f0685828601611d0b565b9150509250929050565b600060208284031215611f2657611f25612774565b5b6000611f3484828501611c70565b91505092915050565b600060208284031215611f5357611f52612774565b5b6000611f6184828501611c85565b91505092915050565b600060208284031215611f8057611f7f612774565b5b600082013567ffffffffffffffff811115611f9e57611f9d61276f565b5b611faa84828501611cc8565b91505092915050565b600060208284031215611fc957611fc8612774565b5b6000611fd784828501611cf6565b91505092915050565b600060208284031215611ff657611ff5612774565b5b600061200484828501611d0b565b91505092915050565b61201681612514565b82525050565b61202581612526565b82525050565b600061203682612443565b6120408185612459565b93506120508185602086016125b7565b61205981612779565b840191505092915050565b600061206f8261244e565b612079818561246a565b93506120898185602086016125b7565b61209281612779565b840191505092915050565b60006120a88261244e565b6120b2818561247b565b93506120c28185602086016125b7565b80840191505092915050565b600081546120db816125ea565b6120e5818661247b565b94506001821660008114612100576001811461211157612144565b60ff19831686528186019350612144565b61211a8561242e565b60005b8381101561213c5781548189015260018201915060208101905061211d565b838801955050505b50505092915050565b600061215a600f8361247b565b91506121658261278a565b600f82019050919050565b600061217d60268361246a565b9150612188826127b3565b604082019050919050565b60006121a060108361247b565b91506121ab82612802565b601082019050919050565b60006121c360058361247b565b91506121ce8261282b565b600582019050919050565b60006121e660208361246a565b91506121f182612854565b602082019050919050565b61220581612596565b82525050565b6122148161258c565b82525050565b600061222682856120ce565b9150612232828461209d565b915061223d826121b6565b91508190509392505050565b600061225582846120ce565b91506122608261214d565b915081905092915050565b600061227782846120ce565b915061228282612193565b915081905092915050565b60006020820190506122a2600083018461200d565b92915050565b60006080820190506122bd600083018761200d565b6122ca602083018661200d565b6122d7604083018561220b565b81810360608301526122e9818461202b565b905095945050505050565b6000602082019050612309600083018461201c565b92915050565b600060208201905081810360008301526123298184612064565b905092915050565b6000602082019050818103600083015261234a81612170565b9050919050565b6000602082019050818103600083015261236a816121d9565b9050919050565b600060208201905061238660008301846121fc565b92915050565b60006020820190506123a1600083018461220b565b92915050565b60006123b16123c2565b90506123bd828261261c565b919050565b6000604051905090565b600067ffffffffffffffff8211156123e7576123e6612736565b5b6123f082612779565b9050602081019050919050565b600067ffffffffffffffff82111561241857612417612736565b5b61242182612779565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006124918261255e565b915061249c8361255e565b92508261ffff038211156124b3576124b26126a9565b5b828201905092915050565b60006124c98261258c565b91506124d48361258c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612509576125086126a9565b5b828201905092915050565b600061251f8261256c565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006125a18261255e565b9050919050565b82818337600083830152505050565b60005b838110156125d55780820151818401526020810190506125ba565b838111156125e4576000848401525b50505050565b6000600282049050600182168061260257607f821691505b6020821081141561261657612615612707565b5b50919050565b61262582612779565b810181811067ffffffffffffffff8211171561264457612643612736565b5b80604052505050565b60006126588261255e565b915061ffff82141561266d5761266c6126a9565b5b600182019050919050565b60006126838261258c565b915061268e8361258c565b92508261269e5761269d6126d8565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f6261636b2d636f7665722e6a736f6e0000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f66726f6e742d636f7665722e6a736f6e00000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b61288681612514565b811461289157600080fd5b50565b61289d81612526565b81146128a857600080fd5b50565b6128b481612532565b81146128bf57600080fd5b50565b6128cb8161255e565b81146128d657600080fd5b50565b6128e28161258c565b81146128ed57600080fd5b5056fea26469706673582212203be7e91745342d654ce4a81cdd12d1616fe4a1c14ed43dbdb35cacb23f03a76f64736f6c63430008070033

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

00000000000000000000000030e80b0f5292438b475c489158a754838973d37a

-----Decoded View---------------
Arg [0] : _passAddress (address): 0x30e80B0F5292438b475c489158A754838973D37a

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000030e80b0f5292438b475c489158a754838973d37a


Deployed Bytecode Sourcemap

132109:1989:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99010:639;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;132727:84;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;99912:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;106403:218;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;105836:408;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;95663:323;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;133347:748;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;110042:2825;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;112963:193;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;101305:152;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;96847:233;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;31360:103;;;;;;;;;;;;;:::i;:::-;;30712:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;100088:104;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;106961:234;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;113754:407;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;132821:349;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;133178:161;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;107352:164;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;31618:201;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;99010:639;99095:4;99434:10;99419:25;;:11;:25;;;;:102;;;;99511:10;99496:25;;:11;:25;;;;99419:102;:179;;;;99588:10;99573:25;;:11;:25;;;;99419:179;99399:199;;99010:639;;;:::o;132727:84::-;30598:13;:11;:13::i;:::-;132800:3:::1;132790:7;:13;;;;;;;;;;;;:::i;:::-;;132727:84:::0;:::o;99912:100::-;99966:13;99999:5;99992:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99912:100;:::o;106403:218::-;106479:7;106504:16;106512:7;106504;:16::i;:::-;106499:64;;106529:34;;;;;;;;;;;;;;106499:64;106583:15;:24;106599:7;106583:24;;;;;;;;;;;:30;;;;;;;;;;;;106576:37;;106403:218;;;:::o;105836:408::-;105925:13;105941:16;105949:7;105941;:16::i;:::-;105925:32;;105997:5;105974:28;;:19;:17;:19::i;:::-;:28;;;105970:175;;106022:44;106039:5;106046:19;:17;:19::i;:::-;106022:16;:44::i;:::-;106017:128;;106094:35;;;;;;;;;;;;;;106017:128;105970:175;106190:2;106157:15;:24;106173:7;106157:24;;;;;;;;;;;:30;;;:35;;;;;;;;;;;;;;;;;;106228:7;106224:2;106208:28;;106217:5;106208:28;;;;;;;;;;;;105914:330;105836:408;;:::o;95663:323::-;95724:7;95952:15;:13;:15::i;:::-;95937:12;;95921:13;;:28;:46;95914:53;;95663:323;:::o;133347:748::-;133427:13;133471:3;133461:7;:13;133458:630;;;133491:25;133530:2;133520:7;:12;;;;:::i;:::-;133491:42;;133572:1;133551:17;:22;133548:370;;;133625:7;133608:45;;;;;;;;:::i;:::-;;;;;;;;;;;;;133594:60;;;;;133548:370;133700:2;133679:17;:23;133676:242;;;133754:7;133737:44;;;;;;;;:::i;:::-;;;;;;;;;;;;;133723:59;;;;;133676:242;133854:7;133863:28;:17;:26;:28::i;:::-;133837:64;;;;;;;;;:::i;:::-;;;;;;;;;;;;;133823:79;;;;;133458:630;133950:18;133988:1;133982:2;133972:7;:12;;;;:::i;:::-;133971:18;;;;:::i;:::-;133950:39;;134035:7;134044:21;:10;:19;:21::i;:::-;134018:57;;;;;;;;;:::i;:::-;;;;;;;;;;;;;134004:72;;;133347:748;;;;:::o;110042:2825::-;110184:27;110214;110233:7;110214:18;:27::i;:::-;110184:57;;110299:4;110258:45;;110274:19;110258:45;;;110254:86;;110312:28;;;;;;;;;;;;;;110254:86;110354:27;110383:23;110410:35;110437:7;110410:26;:35::i;:::-;110353:92;;;;110545:68;110570:15;110587:4;110593:19;:17;:19::i;:::-;110545:24;:68::i;:::-;110540:180;;110633:43;110650:4;110656:19;:17;:19::i;:::-;110633:16;:43::i;:::-;110628:92;;110685:35;;;;;;;;;;;;;;110628:92;110540:180;110751:1;110737:16;;:2;:16;;;110733:52;;;110762:23;;;;;;;;;;;;;;110733:52;110798:43;110820:4;110826:2;110830:7;110839:1;110798:21;:43::i;:::-;110934:15;110931:160;;;111074:1;111053:19;111046:30;110931:160;111471:18;:24;111490:4;111471:24;;;;;;;;;;;;;;;;111469:26;;;;;;;;;;;;111540:18;:22;111559:2;111540:22;;;;;;;;;;;;;;;;111538:24;;;;;;;;;;;111862:146;111899:2;111948:45;111963:4;111969:2;111973:19;111948:14;:45::i;:::-;92062:8;111920:73;111862:18;:146::i;:::-;111833:17;:26;111851:7;111833:26;;;;;;;;;;;:175;;;;112179:1;92062:8;112128:19;:47;:52;112124:627;;;112201:19;112233:1;112223:7;:11;112201:33;;112390:1;112356:17;:30;112374:11;112356:30;;;;;;;;;;;;:35;112352:384;;;112494:13;;112479:11;:28;112475:242;;112674:19;112641:17;:30;112659:11;112641:30;;;;;;;;;;;:52;;;;112475:242;112352:384;112182:569;112124:627;112798:7;112794:2;112779:27;;112788:4;112779:27;;;;;;;;;;;;112817:42;112838:4;112844:2;112848:7;112857:1;112817:20;:42::i;:::-;110173:2694;;;110042:2825;;;:::o;112963:193::-;113109:39;113126:4;113132:2;113136:7;113109:39;;;;;;;;;;;;:16;:39::i;:::-;112963:193;;;:::o;101305:152::-;101377:7;101420:27;101439:7;101420:18;:27::i;:::-;101397:52;;101305:152;;;:::o;96847:233::-;96919:7;96960:1;96943:19;;:5;:19;;;96939:60;;;96971:28;;;;;;;;;;;;;;96939:60;91006:13;97017:18;:25;97036:5;97017:25;;;;;;;;;;;;;;;;:55;97010:62;;96847:233;;;:::o;31360:103::-;30598:13;:11;:13::i;:::-;31425:30:::1;31452:1;31425:18;:30::i;:::-;31360:103::o:0;30712:87::-;30758:7;30785:6;;;;;;;;;;;30778:13;;30712:87;:::o;100088:104::-;100144:13;100177:7;100170:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100088:104;:::o;106961:234::-;107108:8;107056:18;:39;107075:19;:17;:19::i;:::-;107056:39;;;;;;;;;;;;;;;:49;107096:8;107056:49;;;;;;;;;;;;;;;;:60;;;;;;;;;;;;;;;;;;107168:8;107132:55;;107147:19;:17;:19::i;:::-;107132:55;;;107178:8;107132:55;;;;;;:::i;:::-;;;;;;;;106961:234;;:::o;113754:407::-;113929:31;113942:4;113948:2;113952:7;113929:12;:31::i;:::-;113993:1;113975:2;:14;;;:19;113971:183;;114014:56;114045:4;114051:2;114055:7;114064:5;114014:30;:56::i;:::-;114009:145;;114098:40;;;;;;;;;;;;;;114009:145;113971:183;113754:407;;;;:::o;132821:349::-;30598:13;:11;:13::i;:::-;132916:9:::1;132896:29;;:17;;;;;;;;;;;:29;;;132888:38;;;::::0;::::1;;132937:19;132979:1;132959:17;;;;;;;;;;;:21;;;;:::i;:::-;132937:43;;132995:8;133006:12;132995:23;;132991:132;133025:9;133020:14;;:1;:14;;;132991:132;;133056:55;133083:11;;;;;;;;;;;133066:37;;;133104:1;133066:40;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;133108:2;133056:9;:55::i;:::-;133036:3;;;;;:::i;:::-;;;;132991:132;;;;133153:9;133133:17;;:29;;;;;;;;;;;;;;;;;;132877:293;132821:349:::0;:::o;133178:161::-;133278:13;133316:15;133323:7;133316:6;:15::i;:::-;133309:22;;133178:161;;;:::o;107352:164::-;107449:4;107473:18;:25;107492:5;107473:25;;;;;;;;;;;;;;;:35;107499:8;107473:35;;;;;;;;;;;;;;;;;;;;;;;;;107466:42;;107352:164;;;;:::o;31618:201::-;30598:13;:11;:13::i;:::-;31727:1:::1;31707:22;;:8;:22;;;;31699:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;31783:28;31802:8;31783:18;:28::i;:::-;31618:201:::0;:::o;30877:132::-;30952:12;:10;:12::i;:::-;30941:23;;:7;:5;:7::i;:::-;:23;;;30933:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;30877:132::o;107774:282::-;107839:4;107895:7;107876:15;:13;:15::i;:::-;:26;;:66;;;;;107929:13;;107919:7;:23;107876:66;:153;;;;;108028:1;91782:8;107980:17;:26;107998:7;107980:26;;;;;;;;;;;;:44;:49;107876:153;107856:173;;107774:282;;;:::o;130082:105::-;130142:7;130169:10;130162:17;;130082:105;:::o;95179:92::-;95235:7;95179:92;:::o;19325:716::-;19381:13;19432:14;19469:1;19449:17;19460:5;19449:10;:17::i;:::-;:21;19432:38;;19485:20;19519:6;19508:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19485:41;;19541:11;19670:6;19666:2;19662:15;19654:6;19650:28;19643:35;;19707:288;19714:4;19707:288;;;19739:5;;;;;;;;19881:8;19876:2;19869:5;19865:14;19860:30;19855:3;19847:44;19937:2;19928:11;;;;;;:::i;:::-;;;;;19971:1;19962:5;:10;19958:21;;;19974:5;;19958:21;19707:288;;;20016:6;20009:13;;;;;19325:716;;;:::o;102460:1275::-;102527:7;102547:12;102562:7;102547:22;;102630:4;102611:15;:13;:15::i;:::-;:23;102607:1061;;102664:13;;102657:4;:20;102653:1015;;;102702:14;102719:17;:23;102737:4;102719:23;;;;;;;;;;;;102702:40;;102836:1;91782:8;102808:6;:24;:29;102804:845;;;103473:113;103490:1;103480:6;:11;103473:113;;;103533:17;:25;103551:6;;;;;;;103533:25;;;;;;;;;;;;103524:34;;103473:113;;;103619:6;103612:13;;;;;;102804:845;102679:989;102653:1015;102607:1061;103696:31;;;;;;;;;;;;;;102460:1275;;;;:::o;108937:485::-;109039:27;109068:23;109109:38;109150:15;:24;109166:7;109150:24;;;;;;;;;;;109109:65;;109327:18;109304:41;;109384:19;109378:26;109359:45;;109289:126;108937:485;;;:::o;108165:659::-;108314:11;108479:16;108472:5;108468:28;108459:37;;108639:16;108628:9;108624:32;108611:45;;108789:15;108778:9;108775:30;108767:5;108756:9;108753:20;108750:56;108740:66;;108165:659;;;;;:::o;114823:159::-;;;;;:::o;129391:311::-;129526:7;129546:16;92186:3;129572:19;:41;;129546:68;;92186:3;129640:31;129651:4;129657:2;129661:9;129640:10;:31::i;:::-;129632:40;;:62;;129625:69;;;129391:311;;;;;:::o;104283:450::-;104363:14;104531:16;104524:5;104520:28;104511:37;;104708:5;104694:11;104669:23;104665:41;104662:52;104655:5;104652:63;104642:73;;104283:450;;;;:::o;115647:158::-;;;;;:::o;31979:191::-;32053:16;32072:6;;;;;;;;;;;32053:25;;32098:8;32089:6;;:17;;;;;;;;;;;;;;;;;;32153:8;32122:40;;32143:8;32122:40;;;;;;;;;;;;32042:128;31979:191;:::o;116245:716::-;116408:4;116454:2;116429:45;;;116475:19;:17;:19::i;:::-;116496:4;116502:7;116511:5;116429:88;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;116425:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116729:1;116712:6;:13;:18;116708:235;;;116758:40;;;;;;;;;;;;;;116708:235;116901:6;116895:13;116886:6;116882:2;116878:15;116871:38;116425:529;116598:54;;;116588:64;;;:6;:64;;;;116581:71;;;116245:716;;;;;;:::o;123914:112::-;123991:27;124001:2;124005:8;123991:27;;;;;;;;;;;;:9;:27::i;:::-;123914:112;;:::o;3832:98::-;3885:7;3912:10;3905:17;;3832:98;:::o;16185:922::-;16238:7;16258:14;16275:1;16258:18;;16325:6;16316:5;:15;16312:102;;16361:6;16352:15;;;;;;:::i;:::-;;;;;16396:2;16386:12;;;;16312:102;16441:6;16432:5;:15;16428:102;;16477:6;16468:15;;;;;;:::i;:::-;;;;;16512:2;16502:12;;;;16428:102;16557:6;16548:5;:15;16544:102;;16593:6;16584:15;;;;;;:::i;:::-;;;;;16628:2;16618:12;;;;16544:102;16673:5;16664;:14;16660:99;;16708:5;16699:14;;;;;;:::i;:::-;;;;;16742:1;16732:11;;;;16660:99;16786:5;16777;:14;16773:99;;16821:5;16812:14;;;;;;:::i;:::-;;;;;16855:1;16845:11;;;;16773:99;16899:5;16890;:14;16886:99;;16934:5;16925:14;;;;;;:::i;:::-;;;;;16968:1;16958:11;;;;16886:99;17012:5;17003;:14;16999:66;;17048:1;17038:11;;;;16999:66;17093:6;17086:13;;;16185:922;;;:::o;129092:147::-;129229:6;129092:147;;;;;:::o;123141:689::-;123272:19;123278:2;123282:8;123272:5;:19::i;:::-;123351:1;123333:2;:14;;;:19;123329:483;;123373:11;123387:13;;123373:27;;123419:13;123441:8;123435:3;:14;123419:30;;123468:233;123499:62;123538:1;123542:2;123546:7;;;;;;123555:5;123499:30;:62::i;:::-;123494:167;;123597:40;;;;;;;;;;;;;;123494:167;123696:3;123688:5;:11;123468:233;;123783:3;123766:13;;:20;123762:34;;123788:8;;;123762:34;123354:458;;123329:483;123141:689;;;:::o;117423:2966::-;117496:20;117519:13;;117496:36;;117559:1;117547:8;:13;117543:44;;;117569:18;;;;;;;;;;;;;;117543:44;117600:61;117630:1;117634:2;117638:12;117652:8;117600:21;:61::i;:::-;118144:1;91144:2;118114:1;:26;;118113:32;118101:8;:45;118075:18;:22;118094:2;118075:22;;;;;;;;;;;;;;;;:71;;;;;;;;;;;118423:139;118460:2;118514:33;118537:1;118541:2;118545:1;118514:14;:33::i;:::-;118481:30;118502:8;118481:20;:30::i;:::-;:66;118423:18;:139::i;:::-;118389:17;:31;118407:12;118389:31;;;;;;;;;;;:173;;;;118579:16;118610:11;118639:8;118624:12;:23;118610:37;;119160:16;119156:2;119152:25;119140:37;;119532:12;119492:8;119451:1;119389:25;119330:1;119269;119242:335;119903:1;119889:12;119885:20;119843:346;119944:3;119935:7;119932:16;119843:346;;120162:7;120152:8;120149:1;120122:25;120119:1;120116;120111:59;119997:1;119988:7;119984:15;119973:26;;119843:346;;;119847:77;120234:1;120222:8;:13;120218:45;;;120244:19;;;;;;;;;;;;;;120218:45;120296:3;120280:13;:19;;;;117849:2462;;120321:60;120350:1;120354:2;120358:12;120372:8;120321:20;:60::i;:::-;117485:2904;117423:2966;;:::o;104835:324::-;104905:14;105138:1;105128:8;105125:15;105099:24;105095:46;105085:56;;104835:324;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:410:1:-;84:5;109:65;125:48;166:6;125:48;:::i;:::-;109:65;:::i;:::-;100:74;;197:6;190:5;183:21;235:4;228:5;224:16;273:3;264:6;259:3;255:16;252:25;249:112;;;280:79;;:::i;:::-;249:112;370:41;404:6;399:3;394;370:41;:::i;:::-;90:327;7:410;;;;;:::o;423:412::-;501:5;526:66;542:49;584:6;542:49;:::i;:::-;526:66;:::i;:::-;517:75;;615:6;608:5;601:21;653:4;646:5;642:16;691:3;682:6;677:3;673:16;670:25;667:112;;;698:79;;:::i;:::-;667:112;788:41;822:6;817:3;812;788:41;:::i;:::-;507:328;423:412;;;;;:::o;841:139::-;887:5;925:6;912:20;903:29;;941:33;968:5;941:33;:::i;:::-;841:139;;;;:::o;986:143::-;1043:5;1074:6;1068:13;1059:22;;1090:33;1117:5;1090:33;:::i;:::-;986:143;;;;:::o;1135:133::-;1178:5;1216:6;1203:20;1194:29;;1232:30;1256:5;1232:30;:::i;:::-;1135:133;;;;:::o;1274:137::-;1319:5;1357:6;1344:20;1335:29;;1373:32;1399:5;1373:32;:::i;:::-;1274:137;;;;:::o;1417:141::-;1473:5;1504:6;1498:13;1489:22;;1520:32;1546:5;1520:32;:::i;:::-;1417:141;;;;:::o;1577:338::-;1632:5;1681:3;1674:4;1666:6;1662:17;1658:27;1648:122;;1689:79;;:::i;:::-;1648:122;1806:6;1793:20;1831:78;1905:3;1897:6;1890:4;1882:6;1878:17;1831:78;:::i;:::-;1822:87;;1638:277;1577:338;;;;:::o;1935:340::-;1991:5;2040:3;2033:4;2025:6;2021:17;2017:27;2007:122;;2048:79;;:::i;:::-;2007:122;2165:6;2152:20;2190:79;2265:3;2257:6;2250:4;2242:6;2238:17;2190:79;:::i;:::-;2181:88;;1997:278;1935:340;;;;:::o;2281:137::-;2326:5;2364:6;2351:20;2342:29;;2380:32;2406:5;2380:32;:::i;:::-;2281:137;;;;:::o;2424:139::-;2470:5;2508:6;2495:20;2486:29;;2524:33;2551:5;2524:33;:::i;:::-;2424:139;;;;:::o;2569:329::-;2628:6;2677:2;2665:9;2656:7;2652:23;2648:32;2645:119;;;2683:79;;:::i;:::-;2645:119;2803:1;2828:53;2873:7;2864:6;2853:9;2849:22;2828:53;:::i;:::-;2818:63;;2774:117;2569:329;;;;:::o;2904:351::-;2974:6;3023:2;3011:9;3002:7;2998:23;2994:32;2991:119;;;3029:79;;:::i;:::-;2991:119;3149:1;3174:64;3230:7;3221:6;3210:9;3206:22;3174:64;:::i;:::-;3164:74;;3120:128;2904:351;;;;:::o;3261:474::-;3329:6;3337;3386:2;3374:9;3365:7;3361:23;3357:32;3354:119;;;3392:79;;:::i;:::-;3354:119;3512:1;3537:53;3582:7;3573:6;3562:9;3558:22;3537:53;:::i;:::-;3527:63;;3483:117;3639:2;3665:53;3710:7;3701:6;3690:9;3686:22;3665:53;:::i;:::-;3655:63;;3610:118;3261:474;;;;;:::o;3741:619::-;3818:6;3826;3834;3883:2;3871:9;3862:7;3858:23;3854:32;3851:119;;;3889:79;;:::i;:::-;3851:119;4009:1;4034:53;4079:7;4070:6;4059:9;4055:22;4034:53;:::i;:::-;4024:63;;3980:117;4136:2;4162:53;4207:7;4198:6;4187:9;4183:22;4162:53;:::i;:::-;4152:63;;4107:118;4264:2;4290:53;4335:7;4326:6;4315:9;4311:22;4290:53;:::i;:::-;4280:63;;4235:118;3741:619;;;;;:::o;4366:943::-;4461:6;4469;4477;4485;4534:3;4522:9;4513:7;4509:23;4505:33;4502:120;;;4541:79;;:::i;:::-;4502:120;4661:1;4686:53;4731:7;4722:6;4711:9;4707:22;4686:53;:::i;:::-;4676:63;;4632:117;4788:2;4814:53;4859:7;4850:6;4839:9;4835:22;4814:53;:::i;:::-;4804:63;;4759:118;4916:2;4942:53;4987:7;4978:6;4967:9;4963:22;4942:53;:::i;:::-;4932:63;;4887:118;5072:2;5061:9;5057:18;5044:32;5103:18;5095:6;5092:30;5089:117;;;5125:79;;:::i;:::-;5089:117;5230:62;5284:7;5275:6;5264:9;5260:22;5230:62;:::i;:::-;5220:72;;5015:287;4366:943;;;;;;;:::o;5315:468::-;5380:6;5388;5437:2;5425:9;5416:7;5412:23;5408:32;5405:119;;;5443:79;;:::i;:::-;5405:119;5563:1;5588:53;5633:7;5624:6;5613:9;5609:22;5588:53;:::i;:::-;5578:63;;5534:117;5690:2;5716:50;5758:7;5749:6;5738:9;5734:22;5716:50;:::i;:::-;5706:60;;5661:115;5315:468;;;;;:::o;5789:474::-;5857:6;5865;5914:2;5902:9;5893:7;5889:23;5885:32;5882:119;;;5920:79;;:::i;:::-;5882:119;6040:1;6065:53;6110:7;6101:6;6090:9;6086:22;6065:53;:::i;:::-;6055:63;;6011:117;6167:2;6193:53;6238:7;6229:6;6218:9;6214:22;6193:53;:::i;:::-;6183:63;;6138:118;5789:474;;;;;:::o;6269:327::-;6327:6;6376:2;6364:9;6355:7;6351:23;6347:32;6344:119;;;6382:79;;:::i;:::-;6344:119;6502:1;6527:52;6571:7;6562:6;6551:9;6547:22;6527:52;:::i;:::-;6517:62;;6473:116;6269:327;;;;:::o;6602:349::-;6671:6;6720:2;6708:9;6699:7;6695:23;6691:32;6688:119;;;6726:79;;:::i;:::-;6688:119;6846:1;6871:63;6926:7;6917:6;6906:9;6902:22;6871:63;:::i;:::-;6861:73;;6817:127;6602:349;;;;:::o;6957:509::-;7026:6;7075:2;7063:9;7054:7;7050:23;7046:32;7043:119;;;7081:79;;:::i;:::-;7043:119;7229:1;7218:9;7214:17;7201:31;7259:18;7251:6;7248:30;7245:117;;;7281:79;;:::i;:::-;7245:117;7386:63;7441:7;7432:6;7421:9;7417:22;7386:63;:::i;:::-;7376:73;;7172:287;6957:509;;;;:::o;7472:327::-;7530:6;7579:2;7567:9;7558:7;7554:23;7550:32;7547:119;;;7585:79;;:::i;:::-;7547:119;7705:1;7730:52;7774:7;7765:6;7754:9;7750:22;7730:52;:::i;:::-;7720:62;;7676:116;7472:327;;;;:::o;7805:329::-;7864:6;7913:2;7901:9;7892:7;7888:23;7884:32;7881:119;;;7919:79;;:::i;:::-;7881:119;8039:1;8064:53;8109:7;8100:6;8089:9;8085:22;8064:53;:::i;:::-;8054:63;;8010:117;7805:329;;;;:::o;8140:118::-;8227:24;8245:5;8227:24;:::i;:::-;8222:3;8215:37;8140:118;;:::o;8264:109::-;8345:21;8360:5;8345:21;:::i;:::-;8340:3;8333:34;8264:109;;:::o;8379:360::-;8465:3;8493:38;8525:5;8493:38;:::i;:::-;8547:70;8610:6;8605:3;8547:70;:::i;:::-;8540:77;;8626:52;8671:6;8666:3;8659:4;8652:5;8648:16;8626:52;:::i;:::-;8703:29;8725:6;8703:29;:::i;:::-;8698:3;8694:39;8687:46;;8469:270;8379:360;;;;:::o;8745:364::-;8833:3;8861:39;8894:5;8861:39;:::i;:::-;8916:71;8980:6;8975:3;8916:71;:::i;:::-;8909:78;;8996:52;9041:6;9036:3;9029:4;9022:5;9018:16;8996:52;:::i;:::-;9073:29;9095:6;9073:29;:::i;:::-;9068:3;9064:39;9057:46;;8837:272;8745:364;;;;:::o;9115:377::-;9221:3;9249:39;9282:5;9249:39;:::i;:::-;9304:89;9386:6;9381:3;9304:89;:::i;:::-;9297:96;;9402:52;9447:6;9442:3;9435:4;9428:5;9424:16;9402:52;:::i;:::-;9479:6;9474:3;9470:16;9463:23;;9225:267;9115:377;;;;:::o;9522:845::-;9625:3;9662:5;9656:12;9691:36;9717:9;9691:36;:::i;:::-;9743:89;9825:6;9820:3;9743:89;:::i;:::-;9736:96;;9863:1;9852:9;9848:17;9879:1;9874:137;;;;10025:1;10020:341;;;;9841:520;;9874:137;9958:4;9954:9;9943;9939:25;9934:3;9927:38;9994:6;9989:3;9985:16;9978:23;;9874:137;;10020:341;10087:38;10119:5;10087:38;:::i;:::-;10147:1;10161:154;10175:6;10172:1;10169:13;10161:154;;;10249:7;10243:14;10239:1;10234:3;10230:11;10223:35;10299:1;10290:7;10286:15;10275:26;;10197:4;10194:1;10190:12;10185:17;;10161:154;;;10344:6;10339:3;10335:16;10328:23;;10027:334;;9841:520;;9629:738;;9522:845;;;;:::o;10373:402::-;10533:3;10554:85;10636:2;10631:3;10554:85;:::i;:::-;10547:92;;10648:93;10737:3;10648:93;:::i;:::-;10766:2;10761:3;10757:12;10750:19;;10373:402;;;:::o;10781:366::-;10923:3;10944:67;11008:2;11003:3;10944:67;:::i;:::-;10937:74;;11020:93;11109:3;11020:93;:::i;:::-;11138:2;11133:3;11129:12;11122:19;;10781:366;;;:::o;11153:402::-;11313:3;11334:85;11416:2;11411:3;11334:85;:::i;:::-;11327:92;;11428:93;11517:3;11428:93;:::i;:::-;11546:2;11541:3;11537:12;11530:19;;11153:402;;;:::o;11561:400::-;11721:3;11742:84;11824:1;11819:3;11742:84;:::i;:::-;11735:91;;11835:93;11924:3;11835:93;:::i;:::-;11953:1;11948:3;11944:11;11937:18;;11561:400;;;:::o;11967:366::-;12109:3;12130:67;12194:2;12189:3;12130:67;:::i;:::-;12123:74;;12206:93;12295:3;12206:93;:::i;:::-;12324:2;12319:3;12315:12;12308:19;;11967:366;;;:::o;12339:129::-;12425:36;12455:5;12425:36;:::i;:::-;12420:3;12413:49;12339:129;;:::o;12474:118::-;12561:24;12579:5;12561:24;:::i;:::-;12556:3;12549:37;12474:118;;:::o;12598:695::-;12876:3;12898:92;12986:3;12977:6;12898:92;:::i;:::-;12891:99;;13007:95;13098:3;13089:6;13007:95;:::i;:::-;13000:102;;13119:148;13263:3;13119:148;:::i;:::-;13112:155;;13284:3;13277:10;;12598:695;;;;;:::o;13299:535::-;13529:3;13551:92;13639:3;13630:6;13551:92;:::i;:::-;13544:99;;13660:148;13804:3;13660:148;:::i;:::-;13653:155;;13825:3;13818:10;;13299:535;;;;:::o;13840:::-;14070:3;14092:92;14180:3;14171:6;14092:92;:::i;:::-;14085:99;;14201:148;14345:3;14201:148;:::i;:::-;14194:155;;14366:3;14359:10;;13840:535;;;;:::o;14381:222::-;14474:4;14512:2;14501:9;14497:18;14489:26;;14525:71;14593:1;14582:9;14578:17;14569:6;14525:71;:::i;:::-;14381:222;;;;:::o;14609:640::-;14804:4;14842:3;14831:9;14827:19;14819:27;;14856:71;14924:1;14913:9;14909:17;14900:6;14856:71;:::i;:::-;14937:72;15005:2;14994:9;14990:18;14981:6;14937:72;:::i;:::-;15019;15087:2;15076:9;15072:18;15063:6;15019:72;:::i;:::-;15138:9;15132:4;15128:20;15123:2;15112:9;15108:18;15101:48;15166:76;15237:4;15228:6;15166:76;:::i;:::-;15158:84;;14609:640;;;;;;;:::o;15255:210::-;15342:4;15380:2;15369:9;15365:18;15357:26;;15393:65;15455:1;15444:9;15440:17;15431:6;15393:65;:::i;:::-;15255:210;;;;:::o;15471:313::-;15584:4;15622:2;15611:9;15607:18;15599:26;;15671:9;15665:4;15661:20;15657:1;15646:9;15642:17;15635:47;15699:78;15772:4;15763:6;15699:78;:::i;:::-;15691:86;;15471:313;;;;:::o;15790:419::-;15956:4;15994:2;15983:9;15979:18;15971:26;;16043:9;16037:4;16033:20;16029:1;16018:9;16014:17;16007:47;16071:131;16197:4;16071:131;:::i;:::-;16063:139;;15790:419;;;:::o;16215:::-;16381:4;16419:2;16408:9;16404:18;16396:26;;16468:9;16462:4;16458:20;16454:1;16443:9;16439:17;16432:47;16496:131;16622:4;16496:131;:::i;:::-;16488:139;;16215:419;;;:::o;16640:220::-;16732:4;16770:2;16759:9;16755:18;16747:26;;16783:70;16850:1;16839:9;16835:17;16826:6;16783:70;:::i;:::-;16640:220;;;;:::o;16866:222::-;16959:4;16997:2;16986:9;16982:18;16974:26;;17010:71;17078:1;17067:9;17063:17;17054:6;17010:71;:::i;:::-;16866:222;;;;:::o;17094:129::-;17128:6;17155:20;;:::i;:::-;17145:30;;17184:33;17212:4;17204:6;17184:33;:::i;:::-;17094:129;;;:::o;17229:75::-;17262:6;17295:2;17289:9;17279:19;;17229:75;:::o;17310:307::-;17371:4;17461:18;17453:6;17450:30;17447:56;;;17483:18;;:::i;:::-;17447:56;17521:29;17543:6;17521:29;:::i;:::-;17513:37;;17605:4;17599;17595:15;17587:23;;17310:307;;;:::o;17623:308::-;17685:4;17775:18;17767:6;17764:30;17761:56;;;17797:18;;:::i;:::-;17761:56;17835:29;17857:6;17835:29;:::i;:::-;17827:37;;17919:4;17913;17909:15;17901:23;;17623:308;;;:::o;17937:141::-;17986:4;18009:3;18001:11;;18032:3;18029:1;18022:14;18066:4;18063:1;18053:18;18045:26;;17937:141;;;:::o;18084:98::-;18135:6;18169:5;18163:12;18153:22;;18084:98;;;:::o;18188:99::-;18240:6;18274:5;18268:12;18258:22;;18188:99;;;:::o;18293:168::-;18376:11;18410:6;18405:3;18398:19;18450:4;18445:3;18441:14;18426:29;;18293:168;;;;:::o;18467:169::-;18551:11;18585:6;18580:3;18573:19;18625:4;18620:3;18616:14;18601:29;;18467:169;;;;:::o;18642:148::-;18744:11;18781:3;18766:18;;18642:148;;;;:::o;18796:242::-;18835:3;18854:19;18871:1;18854:19;:::i;:::-;18849:24;;18887:19;18904:1;18887:19;:::i;:::-;18882:24;;18980:1;18972:6;18968:14;18965:1;18962:21;18959:47;;;18986:18;;:::i;:::-;18959:47;19030:1;19027;19023:9;19016:16;;18796:242;;;;:::o;19044:305::-;19084:3;19103:20;19121:1;19103:20;:::i;:::-;19098:25;;19137:20;19155:1;19137:20;:::i;:::-;19132:25;;19291:1;19223:66;19219:74;19216:1;19213:81;19210:107;;;19297:18;;:::i;:::-;19210:107;19341:1;19338;19334:9;19327:16;;19044:305;;;;:::o;19355:96::-;19392:7;19421:24;19439:5;19421:24;:::i;:::-;19410:35;;19355:96;;;:::o;19457:90::-;19491:7;19534:5;19527:13;19520:21;19509:32;;19457:90;;;:::o;19553:149::-;19589:7;19629:66;19622:5;19618:78;19607:89;;19553:149;;;:::o;19708:89::-;19744:7;19784:6;19777:5;19773:18;19762:29;;19708:89;;;:::o;19803:126::-;19840:7;19880:42;19873:5;19869:54;19858:65;;19803:126;;;:::o;19935:77::-;19972:7;20001:5;19990:16;;19935:77;;;:::o;20018:111::-;20067:9;20100:23;20117:5;20100:23;:::i;:::-;20087:36;;20018:111;;;:::o;20135:154::-;20219:6;20214:3;20209;20196:30;20281:1;20272:6;20267:3;20263:16;20256:27;20135:154;;;:::o;20295:307::-;20363:1;20373:113;20387:6;20384:1;20381:13;20373:113;;;20472:1;20467:3;20463:11;20457:18;20453:1;20448:3;20444:11;20437:39;20409:2;20406:1;20402:10;20397:15;;20373:113;;;20504:6;20501:1;20498:13;20495:101;;;20584:1;20575:6;20570:3;20566:16;20559:27;20495:101;20344:258;20295:307;;;:::o;20608:320::-;20652:6;20689:1;20683:4;20679:12;20669:22;;20736:1;20730:4;20726:12;20757:18;20747:81;;20813:4;20805:6;20801:17;20791:27;;20747:81;20875:2;20867:6;20864:14;20844:18;20841:38;20838:84;;;20894:18;;:::i;:::-;20838:84;20659:269;20608:320;;;:::o;20934:281::-;21017:27;21039:4;21017:27;:::i;:::-;21009:6;21005:40;21147:6;21135:10;21132:22;21111:18;21099:10;21096:34;21093:62;21090:88;;;21158:18;;:::i;:::-;21090:88;21198:10;21194:2;21187:22;20977:238;20934:281;;:::o;21221:171::-;21259:3;21282:23;21299:5;21282:23;:::i;:::-;21273:32;;21327:6;21320:5;21317:17;21314:43;;;21337:18;;:::i;:::-;21314:43;21384:1;21377:5;21373:13;21366:20;;21221:171;;;:::o;21398:176::-;21430:1;21447:20;21465:1;21447:20;:::i;:::-;21442:25;;21481:20;21499:1;21481:20;:::i;:::-;21476:25;;21520:1;21510:35;;21525:18;;:::i;:::-;21510:35;21566:1;21563;21559:9;21554:14;;21398:176;;;;:::o;21580:180::-;21628:77;21625:1;21618:88;21725:4;21722:1;21715:15;21749:4;21746:1;21739:15;21766:180;21814:77;21811:1;21804:88;21911:4;21908:1;21901:15;21935:4;21932:1;21925:15;21952:180;22000:77;21997:1;21990:88;22097:4;22094:1;22087:15;22121:4;22118:1;22111:15;22138:180;22186:77;22183:1;22176:88;22283:4;22280:1;22273:15;22307:4;22304:1;22297:15;22324:117;22433:1;22430;22423:12;22447:117;22556:1;22553;22546:12;22570:117;22679:1;22676;22669:12;22693:117;22802:1;22799;22792:12;22816:102;22857:6;22908:2;22904:7;22899:2;22892:5;22888:14;22884:28;22874:38;;22816:102;;;:::o;22924:165::-;23064:17;23060:1;23052:6;23048:14;23041:41;22924:165;:::o;23095:225::-;23235:34;23231:1;23223:6;23219:14;23212:58;23304:8;23299:2;23291:6;23287:15;23280:33;23095:225;:::o;23326:166::-;23466:18;23462:1;23454:6;23450:14;23443:42;23326:166;:::o;23498:155::-;23638:7;23634:1;23626:6;23622:14;23615:31;23498:155;:::o;23659:182::-;23799:34;23795:1;23787:6;23783:14;23776:58;23659:182;:::o;23847:122::-;23920:24;23938:5;23920:24;:::i;:::-;23913:5;23910:35;23900:63;;23959:1;23956;23949:12;23900:63;23847:122;:::o;23975:116::-;24045:21;24060:5;24045:21;:::i;:::-;24038:5;24035:32;24025:60;;24081:1;24078;24071:12;24025:60;23975:116;:::o;24097:120::-;24169:23;24186:5;24169:23;:::i;:::-;24162:5;24159:34;24149:62;;24207:1;24204;24197:12;24149:62;24097:120;:::o;24223:::-;24295:23;24312:5;24295:23;:::i;:::-;24288:5;24285:34;24275:62;;24333:1;24330;24323:12;24275:62;24223:120;:::o;24349:122::-;24422:24;24440:5;24422:24;:::i;:::-;24415:5;24412:35;24402:63;;24461:1;24458;24451:12;24402:63;24349:122;:::o

Swarm Source

ipfs://3be7e91745342d654ce4a81cdd12d1616fe4a1c14ed43dbdb35cacb23f03a76f
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.