ETH Price: $3,733.59 (-3.46%)

Token

: NBL Box NFT (NBF)

Overview

Max Total Supply

5,500 NBF

Holders

985

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
67 NBF
0x1a81101b808ffe5e26e0d093c14ea1e1693d906b
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
NblBoxNft

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at optimistic.etherscan.io on 2024-01-17
*/

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol

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

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.9.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/IERC721Receiver.sol


// 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/token/ERC721/extensions/IERC721Metadata.sol


// 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/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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/utils/Context.sol


// 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/math/Math.sol


// OpenZeppelin Contracts (last updated v4.9.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) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 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 256, 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 << 3) < value ? 1 : 0);
        }
    }
}

// File: @openzeppelin/contracts/utils/math/SignedMath.sol


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

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts (last updated v4.9.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 `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// 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/token/ERC721/ERC721.sol


// OpenZeppelin Contracts (last updated v4.9.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 {}

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

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

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol


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

pragma solidity ^0.8.0;


/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);

        if (batchSize > 1) {
            // Will only trigger during construction. Batch transferring (minting) is not available afterwards.
            revert("ERC721Enumerable: consecutive transfers not supported");
        }

        uint256 tokenId = firstTokenId;

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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/utils/math/SafeMath.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;



/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

// File: contracts/NblBoxNft.sol



pragma solidity >=0.4.22 <0.9.0;
pragma experimental ABIEncoderV2;

// import "@openzeppelin/contracts/token/ERC721/ERC721.sol";







contract NblBoxNft is ERC721Enumerable, Ownable {
    using Address for address;
    using Strings for uint256;
    using SafeERC20 for IERC20;

    mapping (address => bool) public mintWhitelist;
    mapping (address => bool) public tradeWhitelist;
    mapping (uint => uint) public nftGrades;

    string private baseURI;
    uint private tokenid;

    // constructor(string memory name_, string memory symbol_, string memory baseUri_, uint maxSupply_)
    constructor(string memory name_, string memory symbol_, string memory baseUri_)
        ERC721(name_, symbol_)
    {
        setBaseURI(baseUri_);

        address[] memory users = new address[](1);
        users[0] = msg.sender;
        setMintWhitelist(users, true);
        setTradeWhitelist(users, true);
    }

    function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) {
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }
    
    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }

    function setMintWhitelist(address[] memory values, bool allowed) public onlyOwner {
        for (uint i = 0; i < values.length; ++i) {
            mintWhitelist[values[i]] = allowed;
            tradeWhitelist[values[i]] = allowed;
        }
    }

    function setTradeWhitelist(address[] memory values, bool allowed) public onlyOwner {
        for (uint i = 0; i < values.length; ++i) {
            tradeWhitelist[values[i]] = allowed;
        }
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        require(msg.sender == from || tradeWhitelist[msg.sender], "need trade whitelist");

        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);
    }

    function mint(address to, uint grade) public {
        require(grade > 0, "INVALID_GRADE");
        require(mintWhitelist[msg.sender], "NEED_MINT_WHITELIST");
        tokenid = tokenid + 1;
        nftGrades[tokenid] = grade;
        _safeMint(to, tokenid);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"baseUri_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"grade","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftGrades","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"values","type":"address[]"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setMintWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"values","type":"address[]"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setTradeWhitelist","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tradeWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200258a3803806200258a8339810160408190526200003491620003d2565b82826000620000448382620004f1565b506001620000538282620004f1565b505050620000706200006a620000f060201b60201c565b620000f4565b6200007b8162000146565b604080516001808252818301909252600091602080830190803683370190505090503381600081518110620000b457620000b4620005bd565b6001600160a01b0390921660209283029190910190910152620000d981600162000162565b620000e681600162000236565b50505050620005fb565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000150620002ac565b600e6200015e8282620004f1565b5050565b6200016c620002ac565b60005b8251811015620002315781600b6000858481518110620001935762000193620005bd565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555081600c6000858481518110620001ec57620001ec620005bd565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790556200022981620005d3565b90506200016f565b505050565b62000240620002ac565b60005b8251811015620002315781600c6000858481518110620002675762000267620005bd565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055620002a481620005d3565b905062000243565b600a546001600160a01b031633146200030b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200033557600080fd5b81516001600160401b03808211156200035257620003526200030d565b604051601f8301601f19908116603f011681019082821181831017156200037d576200037d6200030d565b816040528381526020925086838588010111156200039a57600080fd5b600091505b83821015620003be57858201830151818301840152908201906200039f565b600093810190920192909252949350505050565b600080600060608486031215620003e857600080fd5b83516001600160401b03808211156200040057600080fd5b6200040e8783880162000323565b945060208601519150808211156200042557600080fd5b620004338783880162000323565b935060408601519150808211156200044a57600080fd5b50620004598682870162000323565b9150509250925092565b600181811c908216806200047857607f821691505b6020821081036200049957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200023157600081815260208120601f850160051c81016020861015620004c85750805b601f850160051c820191505b81811015620004e957828155600101620004d4565b505050505050565b81516001600160401b038111156200050d576200050d6200030d565b62000525816200051e845462000463565b846200049f565b602080601f8311600181146200055d5760008415620005445750858301515b600019600386901b1c1916600185901b178555620004e9565b600085815260208120601f198616915b828110156200058e578886015182559484019460019091019084016200056d565b5085821015620005ad5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b600060018201620005f457634e487b7160e01b600052601160045260246000fd5b5060010190565b611f7f806200060b6000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80636352211e116100de57806395d89b4111610097578063c87b56dd11610071578063c87b56dd1461036a578063e985e9c51461037d578063f1cfad60146103b9578063f2fde38b146103dc57600080fd5b806395d89b411461033c578063a22cb46514610344578063b88d4fde1461035757600080fd5b80636352211e146102d75780636f0f751d146102ea57806370a08231146102fd578063715018a61461031057806388eca516146103185780638da5cb5b1461032b57600080fd5b806323b872dd1161014b57806342842e0e1161012557806342842e0e1461027e5780634f6ccce714610291578063522e0cbf146102a457806355f804b3146102c457600080fd5b806323b872dd146102455780632f745c591461025857806340c10f191461026b57600080fd5b806301ffc9a71461019357806306fdde03146101bb578063081812fc146101d0578063095ea7b3146101fb5780630ba84e851461021057806318160ddd14610233575b600080fd5b6101a66101a13660046117ee565b6103ef565b60405190151581526020015b60405180910390f35b6101c361041a565b6040516101b29190611862565b6101e36101de366004611875565b6104ac565b6040516001600160a01b0390911681526020016101b2565b61020e6102093660046118aa565b6104d3565b005b6101a661021e3660046118d4565b600b6020526000908152604090205460ff1681565b6008545b6040519081526020016101b2565b61020e6102533660046118ef565b6105ed565b6102376102663660046118aa565b61061e565b61020e6102793660046118aa565b6106b4565b61020e61028c3660046118ef565b61077e565b61023761029f366004611875565b610799565b6102376102b2366004611875565b600d6020526000908152604090205481565b61020e6102d23660046119ca565b61082c565b6101e36102e5366004611875565b610840565b61020e6102f8366004611a23565b6108a0565b61023761030b3660046118d4565b61090d565b61020e610993565b61020e610326366004611a23565b6109a7565b600a546001600160a01b03166101e3565b6101c3610a6a565b61020e610352366004611ae2565b610a79565b61020e610365366004611b15565b610a84565b6101c3610378366004611875565b610abc565b6101a661038b366004611b91565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6101a66103c73660046118d4565b600c6020526000908152604090205460ff1681565b61020e6103ea3660046118d4565b610b1a565b60006001600160e01b0319821663780e9d6360e01b1480610414575061041482610b93565b92915050565b60606000805461042990611bbb565b80601f016020809104026020016040519081016040528092919081815260200182805461045590611bbb565b80156104a25780601f10610477576101008083540402835291602001916104a2565b820191906000526020600020905b81548152906001019060200180831161048557829003601f168201915b5050505050905090565b60006104b782610be3565b506000908152600460205260409020546001600160a01b031690565b60006104de82610840565b9050806001600160a01b0316836001600160a01b0316036105505760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061056c575061056c813361038b565b6105de5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610547565b6105e88383610c42565b505050565b6105f73382610cb0565b6106135760405162461bcd60e51b815260040161054790611bf5565b6105e8838383610d2f565b60006106298361090d565b821061068b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610547565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600081116106f45760405162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f475241444560981b6044820152606401610547565b336000908152600b602052604090205460ff166107495760405162461bcd60e51b81526020600482015260136024820152721391515117d352539517d5d2125511531254d5606a1b6044820152606401610547565b600f54610757906001611c58565b600f8181556000918252600d60205260409091208290555461077a908390610ea0565b5050565b6105e883838360405180602001604052806000815250610a84565b60006107a460085490565b82106108075760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610547565b6008828154811061081a5761081a611c6b565b90600052602060002001549050919050565b610834610eba565b600e61077a8282611ccf565b6000818152600260205260408120546001600160a01b0316806104145760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610547565b6108a8610eba565b60005b82518110156105e85781600c60008584815181106108cb576108cb611c6b565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905561090681611d8f565b90506108ab565b60006001600160a01b0382166109775760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610547565b506001600160a01b031660009081526003602052604090205490565b61099b610eba565b6109a56000610f14565b565b6109af610eba565b60005b82518110156105e85781600b60008584815181106109d2576109d2611c6b565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555081600c6000858481518110610a2857610a28611c6b565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055610a6381611d8f565b90506109b2565b60606001805461042990611bbb565b61077a338383610f66565b610a8e3383610cb0565b610aaa5760405162461bcd60e51b815260040161054790611bf5565b610ab684848484611034565b50505050565b60606000600e8054610acd90611bbb565b905011610ae95760405180602001604052806000815250610414565b600e610af483611067565b604051602001610b05929190611da8565b60405160208183030381529060405292915050565b610b22610eba565b6001600160a01b038116610b875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610547565b610b9081610f14565b50565b60006001600160e01b031982166380ac58cd60e01b1480610bc457506001600160e01b03198216635b5e139f60e01b145b8061041457506301ffc9a760e01b6001600160e01b0319831614610414565b6000818152600260205260409020546001600160a01b0316610b905760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610547565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610c7782610840565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610cbc83610840565b9050806001600160a01b0316846001600160a01b03161480610d0357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610d275750836001600160a01b0316610d1c846104ac565b6001600160a01b0316145b949350505050565b826001600160a01b0316610d4282610840565b6001600160a01b031614610d685760405162461bcd60e51b815260040161054790611e2f565b6001600160a01b038216610dca5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610547565b610dd783838360016110fa565b826001600160a01b0316610dea82610840565b6001600160a01b031614610e105760405162461bcd60e51b815260040161054790611e2f565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61077a82826040518060200160405280600081525061116f565b600a546001600160a01b031633146109a55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610547565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603610fc75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610547565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61103f848484610d2f565b61104b848484846111a2565b610ab65760405162461bcd60e51b815260040161054790611e74565b60606000611074836112a3565b600101905060008167ffffffffffffffff8111156110945761109461192b565b6040519080825280601f01601f1916602001820160405280156110be576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846110c857509392505050565b336001600160a01b03851614806111205750336000908152600c602052604090205460ff165b6111635760405162461bcd60e51b81526020600482015260146024820152731b995959081d1c985919481dda1a5d195b1a5cdd60621b6044820152606401610547565b610ab68484848461137b565b61117983836114af565b61118660008484846111a2565b6105e85760405162461bcd60e51b815260040161054790611e74565b60006001600160a01b0384163b1561129857604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906111e6903390899088908890600401611ec6565b6020604051808303816000875af1925050508015611221575060408051601f3d908101601f1916820190925261121e91810190611f03565b60015b61127e573d80801561124f576040519150601f19603f3d011682016040523d82523d6000602084013e611254565b606091505b5080516000036112765760405162461bcd60e51b815260040161054790611e74565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610d27565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106112e25772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061130e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061132c57662386f26fc10000830492506010015b6305f5e1008310611344576305f5e100830492506008015b612710831061135857612710830492506004015b6064831061136a576064830492506002015b600a83106104145760010192915050565b60018111156113ea5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610547565b816001600160a01b0385166114465761144181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611469565b836001600160a01b0316856001600160a01b031614611469576114698582611648565b6001600160a01b03841661148557611480816116e5565b6114a8565b846001600160a01b0316846001600160a01b0316146114a8576114a88482611794565b5050505050565b6001600160a01b0382166115055760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610547565b6000818152600260205260409020546001600160a01b03161561156a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610547565b6115786000838360016110fa565b6000818152600260205260409020546001600160a01b0316156115dd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610547565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016116558461090d565b61165f9190611f20565b6000838152600760205260409020549091508082146116b2576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906116f790600190611f20565b6000838152600960205260408120546008805493945090928490811061171f5761171f611c6b565b90600052602060002001549050806008838154811061174057611740611c6b565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061177857611778611f33565b6001900381819060005260206000200160009055905550505050565b600061179f8361090d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b031981168114610b9057600080fd5b60006020828403121561180057600080fd5b813561180b816117d8565b9392505050565b60005b8381101561182d578181015183820152602001611815565b50506000910152565b6000815180845261184e816020860160208601611812565b601f01601f19169290920160200192915050565b60208152600061180b6020830184611836565b60006020828403121561188757600080fd5b5035919050565b80356001600160a01b03811681146118a557600080fd5b919050565b600080604083850312156118bd57600080fd5b6118c68361188e565b946020939093013593505050565b6000602082840312156118e657600080fd5b61180b8261188e565b60008060006060848603121561190457600080fd5b61190d8461188e565b925061191b6020850161188e565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561196a5761196a61192b565b604052919050565b600067ffffffffffffffff83111561198c5761198c61192b565b61199f601f8401601f1916602001611941565b90508281528383830111156119b357600080fd5b828260208301376000602084830101529392505050565b6000602082840312156119dc57600080fd5b813567ffffffffffffffff8111156119f357600080fd5b8201601f81018413611a0457600080fd5b610d2784823560208401611972565b803580151581146118a557600080fd5b60008060408385031215611a3657600080fd5b823567ffffffffffffffff80821115611a4e57600080fd5b818501915085601f830112611a6257600080fd5b8135602082821115611a7657611a7661192b565b8160051b9250611a87818401611941565b8281529284018101928181019089851115611aa157600080fd5b948201945b84861015611ac657611ab78661188e565b82529482019490820190611aa6565b9650611ad59050878201611a13565b9450505050509250929050565b60008060408385031215611af557600080fd5b611afe8361188e565b9150611b0c60208401611a13565b90509250929050565b60008060008060808587031215611b2b57600080fd5b611b348561188e565b9350611b426020860161188e565b925060408501359150606085013567ffffffffffffffff811115611b6557600080fd5b8501601f81018713611b7657600080fd5b611b8587823560208401611972565b91505092959194509250565b60008060408385031215611ba457600080fd5b611bad8361188e565b9150611b0c6020840161188e565b600181811c90821680611bcf57607f821691505b602082108103611bef57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561041457610414611c42565b634e487b7160e01b600052603260045260246000fd5b601f8211156105e857600081815260208120601f850160051c81016020861015611ca85750805b601f850160051c820191505b81811015611cc757828155600101611cb4565b505050505050565b815167ffffffffffffffff811115611ce957611ce961192b565b611cfd81611cf78454611bbb565b84611c81565b602080601f831160018114611d325760008415611d1a5750858301515b600019600386901b1c1916600185901b178555611cc7565b600085815260208120601f198616915b82811015611d6157888601518255948401946001909101908401611d42565b5085821015611d7f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018201611da157611da1611c42565b5060010190565b6000808454611db681611bbb565b60018281168015611dce5760018114611de357611e12565b60ff1984168752821515830287019450611e12565b8860005260208060002060005b85811015611e095781548a820152908401908201611df0565b50505082870194505b505050508351611e26818360208801611812565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ef990830184611836565b9695505050505050565b600060208284031215611f1557600080fd5b815161180b816117d8565b8181038181111561041457610414611c42565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220ca626763e5f920fe4660bf8e3397d1c3ce5bf40b50f6dbdf13f99e920306aa5564736f6c63430008120033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000b4e424c20426f78204e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034e42460000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f6e6562756c61726576656c6174696f6e2e636f6d2f6e62662f00000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80636352211e116100de57806395d89b4111610097578063c87b56dd11610071578063c87b56dd1461036a578063e985e9c51461037d578063f1cfad60146103b9578063f2fde38b146103dc57600080fd5b806395d89b411461033c578063a22cb46514610344578063b88d4fde1461035757600080fd5b80636352211e146102d75780636f0f751d146102ea57806370a08231146102fd578063715018a61461031057806388eca516146103185780638da5cb5b1461032b57600080fd5b806323b872dd1161014b57806342842e0e1161012557806342842e0e1461027e5780634f6ccce714610291578063522e0cbf146102a457806355f804b3146102c457600080fd5b806323b872dd146102455780632f745c591461025857806340c10f191461026b57600080fd5b806301ffc9a71461019357806306fdde03146101bb578063081812fc146101d0578063095ea7b3146101fb5780630ba84e851461021057806318160ddd14610233575b600080fd5b6101a66101a13660046117ee565b6103ef565b60405190151581526020015b60405180910390f35b6101c361041a565b6040516101b29190611862565b6101e36101de366004611875565b6104ac565b6040516001600160a01b0390911681526020016101b2565b61020e6102093660046118aa565b6104d3565b005b6101a661021e3660046118d4565b600b6020526000908152604090205460ff1681565b6008545b6040519081526020016101b2565b61020e6102533660046118ef565b6105ed565b6102376102663660046118aa565b61061e565b61020e6102793660046118aa565b6106b4565b61020e61028c3660046118ef565b61077e565b61023761029f366004611875565b610799565b6102376102b2366004611875565b600d6020526000908152604090205481565b61020e6102d23660046119ca565b61082c565b6101e36102e5366004611875565b610840565b61020e6102f8366004611a23565b6108a0565b61023761030b3660046118d4565b61090d565b61020e610993565b61020e610326366004611a23565b6109a7565b600a546001600160a01b03166101e3565b6101c3610a6a565b61020e610352366004611ae2565b610a79565b61020e610365366004611b15565b610a84565b6101c3610378366004611875565b610abc565b6101a661038b366004611b91565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6101a66103c73660046118d4565b600c6020526000908152604090205460ff1681565b61020e6103ea3660046118d4565b610b1a565b60006001600160e01b0319821663780e9d6360e01b1480610414575061041482610b93565b92915050565b60606000805461042990611bbb565b80601f016020809104026020016040519081016040528092919081815260200182805461045590611bbb565b80156104a25780601f10610477576101008083540402835291602001916104a2565b820191906000526020600020905b81548152906001019060200180831161048557829003601f168201915b5050505050905090565b60006104b782610be3565b506000908152600460205260409020546001600160a01b031690565b60006104de82610840565b9050806001600160a01b0316836001600160a01b0316036105505760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061056c575061056c813361038b565b6105de5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610547565b6105e88383610c42565b505050565b6105f73382610cb0565b6106135760405162461bcd60e51b815260040161054790611bf5565b6105e8838383610d2f565b60006106298361090d565b821061068b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610547565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600081116106f45760405162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f475241444560981b6044820152606401610547565b336000908152600b602052604090205460ff166107495760405162461bcd60e51b81526020600482015260136024820152721391515117d352539517d5d2125511531254d5606a1b6044820152606401610547565b600f54610757906001611c58565b600f8181556000918252600d60205260409091208290555461077a908390610ea0565b5050565b6105e883838360405180602001604052806000815250610a84565b60006107a460085490565b82106108075760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610547565b6008828154811061081a5761081a611c6b565b90600052602060002001549050919050565b610834610eba565b600e61077a8282611ccf565b6000818152600260205260408120546001600160a01b0316806104145760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610547565b6108a8610eba565b60005b82518110156105e85781600c60008584815181106108cb576108cb611c6b565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905561090681611d8f565b90506108ab565b60006001600160a01b0382166109775760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610547565b506001600160a01b031660009081526003602052604090205490565b61099b610eba565b6109a56000610f14565b565b6109af610eba565b60005b82518110156105e85781600b60008584815181106109d2576109d2611c6b565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff02191690831515021790555081600c6000858481518110610a2857610a28611c6b565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055610a6381611d8f565b90506109b2565b60606001805461042990611bbb565b61077a338383610f66565b610a8e3383610cb0565b610aaa5760405162461bcd60e51b815260040161054790611bf5565b610ab684848484611034565b50505050565b60606000600e8054610acd90611bbb565b905011610ae95760405180602001604052806000815250610414565b600e610af483611067565b604051602001610b05929190611da8565b60405160208183030381529060405292915050565b610b22610eba565b6001600160a01b038116610b875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610547565b610b9081610f14565b50565b60006001600160e01b031982166380ac58cd60e01b1480610bc457506001600160e01b03198216635b5e139f60e01b145b8061041457506301ffc9a760e01b6001600160e01b0319831614610414565b6000818152600260205260409020546001600160a01b0316610b905760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610547565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610c7782610840565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610cbc83610840565b9050806001600160a01b0316846001600160a01b03161480610d0357506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610d275750836001600160a01b0316610d1c846104ac565b6001600160a01b0316145b949350505050565b826001600160a01b0316610d4282610840565b6001600160a01b031614610d685760405162461bcd60e51b815260040161054790611e2f565b6001600160a01b038216610dca5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610547565b610dd783838360016110fa565b826001600160a01b0316610dea82610840565b6001600160a01b031614610e105760405162461bcd60e51b815260040161054790611e2f565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61077a82826040518060200160405280600081525061116f565b600a546001600160a01b031633146109a55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610547565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603610fc75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610547565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61103f848484610d2f565b61104b848484846111a2565b610ab65760405162461bcd60e51b815260040161054790611e74565b60606000611074836112a3565b600101905060008167ffffffffffffffff8111156110945761109461192b565b6040519080825280601f01601f1916602001820160405280156110be576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846110c857509392505050565b336001600160a01b03851614806111205750336000908152600c602052604090205460ff165b6111635760405162461bcd60e51b81526020600482015260146024820152731b995959081d1c985919481dda1a5d195b1a5cdd60621b6044820152606401610547565b610ab68484848461137b565b61117983836114af565b61118660008484846111a2565b6105e85760405162461bcd60e51b815260040161054790611e74565b60006001600160a01b0384163b1561129857604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906111e6903390899088908890600401611ec6565b6020604051808303816000875af1925050508015611221575060408051601f3d908101601f1916820190925261121e91810190611f03565b60015b61127e573d80801561124f576040519150601f19603f3d011682016040523d82523d6000602084013e611254565b606091505b5080516000036112765760405162461bcd60e51b815260040161054790611e74565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610d27565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106112e25772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061130e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061132c57662386f26fc10000830492506010015b6305f5e1008310611344576305f5e100830492506008015b612710831061135857612710830492506004015b6064831061136a576064830492506002015b600a83106104145760010192915050565b60018111156113ea5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610547565b816001600160a01b0385166114465761144181600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611469565b836001600160a01b0316856001600160a01b031614611469576114698582611648565b6001600160a01b03841661148557611480816116e5565b6114a8565b846001600160a01b0316846001600160a01b0316146114a8576114a88482611794565b5050505050565b6001600160a01b0382166115055760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610547565b6000818152600260205260409020546001600160a01b03161561156a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610547565b6115786000838360016110fa565b6000818152600260205260409020546001600160a01b0316156115dd5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610547565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016116558461090d565b61165f9190611f20565b6000838152600760205260409020549091508082146116b2576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906116f790600190611f20565b6000838152600960205260408120546008805493945090928490811061171f5761171f611c6b565b90600052602060002001549050806008838154811061174057611740611c6b565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061177857611778611f33565b6001900381819060005260206000200160009055905550505050565b600061179f8361090d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b031981168114610b9057600080fd5b60006020828403121561180057600080fd5b813561180b816117d8565b9392505050565b60005b8381101561182d578181015183820152602001611815565b50506000910152565b6000815180845261184e816020860160208601611812565b601f01601f19169290920160200192915050565b60208152600061180b6020830184611836565b60006020828403121561188757600080fd5b5035919050565b80356001600160a01b03811681146118a557600080fd5b919050565b600080604083850312156118bd57600080fd5b6118c68361188e565b946020939093013593505050565b6000602082840312156118e657600080fd5b61180b8261188e565b60008060006060848603121561190457600080fd5b61190d8461188e565b925061191b6020850161188e565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561196a5761196a61192b565b604052919050565b600067ffffffffffffffff83111561198c5761198c61192b565b61199f601f8401601f1916602001611941565b90508281528383830111156119b357600080fd5b828260208301376000602084830101529392505050565b6000602082840312156119dc57600080fd5b813567ffffffffffffffff8111156119f357600080fd5b8201601f81018413611a0457600080fd5b610d2784823560208401611972565b803580151581146118a557600080fd5b60008060408385031215611a3657600080fd5b823567ffffffffffffffff80821115611a4e57600080fd5b818501915085601f830112611a6257600080fd5b8135602082821115611a7657611a7661192b565b8160051b9250611a87818401611941565b8281529284018101928181019089851115611aa157600080fd5b948201945b84861015611ac657611ab78661188e565b82529482019490820190611aa6565b9650611ad59050878201611a13565b9450505050509250929050565b60008060408385031215611af557600080fd5b611afe8361188e565b9150611b0c60208401611a13565b90509250929050565b60008060008060808587031215611b2b57600080fd5b611b348561188e565b9350611b426020860161188e565b925060408501359150606085013567ffffffffffffffff811115611b6557600080fd5b8501601f81018713611b7657600080fd5b611b8587823560208401611972565b91505092959194509250565b60008060408385031215611ba457600080fd5b611bad8361188e565b9150611b0c6020840161188e565b600181811c90821680611bcf57607f821691505b602082108103611bef57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561041457610414611c42565b634e487b7160e01b600052603260045260246000fd5b601f8211156105e857600081815260208120601f850160051c81016020861015611ca85750805b601f850160051c820191505b81811015611cc757828155600101611cb4565b505050505050565b815167ffffffffffffffff811115611ce957611ce961192b565b611cfd81611cf78454611bbb565b84611c81565b602080601f831160018114611d325760008415611d1a5750858301515b600019600386901b1c1916600185901b178555611cc7565b600085815260208120601f198616915b82811015611d6157888601518255948401946001909101908401611d42565b5085821015611d7f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018201611da157611da1611c42565b5060010190565b6000808454611db681611bbb565b60018281168015611dce5760018114611de357611e12565b60ff1984168752821515830287019450611e12565b8860005260208060002060005b85811015611e095781548a820152908401908201611df0565b50505082870194505b505050508351611e26818360208801611812565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ef990830184611836565b9695505050505050565b600060208284031215611f1557600080fd5b815161180b816117d8565b8181038181111561041457610414611c42565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220ca626763e5f920fe4660bf8e3397d1c3ce5bf40b50f6dbdf13f99e920306aa5564736f6c63430008120033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000b4e424c20426f78204e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034e42460000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f6e6562756c61726576656c6174696f6e2e636f6d2f6e62662f00000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): NBL Box NFT
Arg [1] : symbol_ (string): NBF
Arg [2] : baseUri_ (string): https://nebularevelation.com/nbf/

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [4] : 4e424c20426f78204e4654000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 4e42460000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [8] : 68747470733a2f2f6e6562756c61726576656c6174696f6e2e636f6d2f6e6266
Arg [9] : 2f00000000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

84016:2219:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56036:224;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;56036:224:0;;;;;;;;39009:100;;;:::i;:::-;;;;;;;:::i;40521:171::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;40521:171:0;1533:203:1;40039:416:0;;;;;;:::i;:::-;;:::i;:::-;;84170:46;;;;;;:::i;:::-;;;;;;;;;;;;;;;;56676:113;56764:10;:17;56676:113;;;2515:25:1;;;2503:2;2488:18;56676:113:0;2369:177:1;41221:301:0;;;;;;:::i;:::-;;:::i;56344:256::-;;;;;;:::i;:::-;;:::i;85963:269::-;;;;;;:::i;:::-;;:::i;41593:151::-;;;;;;:::i;:::-;;:::i;56866:233::-;;;;;;:::i;:::-;;:::i;84277:39::-;;;;;;:::i;:::-;;;;;;;;;;;;;;85031:104;;;;;;:::i;:::-;;:::i;38719:223::-;;;;;;:::i;:::-;;:::i;85403:204::-;;;;;;:::i;:::-;;:::i;38450:207::-;;;;;;:::i;:::-;;:::i;63845:103::-;;;:::i;85143:252::-;;;;;;:::i;:::-;;:::i;63204:87::-;63277:6;;-1:-1:-1;;;;;63277:6:0;63204:87;;39178:104;;;:::i;40764:155::-;;;;;;:::i;:::-;;:::i;41815:279::-;;;;;;:::i;:::-;;:::i;84819:200::-;;;;;;:::i;:::-;;:::i;40990:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;41111:25:0;;;41087:4;41111:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;40990:164;84223:47;;;;;;:::i;:::-;;;;;;;;;;;;;;;;64103:201;;;;;;:::i;:::-;;:::i;56036:224::-;56138:4;-1:-1:-1;;;;;;56162:50:0;;-1:-1:-1;;;56162:50:0;;:90;;;56216:36;56240:11;56216:23;:36::i;:::-;56155:97;56036:224;-1:-1:-1;;56036:224:0:o;39009:100::-;39063:13;39096:5;39089:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39009:100;:::o;40521:171::-;40597:7;40617:23;40632:7;40617:14;:23::i;:::-;-1:-1:-1;40660:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;40660:24:0;;40521:171::o;40039:416::-;40120:13;40136:23;40151:7;40136:14;:23::i;:::-;40120:39;;40184:5;-1:-1:-1;;;;;40178:11:0;:2;-1:-1:-1;;;;;40178:11:0;;40170:57;;;;-1:-1:-1;;;40170:57:0;;7139:2:1;40170:57:0;;;7121:21:1;7178:2;7158:18;;;7151:30;7217:34;7197:18;;;7190:62;-1:-1:-1;;;7268:18:1;;;7261:31;7309:19;;40170:57:0;;;;;;;;;18195:10;-1:-1:-1;;;;;40262:21:0;;;;:62;;-1:-1:-1;40287:37:0;40304:5;18195:10;40990:164;:::i;40287:37::-;40240:173;;;;-1:-1:-1;;;40240:173:0;;7541:2:1;40240:173:0;;;7523:21:1;7580:2;7560:18;;;7553:30;7619:34;7599:18;;;7592:62;7690:31;7670:18;;;7663:59;7739:19;;40240:173:0;7339:425:1;40240:173:0;40426:21;40435:2;40439:7;40426:8;:21::i;:::-;40109:346;40039:416;;:::o;41221:301::-;41382:41;18195:10;41415:7;41382:18;:41::i;:::-;41374:99;;;;-1:-1:-1;;;41374:99:0;;;;;;;:::i;:::-;41486:28;41496:4;41502:2;41506:7;41486:9;:28::i;56344:256::-;56441:7;56477:23;56494:5;56477:16;:23::i;:::-;56469:5;:31;56461:87;;;;-1:-1:-1;;;56461:87:0;;8385:2:1;56461:87:0;;;8367:21:1;8424:2;8404:18;;;8397:30;8463:34;8443:18;;;8436:62;-1:-1:-1;;;8514:18:1;;;8507:41;8565:19;;56461:87:0;8183:407:1;56461:87:0;-1:-1:-1;;;;;;56566:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;56344:256::o;85963:269::-;86035:1;86027:5;:9;86019:35;;;;-1:-1:-1;;;86019:35:0;;8797:2:1;86019:35:0;;;8779:21:1;8836:2;8816:18;;;8809:30;-1:-1:-1;;;8855:18:1;;;8848:43;8908:18;;86019:35:0;8595:337:1;86019:35:0;86087:10;86073:25;;;;:13;:25;;;;;;;;86065:57;;;;-1:-1:-1;;;86065:57:0;;9139:2:1;86065:57:0;;;9121:21:1;9178:2;9158:18;;;9151:30;-1:-1:-1;;;9197:18:1;;;9190:49;9256:18;;86065:57:0;8937:343:1;86065:57:0;86143:7;;:11;;86153:1;86143:11;:::i;:::-;86133:7;:21;;;86165:18;;;;:9;:18;;;;;;:26;;;86216:7;86202:22;;86212:2;;86202:9;:22::i;:::-;85963:269;;:::o;41593:151::-;41697:39;41714:4;41720:2;41724:7;41697:39;;;;;;;;;;;;:16;:39::i;56866:233::-;56941:7;56977:30;56764:10;:17;;56676:113;56977:30;56969:5;:38;56961:95;;;;-1:-1:-1;;;56961:95:0;;9749:2:1;56961:95:0;;;9731:21:1;9788:2;9768:18;;;9761:30;9827:34;9807:18;;;9800:62;-1:-1:-1;;;9878:18:1;;;9871:42;9930:19;;56961:95:0;9547:408:1;56961:95:0;57074:10;57085:5;57074:17;;;;;;;;:::i;:::-;;;;;;;;;57067:24;;56866:233;;;:::o;85031:104::-;63090:13;:11;:13::i;:::-;85106:7:::1;:21;85116:11:::0;85106:7;:21:::1;:::i;38719:223::-:0;38791:7;43452:16;;;:7;:16;;;;;;-1:-1:-1;;;;;43452:16:0;;38855:56;;;;-1:-1:-1;;;38855:56:0;;12498:2:1;38855:56:0;;;12480:21:1;12537:2;12517:18;;;12510:30;-1:-1:-1;;;12556:18:1;;;12549:54;12620:18;;38855:56:0;12296:348:1;85403:204:0;63090:13;:11;:13::i;:::-;85502:6:::1;85497:103;85518:6;:13;85514:1;:17;85497:103;;;85581:7;85553:14;:25;85568:6;85575:1;85568:9;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;85553:25:0::1;::::0;;;::::1;::::0;;;;;;-1:-1:-1;85553:25:0;:35;;-1:-1:-1;;85553:35:0::1;::::0;::::1;;::::0;;;::::1;::::0;;85533:3:::1;::::0;::::1;:::i;:::-;;;85497:103;;38450:207:::0;38522:7;-1:-1:-1;;;;;38550:19:0;;38542:73;;;;-1:-1:-1;;;38542:73:0;;12991:2:1;38542:73:0;;;12973:21:1;13030:2;13010:18;;;13003:30;13069:34;13049:18;;;13042:62;-1:-1:-1;;;13120:18:1;;;13113:39;13169:19;;38542:73:0;12789:405:1;38542:73:0;-1:-1:-1;;;;;;38633:16:0;;;;;:9;:16;;;;;;;38450:207::o;63845:103::-;63090:13;:11;:13::i;:::-;63910:30:::1;63937:1;63910:18;:30::i;:::-;63845:103::o:0;85143:252::-;63090:13;:11;:13::i;:::-;85241:6:::1;85236:152;85257:6;:13;85253:1;:17;85236:152;;;85319:7;85292:13;:24;85306:6;85313:1;85306:9;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1::0;;;;;85292:24:0::1;-1:-1:-1::0;;;;;85292:24:0::1;;;;;;;;;;;;;:34;;;;;;;;;;;;;;;;;;85369:7;85341:14;:25;85356:6;85363:1;85356:9;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;85341:25:0::1;::::0;;;::::1;::::0;;;;;;-1:-1:-1;85341:25:0;:35;;-1:-1:-1;;85341:35:0::1;::::0;::::1;;::::0;;;::::1;::::0;;85272:3:::1;::::0;::::1;:::i;:::-;;;85236:152;;39178:104:::0;39234:13;39267:7;39260:14;;;;;:::i;40764:155::-;40859:52;18195:10;40892:8;40902;40859:18;:52::i;41815:279::-;41946:41;18195:10;41979:7;41946:18;:41::i;:::-;41938:99;;;;-1:-1:-1;;;41938:99:0;;;;;;;:::i;:::-;42048:38;42062:4;42068:2;42072:7;42081:4;42048:13;:38::i;:::-;41815:279;;;;:::o;84819:200::-;84892:13;84949:1;84931:7;84925:21;;;;;:::i;:::-;;;:25;:86;;;;;;;;;;;;;;;;;84977:7;84986:18;:7;:16;:18::i;:::-;84960:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;84918:93;84819:200;-1:-1:-1;;84819:200:0:o;64103:201::-;63090:13;:11;:13::i;:::-;-1:-1:-1;;;;;64192:22:0;::::1;64184:73;;;::::0;-1:-1:-1;;;64184:73:0;;14426:2:1;64184:73:0::1;::::0;::::1;14408:21:1::0;14465:2;14445:18;;;14438:30;14504:34;14484:18;;;14477:62;-1:-1:-1;;;14555:18:1;;;14548:36;14601:19;;64184:73:0::1;14224:402:1::0;64184:73:0::1;64268:28;64287:8;64268:18;:28::i;:::-;64103:201:::0;:::o;38081:305::-;38183:4;-1:-1:-1;;;;;;38220:40:0;;-1:-1:-1;;;38220:40:0;;:105;;-1:-1:-1;;;;;;;38277:48:0;;-1:-1:-1;;;38277:48:0;38220:105;:158;;;-1:-1:-1;;;;;;;;;;36621:40:0;;;38342:36;36512:157;50084:135;43854:4;43452:16;;;:7;:16;;;;;;-1:-1:-1;;;;;43452:16:0;50158:53;;;;-1:-1:-1;;;50158:53:0;;12498:2:1;50158:53:0;;;12480:21:1;12537:2;12517:18;;;12510:30;-1:-1:-1;;;12556:18:1;;;12549:54;12620:18;;50158:53:0;12296:348:1;49397:174:0;49472:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;49472:29:0;-1:-1:-1;;;;;49472:29:0;;;;;;;;:24;;49526:23;49472:24;49526:14;:23::i;:::-;-1:-1:-1;;;;;49517:46:0;;;;;;;;;;;49397:174;;:::o;44084:264::-;44177:4;44194:13;44210:23;44225:7;44210:14;:23::i;:::-;44194:39;;44263:5;-1:-1:-1;;;;;44252:16:0;:7;-1:-1:-1;;;;;44252:16:0;;:52;;;-1:-1:-1;;;;;;41111:25:0;;;41087:4;41111:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;44272:32;44252:87;;;;44332:7;-1:-1:-1;;;;;44308:31:0;:20;44320:7;44308:11;:20::i;:::-;-1:-1:-1;;;;;44308:31:0;;44252:87;44244:96;44084:264;-1:-1:-1;;;;44084:264:0:o;48049:1229::-;48174:4;-1:-1:-1;;;;;48147:31:0;:23;48162:7;48147:14;:23::i;:::-;-1:-1:-1;;;;;48147:31:0;;48139:81;;;;-1:-1:-1;;;48139:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;48239:16:0;;48231:65;;;;-1:-1:-1;;;48231:65:0;;15239:2:1;48231:65:0;;;15221:21:1;15278:2;15258:18;;;15251:30;15317:34;15297:18;;;15290:62;-1:-1:-1;;;15368:18:1;;;15361:34;15412:19;;48231:65:0;15037:400:1;48231:65:0;48309:42;48330:4;48336:2;48340:7;48349:1;48309:20;:42::i;:::-;48481:4;-1:-1:-1;;;;;48454:31:0;:23;48469:7;48454:14;:23::i;:::-;-1:-1:-1;;;;;48454:31:0;;48446:81;;;;-1:-1:-1;;;48446:81:0;;;;;;;:::i;:::-;48599:24;;;;:15;:24;;;;;;;;48592:31;;-1:-1:-1;;;;;;48592:31:0;;;;;;-1:-1:-1;;;;;49075:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;49075:20:0;;;49110:13;;;;;;;;;:18;;48592:31;49110:18;;;49150:16;;;:7;:16;;;;;;:21;;;;;;;;;;49189:27;;48615:7;;49189:27;;;40109:346;40039:416;;:::o;44690:110::-;44766:26;44776:2;44780:7;44766:26;;;;;;;;;;;;:9;:26::i;63369:132::-;63277:6;;-1:-1:-1;;;;;63277:6:0;18195:10;63433:23;63425:68;;;;-1:-1:-1;;;63425:68:0;;15644:2:1;63425:68:0;;;15626:21:1;;;15663:18;;;15656:30;15722:34;15702:18;;;15695:62;15774:18;;63425:68:0;15442:356:1;64464:191:0;64557:6;;;-1:-1:-1;;;;;64574:17:0;;;-1:-1:-1;;;;;;64574:17:0;;;;;;;64607:40;;64557:6;;;64574:17;64557:6;;64607:40;;64538:16;;64607:40;64527:128;64464:191;:::o;49714:281::-;49835:8;-1:-1:-1;;;;;49826:17:0;:5;-1:-1:-1;;;;;49826:17:0;;49818:55;;;;-1:-1:-1;;;49818:55:0;;16005:2:1;49818:55:0;;;15987:21:1;16044:2;16024:18;;;16017:30;16083:27;16063:18;;;16056:55;16128:18;;49818:55:0;15803:349:1;49818:55:0;-1:-1:-1;;;;;49884:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;49884:46:0;;;;;;;;;;49946:41;;540::1;;;49946::0;;513:18:1;49946:41:0;;;;;;;49714:281;;;:::o;42975:270::-;43088:28;43098:4;43104:2;43108:7;43088:9;:28::i;:::-;43135:47;43158:4;43164:2;43168:7;43177:4;43135:22;:47::i;:::-;43127:110;;;;-1:-1:-1;;;43127:110:0;;;;;;;:::i;33247:716::-;33303:13;33354:14;33371:17;33382:5;33371:10;:17::i;:::-;33391:1;33371:21;33354:38;;33407:20;33441:6;33430:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33430:18:0;-1:-1:-1;33407:41:0;-1:-1:-1;33572:28:0;;;33588:2;33572:28;33629:288;-1:-1:-1;;33661:5:0;-1:-1:-1;;;33798:2:0;33787:14;;33782:30;33661:5;33769:44;33859:2;33850:11;;;-1:-1:-1;33880:21:0;33629:288;33880:21;-1:-1:-1;33938:6:0;33247:716;-1:-1:-1;;;33247:716:0:o;85615:340::-;85800:10;-1:-1:-1;;;;;85800:18:0;;;;:48;;-1:-1:-1;85837:10:0;85822:26;;;;:14;:26;;;;;;;;85800:48;85792:81;;;;-1:-1:-1;;;85792:81:0;;16910:2:1;85792:81:0;;;16892:21:1;16949:2;16929:18;;;16922:30;-1:-1:-1;;;16968:18:1;;;16961:50;17028:18;;85792:81:0;16708:344:1;85792:81:0;85886:61;85913:4;85919:2;85923:12;85937:9;85886:26;:61::i;45027:285::-;45122:18;45128:2;45132:7;45122:5;:18::i;:::-;45173:53;45204:1;45208:2;45212:7;45221:4;45173:22;:53::i;:::-;45151:153;;;;-1:-1:-1;;;45151:153:0;;;;;;;:::i;50783:853::-;50937:4;-1:-1:-1;;;;;50958:13:0;;9572:19;:23;50954:675;;50994:71;;-1:-1:-1;;;50994:71:0;;-1:-1:-1;;;;;50994:36:0;;;;;:71;;18195:10;;51045:4;;51051:7;;51060:4;;50994:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50994:71:0;;;;;;;;-1:-1:-1;;50994:71:0;;;;;;;;;;;;:::i;:::-;;;50990:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51235:6;:13;51252:1;51235:18;51231:328;;51278:60;;-1:-1:-1;;;51278:60:0;;;;;;;:::i;51231:328::-;51509:6;51503:13;51494:6;51490:2;51486:15;51479:38;50990:584;-1:-1:-1;;;;;;51116:51:0;-1:-1:-1;;;51116:51:0;;-1:-1:-1;51109:58:0;;50954:675;-1:-1:-1;51613:4:0;50783:853;;;;;;:::o;28744:948::-;28797:7;;-1:-1:-1;;;28875:17:0;;28871:106;;-1:-1:-1;;;28913:17:0;;;-1:-1:-1;28959:2:0;28949:12;28871:106;29004:8;28995:5;:17;28991:106;;29042:8;29033:17;;;-1:-1:-1;29079:2:0;29069:12;28991:106;29124:8;29115:5;:17;29111:106;;29162:8;29153:17;;;-1:-1:-1;29199:2:0;29189:12;29111:106;29244:7;29235:5;:16;29231:103;;29281:7;29272:16;;;-1:-1:-1;29317:1:0;29307:11;29231:103;29361:7;29352:5;:16;29348:103;;29398:7;29389:16;;;-1:-1:-1;29434:1:0;29424:11;29348:103;29478:7;29469:5;:16;29465:103;;29515:7;29506:16;;;-1:-1:-1;29551:1:0;29541:11;29465:103;29595:7;29586:5;:16;29582:68;;29633:1;29623:11;29678:6;28744:948;-1:-1:-1;;28744:948:0:o;57173:915::-;57440:1;57428:9;:13;57424:222;;;57571:63;;-1:-1:-1;;;57571:63:0;;18007:2:1;57571:63:0;;;17989:21:1;18046:2;18026:18;;;18019:30;18085:34;18065:18;;;18058:62;-1:-1:-1;;;18136:18:1;;;18129:51;18197:19;;57571:63:0;17805:417:1;57424:222:0;57676:12;-1:-1:-1;;;;;57705:18:0;;57701:187;;57740:40;57772:7;58915:10;:17;;58888:24;;;;:15;:24;;;;;:44;;;58943:24;;;;;;;;;;;;58811:164;57740:40;57701:187;;;57810:2;-1:-1:-1;;;;;57802:10:0;:4;-1:-1:-1;;;;;57802:10:0;;57798:90;;57829:47;57862:4;57868:7;57829:32;:47::i;:::-;-1:-1:-1;;;;;57902:16:0;;57898:183;;57935:45;57972:7;57935:36;:45::i;:::-;57898:183;;;58008:4;-1:-1:-1;;;;;58002:10:0;:2;-1:-1:-1;;;;;58002:10:0;;57998:83;;58029:40;58057:2;58061:7;58029:27;:40::i;:::-;57339:749;57173:915;;;;:::o;45648:942::-;-1:-1:-1;;;;;45728:16:0;;45720:61;;;;-1:-1:-1;;;45720:61:0;;18429:2:1;45720:61:0;;;18411:21:1;;;18448:18;;;18441:30;18507:34;18487:18;;;18480:62;18559:18;;45720:61:0;18227:356:1;45720:61:0;43854:4;43452:16;;;:7;:16;;;;;;-1:-1:-1;;;;;43452:16:0;43878:31;45792:58;;;;-1:-1:-1;;;45792:58:0;;18790:2:1;45792:58:0;;;18772:21:1;18829:2;18809:18;;;18802:30;18868;18848:18;;;18841:58;18916:18;;45792:58:0;18588:352:1;45792:58:0;45863:48;45892:1;45896:2;45900:7;45909:1;45863:20;:48::i;:::-;43854:4;43452:16;;;:7;:16;;;;;;-1:-1:-1;;;;;43452:16:0;43878:31;46001:58;;;;-1:-1:-1;;;46001:58:0;;18790:2:1;46001:58:0;;;18772:21:1;18829:2;18809:18;;;18802:30;18868;18848:18;;;18841:58;18916:18;;46001:58:0;18588:352:1;46001:58:0;-1:-1:-1;;;;;46408:13:0;;;;;;:9;:13;;;;;;;;:18;;46425:1;46408:18;;;46450:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;46450:21:0;;;;;46489:33;46458:7;;46408:13;;46489:33;;46408:13;;46489:33;85963:269;;:::o;59602:988::-;59868:22;59918:1;59893:22;59910:4;59893:16;:22::i;:::-;:26;;;;:::i;:::-;59930:18;59951:26;;;:17;:26;;;;;;59868:51;;-1:-1:-1;60084:28:0;;;60080:328;;-1:-1:-1;;;;;60151:18:0;;60129:19;60151:18;;;:12;:18;;;;;;;;:34;;;;;;;;;60202:30;;;;;;:44;;;60319:30;;:17;:30;;;;;:43;;;60080:328;-1:-1:-1;60504:26:0;;;;:17;:26;;;;;;;;60497:33;;;-1:-1:-1;;;;;60548:18:0;;;;;:12;:18;;;;;:34;;;;;;;60541:41;59602:988::o;60885:1079::-;61163:10;:17;61138:22;;61163:21;;61183:1;;61163:21;:::i;:::-;61195:18;61216:24;;;:15;:24;;;;;;61589:10;:26;;61138:46;;-1:-1:-1;61216:24:0;;61138:46;;61589:26;;;;;;:::i;:::-;;;;;;;;;61567:48;;61653:11;61628:10;61639;61628:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;61733:28;;;:15;:28;;;;;;;:41;;;61905:24;;;;;61898:31;61940:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;60956:1008;;;60885:1079;:::o;58389:221::-;58474:14;58491:20;58508:2;58491:16;:20::i;:::-;-1:-1:-1;;;;;58522:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;58567:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;58389:221:0:o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;:::-;384:5;150:245;-1:-1:-1;;;150:245:1:o;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2178:186::-;2237:6;2290:2;2278:9;2269:7;2265:23;2261:32;2258:52;;;2306:1;2303;2296:12;2258:52;2329:29;2348:9;2329:29;:::i;2551:328::-;2628:6;2636;2644;2697:2;2685:9;2676:7;2672:23;2668:32;2665:52;;;2713:1;2710;2703:12;2665:52;2736:29;2755:9;2736:29;:::i;:::-;2726:39;;2784:38;2818:2;2807:9;2803:18;2784:38;:::i;:::-;2774:48;;2869:2;2858:9;2854:18;2841:32;2831:42;;2551:328;;;;;:::o;2884:127::-;2945:10;2940:3;2936:20;2933:1;2926:31;2976:4;2973:1;2966:15;3000:4;2997:1;2990:15;3016:275;3087:2;3081:9;3152:2;3133:13;;-1:-1:-1;;3129:27:1;3117:40;;3187:18;3172:34;;3208:22;;;3169:62;3166:88;;;3234:18;;:::i;:::-;3270:2;3263:22;3016:275;;-1:-1:-1;3016:275:1:o;3296:407::-;3361:5;3395:18;3387:6;3384:30;3381:56;;;3417:18;;:::i;:::-;3455:57;3500:2;3479:15;;-1:-1:-1;;3475:29:1;3506:4;3471:40;3455:57;:::i;:::-;3446:66;;3535:6;3528:5;3521:21;3575:3;3566:6;3561:3;3557:16;3554:25;3551:45;;;3592:1;3589;3582:12;3551:45;3641:6;3636:3;3629:4;3622:5;3618:16;3605:43;3695:1;3688:4;3679:6;3672:5;3668:18;3664:29;3657:40;3296:407;;;;;:::o;3708:451::-;3777:6;3830:2;3818:9;3809:7;3805:23;3801:32;3798:52;;;3846:1;3843;3836:12;3798:52;3886:9;3873:23;3919:18;3911:6;3908:30;3905:50;;;3951:1;3948;3941:12;3905:50;3974:22;;4027:4;4019:13;;4015:27;-1:-1:-1;4005:55:1;;4056:1;4053;4046:12;4005:55;4079:74;4145:7;4140:2;4127:16;4122:2;4118;4114:11;4079:74;:::i;4164:160::-;4229:20;;4285:13;;4278:21;4268:32;;4258:60;;4314:1;4311;4304:12;4329:1022;4419:6;4427;4480:2;4468:9;4459:7;4455:23;4451:32;4448:52;;;4496:1;4493;4486:12;4448:52;4536:9;4523:23;4565:18;4606:2;4598:6;4595:14;4592:34;;;4622:1;4619;4612:12;4592:34;4660:6;4649:9;4645:22;4635:32;;4705:7;4698:4;4694:2;4690:13;4686:27;4676:55;;4727:1;4724;4717:12;4676:55;4763:2;4750:16;4785:4;4808:2;4804;4801:10;4798:36;;;4814:18;;:::i;:::-;4860:2;4857:1;4853:10;4843:20;;4883:28;4907:2;4903;4899:11;4883:28;:::i;:::-;4945:15;;;5015:11;;;5011:20;;;4976:12;;;;5043:19;;;5040:39;;;5075:1;5072;5065:12;5040:39;5099:11;;;;5119:148;5135:6;5130:3;5127:15;5119:148;;;5201:23;5220:3;5201:23;:::i;:::-;5189:36;;5152:12;;;;5245;;;;5119:148;;;5286:5;-1:-1:-1;5310:35:1;;-1:-1:-1;5326:18:1;;;5310:35;:::i;:::-;5300:45;;;;;;4329:1022;;;;;:::o;5356:254::-;5421:6;5429;5482:2;5470:9;5461:7;5457:23;5453:32;5450:52;;;5498:1;5495;5488:12;5450:52;5521:29;5540:9;5521:29;:::i;:::-;5511:39;;5569:35;5600:2;5589:9;5585:18;5569:35;:::i;:::-;5559:45;;5356:254;;;;;:::o;5615:667::-;5710:6;5718;5726;5734;5787:3;5775:9;5766:7;5762:23;5758:33;5755:53;;;5804:1;5801;5794:12;5755:53;5827:29;5846:9;5827:29;:::i;:::-;5817:39;;5875:38;5909:2;5898:9;5894:18;5875:38;:::i;:::-;5865:48;;5960:2;5949:9;5945:18;5932:32;5922:42;;6015:2;6004:9;6000:18;5987:32;6042:18;6034:6;6031:30;6028:50;;;6074:1;6071;6064:12;6028:50;6097:22;;6150:4;6142:13;;6138:27;-1:-1:-1;6128:55:1;;6179:1;6176;6169:12;6128:55;6202:74;6268:7;6263:2;6250:16;6245:2;6241;6237:11;6202:74;:::i;:::-;6192:84;;;5615:667;;;;;;;:::o;6287:260::-;6355:6;6363;6416:2;6404:9;6395:7;6391:23;6387:32;6384:52;;;6432:1;6429;6422:12;6384:52;6455:29;6474:9;6455:29;:::i;:::-;6445:39;;6503:38;6537:2;6526:9;6522:18;6503:38;:::i;6552:380::-;6631:1;6627:12;;;;6674;;;6695:61;;6749:4;6741:6;6737:17;6727:27;;6695:61;6802:2;6794:6;6791:14;6771:18;6768:38;6765:161;;6848:10;6843:3;6839:20;6836:1;6829:31;6883:4;6880:1;6873:15;6911:4;6908:1;6901:15;6765:161;;6552:380;;;:::o;7769:409::-;7971:2;7953:21;;;8010:2;7990:18;;;7983:30;8049:34;8044:2;8029:18;;8022:62;-1:-1:-1;;;8115:2:1;8100:18;;8093:43;8168:3;8153:19;;7769:409::o;9285:127::-;9346:10;9341:3;9337:20;9334:1;9327:31;9377:4;9374:1;9367:15;9401:4;9398:1;9391:15;9417:125;9482:9;;;9503:10;;;9500:36;;;9516:18;;:::i;9960:127::-;10021:10;10016:3;10012:20;10009:1;10002:31;10052:4;10049:1;10042:15;10076:4;10073:1;10066:15;10218:545;10320:2;10315:3;10312:11;10309:448;;;10356:1;10381:5;10377:2;10370:17;10426:4;10422:2;10412:19;10496:2;10484:10;10480:19;10477:1;10473:27;10467:4;10463:38;10532:4;10520:10;10517:20;10514:47;;;-1:-1:-1;10555:4:1;10514:47;10610:2;10605:3;10601:12;10598:1;10594:20;10588:4;10584:31;10574:41;;10665:82;10683:2;10676:5;10673:13;10665:82;;;10728:17;;;10709:1;10698:13;10665:82;;;10669:3;;;10218:545;;;:::o;10939:1352::-;11065:3;11059:10;11092:18;11084:6;11081:30;11078:56;;;11114:18;;:::i;:::-;11143:97;11233:6;11193:38;11225:4;11219:11;11193:38;:::i;:::-;11187:4;11143:97;:::i;:::-;11295:4;;11359:2;11348:14;;11376:1;11371:663;;;;12078:1;12095:6;12092:89;;;-1:-1:-1;12147:19:1;;;12141:26;12092:89;-1:-1:-1;;10896:1:1;10892:11;;;10888:24;10884:29;10874:40;10920:1;10916:11;;;10871:57;12194:81;;11341:944;;11371:663;10165:1;10158:14;;;10202:4;10189:18;;-1:-1:-1;;11407:20:1;;;11525:236;11539:7;11536:1;11533:14;11525:236;;;11628:19;;;11622:26;11607:42;;11720:27;;;;11688:1;11676:14;;;;11555:19;;11525:236;;;11529:3;11789:6;11780:7;11777:19;11774:201;;;11850:19;;;11844:26;-1:-1:-1;;11933:1:1;11929:14;;;11945:3;11925:24;11921:37;11917:42;11902:58;11887:74;;11774:201;-1:-1:-1;;;;;12021:1:1;12005:14;;;12001:22;11988:36;;-1:-1:-1;10939:1352:1:o;12649:135::-;12688:3;12709:17;;;12706:43;;12729:18;;:::i;:::-;-1:-1:-1;12776:1:1;12765:13;;12649:135::o;13199:1020::-;13375:3;13404:1;13437:6;13431:13;13467:36;13493:9;13467:36;:::i;:::-;13522:1;13539:18;;;13566:133;;;;13713:1;13708:356;;;;13532:532;;13566:133;-1:-1:-1;;13599:24:1;;13587:37;;13672:14;;13665:22;13653:35;;13644:45;;;-1:-1:-1;13566:133:1;;13708:356;13739:6;13736:1;13729:17;13769:4;13814:2;13811:1;13801:16;13839:1;13853:165;13867:6;13864:1;13861:13;13853:165;;;13945:14;;13932:11;;;13925:35;13988:16;;;;13882:10;;13853:165;;;13857:3;;;14047:6;14042:3;14038:16;14031:23;;13532:532;;;;;14095:6;14089:13;14111:68;14170:8;14165:3;14158:4;14150:6;14146:17;14111:68;:::i;:::-;14195:18;;13199:1020;-1:-1:-1;;;;13199:1020:1:o;14631:401::-;14833:2;14815:21;;;14872:2;14852:18;;;14845:30;14911:34;14906:2;14891:18;;14884:62;-1:-1:-1;;;14977:2:1;14962:18;;14955:35;15022:3;15007:19;;14631:401::o;16157:414::-;16359:2;16341:21;;;16398:2;16378:18;;;16371:30;16437:34;16432:2;16417:18;;16410:62;-1:-1:-1;;;16503:2:1;16488:18;;16481:48;16561:3;16546:19;;16157:414::o;17057:489::-;-1:-1:-1;;;;;17326:15:1;;;17308:34;;17378:15;;17373:2;17358:18;;17351:43;17425:2;17410:18;;17403:34;;;17473:3;17468:2;17453:18;;17446:31;;;17251:4;;17494:46;;17520:19;;17512:6;17494:46;:::i;:::-;17486:54;17057:489;-1:-1:-1;;;;;;17057:489:1:o;17551:249::-;17620:6;17673:2;17661:9;17652:7;17648:23;17644:32;17641:52;;;17689:1;17686;17679:12;17641:52;17721:9;17715:16;17740:30;17764:5;17740:30;:::i;18945:128::-;19012:9;;;19033:11;;;19030:37;;;19047:18;;:::i;19078:127::-;19139:10;19134:3;19130:20;19127:1;19120:31;19170:4;19167:1;19160:15;19194:4;19191:1;19184:15

Swarm Source

ipfs://ca626763e5f920fe4660bf8e3397d1c3ce5bf40b50f6dbdf13f99e920306aa55
[ 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.