MATIC Price: $0.73169 (+0.82%)
Gas: 30 GWei
 

Overview

Max Total Supply

1,509 NMMGS

Holders

642

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
4 NMMGS
0xBDe71e8Fe0f7497FE19e38737Cfe958CB2212c1f
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Namomigos is a 24 x 24 pixel style NFT Collection, with a total of 9,981 unique pieces, 153 traits(including 25 1 of 1s).

Contract Source Code Verified (Exact Match)

Contract Name:
Namomigos

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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 2 of 13 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

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

File 3 of 13 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.20;

import {IERC2981} from "../../interfaces/IERC2981.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";

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

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

    /**
     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);

    /**
     * @dev The default royalty receiver is invalid.
     */
    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);

    /**
     * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);

    /**
     * @dev The royalty receiver for `tokenId` is invalid.
     */
    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));
        }

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));
        }

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

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

File 4 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 5 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./IERC165.sol";

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

File 6 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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 7 of 13 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    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.
     */
    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.
     */
    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.
     */
    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.
     */
    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 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 towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (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 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                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.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 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.

            uint256 twos = denominator & (0 - denominator);
            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 (unsignedRoundsUp(rounding) && 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
     * towards zero.
     *
     * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 8 of 13 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @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 9 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

File 10 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @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), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(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) {
        uint256 localValue = value;
        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] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        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 bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 11 of 13 : namomigos.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

/*
                           _
                        _ooOoo_
                       o8888888o
                       88" . "88
                       (| -_- |)
                       O\  =  /O
                    ____/`---'\____
                  .'  \\|     |//  `.
                 /  \\|||  :  |||//  \
                /  _||||| -:- |||||_  \
                |   | \\\  -  /'| |   |
                | \_|  `\`---'//  |_/ |
                \  .-\__ `-. -'__/-.  /
              ___`. .'  /--.--\  `. .'___
           ."" '<  `.___\_<|>_/___.' _> \"".
          | | :  `- \`. ;`. _/; .'/ /  .' ; |
          \  \ `-.   \_\_`. _.'_/_/  -' _.' /
===========`-.`___`-.__\ \___  /__.-'_.'_.-'================
                        `=--=-'                    hjw
*/

// IMPORT
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

// CONTRACT
contract Namomigos is ERC721A, Ownable, ReentrancyGuard {
    using Strings for uint256;

    // VARS
    uint256 public plSupply = 9981;
    uint256 public plPrice = 1.99 ether;
    uint256 public maxperWallat = 199;

    bool public isRevealed = false;
    bool public pause = true;

    string private baseURL = "";
    string public hiddenMetadataUrl;

    uint96 internal royaltyFraction;
    address private royaltyReceiver;

    // CONSTRUCTOR
    constructor(address _royaltyReceiver, uint96 _royaltyFraction, address initialOwner, string memory _hiddenMetadataUri) 
        ERC721A("Namomigos", "NMMGS") Ownable(initialOwner) {
        _safeMint(msg.sender, 1); 
        _setDefaultRoyalty(_royaltyReceiver, _royaltyFraction);
        hiddenMetadataUrl = _hiddenMetadataUri;
    }

    // INTERNAL
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURL;
    }

    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    function _setDefaultRoyalty(address _royaltyReceiver, uint96 _royaltyFraction) internal {
        royaltyReceiver = _royaltyReceiver;
        royaltyFraction = _royaltyFraction;
    }

    function royaltyInfo(uint256, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) {
        uint256 _royaltyAmount = (_salePrice * royaltyFraction) / 10000; // 假设 royaltyFraction 是基于 10000 的百分比
        return (royaltyReceiver, _royaltyAmount);
    }

    // EXTERNAL & PUBLIC
    function setBaseUri(string memory _baseURL) public onlyOwner {
        baseURL = _baseURL;
    }

    function reveal(bool _state) external onlyOwner {
        isRevealed = _state;
    }

    function setnewPrice(uint256 _newPrice) public onlyOwner {
        plPrice = _newPrice;
    }

    function setMaxPerWallat(uint _newMax) public onlyOwner {
        maxperWallat = _newMax;
    }

    function setPause(bool _state) public onlyOwner {
        pause = _state;
    }

    function withdraw() external onlyOwner {
        (bool success, ) = payable(owner()).call{value: address(this).balance}("");
        require(success);
    }

    // Token URI
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "That token doesn't exist");
        if (isRevealed == false) {
            return hiddenMetadataUrl;
        }
        return bytes(_baseURI()).length > 0 
            ? string(abi.encodePacked(_baseURI(), tokenId.toString(), ".json"))
            : "";
    }

    // AIRDROP
    function SingleAirdrop(address _receiver, uint256 _amount) public onlyOwner {
        _safeMint(_receiver, _amount);
    }

    function BatchAirdrop(address[] calldata receivers, uint256[] calldata _amounts) external onlyOwner {
        require(receivers.length == _amounts.length, "Array length does not match!");
        for (uint256 i = 0; i < receivers.length; ++i) {
            _safeMint(receivers[i], _amounts[i]);
        }
    }

    // MINT
    function publicMint(uint256 mintAmount) external payable mintChecks(mintAmount) {
        require(_totalMinted() + mintAmount <= plSupply, "Exceeds maximum supply");
        _safeMint(msg.sender, mintAmount);
    }

    modifier mintChecks(uint256 mintAmount) {
        require(!pause, "Contract is paused");
        require(mintAmount <= maxperWallat, "Max per wallat exceeded");
        require(msg.value >= mintAmount * plPrice, "Insufficient funds");
        _;
    }

    // BURN
    function burn(uint256 tokenId) public {
        require(
            _msgSender() == ownerOf(tokenId),
            "Caller is not owner"
        );
        _burn(tokenId);
    }

    // WALLET OF OWNER
    function walletOfOwner(address _owner) public view returns (uint256[] memory) {
        uint256 ownerTokenCount = balanceOf(_owner);
        uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
        uint256 ownedTokenIndex = 0;
        uint256 currentTokenId = _startTokenId();

        while (ownedTokenIndex < ownerTokenCount) {
            TokenOwnership memory ownership = _ownershipOf(currentTokenId);
            
            if (ownership.addr == _owner && !ownership.burned) {
                ownedTokenIds[ownedTokenIndex] = currentTokenId;
                ownedTokenIndex++;
            }           
            currentTokenId++;
        }
        return ownedTokenIds;
    }

    // EVENT
    event ethReceived(address, uint256);

    receive() external payable {
        emit ethReceived(msg.sender, msg.value);
    }

    // INTERFACE OVERRIDE
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A) returns (bool) {
        return ERC721A.supportsInterface(interfaceId);
    }
}
// Author: Generated by Solidity Engineer (AI) from Namo Labs; ASCII art from https://www.asciiart.eu/

File 12 of 13 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 13 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom}
     * whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_royaltyReceiver","type":"address"},{"internalType":"uint96","name":"_royaltyFraction","type":"uint96"},{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"ethReceived","type":"event"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"BatchAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"SingleAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxperWallat","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURL","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMax","type":"uint256"}],"name":"setMaxPerWallat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setnewPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526126fd600a55671b9de674df070000600b5560c7600c556000600d60006101000a81548160ff0219169083151502179055506001600d60016101000a81548160ff02191690831515021790555060405180602001604052806000815250600e908162000071919062000a84565b503480156200007f57600080fd5b50604051620049f6380380620049f68339818101604052810190620000a5919062000d7d565b816040518060400160405280600981526020017f4e616d6f6d69676f7300000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f4e4d4d4753000000000000000000000000000000000000000000000000000000815250816002908162000123919062000a84565b50806003908162000135919062000a84565b50620001466200021e60201b60201c565b6000819055505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001c35760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620001ba919062000e1f565b60405180910390fd5b620001d4816200022760201b60201c565b506001600981905550620001f0336001620002ed60201b60201c565b6200020284846200031360201b60201c565b80600f908162000213919062000a84565b505050505062000f8d565b60006001905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200030f8282604051806020016040528060008152506200038960201b60201c565b5050565b816010600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601060006101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055505050565b6200039b83836200043a60201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b146200043557600080549050600083820390505b620003e460008683806001019450866200062160201b60201c565b6200041b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110620003c95781600054146200043257600080fd5b50505b505050565b600080549050600082036200047b576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200049060008483856200078260201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506200051f836200050160008660006200078860201b60201c565b6200051285620007b860201b60201c565b17620007c860201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114620005c257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905062000585565b5060008203620005fe576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506200061c6000848385620007f360201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026200064f620007f960201b60201c565b8786866040518563ffffffff1660e01b815260040162000673949392919062000eaa565b6020604051808303816000875af1925050508015620006b257506040513d601f19601f82011682018060405250810190620006af919062000f5b565b60015b6200072f573d8060008114620006e5576040519150601f19603f3d011682016040523d82523d6000602084013e620006ea565b606091505b50600081510362000727576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e8620007a78686846200080160201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200088c57607f821691505b602082108103620008a257620008a162000844565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200090c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620008cd565b620009188683620008cd565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620009656200095f620009598462000930565b6200093a565b62000930565b9050919050565b6000819050919050565b620009818362000944565b6200099962000990826200096c565b848454620008da565b825550505050565b600090565b620009b0620009a1565b620009bd81848462000976565b505050565b5b81811015620009e557620009d9600082620009a6565b600181019050620009c3565b5050565b601f82111562000a3457620009fe81620008a8565b62000a0984620008bd565b8101602085101562000a19578190505b62000a3162000a2885620008bd565b830182620009c2565b50505b505050565b600082821c905092915050565b600062000a596000198460080262000a39565b1980831691505092915050565b600062000a74838362000a46565b9150826002028217905092915050565b62000a8f826200080a565b67ffffffffffffffff81111562000aab5762000aaa62000815565b5b62000ab7825462000873565b62000ac4828285620009e9565b600060209050601f83116001811462000afc576000841562000ae7578287015190505b62000af3858262000a66565b86555062000b63565b601f19841662000b0c86620008a8565b60005b8281101562000b365784890151825560018201915060208501945060208101905062000b0f565b8683101562000b56578489015162000b52601f89168262000a46565b8355505b6001600288020188555050505b505050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000bac8262000b7f565b9050919050565b62000bbe8162000b9f565b811462000bca57600080fd5b50565b60008151905062000bde8162000bb3565b92915050565b60006bffffffffffffffffffffffff82169050919050565b62000c078162000be4565b811462000c1357600080fd5b50565b60008151905062000c278162000bfc565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b62000c538262000c37565b810181811067ffffffffffffffff8211171562000c755762000c7462000815565b5b80604052505050565b600062000c8a62000b6b565b905062000c98828262000c48565b919050565b600067ffffffffffffffff82111562000cbb5762000cba62000815565b5b62000cc68262000c37565b9050602081019050919050565b60005b8381101562000cf357808201518184015260208101905062000cd6565b60008484015250505050565b600062000d1662000d108462000c9d565b62000c7e565b90508281526020810184848401111562000d355762000d3462000c32565b5b62000d4284828562000cd3565b509392505050565b600082601f83011262000d625762000d6162000c2d565b5b815162000d7484826020860162000cff565b91505092915050565b6000806000806080858703121562000d9a5762000d9962000b75565b5b600062000daa8782880162000bcd565b945050602062000dbd8782880162000c16565b935050604062000dd08782880162000bcd565b925050606085015167ffffffffffffffff81111562000df45762000df362000b7a565b5b62000e028782880162000d4a565b91505092959194509250565b62000e198162000b9f565b82525050565b600060208201905062000e36600083018462000e0e565b92915050565b62000e478162000930565b82525050565b600081519050919050565b600082825260208201905092915050565b600062000e768262000e4d565b62000e82818562000e58565b935062000e9481856020860162000cd3565b62000e9f8162000c37565b840191505092915050565b600060808201905062000ec1600083018762000e0e565b62000ed0602083018662000e0e565b62000edf604083018562000e3c565b818103606083015262000ef3818462000e69565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b62000f358162000efe565b811462000f4157600080fd5b50565b60008151905062000f558162000f2a565b92915050565b60006020828403121562000f745762000f7362000b75565b5b600062000f848482850162000f44565b91505092915050565b613a598062000f9d6000396000f3fe6080604052600436106102085760003560e01c8063715018a611610118578063a22cb465116100a0578063c87b56dd1161006f578063c87b56dd14610741578063d00c82671461077e578063e16ee240146107a9578063e985e9c5146107d2578063f2fde38b1461080f57610248565b8063a22cb465146106aa578063b80571b6146106d3578063b88d4fde146106fc578063bedb86fb1461071857610248565b80639376ac02116100e75780639376ac02146105d75780639391a14014610602578063940cd05b1461062d57806395d89b4114610656578063a0bcfc7f1461068157610248565b8063715018a6146105415780638456cb59146105585780638da5cb5b14610583578063919b95a7146105ae57610248565b80632db115441161019b578063438b63001161016a578063438b63001461043657806349ab14b51461047357806354214f691461049c5780636352211e146104c757806370a082311461050457610248565b80632db11544146103be5780633ccfd60b146103da57806342842e0e146103f157806342966c681461040d57610248565b80631638fef0116101d75780631638fef01461030e57806318160ddd1461033957806323b872dd146103645780632a55205a1461038057610248565b806301ffc9a71461024d57806306fdde031461028a578063081812fc146102b5578063095ea7b3146102f257610248565b36610248577ffe2d73074d233633e644a6fb7186458fbf422add1c18d996efd14ffbece6f2b2333460405161023e9291906127fe565b60405180910390a1005b600080fd5b34801561025957600080fd5b50610274600480360381019061026f9190612893565b610838565b60405161028191906128db565b60405180910390f35b34801561029657600080fd5b5061029f61084a565b6040516102ac9190612986565b60405180910390f35b3480156102c157600080fd5b506102dc60048036038101906102d791906129d4565b6108dc565b6040516102e99190612a01565b60405180910390f35b61030c60048036038101906103079190612a48565b61095b565b005b34801561031a57600080fd5b50610323610a9f565b6040516103309190612986565b60405180910390f35b34801561034557600080fd5b5061034e610b2d565b60405161035b9190612a88565b60405180910390f35b61037e60048036038101906103799190612aa3565b610b44565b005b34801561038c57600080fd5b506103a760048036038101906103a29190612af6565b610e66565b6040516103b59291906127fe565b60405180910390f35b6103d860048036038101906103d391906129d4565b610ede565b005b3480156103e657600080fd5b506103ef611029565b005b61040b60048036038101906104069190612aa3565b6110b1565b005b34801561041957600080fd5b50610434600480360381019061042f91906129d4565b6110d1565b005b34801561044257600080fd5b5061045d60048036038101906104589190612b36565b61115a565b60405161046a9190612c21565b60405180910390f35b34801561047f57600080fd5b5061049a60048036038101906104959190612a48565b61126e565b005b3480156104a857600080fd5b506104b1611284565b6040516104be91906128db565b60405180910390f35b3480156104d357600080fd5b506104ee60048036038101906104e991906129d4565b611297565b6040516104fb9190612a01565b60405180910390f35b34801561051057600080fd5b5061052b60048036038101906105269190612b36565b6112a9565b6040516105389190612a88565b60405180910390f35b34801561054d57600080fd5b50610556611361565b005b34801561056457600080fd5b5061056d611375565b60405161057a91906128db565b60405180910390f35b34801561058f57600080fd5b50610598611388565b6040516105a59190612a01565b60405180910390f35b3480156105ba57600080fd5b506105d560048036038101906105d09190612cfe565b6113b2565b005b3480156105e357600080fd5b506105ec611472565b6040516105f99190612a88565b60405180910390f35b34801561060e57600080fd5b50610617611478565b6040516106249190612a88565b60405180910390f35b34801561063957600080fd5b50610654600480360381019061064f9190612dab565b61147e565b005b34801561066257600080fd5b5061066b6114a3565b6040516106789190612986565b60405180910390f35b34801561068d57600080fd5b506106a860048036038101906106a39190612f08565b611535565b005b3480156106b657600080fd5b506106d160048036038101906106cc9190612f51565b611550565b005b3480156106df57600080fd5b506106fa60048036038101906106f591906129d4565b61165b565b005b61071660048036038101906107119190613032565b61166d565b005b34801561072457600080fd5b5061073f600480360381019061073a9190612dab565b6116e0565b005b34801561074d57600080fd5b50610768600480360381019061076391906129d4565b611705565b6040516107759190612986565b60405180910390f35b34801561078a57600080fd5b5061079361185b565b6040516107a09190612a88565b60405180910390f35b3480156107b557600080fd5b506107d060048036038101906107cb91906129d4565b611861565b005b3480156107de57600080fd5b506107f960048036038101906107f491906130b5565b611873565b60405161080691906128db565b60405180910390f35b34801561081b57600080fd5b5061083660048036038101906108319190612b36565b611907565b005b60006108438261198d565b9050919050565b60606002805461085990613124565b80601f016020809104026020016040519081016040528092919081815260200182805461088590613124565b80156108d25780601f106108a7576101008083540402835291602001916108d2565b820191906000526020600020905b8154815290600101906020018083116108b557829003601f168201915b5050505050905090565b60006108e782611a1f565b61091d576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061096682611297565b90508073ffffffffffffffffffffffffffffffffffffffff16610987611a7e565b73ffffffffffffffffffffffffffffffffffffffff16146109ea576109b3816109ae611a7e565b611873565b6109e9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600f8054610aac90613124565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad890613124565b8015610b255780601f10610afa57610100808354040283529160200191610b25565b820191906000526020600020905b815481529060010190602001808311610b0857829003601f168201915b505050505081565b6000610b37611a86565b6001546000540303905090565b6000610b4f82611a8f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bb6576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bc284611b5b565b91509150610bd88187610bd3611a7e565b611b82565b610c2457610bed86610be8611a7e565b611873565b610c23576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c8a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c978686866001611bc6565b8015610ca257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d7085610d4c888887611bcc565b7c020000000000000000000000000000000000000000000000000000000017611bf4565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610df65760006001850190506000600460008381526020019081526020016000205403610df4576000548114610df3578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e5e8686866001611c1f565b505050505050565b6000806000612710601060009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1685610ea29190613184565b610eac91906131f5565b90506010600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b80600d60019054906101000a900460ff1615610f2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2690613272565b60405180910390fd5b600c54811115610f74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6b906132de565b60405180910390fd5b600b5481610f829190613184565b341015610fc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbb9061334a565b60405180910390fd5b600a5482610fd0611c25565b610fda919061336a565b111561101b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611012906133ea565b60405180910390fd5b6110253383611c38565b5050565b611031611c56565b600061103b611388565b73ffffffffffffffffffffffffffffffffffffffff164760405161105e9061343b565b60006040518083038185875af1925050503d806000811461109b576040519150601f19603f3d011682016040523d82523d6000602084013e6110a0565b606091505b50509050806110ae57600080fd5b50565b6110cc8383836040518060200160405280600081525061166d565b505050565b6110da81611297565b73ffffffffffffffffffffffffffffffffffffffff166110f8611cdd565b73ffffffffffffffffffffffffffffffffffffffff161461114e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111459061349c565b60405180910390fd5b61115781611ce5565b50565b60606000611167836112a9565b905060008167ffffffffffffffff81111561118557611184612ddd565b5b6040519080825280602002602001820160405280156111b35781602001602082028036833780820191505090505b5090506000806111c1611a86565b90505b838210156112625760006111d782611cf3565b90508673ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614801561121a57508060400151155b1561124e5781848481518110611233576112326134bc565b5b602002602001018181525050828061124a906134eb565b9350505b8180611259906134eb565b925050506111c4565b82945050505050919050565b611276611c56565b6112808282611c38565b5050565b600d60009054906101000a900460ff1681565b60006112a282611a8f565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611310576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611369611c56565b6113736000611d13565b565b600d60019054906101000a900460ff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6113ba611c56565b818190508484905014611402576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f99061357f565b60405180910390fd5b60005b8484905081101561146b5761145a858583818110611426576114256134bc565b5b905060200201602081019061143b9190612b36565b84848481811061144e5761144d6134bc565b5b90506020020135611c38565b80611464906134eb565b9050611405565b5050505050565b600c5481565b600a5481565b611486611c56565b80600d60006101000a81548160ff02191690831515021790555050565b6060600380546114b290613124565b80601f01602080910402602001604051908101604052809291908181526020018280546114de90613124565b801561152b5780601f106115005761010080835404028352916020019161152b565b820191906000526020600020905b81548152906001019060200180831161150e57829003601f168201915b5050505050905090565b61153d611c56565b80600e908161154c919061374b565b5050565b806007600061155d611a7e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661160a611a7e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161164f91906128db565b60405180910390a35050565b611663611c56565b80600c8190555050565b611678848484610b44565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116da576116a384848484611dd9565b6116d9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6116e8611c56565b80600d60016101000a81548160ff02191690831515021790555050565b606061171082611a1f565b61174f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174690613869565b60405180910390fd5b60001515600d60009054906101000a900460ff161515036117fc57600f805461177790613124565b80601f01602080910402602001604051908101604052809291908181526020018280546117a390613124565b80156117f05780601f106117c5576101008083540402835291602001916117f0565b820191906000526020600020905b8154815290600101906020018083116117d357829003601f168201915b50505050509050611856565b6000611806611f29565b51116118215760405180602001604052806000815250611853565b611829611f29565b61183283611fbb565b604051602001611843929190613911565b6040516020818303038152906040525b90505b919050565b600b5481565b611869611c56565b80600b8190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61190f611c56565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119815760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016119789190612a01565b60405180910390fd5b61198a81611d13565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806119e857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611a185750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600081611a2a611a86565b11158015611a39575060005482105b8015611a77575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611a9e611a86565b11611b2457600054811015611b235760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611b21575b60008103611b17576004600083600190039350838152602001908152602001600020549050611aed565b8092505050611b56565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611be3868684612089565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000611c2f611a86565b60005403905090565b611c52828260405180602001604052806000815250612092565b5050565b611c5e611cdd565b73ffffffffffffffffffffffffffffffffffffffff16611c7c611388565b73ffffffffffffffffffffffffffffffffffffffff1614611cdb57611c9f611cdd565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611cd29190612a01565b60405180910390fd5b565b600033905090565b611cf081600061212f565b50565b611cfb612755565b611d0c611d0783611a8f565b612381565b9050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611dff611a7e565b8786866040518563ffffffff1660e01b8152600401611e219493929190613995565b6020604051808303816000875af1925050508015611e5d57506040513d601f19601f82011682018060405250810190611e5a91906139f6565b60015b611ed6573d8060008114611e8d576040519150601f19603f3d011682016040523d82523d6000602084013e611e92565b606091505b506000815103611ece576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600e8054611f3890613124565b80601f0160208091040260200160405190810160405280929190818152602001828054611f6490613124565b8015611fb15780601f10611f8657610100808354040283529160200191611fb1565b820191906000526020600020905b815481529060010190602001808311611f9457829003601f168201915b5050505050905090565b606060006001611fca84612437565b01905060008167ffffffffffffffff811115611fe957611fe8612ddd565b5b6040519080825280601f01601f19166020018201604052801561201b5781602001600182028036833780820191505090505b509050600082602001820190505b60011561207e578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612072576120716131c6565b5b04945060008503612029575b819350505050919050565b60009392505050565b61209c838361258a565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461212a57600080549050600083820390505b6120dc6000868380600101945086611dd9565b612112576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106120c957816000541461212757600080fd5b50505b505050565b600061213a83611a8f565b9050600081905060008061214d86611b5b565b9150915084156121b6576121698184612164611a7e565b611b82565b6121b55761217e83612179611a7e565b611873565b6121b4576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6121c4836000886001611bc6565b80156121cf57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506122778361223485600088611bcc565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717611bf4565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036122fd57600060018701905060006004600083815260200190815260200160002054036122fb5760005481146122fa578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612367836000886001611c1f565b600160008154809291906001019190505550505050505050565b612389612755565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612495577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161248b5761248a6131c6565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106124d2576d04ee2d6d415b85acef810000000083816124c8576124c76131c6565b5b0492506020810190505b662386f26fc10000831061250157662386f26fc1000083816124f7576124f66131c6565b5b0492506010810190505b6305f5e100831061252a576305f5e10083816125205761251f6131c6565b5b0492506008810190505b612710831061254f576127108381612545576125446131c6565b5b0492506004810190505b606483106125725760648381612568576125676131c6565b5b0492506002810190505b600a8310612581576001810190505b80915050919050565b600080549050600082036125ca576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125d76000848385611bc6565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061264e8361263f6000866000611bcc565b61264885612745565b17611bf4565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146126ef57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506126b4565b506000820361272a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506127406000848385611c1f565b505050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006127cf826127a4565b9050919050565b6127df816127c4565b82525050565b6000819050919050565b6127f8816127e5565b82525050565b600060408201905061281360008301856127d6565b61282060208301846127ef565b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6128708161283b565b811461287b57600080fd5b50565b60008135905061288d81612867565b92915050565b6000602082840312156128a9576128a8612831565b5b60006128b78482850161287e565b91505092915050565b60008115159050919050565b6128d5816128c0565b82525050565b60006020820190506128f060008301846128cc565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612930578082015181840152602081019050612915565b60008484015250505050565b6000601f19601f8301169050919050565b6000612958826128f6565b6129628185612901565b9350612972818560208601612912565b61297b8161293c565b840191505092915050565b600060208201905081810360008301526129a0818461294d565b905092915050565b6129b1816127e5565b81146129bc57600080fd5b50565b6000813590506129ce816129a8565b92915050565b6000602082840312156129ea576129e9612831565b5b60006129f8848285016129bf565b91505092915050565b6000602082019050612a1660008301846127d6565b92915050565b612a25816127c4565b8114612a3057600080fd5b50565b600081359050612a4281612a1c565b92915050565b60008060408385031215612a5f57612a5e612831565b5b6000612a6d85828601612a33565b9250506020612a7e858286016129bf565b9150509250929050565b6000602082019050612a9d60008301846127ef565b92915050565b600080600060608486031215612abc57612abb612831565b5b6000612aca86828701612a33565b9350506020612adb86828701612a33565b9250506040612aec868287016129bf565b9150509250925092565b60008060408385031215612b0d57612b0c612831565b5b6000612b1b858286016129bf565b9250506020612b2c858286016129bf565b9150509250929050565b600060208284031215612b4c57612b4b612831565b5b6000612b5a84828501612a33565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612b98816127e5565b82525050565b6000612baa8383612b8f565b60208301905092915050565b6000602082019050919050565b6000612bce82612b63565b612bd88185612b6e565b9350612be383612b7f565b8060005b83811015612c14578151612bfb8882612b9e565b9750612c0683612bb6565b925050600181019050612be7565b5085935050505092915050565b60006020820190508181036000830152612c3b8184612bc3565b905092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612c6857612c67612c43565b5b8235905067ffffffffffffffff811115612c8557612c84612c48565b5b602083019150836020820283011115612ca157612ca0612c4d565b5b9250929050565b60008083601f840112612cbe57612cbd612c43565b5b8235905067ffffffffffffffff811115612cdb57612cda612c48565b5b602083019150836020820283011115612cf757612cf6612c4d565b5b9250929050565b60008060008060408587031215612d1857612d17612831565b5b600085013567ffffffffffffffff811115612d3657612d35612836565b5b612d4287828801612c52565b9450945050602085013567ffffffffffffffff811115612d6557612d64612836565b5b612d7187828801612ca8565b925092505092959194509250565b612d88816128c0565b8114612d9357600080fd5b50565b600081359050612da581612d7f565b92915050565b600060208284031215612dc157612dc0612831565b5b6000612dcf84828501612d96565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612e158261293c565b810181811067ffffffffffffffff82111715612e3457612e33612ddd565b5b80604052505050565b6000612e47612827565b9050612e538282612e0c565b919050565b600067ffffffffffffffff821115612e7357612e72612ddd565b5b612e7c8261293c565b9050602081019050919050565b82818337600083830152505050565b6000612eab612ea684612e58565b612e3d565b905082815260208101848484011115612ec757612ec6612dd8565b5b612ed2848285612e89565b509392505050565b600082601f830112612eef57612eee612c43565b5b8135612eff848260208601612e98565b91505092915050565b600060208284031215612f1e57612f1d612831565b5b600082013567ffffffffffffffff811115612f3c57612f3b612836565b5b612f4884828501612eda565b91505092915050565b60008060408385031215612f6857612f67612831565b5b6000612f7685828601612a33565b9250506020612f8785828601612d96565b9150509250929050565b600067ffffffffffffffff821115612fac57612fab612ddd565b5b612fb58261293c565b9050602081019050919050565b6000612fd5612fd084612f91565b612e3d565b905082815260208101848484011115612ff157612ff0612dd8565b5b612ffc848285612e89565b509392505050565b600082601f83011261301957613018612c43565b5b8135613029848260208601612fc2565b91505092915050565b6000806000806080858703121561304c5761304b612831565b5b600061305a87828801612a33565b945050602061306b87828801612a33565b935050604061307c878288016129bf565b925050606085013567ffffffffffffffff81111561309d5761309c612836565b5b6130a987828801613004565b91505092959194509250565b600080604083850312156130cc576130cb612831565b5b60006130da85828601612a33565b92505060206130eb85828601612a33565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061313c57607f821691505b60208210810361314f5761314e6130f5565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061318f826127e5565b915061319a836127e5565b92508282026131a8816127e5565b915082820484148315176131bf576131be613155565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613200826127e5565b915061320b836127e5565b92508261321b5761321a6131c6565b5b828204905092915050565b7f436f6e7472616374206973207061757365640000000000000000000000000000600082015250565b600061325c601283612901565b915061326782613226565b602082019050919050565b6000602082019050818103600083015261328b8161324f565b9050919050565b7f4d6178207065722077616c6c6174206578636565646564000000000000000000600082015250565b60006132c8601783612901565b91506132d382613292565b602082019050919050565b600060208201905081810360008301526132f7816132bb565b9050919050565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b6000613334601283612901565b915061333f826132fe565b602082019050919050565b6000602082019050818103600083015261336381613327565b9050919050565b6000613375826127e5565b9150613380836127e5565b925082820190508082111561339857613397613155565b5b92915050565b7f45786365656473206d6178696d756d20737570706c7900000000000000000000600082015250565b60006133d4601683612901565b91506133df8261339e565b602082019050919050565b60006020820190508181036000830152613403816133c7565b9050919050565b600081905092915050565b50565b600061342560008361340a565b915061343082613415565b600082019050919050565b600061344682613418565b9150819050919050565b7f43616c6c6572206973206e6f74206f776e657200000000000000000000000000600082015250565b6000613486601383612901565b915061349182613450565b602082019050919050565b600060208201905081810360008301526134b581613479565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006134f6826127e5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361352857613527613155565b5b600182019050919050565b7f4172726179206c656e67746820646f6573206e6f74206d617463682100000000600082015250565b6000613569601c83612901565b915061357482613533565b602082019050919050565b600060208201905081810360008301526135988161355c565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026136017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826135c4565b61360b86836135c4565b95508019841693508086168417925050509392505050565b6000819050919050565b600061364861364361363e846127e5565b613623565b6127e5565b9050919050565b6000819050919050565b6136628361362d565b61367661366e8261364f565b8484546135d1565b825550505050565b600090565b61368b61367e565b613696818484613659565b505050565b5b818110156136ba576136af600082613683565b60018101905061369c565b5050565b601f8211156136ff576136d08161359f565b6136d9846135b4565b810160208510156136e8578190505b6136fc6136f4856135b4565b83018261369b565b50505b505050565b600082821c905092915050565b600061372260001984600802613704565b1980831691505092915050565b600061373b8383613711565b9150826002028217905092915050565b613754826128f6565b67ffffffffffffffff81111561376d5761376c612ddd565b5b6137778254613124565b6137828282856136be565b600060209050601f8311600181146137b557600084156137a3578287015190505b6137ad858261372f565b865550613815565b601f1984166137c38661359f565b60005b828110156137eb578489015182556001820191506020850194506020810190506137c6565b868310156138085784890151613804601f891682613711565b8355505b6001600288020188555050505b505050505050565b7f5468617420746f6b656e20646f65736e27742065786973740000000000000000600082015250565b6000613853601883612901565b915061385e8261381d565b602082019050919050565b6000602082019050818103600083015261388281613846565b9050919050565b600081905092915050565b600061389f826128f6565b6138a98185613889565b93506138b9818560208601612912565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006138fb600583613889565b9150613906826138c5565b600582019050919050565b600061391d8285613894565b91506139298284613894565b9150613934826138ee565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b600061396782613940565b613971818561394b565b9350613981818560208601612912565b61398a8161293c565b840191505092915050565b60006080820190506139aa60008301876127d6565b6139b760208301866127d6565b6139c460408301856127ef565b81810360608301526139d6818461395c565b905095945050505050565b6000815190506139f081612867565b92915050565b600060208284031215613a0c57613a0b612831565b5b6000613a1a848285016139e1565b9150509291505056fea2646970667358221220f673e01b38e73be546b8a46e03a3b009fcbf17f2a95519346464b60e5c0d2b0f64736f6c63430008140033000000000000000000000000764a0e048b454057d354e02276da08898e71f9ee00000000000000000000000000000000000000000000000000000000000002bc000000000000000000000000764a0e048b454057d354e02276da08898e71f9ee0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004f68747470733a2f2f697066732e696f2f697066732f516d5461796e685158447246423148647543474b4439366e596b347444475658346f6836575067756d6d416765562f68696464656e2e6a736f6e0000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102085760003560e01c8063715018a611610118578063a22cb465116100a0578063c87b56dd1161006f578063c87b56dd14610741578063d00c82671461077e578063e16ee240146107a9578063e985e9c5146107d2578063f2fde38b1461080f57610248565b8063a22cb465146106aa578063b80571b6146106d3578063b88d4fde146106fc578063bedb86fb1461071857610248565b80639376ac02116100e75780639376ac02146105d75780639391a14014610602578063940cd05b1461062d57806395d89b4114610656578063a0bcfc7f1461068157610248565b8063715018a6146105415780638456cb59146105585780638da5cb5b14610583578063919b95a7146105ae57610248565b80632db115441161019b578063438b63001161016a578063438b63001461043657806349ab14b51461047357806354214f691461049c5780636352211e146104c757806370a082311461050457610248565b80632db11544146103be5780633ccfd60b146103da57806342842e0e146103f157806342966c681461040d57610248565b80631638fef0116101d75780631638fef01461030e57806318160ddd1461033957806323b872dd146103645780632a55205a1461038057610248565b806301ffc9a71461024d57806306fdde031461028a578063081812fc146102b5578063095ea7b3146102f257610248565b36610248577ffe2d73074d233633e644a6fb7186458fbf422add1c18d996efd14ffbece6f2b2333460405161023e9291906127fe565b60405180910390a1005b600080fd5b34801561025957600080fd5b50610274600480360381019061026f9190612893565b610838565b60405161028191906128db565b60405180910390f35b34801561029657600080fd5b5061029f61084a565b6040516102ac9190612986565b60405180910390f35b3480156102c157600080fd5b506102dc60048036038101906102d791906129d4565b6108dc565b6040516102e99190612a01565b60405180910390f35b61030c60048036038101906103079190612a48565b61095b565b005b34801561031a57600080fd5b50610323610a9f565b6040516103309190612986565b60405180910390f35b34801561034557600080fd5b5061034e610b2d565b60405161035b9190612a88565b60405180910390f35b61037e60048036038101906103799190612aa3565b610b44565b005b34801561038c57600080fd5b506103a760048036038101906103a29190612af6565b610e66565b6040516103b59291906127fe565b60405180910390f35b6103d860048036038101906103d391906129d4565b610ede565b005b3480156103e657600080fd5b506103ef611029565b005b61040b60048036038101906104069190612aa3565b6110b1565b005b34801561041957600080fd5b50610434600480360381019061042f91906129d4565b6110d1565b005b34801561044257600080fd5b5061045d60048036038101906104589190612b36565b61115a565b60405161046a9190612c21565b60405180910390f35b34801561047f57600080fd5b5061049a60048036038101906104959190612a48565b61126e565b005b3480156104a857600080fd5b506104b1611284565b6040516104be91906128db565b60405180910390f35b3480156104d357600080fd5b506104ee60048036038101906104e991906129d4565b611297565b6040516104fb9190612a01565b60405180910390f35b34801561051057600080fd5b5061052b60048036038101906105269190612b36565b6112a9565b6040516105389190612a88565b60405180910390f35b34801561054d57600080fd5b50610556611361565b005b34801561056457600080fd5b5061056d611375565b60405161057a91906128db565b60405180910390f35b34801561058f57600080fd5b50610598611388565b6040516105a59190612a01565b60405180910390f35b3480156105ba57600080fd5b506105d560048036038101906105d09190612cfe565b6113b2565b005b3480156105e357600080fd5b506105ec611472565b6040516105f99190612a88565b60405180910390f35b34801561060e57600080fd5b50610617611478565b6040516106249190612a88565b60405180910390f35b34801561063957600080fd5b50610654600480360381019061064f9190612dab565b61147e565b005b34801561066257600080fd5b5061066b6114a3565b6040516106789190612986565b60405180910390f35b34801561068d57600080fd5b506106a860048036038101906106a39190612f08565b611535565b005b3480156106b657600080fd5b506106d160048036038101906106cc9190612f51565b611550565b005b3480156106df57600080fd5b506106fa60048036038101906106f591906129d4565b61165b565b005b61071660048036038101906107119190613032565b61166d565b005b34801561072457600080fd5b5061073f600480360381019061073a9190612dab565b6116e0565b005b34801561074d57600080fd5b50610768600480360381019061076391906129d4565b611705565b6040516107759190612986565b60405180910390f35b34801561078a57600080fd5b5061079361185b565b6040516107a09190612a88565b60405180910390f35b3480156107b557600080fd5b506107d060048036038101906107cb91906129d4565b611861565b005b3480156107de57600080fd5b506107f960048036038101906107f491906130b5565b611873565b60405161080691906128db565b60405180910390f35b34801561081b57600080fd5b5061083660048036038101906108319190612b36565b611907565b005b60006108438261198d565b9050919050565b60606002805461085990613124565b80601f016020809104026020016040519081016040528092919081815260200182805461088590613124565b80156108d25780601f106108a7576101008083540402835291602001916108d2565b820191906000526020600020905b8154815290600101906020018083116108b557829003601f168201915b5050505050905090565b60006108e782611a1f565b61091d576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061096682611297565b90508073ffffffffffffffffffffffffffffffffffffffff16610987611a7e565b73ffffffffffffffffffffffffffffffffffffffff16146109ea576109b3816109ae611a7e565b611873565b6109e9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600f8054610aac90613124565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad890613124565b8015610b255780601f10610afa57610100808354040283529160200191610b25565b820191906000526020600020905b815481529060010190602001808311610b0857829003601f168201915b505050505081565b6000610b37611a86565b6001546000540303905090565b6000610b4f82611a8f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bb6576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bc284611b5b565b91509150610bd88187610bd3611a7e565b611b82565b610c2457610bed86610be8611a7e565b611873565b610c23576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c8a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c978686866001611bc6565b8015610ca257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d7085610d4c888887611bcc565b7c020000000000000000000000000000000000000000000000000000000017611bf4565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610df65760006001850190506000600460008381526020019081526020016000205403610df4576000548114610df3578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e5e8686866001611c1f565b505050505050565b6000806000612710601060009054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1685610ea29190613184565b610eac91906131f5565b90506010600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b80600d60019054906101000a900460ff1615610f2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2690613272565b60405180910390fd5b600c54811115610f74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6b906132de565b60405180910390fd5b600b5481610f829190613184565b341015610fc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbb9061334a565b60405180910390fd5b600a5482610fd0611c25565b610fda919061336a565b111561101b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611012906133ea565b60405180910390fd5b6110253383611c38565b5050565b611031611c56565b600061103b611388565b73ffffffffffffffffffffffffffffffffffffffff164760405161105e9061343b565b60006040518083038185875af1925050503d806000811461109b576040519150601f19603f3d011682016040523d82523d6000602084013e6110a0565b606091505b50509050806110ae57600080fd5b50565b6110cc8383836040518060200160405280600081525061166d565b505050565b6110da81611297565b73ffffffffffffffffffffffffffffffffffffffff166110f8611cdd565b73ffffffffffffffffffffffffffffffffffffffff161461114e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111459061349c565b60405180910390fd5b61115781611ce5565b50565b60606000611167836112a9565b905060008167ffffffffffffffff81111561118557611184612ddd565b5b6040519080825280602002602001820160405280156111b35781602001602082028036833780820191505090505b5090506000806111c1611a86565b90505b838210156112625760006111d782611cf3565b90508673ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614801561121a57508060400151155b1561124e5781848481518110611233576112326134bc565b5b602002602001018181525050828061124a906134eb565b9350505b8180611259906134eb565b925050506111c4565b82945050505050919050565b611276611c56565b6112808282611c38565b5050565b600d60009054906101000a900460ff1681565b60006112a282611a8f565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611310576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611369611c56565b6113736000611d13565b565b600d60019054906101000a900460ff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6113ba611c56565b818190508484905014611402576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f99061357f565b60405180910390fd5b60005b8484905081101561146b5761145a858583818110611426576114256134bc565b5b905060200201602081019061143b9190612b36565b84848481811061144e5761144d6134bc565b5b90506020020135611c38565b80611464906134eb565b9050611405565b5050505050565b600c5481565b600a5481565b611486611c56565b80600d60006101000a81548160ff02191690831515021790555050565b6060600380546114b290613124565b80601f01602080910402602001604051908101604052809291908181526020018280546114de90613124565b801561152b5780601f106115005761010080835404028352916020019161152b565b820191906000526020600020905b81548152906001019060200180831161150e57829003601f168201915b5050505050905090565b61153d611c56565b80600e908161154c919061374b565b5050565b806007600061155d611a7e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661160a611a7e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161164f91906128db565b60405180910390a35050565b611663611c56565b80600c8190555050565b611678848484610b44565b60008373ffffffffffffffffffffffffffffffffffffffff163b146116da576116a384848484611dd9565b6116d9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6116e8611c56565b80600d60016101000a81548160ff02191690831515021790555050565b606061171082611a1f565b61174f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174690613869565b60405180910390fd5b60001515600d60009054906101000a900460ff161515036117fc57600f805461177790613124565b80601f01602080910402602001604051908101604052809291908181526020018280546117a390613124565b80156117f05780601f106117c5576101008083540402835291602001916117f0565b820191906000526020600020905b8154815290600101906020018083116117d357829003601f168201915b50505050509050611856565b6000611806611f29565b51116118215760405180602001604052806000815250611853565b611829611f29565b61183283611fbb565b604051602001611843929190613911565b6040516020818303038152906040525b90505b919050565b600b5481565b611869611c56565b80600b8190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61190f611c56565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119815760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016119789190612a01565b60405180910390fd5b61198a81611d13565b50565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806119e857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611a185750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600081611a2a611a86565b11158015611a39575060005482105b8015611a77575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b60008082905080611a9e611a86565b11611b2457600054811015611b235760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611b21575b60008103611b17576004600083600190039350838152602001908152602001600020549050611aed565b8092505050611b56565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611be3868684612089565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000611c2f611a86565b60005403905090565b611c52828260405180602001604052806000815250612092565b5050565b611c5e611cdd565b73ffffffffffffffffffffffffffffffffffffffff16611c7c611388565b73ffffffffffffffffffffffffffffffffffffffff1614611cdb57611c9f611cdd565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611cd29190612a01565b60405180910390fd5b565b600033905090565b611cf081600061212f565b50565b611cfb612755565b611d0c611d0783611a8f565b612381565b9050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611dff611a7e565b8786866040518563ffffffff1660e01b8152600401611e219493929190613995565b6020604051808303816000875af1925050508015611e5d57506040513d601f19601f82011682018060405250810190611e5a91906139f6565b60015b611ed6573d8060008114611e8d576040519150601f19603f3d011682016040523d82523d6000602084013e611e92565b606091505b506000815103611ece576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600e8054611f3890613124565b80601f0160208091040260200160405190810160405280929190818152602001828054611f6490613124565b8015611fb15780601f10611f8657610100808354040283529160200191611fb1565b820191906000526020600020905b815481529060010190602001808311611f9457829003601f168201915b5050505050905090565b606060006001611fca84612437565b01905060008167ffffffffffffffff811115611fe957611fe8612ddd565b5b6040519080825280601f01601f19166020018201604052801561201b5781602001600182028036833780820191505090505b509050600082602001820190505b60011561207e578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612072576120716131c6565b5b04945060008503612029575b819350505050919050565b60009392505050565b61209c838361258a565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461212a57600080549050600083820390505b6120dc6000868380600101945086611dd9565b612112576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106120c957816000541461212757600080fd5b50505b505050565b600061213a83611a8f565b9050600081905060008061214d86611b5b565b9150915084156121b6576121698184612164611a7e565b611b82565b6121b55761217e83612179611a7e565b611873565b6121b4576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6121c4836000886001611bc6565b80156121cf57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506122778361223485600088611bcc565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717611bf4565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036122fd57600060018701905060006004600083815260200190815260200160002054036122fb5760005481146122fa578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612367836000886001611c1f565b600160008154809291906001019190505550505050505050565b612389612755565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612495577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161248b5761248a6131c6565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106124d2576d04ee2d6d415b85acef810000000083816124c8576124c76131c6565b5b0492506020810190505b662386f26fc10000831061250157662386f26fc1000083816124f7576124f66131c6565b5b0492506010810190505b6305f5e100831061252a576305f5e10083816125205761251f6131c6565b5b0492506008810190505b612710831061254f576127108381612545576125446131c6565b5b0492506004810190505b606483106125725760648381612568576125676131c6565b5b0492506002810190505b600a8310612581576001810190505b80915050919050565b600080549050600082036125ca576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125d76000848385611bc6565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061264e8361263f6000866000611bcc565b61264885612745565b17611bf4565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146126ef57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506126b4565b506000820361272a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506127406000848385611c1f565b505050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006127cf826127a4565b9050919050565b6127df816127c4565b82525050565b6000819050919050565b6127f8816127e5565b82525050565b600060408201905061281360008301856127d6565b61282060208301846127ef565b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6128708161283b565b811461287b57600080fd5b50565b60008135905061288d81612867565b92915050565b6000602082840312156128a9576128a8612831565b5b60006128b78482850161287e565b91505092915050565b60008115159050919050565b6128d5816128c0565b82525050565b60006020820190506128f060008301846128cc565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612930578082015181840152602081019050612915565b60008484015250505050565b6000601f19601f8301169050919050565b6000612958826128f6565b6129628185612901565b9350612972818560208601612912565b61297b8161293c565b840191505092915050565b600060208201905081810360008301526129a0818461294d565b905092915050565b6129b1816127e5565b81146129bc57600080fd5b50565b6000813590506129ce816129a8565b92915050565b6000602082840312156129ea576129e9612831565b5b60006129f8848285016129bf565b91505092915050565b6000602082019050612a1660008301846127d6565b92915050565b612a25816127c4565b8114612a3057600080fd5b50565b600081359050612a4281612a1c565b92915050565b60008060408385031215612a5f57612a5e612831565b5b6000612a6d85828601612a33565b9250506020612a7e858286016129bf565b9150509250929050565b6000602082019050612a9d60008301846127ef565b92915050565b600080600060608486031215612abc57612abb612831565b5b6000612aca86828701612a33565b9350506020612adb86828701612a33565b9250506040612aec868287016129bf565b9150509250925092565b60008060408385031215612b0d57612b0c612831565b5b6000612b1b858286016129bf565b9250506020612b2c858286016129bf565b9150509250929050565b600060208284031215612b4c57612b4b612831565b5b6000612b5a84828501612a33565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612b98816127e5565b82525050565b6000612baa8383612b8f565b60208301905092915050565b6000602082019050919050565b6000612bce82612b63565b612bd88185612b6e565b9350612be383612b7f565b8060005b83811015612c14578151612bfb8882612b9e565b9750612c0683612bb6565b925050600181019050612be7565b5085935050505092915050565b60006020820190508181036000830152612c3b8184612bc3565b905092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612c6857612c67612c43565b5b8235905067ffffffffffffffff811115612c8557612c84612c48565b5b602083019150836020820283011115612ca157612ca0612c4d565b5b9250929050565b60008083601f840112612cbe57612cbd612c43565b5b8235905067ffffffffffffffff811115612cdb57612cda612c48565b5b602083019150836020820283011115612cf757612cf6612c4d565b5b9250929050565b60008060008060408587031215612d1857612d17612831565b5b600085013567ffffffffffffffff811115612d3657612d35612836565b5b612d4287828801612c52565b9450945050602085013567ffffffffffffffff811115612d6557612d64612836565b5b612d7187828801612ca8565b925092505092959194509250565b612d88816128c0565b8114612d9357600080fd5b50565b600081359050612da581612d7f565b92915050565b600060208284031215612dc157612dc0612831565b5b6000612dcf84828501612d96565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612e158261293c565b810181811067ffffffffffffffff82111715612e3457612e33612ddd565b5b80604052505050565b6000612e47612827565b9050612e538282612e0c565b919050565b600067ffffffffffffffff821115612e7357612e72612ddd565b5b612e7c8261293c565b9050602081019050919050565b82818337600083830152505050565b6000612eab612ea684612e58565b612e3d565b905082815260208101848484011115612ec757612ec6612dd8565b5b612ed2848285612e89565b509392505050565b600082601f830112612eef57612eee612c43565b5b8135612eff848260208601612e98565b91505092915050565b600060208284031215612f1e57612f1d612831565b5b600082013567ffffffffffffffff811115612f3c57612f3b612836565b5b612f4884828501612eda565b91505092915050565b60008060408385031215612f6857612f67612831565b5b6000612f7685828601612a33565b9250506020612f8785828601612d96565b9150509250929050565b600067ffffffffffffffff821115612fac57612fab612ddd565b5b612fb58261293c565b9050602081019050919050565b6000612fd5612fd084612f91565b612e3d565b905082815260208101848484011115612ff157612ff0612dd8565b5b612ffc848285612e89565b509392505050565b600082601f83011261301957613018612c43565b5b8135613029848260208601612fc2565b91505092915050565b6000806000806080858703121561304c5761304b612831565b5b600061305a87828801612a33565b945050602061306b87828801612a33565b935050604061307c878288016129bf565b925050606085013567ffffffffffffffff81111561309d5761309c612836565b5b6130a987828801613004565b91505092959194509250565b600080604083850312156130cc576130cb612831565b5b60006130da85828601612a33565b92505060206130eb85828601612a33565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061313c57607f821691505b60208210810361314f5761314e6130f5565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061318f826127e5565b915061319a836127e5565b92508282026131a8816127e5565b915082820484148315176131bf576131be613155565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613200826127e5565b915061320b836127e5565b92508261321b5761321a6131c6565b5b828204905092915050565b7f436f6e7472616374206973207061757365640000000000000000000000000000600082015250565b600061325c601283612901565b915061326782613226565b602082019050919050565b6000602082019050818103600083015261328b8161324f565b9050919050565b7f4d6178207065722077616c6c6174206578636565646564000000000000000000600082015250565b60006132c8601783612901565b91506132d382613292565b602082019050919050565b600060208201905081810360008301526132f7816132bb565b9050919050565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b6000613334601283612901565b915061333f826132fe565b602082019050919050565b6000602082019050818103600083015261336381613327565b9050919050565b6000613375826127e5565b9150613380836127e5565b925082820190508082111561339857613397613155565b5b92915050565b7f45786365656473206d6178696d756d20737570706c7900000000000000000000600082015250565b60006133d4601683612901565b91506133df8261339e565b602082019050919050565b60006020820190508181036000830152613403816133c7565b9050919050565b600081905092915050565b50565b600061342560008361340a565b915061343082613415565b600082019050919050565b600061344682613418565b9150819050919050565b7f43616c6c6572206973206e6f74206f776e657200000000000000000000000000600082015250565b6000613486601383612901565b915061349182613450565b602082019050919050565b600060208201905081810360008301526134b581613479565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006134f6826127e5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361352857613527613155565b5b600182019050919050565b7f4172726179206c656e67746820646f6573206e6f74206d617463682100000000600082015250565b6000613569601c83612901565b915061357482613533565b602082019050919050565b600060208201905081810360008301526135988161355c565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026136017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826135c4565b61360b86836135c4565b95508019841693508086168417925050509392505050565b6000819050919050565b600061364861364361363e846127e5565b613623565b6127e5565b9050919050565b6000819050919050565b6136628361362d565b61367661366e8261364f565b8484546135d1565b825550505050565b600090565b61368b61367e565b613696818484613659565b505050565b5b818110156136ba576136af600082613683565b60018101905061369c565b5050565b601f8211156136ff576136d08161359f565b6136d9846135b4565b810160208510156136e8578190505b6136fc6136f4856135b4565b83018261369b565b50505b505050565b600082821c905092915050565b600061372260001984600802613704565b1980831691505092915050565b600061373b8383613711565b9150826002028217905092915050565b613754826128f6565b67ffffffffffffffff81111561376d5761376c612ddd565b5b6137778254613124565b6137828282856136be565b600060209050601f8311600181146137b557600084156137a3578287015190505b6137ad858261372f565b865550613815565b601f1984166137c38661359f565b60005b828110156137eb578489015182556001820191506020850194506020810190506137c6565b868310156138085784890151613804601f891682613711565b8355505b6001600288020188555050505b505050505050565b7f5468617420746f6b656e20646f65736e27742065786973740000000000000000600082015250565b6000613853601883612901565b915061385e8261381d565b602082019050919050565b6000602082019050818103600083015261388281613846565b9050919050565b600081905092915050565b600061389f826128f6565b6138a98185613889565b93506138b9818560208601612912565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006138fb600583613889565b9150613906826138c5565b600582019050919050565b600061391d8285613894565b91506139298284613894565b9150613934826138ee565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b600061396782613940565b613971818561394b565b9350613981818560208601612912565b61398a8161293c565b840191505092915050565b60006080820190506139aa60008301876127d6565b6139b760208301866127d6565b6139c460408301856127ef565b81810360608301526139d6818461395c565b905095945050505050565b6000815190506139f081612867565b92915050565b600060208284031215613a0c57613a0b612831565b5b6000613a1a848285016139e1565b9150509291505056fea2646970667358221220f673e01b38e73be546b8a46e03a3b009fcbf17f2a95519346464b60e5c0d2b0f64736f6c63430008140033

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

000000000000000000000000764a0e048b454057d354e02276da08898e71f9ee00000000000000000000000000000000000000000000000000000000000002bc000000000000000000000000764a0e048b454057d354e02276da08898e71f9ee0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004f68747470733a2f2f697066732e696f2f697066732f516d5461796e685158447246423148647543474b4439366e596b347444475658346f6836575067756d6d416765562f68696464656e2e6a736f6e0000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _royaltyReceiver (address): 0x764A0e048b454057d354E02276Da08898E71f9EE
Arg [1] : _royaltyFraction (uint96): 700
Arg [2] : initialOwner (address): 0x764A0e048b454057d354E02276Da08898E71f9EE
Arg [3] : _hiddenMetadataUri (string): https://ipfs.io/ipfs/QmTaynhQXDrFB1HduCGKD96nYk4tDGVX4oh6WPgummAgeV/hidden.json

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000764a0e048b454057d354e02276da08898e71f9ee
Arg [1] : 00000000000000000000000000000000000000000000000000000000000002bc
Arg [2] : 000000000000000000000000764a0e048b454057d354e02276da08898e71f9ee
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 000000000000000000000000000000000000000000000000000000000000004f
Arg [5] : 68747470733a2f2f697066732e696f2f697066732f516d5461796e6851584472
Arg [6] : 46423148647543474b4439366e596b347444475658346f6836575067756d6d41
Arg [7] : 6765562f68696464656e2e6a736f6e0000000000000000000000000000000000


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

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