ETH Price: $3,397.16 (+1.47%)

Token

Lean Into The Wind (LITW)
 

Overview

Max Total Supply

3,333 LITW

Holders

1,197

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 LITW
0x5ec0fcab4dcfb4050f40c8b0497af84267063103
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Litw

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : Litw.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;

/*
██╗     ███████╗ █████╗ ███╗   ██╗    ██╗███╗   ██╗████████╗ ██████╗     ████████╗██╗  ██╗███████╗    ██╗    ██╗██╗███╗   ██╗██████╗
██║     ██╔════╝██╔══██╗████╗  ██║    ██║████╗  ██║╚══██╔══╝██╔═══██╗    ╚══██╔══╝██║  ██║██╔════╝    ██║    ██║██║████╗  ██║██╔══██╗
██║     █████╗  ███████║██╔██╗ ██║    ██║██╔██╗ ██║   ██║   ██║   ██║       ██║   ███████║█████╗      ██║ █╗ ██║██║██╔██╗ ██║██║  ██║
██║     ██╔══╝  ██╔══██║██║╚██╗██║    ██║██║╚██╗██║   ██║   ██║   ██║       ██║   ██╔══██║██╔══╝      ██║███╗██║██║██║╚██╗██║██║  ██║
███████╗███████╗██║  ██║██║ ╚████║    ██║██║ ╚████║   ██║   ╚██████╔╝       ██║   ██║  ██║███████╗    ╚███╔███╔╝██║██║ ╚████║██████╔╝
╚══════╝╚══════╝╚═╝  ╚═╝╚═╝  ╚═══╝    ╚═╝╚═╝  ╚═══╝   ╚═╝    ╚═════╝        ╚═╝   ╚═╝  ╚═╝╚══════╝     ╚══╝╚══╝ ╚═╝╚═╝  ╚═══╝╚═════╝
*/

import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract Litw is ERC721AQueryable, Ownable {
    uint public maxSupply = 3333;
    uint public publicPrice = 0.0075 ether;
    uint public maxPerOG = 2;
    uint public maxPerWL = 1;

    string public baseURI;
    string public notRevealedURI;
    string public uriSuffix = ".json";
    bool public revealed;

    enum SaleStatus {
        INACTIVE,
        OG,
        WHITELIST,
        PUBLIST,
        PUBLIC
    }

    SaleStatus public saleStatus = SaleStatus.INACTIVE;

    bytes32 private merkleTreeRoot;
    mapping(address => uint256) public publicMintedPerwallet;

    error SoldOut();
    error SaleNotStarted();
    error MintingTooMany();
    error NotWhitelisted();
    error MintedOut();
    error ArraysDontMatch();
    error InvalidEthValueSent();
    error WhitelistUnavailable();
    error AttemptedMaxSupplyIncrease();

    modifier isLive(SaleStatus status) {
        if (saleStatus != status) revert SaleNotStarted();
        _;
    }

    modifier isWhitelisted(bytes32 _merkleRoot, bytes32[] calldata _proof) {
        if (_merkleRoot == 0) revert WhitelistUnavailable();
        bytes32 leaf = keccak256(abi.encodePacked(_msgSenderERC721A()));
        if (MerkleProof.processProof(_proof, leaf) != _merkleRoot)
            revert NotWhitelisted();
        _;
    }

    modifier withinThreshold(uint256 amount, uint256 maxAmount) {
        if (totalSupply() + amount > maxSupply) revert SoldOut();
        if (_numberMinted(_msgSenderERC721A()) + amount > maxAmount)
            revert MintingTooMany();
        _;
    }

    constructor() ERC721A("Lean Into The Wind", "LITW") Ownable(msg.sender) {
        setNotRevealedURI(
            "https://ipfs.io/ipfs/QmbQoqdgJnRr4J3RMkW8AmLRbGpnuQfeKFwT3Q8UVbiEae/hidden.json"
        );
    }

    function airdrop(
        address[] calldata accounts,
        uint[] calldata amounts
    ) external onlyOwner {
        if (accounts.length != amounts.length) revert ArraysDontMatch();
        uint supply = totalSupply();
        for (uint i; i < accounts.length; i++) {
            if (supply + amounts[i] > maxSupply) revert SoldOut();
            supply += amounts[i];
            _mint(accounts[i], amounts[i]);
        }
    }

    /*///////////////////////////////////////////////////////////////
                           MINT MECHANICS
    //////////////////////////////////////////////////////////////*/

    function ogMint(
        bytes32[] calldata proof,
        uint amount
    )
        external
        isLive(SaleStatus.OG)
        withinThreshold(amount, maxPerOG)
        isWhitelisted(merkleTreeRoot, proof)
    {
        _mint(_msgSenderERC721A(), amount);
    }

    function whiteListMint(
        bytes32[] calldata proof,
        uint amount
    )
        external
        isLive(SaleStatus.WHITELIST)
        withinThreshold(amount, maxPerWL)
        isWhitelisted(merkleTreeRoot, proof)
    {
        _mint(_msgSenderERC721A(), amount);
    }

    function pubListMint(
        bytes32[] calldata proof,
        uint amount
    )
        external
        payable
        isLive(SaleStatus.PUBLIST)
        withinThreshold(amount, maxPerWL)
        isWhitelisted(merkleTreeRoot, proof)
    {
        if (msg.value != amount * publicPrice) revert InvalidEthValueSent();
        _mint(_msgSenderERC721A(), amount);
    }

    function publicMint(
        uint amount
    ) external payable isLive(SaleStatus.PUBLIC) {
        if (totalSupply() + amount > maxSupply) revert SoldOut();
        if (msg.value != amount * publicPrice) revert InvalidEthValueSent();

        address sender = _msgSenderERC721A();
        uint256 senderPublicMints = publicMintedPerwallet[sender] + amount;

        if (senderPublicMints > maxPerWL) revert MintingTooMany();
        publicMintedPerwallet[sender] += amount;
        _mint(sender, amount);
    }

    /*///////////////////////////////////////////////////////////////
                          Switch Sale Status
    //////////////////////////////////////////////////////////////*/

    function setOGMintOn() external onlyOwner {
        saleStatus = SaleStatus.OG;
    }

    function setWhiteListMintOn() external onlyOwner {
        saleStatus = SaleStatus.WHITELIST;
    }

    function setPubListMintOn() external onlyOwner {
        saleStatus = SaleStatus.PUBLIST;
    }

    function setPublicMintOn() external onlyOwner {
        saleStatus = SaleStatus.PUBLIC;
    }

    function turnSalesOff() external onlyOwner {
        saleStatus = SaleStatus.INACTIVE;
    }

    /*///////////////////////////////////////////////////////////////
                                UTILS
    //////////////////////////////////////////////////////////////*/

    function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner {
        notRevealedURI = _notRevealedURI;
    }

    function setBaseURI(string memory _baseURI) external onlyOwner {
        baseURI = _baseURI;
    }

    function switchReveal() external onlyOwner {
        revealed = !revealed;
    }

    function setUriSuffix(string memory _uriSuffix) external onlyOwner {
        uriSuffix = _uriSuffix;
    }

    function updatePublicPrice(uint _newPrice) external onlyOwner {
        publicPrice = _newPrice;
    }

    function setWhitelistRoot(bytes32 _root) external onlyOwner {
        merkleTreeRoot = _root;
    }

    function setMaxPerOG(uint _maxPerOG) external onlyOwner {
        maxPerOG = _maxPerOG;
    }

    function setMaxPerWL(uint _maxPerWL) external onlyOwner {
        maxPerWL = _maxPerWL;
    }

    function updateMaxSupply(uint _maxSupply) external onlyOwner {
        if (_maxSupply > maxSupply) revert AttemptedMaxSupplyIncrease();
        maxSupply = _maxSupply;
    }

    /*///////////////////////////////////////////////////////////////
                            METADATA FACTORY
    //////////////////////////////////////////////////////////////*/

    function tokenURI(
        uint256 tokenId
    ) public view override(ERC721A, IERC721A) returns (string memory) {
        if (revealed == false) {
            return notRevealedURI;
        }
        string memory currentBaseURI = baseURI;
        return
            bytes(currentBaseURI).length > 0
                ? string(
                    abi.encodePacked(
                        currentBaseURI,
                        _toString(tokenId),
                        uriSuffix
                    )
                )
                : "";
    }

    /*///////////////////////////////////////////////////////////////
                            WITHDRAWAL METHOD
    //////////////////////////////////////////////////////////////*/

    function withdraw() public payable onlyOwner {
        uint256 balance = address(this).balance;

        if(balance > 10 ether){
            (bool r1, ) = payable(0xbFcE544F9d130a1c8B607ACFF8b467a040c8963D).call{value: balance * 45/100}("");
            require(r1);
            (bool r2, ) = payable(0x60f33d6A73649409bA4Bd40FB2eF4eF54d3E1ea3).call{value: balance * 30/100}("");
            require(r2);
            (bool r3, ) = payable(0xc64689Ac93458a6d8afFD42BA5081dEC012ed463).call{value: balance * 25/100}("");
            require(r3);
        }else {
            (bool r1, ) = payable(0xbFcE544F9d130a1c8B607ACFF8b467a040c8963D).call{value: balance * 60/100}("");
            require(r1);
            (bool r2, ) = payable(0x60f33d6A73649409bA4Bd40FB2eF4eF54d3E1ea3).call{value: balance * 40/100}("");
            require(r2);
        }

    }
}

File 2 of 8 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.20;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the Merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates Merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     *@dev The multiproof provided is not valid.
     */
    error MerkleProofInvalidMultiproof();

    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     */
    function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Sorts the pair (a, b) and hashes the result.
     */
    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    /**
     * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.
     */
    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 3 of 8 : 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 4 of 8 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721AQueryable.
 *
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (TokenOwnership memory ownership)
    {
        unchecked {
            if (tokenId >= _startTokenId()) {
                if (tokenId > _sequentialUpTo()) return _ownershipAt(tokenId);

                if (tokenId < _nextTokenId()) {
                    // If the `tokenId` is within bounds,
                    // scan backwards for the initialized ownership slot.
                    while (!_ownershipIsInitialized(tokenId)) --tokenId;
                    return _ownershipAt(tokenId);
                }
            }
        }
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] calldata tokenIds)
        external
        view
        virtual
        override
        returns (TokenOwnership[] memory)
    {
        TokenOwnership[] memory ownerships;
        uint256 i = tokenIds.length;
        assembly {
            // Grab the free memory pointer.
            ownerships := mload(0x40)
            // Store the length.
            mstore(ownerships, i)
            // Allocate one word for the length,
            // `tokenIds.length` words for the pointers.
            i := shl(5, i) // Multiply `i` by 32.
            mstore(0x40, add(add(ownerships, 0x20), i))
        }
        while (i != 0) {
            uint256 tokenId;
            assembly {
                i := sub(i, 0x20)
                tokenId := calldataload(add(tokenIds.offset, i))
            }
            TokenOwnership memory ownership = explicitOwnershipOf(tokenId);
            assembly {
                // Store the pointer of `ownership` in the `ownerships` array.
                mstore(add(add(ownerships, 0x20), i), ownership)
            }
        }
        return ownerships;
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view virtual override returns (uint256[] memory) {
        return _tokensOfOwnerIn(owner, start, stop);
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) {
        // If spot mints are enabled, full-range scan is disabled.
        if (_sequentialUpTo() != type(uint256).max) _revert(NotCompatibleWithSpotMints.selector);
        uint256 start = _startTokenId();
        uint256 stop = _nextTokenId();
        uint256[] memory tokenIds;
        if (start != stop) tokenIds = _tokensOfOwnerIn(owner, start, stop);
        return tokenIds;
    }

    /**
     * @dev Helper function for returning an array of token IDs owned by `owner`.
     *
     * Note that this function is optimized for smaller bytecode size over runtime gas,
     * since it is meant to be called off-chain.
     */
    function _tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) private view returns (uint256[] memory tokenIds) {
        unchecked {
            if (start >= stop) _revert(InvalidQueryRange.selector);
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) start = _startTokenId();
            uint256 nextTokenId = _nextTokenId();
            // If spot mints are enabled, scan all the way until the specified `stop`.
            uint256 stopLimit = _sequentialUpTo() != type(uint256).max ? stop : nextTokenId;
            // Set `stop = min(stop, stopLimit)`.
            if (stop >= stopLimit) stop = stopLimit;
            // Number of tokens to scan.
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength` to zero if the range contains no tokens.
            if (start >= stop) tokenIdsMaxLength = 0;
            // If there are one or more tokens to scan.
            if (tokenIdsMaxLength != 0) {
                // Set `tokenIdsMaxLength = min(balanceOf(owner), tokenIdsMaxLength)`.
                if (stop - start <= tokenIdsMaxLength) tokenIdsMaxLength = stop - start;
                uint256 m; // Start of available memory.
                assembly {
                    // Grab the free memory pointer.
                    tokenIds := mload(0x40)
                    // Allocate one word for the length, and `tokenIdsMaxLength` words
                    // for the data. `shl(5, x)` is equivalent to `mul(32, x)`.
                    m := add(tokenIds, shl(5, add(tokenIdsMaxLength, 1)))
                    mstore(0x40, m)
                }
                // We need to call `explicitOwnershipOf(start)`,
                // because the slot at `start` may not be initialized.
                TokenOwnership memory ownership = explicitOwnershipOf(start);
                address currOwnershipAddr;
                // If the starting slot exists (i.e. not burned),
                // initialize `currOwnershipAddr`.
                // `ownership.address` will not be zero,
                // as `start` is clamped to the valid token ID range.
                if (!ownership.burned) currOwnershipAddr = ownership.addr;
                uint256 tokenIdsIdx;
                // Use a do-while, which is slightly more efficient for this case,
                // as the array will at least contain one element.
                do {
                    if (_sequentialUpTo() != type(uint256).max) {
                        // Skip the remaining unused sequential slots.
                        if (start == nextTokenId) start = _sequentialUpTo() + 1;
                        // Reset `currOwnershipAddr`, as each spot-minted token is a batch of one.
                        if (start > _sequentialUpTo()) currOwnershipAddr = address(0);
                    }
                    ownership = _ownershipAt(start); // This implicitly allocates memory.
                    assembly {
                        switch mload(add(ownership, 0x40))
                        // if `ownership.burned == false`.
                        case 0 {
                            // if `ownership.addr != address(0)`.
                            // The `addr` already has it's upper 96 bits clearned,
                            // since it is written to memory with regular Solidity.
                            if mload(ownership) {
                                currOwnershipAddr := mload(ownership)
                            }
                            // if `currOwnershipAddr == owner`.
                            // The `shl(96, x)` is to make the comparison agnostic to any
                            // dirty upper 96 bits in `owner`.
                            if iszero(shl(96, xor(currOwnershipAddr, owner))) {
                                tokenIdsIdx := add(tokenIdsIdx, 1)
                                mstore(add(tokenIds, shl(5, tokenIdsIdx)), start)
                            }
                        }
                        // Otherwise, reset `currOwnershipAddr`.
                        // This handles the case of batch burned tokens
                        // (burned bit of first slot set, remaining slots left uninitialized).
                        default {
                            currOwnershipAddr := 0
                        }
                        start := add(start, 1)
                        // Free temporary memory implicitly allocated for ownership
                        // to avoid quadratic memory expansion costs.
                        mstore(0x40, m)
                    }
                } while (!(start == stop || tokenIdsIdx == tokenIdsMaxLength));
                // Store the length of the array.
                assembly {
                    mstore(tokenIds, tokenIdsIdx)
                }
            }
        }
    }
}

File 5 of 8 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// 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()`.
 *
 * The `_sequentialUpTo()` function can be overriden to enable spot mints
 * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`.
 *
 * 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;

    // The amount of tokens minted above `_sequentialUpTo()`.
    // We call these spot mints (i.e. non-sequential mints).
    uint256 private _spotMinted;

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

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

        if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector);
    }

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

    /**
     * @dev Returns the starting token ID for sequential mints.
     *
     * Override this function to change the starting token ID for sequential mints.
     *
     * Note: The value returned must never change after any tokens have been minted.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the maximum token ID (inclusive) for sequential mints.
     *
     * Override this function to return a value less than 2**256 - 1,
     * but greater than `_startTokenId()`, to enable spot (non-sequential) mints.
     *
     * Note: The value returned must never change after any tokens have been minted.
     */
    function _sequentialUpTo() internal view virtual returns (uint256) {
        return type(uint256).max;
    }

    /**
     * @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 result) {
        // Counter underflow is impossible as `_burnCounter` cannot be incremented
        // more than `_currentIndex + _spotMinted - _startTokenId()` times.
        unchecked {
            // With spot minting, the intermediate `result` can be temporarily negative,
            // and the computation must be unchecked.
            result = _currentIndex - _burnCounter - _startTokenId();
            if (_sequentialUpTo() != type(uint256).max) result += _spotMinted;
        }
    }

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

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

    /**
     * @dev Returns the total number of tokens that are spot-minted.
     */
    function _totalSpotMinted() internal view virtual returns (uint256) {
        return _spotMinted;
    }

    // =============================================================
    //                    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.selector);
        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.selector);

        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 Returns whether the ownership slot at `index` is initialized.
     * An uninitialized slot does not necessarily mean that the slot has no owner.
     */
    function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) {
        return _packedOwnerships[index] != 0;
    }

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

    /**
     * @dev Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) {
        if (_startTokenId() <= tokenId) {
            packed = _packedOwnerships[tokenId];

            if (tokenId > _sequentialUpTo()) {
                if (_packedOwnershipExists(packed)) return packed;
                _revert(OwnerQueryForNonexistentToken.selector);
            }

            // If the data at the starting slot does not exist, start the scan.
            if (packed == 0) {
                if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector);
                // 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, `tokenId` will not underflow.
                //
                // We can directly compare the packed value.
                // If the address is zero, packed will be zero.
                for (;;) {
                    unchecked {
                        packed = _packedOwnerships[--tokenId];
                    }
                    if (packed == 0) continue;
                    if (packed & _BITMASK_BURNED == 0) return packed;
                    // Otherwise, the token is burned, and we must revert.
                    // This handles the case of batch burned tokens, where only the burned bit
                    // of the starting slot is set, and remaining slots are left uninitialized.
                    _revert(OwnerQueryForNonexistentToken.selector);
                }
            }
            // Otherwise, the data exists and we can skip the scan.
            // This is possible because we have already achieved the target condition.
            // This saves 2143 gas on transfers of initialized tokens.
            // If the token is not burned, return `packed`. Otherwise, revert.
            if (packed & _BITMASK_BURNED == 0) return packed;
        }
        _revert(OwnerQueryForNonexistentToken.selector);
    }

    /**
     * @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. See {ERC721A-_approve}.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     */
    function approve(address to, uint256 tokenId) public payable virtual override {
        _approve(to, tokenId, true);
    }

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

        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 result) {
        if (_startTokenId() <= tokenId) {
            if (tokenId > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]);

            if (tokenId < _currentIndex) {
                uint256 packed;
                while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId;
                result = packed & _BITMASK_BURNED == 0;
            }
        }
    }

    /**
     * @dev Returns whether `packed` represents a token that exists.
     */
    function _packedOwnershipExists(uint256 packed) private pure returns (bool result) {
        assembly {
            // The following is equivalent to `owner != address(0) && burned == false`.
            // Symbolically tested.
            result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_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);

        // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
        from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS));

        if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector);

        (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.selector);

        _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;
                    }
                }
            }
        }

        // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
        uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;
        assembly {
            // 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.
                from, // `from`.
                toMasked, // `to`.
                tokenId // `tokenId`.
            )
        }
        if (toMasked == 0) _revert(TransferToZeroAddress.selector);

        _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.selector);
            }
    }

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

        _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:
            // - `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)
            );

            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
            uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;

            if (toMasked == 0) _revert(MintToZeroAddress.selector);

            uint256 end = startTokenId + quantity;
            uint256 tokenId = startTokenId;

            if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector);

            do {
                assembly {
                    // 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`.
                        tokenId // `tokenId`.
                    )
                }
                // The `!=` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
            } while (++tokenId != end);

            _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.selector);
        if (quantity == 0) _revert(MintZeroQuantity.selector);
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector);

        _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)
            );

            if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector);

            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.selector);
                    }
                } while (index < end);
                // This prevents reentrancy to `_safeMint`.
                // It does not prevent reentrancy to `_safeMintSpot`.
                if (_currentIndex != end) revert();
            }
        }
    }

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

    /**
     * @dev Mints a single token at `tokenId`.
     *
     * Note: A spot-minted `tokenId` that has been burned can be re-minted again.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` must be greater than `_sequentialUpTo()`.
     * - `tokenId` must not exist.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mintSpot(address to, uint256 tokenId) internal virtual {
        if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector);
        uint256 prevOwnershipPacked = _packedOwnerships[tokenId];
        if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector);

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

        // Overflows are incredibly unrealistic.
        // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1.
        // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1.
        unchecked {
            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `true` (as `quantity == 1`).
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked)
            );

            // Updates:
            // - `balance += 1`.
            // - `numberMinted += 1`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += (1 << _BITPOS_NUMBER_MINTED) | 1;

            // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
            uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;

            if (toMasked == 0) _revert(MintToZeroAddress.selector);

            assembly {
                // 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`.
                    tokenId // `tokenId`.
                )
            }

            ++_spotMinted;
        }

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

    /**
     * @dev Safely mints a single token at `tokenId`.
     *
     * Note: A spot-minted `tokenId` that has been burned can be re-minted again.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}.
     * - `tokenId` must be greater than `_sequentialUpTo()`.
     * - `tokenId` must not exist.
     *
     * See {_mintSpot}.
     *
     * Emits a {Transfer} event.
     */
    function _safeMintSpot(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mintSpot(to, tokenId);

        unchecked {
            if (to.code.length != 0) {
                uint256 currentSpotMinted = _spotMinted;
                if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) {
                    _revert(TransferToNonERC721ReceiverImplementer.selector);
                }
                // This prevents reentrancy to `_safeMintSpot`.
                // It does not prevent reentrancy to `_safeMint`.
                if (_spotMinted != currentSpotMinted) revert();
            }
        }
    }

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

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

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

    /**
     * @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:
     *
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        bool approvalCheck
    ) internal virtual {
        address owner = ownerOf(tokenId);

        if (approvalCheck && _msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                _revert(ApprovalCallerNotOwnerNorApproved.selector);
            }

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

    // =============================================================
    //                        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.selector);
        }

        _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 + _spotMinted` 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.selector);
        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)
        }
    }

    /**
     * @dev For more efficient reverts.
     */
    function _revert(bytes4 errorSelector) internal pure {
        assembly {
            mstore(0x00, errorSelector)
            revert(0x00, 0x04)
        }
    }
}

File 6 of 8 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721AQueryable.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *
     * - `addr = address(0)`
     * - `startTimestamp = 0`
     * - `burned = false`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start < stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(`totalSupply`) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

File 7 of 8 : 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 8 of 8 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// 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();

    /**
     * `_sequentialUpTo()` must be greater than `_startTokenId()`.
     */
    error SequentialUpToTooSmall();

    /**
     * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`.
     */
    error SequentialMintExceedsLimit();

    /**
     * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`.
     */
    error SpotMintTokenIdTooSmall();

    /**
     * Cannot mint over a token that already exists.
     */
    error TokenAlreadyExists();

    /**
     * The feature is not compatible with spot mints.
     */
    error NotCompatibleWithSpotMints();

    // =============================================================
    //                            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
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ArraysDontMatch","type":"error"},{"inputs":[],"name":"AttemptedMaxSupplyIncrease","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidEthValueSent","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedOut","type":"error"},{"inputs":[],"name":"MintingTooMany","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[],"name":"NotWhitelisted","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":"SaleNotStarted","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","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"},{"inputs":[],"name":"WhitelistUnavailable","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"airdrop","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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"ownership","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerOG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","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":"notRevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ogMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"pubListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMintedPerwallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":[],"name":"saleStatus","outputs":[{"internalType":"enum Litw.SaleStatus","name":"","type":"uint8"}],"stateMutability":"view","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":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerOG","type":"uint256"}],"name":"setMaxPerOG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerWL","type":"uint256"}],"name":"setMaxPerWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setOGMintOn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPubListMintOn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublicMintOn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setWhiteListMintOn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setWhitelistRoot","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":"switchReveal","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","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":[],"name":"turnSalesOff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"updateMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"updatePublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"whiteListMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

6080604052610d05600a55661aa535d3d0c000600b556002600c556001600d556040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250601090816200006591906200068d565b505f601160016101000a81548160ff021916908360048111156200008e576200008d62000771565b5b02179055503480156200009f575f80fd5b50336040518060400160405280601281526020017f4c65616e20496e746f205468652057696e6400000000000000000000000000008152506040518060400160405280600481526020017f4c4954570000000000000000000000000000000000000000000000000000000081525081600290816200011e91906200068d565b5080600390816200013091906200068d565b50620001416200023d60201b60201c565b5f81905550620001566200023d60201b60201c565b620001666200024160201b60201c565b101562000186576200018563fed8210f60e01b6200026860201b60201c565b5b50505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001fb575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620001f29190620007e1565b60405180910390fd5b6200020c816200027060201b60201c565b50620002376040518060800160405280604f815260200162004f26604f91396200033360201b60201c565b620007fc565b5f90565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b805f5260045ffd5b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003436200035860201b60201c565b80600f90816200035491906200068d565b5050565b62000368620003fa60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200038e6200040160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620003f857620003ba620003fa60201b60201c565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401620003ef9190620007e1565b60405180910390fd5b565b5f33905090565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620004a557607f821691505b602082108103620004bb57620004ba62000460565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026200051f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620004e2565b6200052b8683620004e2565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f620005756200056f620005698462000543565b6200054c565b62000543565b9050919050565b5f819050919050565b620005908362000555565b620005a86200059f826200057c565b848454620004ee565b825550505050565b5f90565b620005be620005b0565b620005cb81848462000585565b505050565b5b81811015620005f257620005e65f82620005b4565b600181019050620005d1565b5050565b601f82111562000641576200060b81620004c1565b6200061684620004d3565b8101602085101562000626578190505b6200063e6200063585620004d3565b830182620005d0565b50505b505050565b5f82821c905092915050565b5f620006635f198460080262000646565b1980831691505092915050565b5f6200067d838362000652565b9150826002028217905092915050565b620006988262000429565b67ffffffffffffffff811115620006b457620006b362000433565b5b620006c082546200048d565b620006cd828285620005f6565b5f60209050601f83116001811462000703575f8415620006ee578287015190505b620006fa858262000670565b86555062000769565b601f1984166200071386620004c1565b5f5b828110156200073c5784890151825560018201915060208501945060208101905062000715565b868310156200075c578489015162000758601f89168262000652565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620007c9826200079e565b9050919050565b620007db81620007bd565b82525050565b5f602082019050620007f65f830184620007d0565b92915050565b61471c806200080a5f395ff3fe6080604052600436106102e3575f3560e01c8063715018a61161018f578063c23dc68f116100db578063ec5a2d4511610094578063f2c4ce1e1161006e578063f2c4ce1e14610a4f578063f2fde38b14610a77578063f5aa406d14610a9f578063f9020e3314610ac7576102e3565b8063ec5a2d45146109e7578063ee64aefb146109fd578063f103b43314610a27576102e3565b8063c23dc68f146108a5578063c30bf318146108e1578063c87b56dd14610909578063cbff2fb714610945578063d5abeb0114610981578063e985e9c5146109ab576102e3565b80638da5cb5b116101485780639ef1ffe1116101225780639ef1ffe11461080f578063a22cb46514610837578063a945bf801461085f578063b88d4fde14610889576102e3565b80638da5cb5b1461077f57806395d89b41146107a957806399a2557a146107d3576102e3565b8063715018a6146106af57806372250380146106c55780637399ad79146106ef57806376a7e07c146107055780637f8448a91461071b5780638462151c14610743576102e3565b8063518302271161024e5780635ecc08311161020757806367243482116101e157806367243482146105f95780636c0360eb1461062157806370a082311461064b5780637116abf914610687576102e3565b80635ecc08311461058b57806360ea86c7146105a15780636352211e146105bd576102e3565b8063518302271461049357806352aca3a0146104bd5780635503a0e8146104d357806355f804b3146104fd5780635bbb2177146105255780635e2f4be214610561576102e3565b806318160ddd116102a057806318160ddd146103f557806320c354191461041f57806323b872dd146104355780632db11544146104515780633ccfd60b1461046d57806342842e0e14610477576102e3565b806301ffc9a7146102e757806306fdde0314610323578063081812fc1461034d578063095ea7b31461038957806316ba10e0146103a557806316e0a200146103cd575b5f80fd5b3480156102f2575f80fd5b5061030d60048036038101906103089190613444565b610af1565b60405161031a9190613489565b60405180910390f35b34801561032e575f80fd5b50610337610b82565b604051610344919061352c565b60405180910390f35b348015610358575f80fd5b50610373600480360381019061036e919061357f565b610c12565b60405161038091906135e9565b60405180910390f35b6103a3600480360381019061039e919061362c565b610c6b565b005b3480156103b0575f80fd5b506103cb60048036038101906103c69190613796565b610c7b565b005b3480156103d8575f80fd5b506103f360048036038101906103ee919061357f565b610c96565b005b348015610400575f80fd5b50610409610ca8565b60405161041691906137ec565b60405180910390f35b34801561042a575f80fd5b50610433610cf3565b005b61044f600480360381019061044a9190613805565b610d28565b005b61046b6004803603810190610466919061357f565b610fd3565b005b6104756111cb565b005b610491600480360381019061048c9190613805565b611506565b005b34801561049e575f80fd5b506104a7611525565b6040516104b49190613489565b60405180910390f35b3480156104c8575f80fd5b506104d1611537565b005b3480156104de575f80fd5b506104e761156c565b6040516104f4919061352c565b60405180910390f35b348015610508575f80fd5b50610523600480360381019061051e9190613796565b6115f8565b005b348015610530575f80fd5b5061054b600480360381019061054691906138b2565b611613565b6040516105589190613a55565b60405180910390f35b34801561056c575f80fd5b5061057561166f565b60405161058291906137ec565b60405180910390f35b348015610596575f80fd5b5061059f611675565b005b6105bb60048036038101906105b69190613aca565b6116aa565b005b3480156105c8575f80fd5b506105e360048036038101906105de919061357f565b611914565b6040516105f091906135e9565b60405180910390f35b348015610604575f80fd5b5061061f600480360381019061061a9190613b7c565b611925565b005b34801561062c575f80fd5b50610635611a6a565b604051610642919061352c565b60405180910390f35b348015610656575f80fd5b50610671600480360381019061066c9190613bfa565b611af6565b60405161067e91906137ec565b60405180910390f35b348015610692575f80fd5b506106ad60048036038101906106a89190613aca565b611b8a565b005b3480156106ba575f80fd5b506106c3611dae565b005b3480156106d0575f80fd5b506106d9611dc1565b6040516106e6919061352c565b60405180910390f35b3480156106fa575f80fd5b50610703611e4d565b005b348015610710575f80fd5b50610719611e82565b005b348015610726575f80fd5b50610741600480360381019061073c919061357f565b611eb6565b005b34801561074e575f80fd5b5061076960048036038101906107649190613bfa565b611ec8565b6040516107769190613cdc565b60405180910390f35b34801561078a575f80fd5b50610793611f41565b6040516107a091906135e9565b60405180910390f35b3480156107b4575f80fd5b506107bd611f69565b6040516107ca919061352c565b60405180910390f35b3480156107de575f80fd5b506107f960048036038101906107f49190613cfc565b611ff9565b6040516108069190613cdc565b60405180910390f35b34801561081a575f80fd5b506108356004803603810190610830919061357f565b61200f565b005b348015610842575f80fd5b5061085d60048036038101906108589190613d76565b612021565b005b34801561086a575f80fd5b50610873612127565b60405161088091906137ec565b60405180910390f35b6108a3600480360381019061089e9190613e52565b61212d565b005b3480156108b0575f80fd5b506108cb60048036038101906108c6919061357f565b61217e565b6040516108d89190613f25565b60405180910390f35b3480156108ec575f80fd5b5061090760048036038101906109029190613aca565b6121f3565b005b348015610914575f80fd5b5061092f600480360381019061092a919061357f565b612417565b60405161093c919061352c565b60405180910390f35b348015610950575f80fd5b5061096b60048036038101906109669190613bfa565b6125a1565b60405161097891906137ec565b60405180910390f35b34801561098c575f80fd5b506109956125b6565b6040516109a291906137ec565b60405180910390f35b3480156109b6575f80fd5b506109d160048036038101906109cc9190613f3e565b6125bc565b6040516109de9190613489565b60405180910390f35b3480156109f2575f80fd5b506109fb61264a565b005b348015610a08575f80fd5b50610a1161267c565b604051610a1e91906137ec565b60405180910390f35b348015610a32575f80fd5b50610a4d6004803603810190610a48919061357f565b612682565b005b348015610a5a575f80fd5b50610a756004803603810190610a709190613796565b6126d0565b005b348015610a82575f80fd5b50610a9d6004803603810190610a989190613bfa565b6126eb565b005b348015610aaa575f80fd5b50610ac56004803603810190610ac09190613faf565b61276f565b005b348015610ad2575f80fd5b50610adb612781565b604051610ae8919061404d565b60405180910390f35b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b4b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b7b5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610b9190614093565b80601f0160208091040260200160405190810160405280929190818152602001828054610bbd90614093565b8015610c085780601f10610bdf57610100808354040283529160200191610c08565b820191905f5260205f20905b815481529060010190602001808311610beb57829003601f168201915b5050505050905090565b5f610c1c82612794565b610c3157610c3063cf4700e460e01b612837565b5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610c778282600161283f565b5050565b610c83612969565b8060109081610c929190614260565b5050565b610c9e612969565b80600b8190555050565b5f610cb16129f0565b6001545f54030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610ce36129f4565b14610cf057600854810190505b90565b610cfb612969565b6004601160016101000a81548160ff02191690836004811115610d2157610d20613fda565b5b0217905550565b5f610d3282612a1b565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610da757610da663a114810060e01b612837565b5b5f80610db284612b2a565b91509150610dc88187610dc3612b4d565b612b54565b610df357610ddd86610dd8612b4d565b6125bc565b610df257610df16359c896be60e01b612837565b5b5b610e008686866001612b97565b8015610e0a575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815460010191905081905550610ed285610eae888887612b9d565b7c020000000000000000000000000000000000000000000000000000000017612bc4565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603610f4e575f6001850190505f60045f8381526020019081526020015f205403610f4c575f548114610f4b578360045f8381526020019081526020015f20819055505b5b505b5f73ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a45f8103610fbd57610fbc63ea553b3460e01b612837565b5b610fca8787876001612bee565b50505050505050565b6004806004811115610fe857610fe7613fda565b5b601160019054906101000a900460ff16600481111561100a57611009613fda565b5b14611041576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a548261104d610ca8565b611057919061435c565b111561108f576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b548261109d919061438f565b34146110d5576040517f9f87ae5400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6110de612b4d565b90505f8360135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461112a919061435c565b9050600d54811115611168576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8360135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546111b4919061435c565b925050819055506111c58285612bf4565b50505050565b6111d3612969565b5f479050678ac7230489e800008111156113c6575f73bfce544f9d130a1c8b607acff8b467a040c8963d73ffffffffffffffffffffffffffffffffffffffff166064602d84611222919061438f565b61122c91906143fd565b6040516112389061445a565b5f6040518083038185875af1925050503d805f8114611272576040519150601f19603f3d011682016040523d82523d5f602084013e611277565b606091505b5050905080611284575f80fd5b5f7360f33d6a73649409ba4bd40fb2ef4ef54d3e1ea373ffffffffffffffffffffffffffffffffffffffff166064601e856112bf919061438f565b6112c991906143fd565b6040516112d59061445a565b5f6040518083038185875af1925050503d805f811461130f576040519150601f19603f3d011682016040523d82523d5f602084013e611314565b606091505b5050905080611321575f80fd5b5f73c64689ac93458a6d8affd42ba5081dec012ed46373ffffffffffffffffffffffffffffffffffffffff16606460198661135c919061438f565b61136691906143fd565b6040516113729061445a565b5f6040518083038185875af1925050503d805f81146113ac576040519150601f19603f3d011682016040523d82523d5f602084013e6113b1565b606091505b50509050806113be575f80fd5b505050611503565b5f73bfce544f9d130a1c8b607acff8b467a040c8963d73ffffffffffffffffffffffffffffffffffffffff166064603c84611401919061438f565b61140b91906143fd565b6040516114179061445a565b5f6040518083038185875af1925050503d805f8114611451576040519150601f19603f3d011682016040523d82523d5f602084013e611456565b606091505b5050905080611463575f80fd5b5f7360f33d6a73649409ba4bd40fb2ef4ef54d3e1ea373ffffffffffffffffffffffffffffffffffffffff16606460288561149e919061438f565b6114a891906143fd565b6040516114b49061445a565b5f6040518083038185875af1925050503d805f81146114ee576040519150601f19603f3d011682016040523d82523d5f602084013e6114f3565b606091505b5050905080611500575f80fd5b50505b50565b61152083838360405180602001604052805f81525061212d565b505050565b60115f9054906101000a900460ff1681565b61153f612969565b6003601160016101000a81548160ff0219169083600481111561156557611564613fda565b5b0217905550565b6010805461157990614093565b80601f01602080910402602001604051908101604052809291908181526020018280546115a590614093565b80156115f05780601f106115c7576101008083540402835291602001916115f0565b820191905f5260205f20905b8154815290600101906020018083116115d357829003601f168201915b505050505081565b611600612969565b80600e908161160f9190614260565b5050565b6060805f84849050905060405191508082528060051b90508060208301016040525b5f8114611664575f6020820391508186013590505f6116538261217e565b905080836020860101525050611635565b819250505092915050565b600c5481565b61167d612969565b6001601160016101000a81548160ff021916908360048111156116a3576116a2613fda565b5b0217905550565b60038060048111156116bf576116be613fda565b5b601160019054906101000a900460ff1660048111156116e1576116e0613fda565b5b14611718576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600d54600a5482611728610ca8565b611732919061435c565b111561176a576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808261177c611777612b4d565b612d68565b611786919061435c565b11156117be576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60125486865f801b83036117fe576040517fa14edd7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611807612b4d565b60405160200161181791906144b3565b6040516020818303038152906040528051906020012090508361187a8484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505083612dbc565b146118b1576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b54886118bf919061438f565b34146118f7576040517f9f87ae5400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611908611902612b4d565b89612bf4565b50505050505050505050565b5f61191e82612a1b565b9050919050565b61192d612969565b81819050848490501461196c576040517fe6bbb3c100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611975610ca8565b90505f5b85859050811015611a6257600a5484848381811061199a576119996144cd565b5b90506020020135836119ac919061435c565b11156119e4576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8383828181106119f7576119f66144cd565b5b9050602002013582611a09919061435c565b9150611a55868683818110611a2157611a206144cd565b5b9050602002016020810190611a369190613bfa565b858584818110611a4957611a486144cd565b5b90506020020135612bf4565b8080600101915050611979565b505050505050565b600e8054611a7790614093565b80601f0160208091040260200160405190810160405280929190818152602001828054611aa390614093565b8015611aee5780601f10611ac557610100808354040283529160200191611aee565b820191905f5260205f20905b815481529060010190602001808311611ad157829003601f168201915b505050505081565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b3b57611b3a638f4eb60460e01b612837565b5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b6001806004811115611b9f57611b9e613fda565b5b601160019054906101000a900460ff166004811115611bc157611bc0613fda565b5b14611bf8576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600c54600a5482611c08610ca8565b611c12919061435c565b1115611c4a576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082611c5c611c57612b4d565b612d68565b611c66919061435c565b1115611c9e576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60125486865f801b8303611cde576040517fa14edd7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611ce7612b4d565b604051602001611cf791906144b3565b60405160208183030381529060405280519060200120905083611d5a8484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505083612dbc565b14611d91576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611da2611d9c612b4d565b89612bf4565b50505050505050505050565b611db6612969565b611dbf5f612e0a565b565b600f8054611dce90614093565b80601f0160208091040260200160405190810160405280929190818152602001828054611dfa90614093565b8015611e455780601f10611e1c57610100808354040283529160200191611e45565b820191905f5260205f20905b815481529060010190602001808311611e2857829003601f168201915b505050505081565b611e55612969565b6002601160016101000a81548160ff02191690836004811115611e7b57611e7a613fda565b5b0217905550565b611e8a612969565b5f601160016101000a81548160ff02191690836004811115611eaf57611eae613fda565b5b0217905550565b611ebe612969565b80600d8190555050565b60607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611ef36129f4565b14611f0957611f0863bdba09d760e01b612837565b5b5f611f126129f0565b90505f611f1d612ecd565b90506060818314611f3657611f33858484612ed5565b90505b809350505050919050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611f7890614093565b80601f0160208091040260200160405190810160405280929190818152602001828054611fa490614093565b8015611fef5780601f10611fc657610100808354040283529160200191611fef565b820191905f5260205f20905b815481529060010190602001808311611fd257829003601f168201915b5050505050905090565b6060612006848484612ed5565b90509392505050565b612017612969565b80600c8190555050565b8060075f61202d612b4d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166120d6612b4d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161211b9190613489565b60405180910390a35050565b600b5481565b612138848484610d28565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146121785761216284848484613084565b6121775761217663d1a57ed660e01b612837565b5b5b50505050565b612186613393565b61218e6129f0565b82106121ed5761219c6129f4565b8211156121b3576121ac826131ae565b90506121ee565b6121bb612ecd565b8210156121ec575b6121cc826131d7565b6121dc57816001900391506121c3565b6121e5826131ae565b90506121ee565b5b5b919050565b600280600481111561220857612207613fda565b5b601160019054906101000a900460ff16600481111561222a57612229613fda565b5b14612261576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600d54600a5482612271610ca8565b61227b919061435c565b11156122b3576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80826122c56122c0612b4d565b612d68565b6122cf919061435c565b1115612307576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60125486865f801b8303612347576040517fa14edd7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612350612b4d565b60405160200161236091906144b3565b604051602081830303815290604052805190602001209050836123c38484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505083612dbc565b146123fa576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61240b612405612b4d565b89612bf4565b50505050505050505050565b60605f151560115f9054906101000a900460ff161515036124c257600f805461243f90614093565b80601f016020809104026020016040519081016040528092919081815260200182805461246b90614093565b80156124b65780601f1061248d576101008083540402835291602001916124b6565b820191905f5260205f20905b81548152906001019060200180831161249957829003601f168201915b5050505050905061259c565b5f600e80546124d090614093565b80601f01602080910402602001604051908101604052809291908181526020018280546124fc90614093565b80156125475780601f1061251e57610100808354040283529160200191612547565b820191905f5260205f20905b81548152906001019060200180831161252a57829003601f168201915b505050505090505f81511161256a5760405180602001604052805f815250612598565b80612574846131f4565b6010604051602001612588939291906145b4565b6040516020818303038152906040525b9150505b919050565b6013602052805f5260405f205f915090505481565b600a5481565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b612652612969565b60115f9054906101000a900460ff161560115f6101000a81548160ff021916908315150217905550565b600d5481565b61268a612969565b600a548111156126c6576040517f28da441900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a8190555050565b6126d8612969565b80600f90816126e79190614260565b5050565b6126f3612969565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612763575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161275a91906135e9565b60405180910390fd5b61276c81612e0a565b50565b612777612969565b8060128190555050565b601160019054906101000a900460ff1681565b5f8161279e6129f0565b11612831576127ab6129f4565b8211156127d3576127cc60045f8481526020019081526020015f2054613243565b9050612832565b5f54821015612830575f5b5f60045f8581526020019081526020015f20549150810361280a5782612803906145e4565b92506127de565b5f7c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b805f5260045ffd5b5f61284983611914565b905081801561288b57508073ffffffffffffffffffffffffffffffffffffffff16612872612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614155b156128b7576128a18161289c612b4d565b6125bc565b6128b6576128b563cfb3b94260e01b612837565b5b5b8360065f8581526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b612971613283565b73ffffffffffffffffffffffffffffffffffffffff1661298f611f41565b73ffffffffffffffffffffffffffffffffffffffff16146129ee576129b2613283565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016129e591906135e9565b60405180910390fd5b565b5f90565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b5f81612a256129f0565b11612b145760045f8381526020019081526020015f20549050612a466129f4565b821115612a6b57612a5681613243565b612b2557612a6a63df2d9b4260e01b612837565b5b5f8103612aec575f548210612a8b57612a8a63df2d9b4260e01b612837565b5b5b60045f836001900393508381526020019081526020015f205490505f810315612ae7575f7c010000000000000000000000000000000000000000000000000000000082160315612b2557612ae663df2d9b4260e01b612837565b5b612a8c565b5f7c010000000000000000000000000000000000000000000000000000000082160315612b25575b612b2463df2d9b4260e01b612837565b5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8612bb386868461328a565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f805490505f8203612c1157612c1063b562e8dd60e01b612837565b5b612c1d5f848385612b97565b612c3b83612c2c5f865f612b9d565b612c3585613292565b17612bc4565b60045f8381526020019081526020015f2081905550600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505f73ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161690505f8103612cec57612ceb632e07630060e01b612837565b5b5f83830190505f839050612cfe6129f4565b600183031115612d1957612d186381647e3a60e01b612837565b5b5b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4818160010191508103612d1a57815f81905550505050612d635f848385612bee565b505050565b5f67ffffffffffffffff604060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054901c169050919050565b5f808290505f5b8451811015612dff57612df082868381518110612de357612de26144cd565b5b60200260200101516132a1565b91508080600101915050612dc3565b508091505092915050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f8054905090565b6060818310612eef57612eee6332c1995a60e01b612837565b5b612ef76129f0565b831015612f0957612f066129f0565b92505b5f612f12612ecd565b90505f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff612f3e6129f4565b03612f495781612f4b565b835b9050808410612f58578093505b5f612f6287611af6565b9050848610612f6f575f90505b5f811461307a578086860311612f855785850390505b5f60405194506001820160051b85019050806040525f612fa48861217e565b90505f8160400151612fb757815f015190505b5f5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff612fe26129f4565b1461301057868a03612ffc576001612ff86129f4565b0199505b6130046129f4565b8a111561300f575f91505b5b6130198a6131ae565b925060408301515f811461302f575f9250613055565b83511561303b57835192505b8b831860601b613054576001820191508a8260051b8a01525b5b5060018a01995083604052888a148061306d57508481145b15612fb957808852505050505b5050509392505050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130a9612b4d565b8786866040518563ffffffff1660e01b81526004016130cb949392919061465d565b6020604051808303815f875af192505050801561310657506040513d601f19601f8201168201806040525081019061310391906146bb565b60015b61315b573d805f8114613134576040519150601f19603f3d011682016040523d82523d5f602084013e613139565b606091505b505f8151036131535761315263d1a57ed660e01b612837565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6131b6613393565b6131d060045f8481526020019081526020015f20546132cb565b9050919050565b5f8060045f8481526020019081526020015f205414159050919050565b606060a060405101806040526020810391505f825281835b60011561322e57600184039350600a81066030018453600a810490508061320c575b50828103602084039350808452505050919050565b5f7c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b5f33905090565b5f9392505050565b5f6001821460e11b9050919050565b5f8183106132b8576132b3828461337f565b6132c3565b6132c2838361337f565b5b905092915050565b6132d3613393565b81815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff16815250505f7c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b5f825f528160205260405f20905092915050565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f67ffffffffffffffff1681526020015f151581526020015f62ffffff1681525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613423816133ef565b811461342d575f80fd5b50565b5f8135905061343e8161341a565b92915050565b5f60208284031215613459576134586133e7565b5b5f61346684828501613430565b91505092915050565b5f8115159050919050565b6134838161346f565b82525050565b5f60208201905061349c5f83018461347a565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156134d95780820151818401526020810190506134be565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6134fe826134a2565b61350881856134ac565b93506135188185602086016134bc565b613521816134e4565b840191505092915050565b5f6020820190508181035f83015261354481846134f4565b905092915050565b5f819050919050565b61355e8161354c565b8114613568575f80fd5b50565b5f8135905061357981613555565b92915050565b5f60208284031215613594576135936133e7565b5b5f6135a18482850161356b565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6135d3826135aa565b9050919050565b6135e3816135c9565b82525050565b5f6020820190506135fc5f8301846135da565b92915050565b61360b816135c9565b8114613615575f80fd5b50565b5f8135905061362681613602565b92915050565b5f8060408385031215613642576136416133e7565b5b5f61364f85828601613618565b92505060206136608582860161356b565b9150509250929050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6136a8826134e4565b810181811067ffffffffffffffff821117156136c7576136c6613672565b5b80604052505050565b5f6136d96133de565b90506136e5828261369f565b919050565b5f67ffffffffffffffff82111561370457613703613672565b5b61370d826134e4565b9050602081019050919050565b828183375f83830152505050565b5f61373a613735846136ea565b6136d0565b9050828152602081018484840111156137565761375561366e565b5b61376184828561371a565b509392505050565b5f82601f83011261377d5761377c61366a565b5b813561378d848260208601613728565b91505092915050565b5f602082840312156137ab576137aa6133e7565b5b5f82013567ffffffffffffffff8111156137c8576137c76133eb565b5b6137d484828501613769565b91505092915050565b6137e68161354c565b82525050565b5f6020820190506137ff5f8301846137dd565b92915050565b5f805f6060848603121561381c5761381b6133e7565b5b5f61382986828701613618565b935050602061383a86828701613618565b925050604061384b8682870161356b565b9150509250925092565b5f80fd5b5f80fd5b5f8083601f8401126138725761387161366a565b5b8235905067ffffffffffffffff81111561388f5761388e613855565b5b6020830191508360208202830111156138ab576138aa613859565b5b9250929050565b5f80602083850312156138c8576138c76133e7565b5b5f83013567ffffffffffffffff8111156138e5576138e46133eb565b5b6138f18582860161385d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61392f816135c9565b82525050565b5f67ffffffffffffffff82169050919050565b61395181613935565b82525050565b6139608161346f565b82525050565b5f62ffffff82169050919050565b61397d81613966565b82525050565b608082015f8201516139975f850182613926565b5060208201516139aa6020850182613948565b5060408201516139bd6040850182613957565b5060608201516139d06060850182613974565b50505050565b5f6139e18383613983565b60808301905092915050565b5f602082019050919050565b5f613a03826138fd565b613a0d8185613907565b9350613a1883613917565b805f5b83811015613a48578151613a2f88826139d6565b9750613a3a836139ed565b925050600181019050613a1b565b5085935050505092915050565b5f6020820190508181035f830152613a6d81846139f9565b905092915050565b5f8083601f840112613a8a57613a8961366a565b5b8235905067ffffffffffffffff811115613aa757613aa6613855565b5b602083019150836020820283011115613ac357613ac2613859565b5b9250929050565b5f805f60408486031215613ae157613ae06133e7565b5b5f84013567ffffffffffffffff811115613afe57613afd6133eb565b5b613b0a86828701613a75565b93509350506020613b1d8682870161356b565b9150509250925092565b5f8083601f840112613b3c57613b3b61366a565b5b8235905067ffffffffffffffff811115613b5957613b58613855565b5b602083019150836020820283011115613b7557613b74613859565b5b9250929050565b5f805f8060408587031215613b9457613b936133e7565b5b5f85013567ffffffffffffffff811115613bb157613bb06133eb565b5b613bbd87828801613b27565b9450945050602085013567ffffffffffffffff811115613be057613bdf6133eb565b5b613bec8782880161385d565b925092505092959194509250565b5f60208284031215613c0f57613c0e6133e7565b5b5f613c1c84828501613618565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613c578161354c565b82525050565b5f613c688383613c4e565b60208301905092915050565b5f602082019050919050565b5f613c8a82613c25565b613c948185613c2f565b9350613c9f83613c3f565b805f5b83811015613ccf578151613cb68882613c5d565b9750613cc183613c74565b925050600181019050613ca2565b5085935050505092915050565b5f6020820190508181035f830152613cf48184613c80565b905092915050565b5f805f60608486031215613d1357613d126133e7565b5b5f613d2086828701613618565b9350506020613d318682870161356b565b9250506040613d428682870161356b565b9150509250925092565b613d558161346f565b8114613d5f575f80fd5b50565b5f81359050613d7081613d4c565b92915050565b5f8060408385031215613d8c57613d8b6133e7565b5b5f613d9985828601613618565b9250506020613daa85828601613d62565b9150509250929050565b5f67ffffffffffffffff821115613dce57613dcd613672565b5b613dd7826134e4565b9050602081019050919050565b5f613df6613df184613db4565b6136d0565b905082815260208101848484011115613e1257613e1161366e565b5b613e1d84828561371a565b509392505050565b5f82601f830112613e3957613e3861366a565b5b8135613e49848260208601613de4565b91505092915050565b5f805f8060808587031215613e6a57613e696133e7565b5b5f613e7787828801613618565b9450506020613e8887828801613618565b9350506040613e998782880161356b565b925050606085013567ffffffffffffffff811115613eba57613eb96133eb565b5b613ec687828801613e25565b91505092959194509250565b608082015f820151613ee65f850182613926565b506020820151613ef96020850182613948565b506040820151613f0c6040850182613957565b506060820151613f1f6060850182613974565b50505050565b5f608082019050613f385f830184613ed2565b92915050565b5f8060408385031215613f5457613f536133e7565b5b5f613f6185828601613618565b9250506020613f7285828601613618565b9150509250929050565b5f819050919050565b613f8e81613f7c565b8114613f98575f80fd5b50565b5f81359050613fa981613f85565b92915050565b5f60208284031215613fc457613fc36133e7565b5b5f613fd184828501613f9b565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6005811061401857614017613fda565b5b50565b5f81905061402882614007565b919050565b5f6140378261401b565b9050919050565b6140478161402d565b82525050565b5f6020820190506140605f83018461403e565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806140aa57607f821691505b6020821081036140bd576140bc614066565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261411f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826140e4565b61412986836140e4565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61416461415f61415a8461354c565b614141565b61354c565b9050919050565b5f819050919050565b61417d8361414a565b6141916141898261416b565b8484546140f0565b825550505050565b5f90565b6141a5614199565b6141b0818484614174565b505050565b5b818110156141d3576141c85f8261419d565b6001810190506141b6565b5050565b601f821115614218576141e9816140c3565b6141f2846140d5565b81016020851015614201578190505b61421561420d856140d5565b8301826141b5565b50505b505050565b5f82821c905092915050565b5f6142385f198460080261421d565b1980831691505092915050565b5f6142508383614229565b9150826002028217905092915050565b614269826134a2565b67ffffffffffffffff81111561428257614281613672565b5b61428c8254614093565b6142978282856141d7565b5f60209050601f8311600181146142c8575f84156142b6578287015190505b6142c08582614245565b865550614327565b601f1984166142d6866140c3565b5f5b828110156142fd578489015182556001820191506020850194506020810190506142d8565b8683101561431a5784890151614316601f891682614229565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6143668261354c565b91506143718361354c565b92508282019050808211156143895761438861432f565b5b92915050565b5f6143998261354c565b91506143a48361354c565b92508282026143b28161354c565b915082820484148315176143c9576143c861432f565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6144078261354c565b91506144128361354c565b925082614422576144216143d0565b5b828204905092915050565b5f81905092915050565b50565b5f6144455f8361442d565b915061445082614437565b5f82019050919050565b5f6144648261443a565b9150819050919050565b5f8160601b9050919050565b5f6144848261446e565b9050919050565b5f6144958261447a565b9050919050565b6144ad6144a8826135c9565b61448b565b82525050565b5f6144be828461449c565b60148201915081905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81905092915050565b5f61450e826134a2565b61451881856144fa565b93506145288185602086016134bc565b80840191505092915050565b5f815461454081614093565b61454a81866144fa565b9450600182165f81146145645760018114614579576145ab565b60ff19831686528115158202860193506145ab565b614582856140c3565b5f5b838110156145a357815481890152600182019150602081019050614584565b838801955050505b50505092915050565b5f6145bf8286614504565b91506145cb8285614504565b91506145d78284614534565b9150819050949350505050565b5f6145ee8261354c565b91505f8203614600576145ff61432f565b5b600182039050919050565b5f81519050919050565b5f82825260208201905092915050565b5f61462f8261460b565b6146398185614615565b93506146498185602086016134bc565b614652816134e4565b840191505092915050565b5f6080820190506146705f8301876135da565b61467d60208301866135da565b61468a60408301856137dd565b818103606083015261469c8184614625565b905095945050505050565b5f815190506146b58161341a565b92915050565b5f602082840312156146d0576146cf6133e7565b5b5f6146dd848285016146a7565b9150509291505056fea2646970667358221220168e8bff347348b5820e9aacc602c416a5fefaceea7a714ac4ac42166570600764736f6c6343000818003368747470733a2f2f697066732e696f2f697066732f516d62516f7164674a6e5272344a33524d6b5738416d4c526247706e755166654b467754335138555662694561652f68696464656e2e6a736f6e

Deployed Bytecode

0x6080604052600436106102e3575f3560e01c8063715018a61161018f578063c23dc68f116100db578063ec5a2d4511610094578063f2c4ce1e1161006e578063f2c4ce1e14610a4f578063f2fde38b14610a77578063f5aa406d14610a9f578063f9020e3314610ac7576102e3565b8063ec5a2d45146109e7578063ee64aefb146109fd578063f103b43314610a27576102e3565b8063c23dc68f146108a5578063c30bf318146108e1578063c87b56dd14610909578063cbff2fb714610945578063d5abeb0114610981578063e985e9c5146109ab576102e3565b80638da5cb5b116101485780639ef1ffe1116101225780639ef1ffe11461080f578063a22cb46514610837578063a945bf801461085f578063b88d4fde14610889576102e3565b80638da5cb5b1461077f57806395d89b41146107a957806399a2557a146107d3576102e3565b8063715018a6146106af57806372250380146106c55780637399ad79146106ef57806376a7e07c146107055780637f8448a91461071b5780638462151c14610743576102e3565b8063518302271161024e5780635ecc08311161020757806367243482116101e157806367243482146105f95780636c0360eb1461062157806370a082311461064b5780637116abf914610687576102e3565b80635ecc08311461058b57806360ea86c7146105a15780636352211e146105bd576102e3565b8063518302271461049357806352aca3a0146104bd5780635503a0e8146104d357806355f804b3146104fd5780635bbb2177146105255780635e2f4be214610561576102e3565b806318160ddd116102a057806318160ddd146103f557806320c354191461041f57806323b872dd146104355780632db11544146104515780633ccfd60b1461046d57806342842e0e14610477576102e3565b806301ffc9a7146102e757806306fdde0314610323578063081812fc1461034d578063095ea7b31461038957806316ba10e0146103a557806316e0a200146103cd575b5f80fd5b3480156102f2575f80fd5b5061030d60048036038101906103089190613444565b610af1565b60405161031a9190613489565b60405180910390f35b34801561032e575f80fd5b50610337610b82565b604051610344919061352c565b60405180910390f35b348015610358575f80fd5b50610373600480360381019061036e919061357f565b610c12565b60405161038091906135e9565b60405180910390f35b6103a3600480360381019061039e919061362c565b610c6b565b005b3480156103b0575f80fd5b506103cb60048036038101906103c69190613796565b610c7b565b005b3480156103d8575f80fd5b506103f360048036038101906103ee919061357f565b610c96565b005b348015610400575f80fd5b50610409610ca8565b60405161041691906137ec565b60405180910390f35b34801561042a575f80fd5b50610433610cf3565b005b61044f600480360381019061044a9190613805565b610d28565b005b61046b6004803603810190610466919061357f565b610fd3565b005b6104756111cb565b005b610491600480360381019061048c9190613805565b611506565b005b34801561049e575f80fd5b506104a7611525565b6040516104b49190613489565b60405180910390f35b3480156104c8575f80fd5b506104d1611537565b005b3480156104de575f80fd5b506104e761156c565b6040516104f4919061352c565b60405180910390f35b348015610508575f80fd5b50610523600480360381019061051e9190613796565b6115f8565b005b348015610530575f80fd5b5061054b600480360381019061054691906138b2565b611613565b6040516105589190613a55565b60405180910390f35b34801561056c575f80fd5b5061057561166f565b60405161058291906137ec565b60405180910390f35b348015610596575f80fd5b5061059f611675565b005b6105bb60048036038101906105b69190613aca565b6116aa565b005b3480156105c8575f80fd5b506105e360048036038101906105de919061357f565b611914565b6040516105f091906135e9565b60405180910390f35b348015610604575f80fd5b5061061f600480360381019061061a9190613b7c565b611925565b005b34801561062c575f80fd5b50610635611a6a565b604051610642919061352c565b60405180910390f35b348015610656575f80fd5b50610671600480360381019061066c9190613bfa565b611af6565b60405161067e91906137ec565b60405180910390f35b348015610692575f80fd5b506106ad60048036038101906106a89190613aca565b611b8a565b005b3480156106ba575f80fd5b506106c3611dae565b005b3480156106d0575f80fd5b506106d9611dc1565b6040516106e6919061352c565b60405180910390f35b3480156106fa575f80fd5b50610703611e4d565b005b348015610710575f80fd5b50610719611e82565b005b348015610726575f80fd5b50610741600480360381019061073c919061357f565b611eb6565b005b34801561074e575f80fd5b5061076960048036038101906107649190613bfa565b611ec8565b6040516107769190613cdc565b60405180910390f35b34801561078a575f80fd5b50610793611f41565b6040516107a091906135e9565b60405180910390f35b3480156107b4575f80fd5b506107bd611f69565b6040516107ca919061352c565b60405180910390f35b3480156107de575f80fd5b506107f960048036038101906107f49190613cfc565b611ff9565b6040516108069190613cdc565b60405180910390f35b34801561081a575f80fd5b506108356004803603810190610830919061357f565b61200f565b005b348015610842575f80fd5b5061085d60048036038101906108589190613d76565b612021565b005b34801561086a575f80fd5b50610873612127565b60405161088091906137ec565b60405180910390f35b6108a3600480360381019061089e9190613e52565b61212d565b005b3480156108b0575f80fd5b506108cb60048036038101906108c6919061357f565b61217e565b6040516108d89190613f25565b60405180910390f35b3480156108ec575f80fd5b5061090760048036038101906109029190613aca565b6121f3565b005b348015610914575f80fd5b5061092f600480360381019061092a919061357f565b612417565b60405161093c919061352c565b60405180910390f35b348015610950575f80fd5b5061096b60048036038101906109669190613bfa565b6125a1565b60405161097891906137ec565b60405180910390f35b34801561098c575f80fd5b506109956125b6565b6040516109a291906137ec565b60405180910390f35b3480156109b6575f80fd5b506109d160048036038101906109cc9190613f3e565b6125bc565b6040516109de9190613489565b60405180910390f35b3480156109f2575f80fd5b506109fb61264a565b005b348015610a08575f80fd5b50610a1161267c565b604051610a1e91906137ec565b60405180910390f35b348015610a32575f80fd5b50610a4d6004803603810190610a48919061357f565b612682565b005b348015610a5a575f80fd5b50610a756004803603810190610a709190613796565b6126d0565b005b348015610a82575f80fd5b50610a9d6004803603810190610a989190613bfa565b6126eb565b005b348015610aaa575f80fd5b50610ac56004803603810190610ac09190613faf565b61276f565b005b348015610ad2575f80fd5b50610adb612781565b604051610ae8919061404d565b60405180910390f35b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b4b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b7b5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610b9190614093565b80601f0160208091040260200160405190810160405280929190818152602001828054610bbd90614093565b8015610c085780601f10610bdf57610100808354040283529160200191610c08565b820191905f5260205f20905b815481529060010190602001808311610beb57829003601f168201915b5050505050905090565b5f610c1c82612794565b610c3157610c3063cf4700e460e01b612837565b5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610c778282600161283f565b5050565b610c83612969565b8060109081610c929190614260565b5050565b610c9e612969565b80600b8190555050565b5f610cb16129f0565b6001545f54030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610ce36129f4565b14610cf057600854810190505b90565b610cfb612969565b6004601160016101000a81548160ff02191690836004811115610d2157610d20613fda565b5b0217905550565b5f610d3282612a1b565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610da757610da663a114810060e01b612837565b5b5f80610db284612b2a565b91509150610dc88187610dc3612b4d565b612b54565b610df357610ddd86610dd8612b4d565b6125bc565b610df257610df16359c896be60e01b612837565b5b5b610e008686866001612b97565b8015610e0a575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815460010191905081905550610ed285610eae888887612b9d565b7c020000000000000000000000000000000000000000000000000000000017612bc4565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603610f4e575f6001850190505f60045f8381526020019081526020015f205403610f4c575f548114610f4b578360045f8381526020019081526020015f20819055505b5b505b5f73ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a45f8103610fbd57610fbc63ea553b3460e01b612837565b5b610fca8787876001612bee565b50505050505050565b6004806004811115610fe857610fe7613fda565b5b601160019054906101000a900460ff16600481111561100a57611009613fda565b5b14611041576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a548261104d610ca8565b611057919061435c565b111561108f576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b548261109d919061438f565b34146110d5576040517f9f87ae5400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6110de612b4d565b90505f8360135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461112a919061435c565b9050600d54811115611168576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8360135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546111b4919061435c565b925050819055506111c58285612bf4565b50505050565b6111d3612969565b5f479050678ac7230489e800008111156113c6575f73bfce544f9d130a1c8b607acff8b467a040c8963d73ffffffffffffffffffffffffffffffffffffffff166064602d84611222919061438f565b61122c91906143fd565b6040516112389061445a565b5f6040518083038185875af1925050503d805f8114611272576040519150601f19603f3d011682016040523d82523d5f602084013e611277565b606091505b5050905080611284575f80fd5b5f7360f33d6a73649409ba4bd40fb2ef4ef54d3e1ea373ffffffffffffffffffffffffffffffffffffffff166064601e856112bf919061438f565b6112c991906143fd565b6040516112d59061445a565b5f6040518083038185875af1925050503d805f811461130f576040519150601f19603f3d011682016040523d82523d5f602084013e611314565b606091505b5050905080611321575f80fd5b5f73c64689ac93458a6d8affd42ba5081dec012ed46373ffffffffffffffffffffffffffffffffffffffff16606460198661135c919061438f565b61136691906143fd565b6040516113729061445a565b5f6040518083038185875af1925050503d805f81146113ac576040519150601f19603f3d011682016040523d82523d5f602084013e6113b1565b606091505b50509050806113be575f80fd5b505050611503565b5f73bfce544f9d130a1c8b607acff8b467a040c8963d73ffffffffffffffffffffffffffffffffffffffff166064603c84611401919061438f565b61140b91906143fd565b6040516114179061445a565b5f6040518083038185875af1925050503d805f8114611451576040519150601f19603f3d011682016040523d82523d5f602084013e611456565b606091505b5050905080611463575f80fd5b5f7360f33d6a73649409ba4bd40fb2ef4ef54d3e1ea373ffffffffffffffffffffffffffffffffffffffff16606460288561149e919061438f565b6114a891906143fd565b6040516114b49061445a565b5f6040518083038185875af1925050503d805f81146114ee576040519150601f19603f3d011682016040523d82523d5f602084013e6114f3565b606091505b5050905080611500575f80fd5b50505b50565b61152083838360405180602001604052805f81525061212d565b505050565b60115f9054906101000a900460ff1681565b61153f612969565b6003601160016101000a81548160ff0219169083600481111561156557611564613fda565b5b0217905550565b6010805461157990614093565b80601f01602080910402602001604051908101604052809291908181526020018280546115a590614093565b80156115f05780601f106115c7576101008083540402835291602001916115f0565b820191905f5260205f20905b8154815290600101906020018083116115d357829003601f168201915b505050505081565b611600612969565b80600e908161160f9190614260565b5050565b6060805f84849050905060405191508082528060051b90508060208301016040525b5f8114611664575f6020820391508186013590505f6116538261217e565b905080836020860101525050611635565b819250505092915050565b600c5481565b61167d612969565b6001601160016101000a81548160ff021916908360048111156116a3576116a2613fda565b5b0217905550565b60038060048111156116bf576116be613fda565b5b601160019054906101000a900460ff1660048111156116e1576116e0613fda565b5b14611718576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600d54600a5482611728610ca8565b611732919061435c565b111561176a576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808261177c611777612b4d565b612d68565b611786919061435c565b11156117be576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60125486865f801b83036117fe576040517fa14edd7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611807612b4d565b60405160200161181791906144b3565b6040516020818303038152906040528051906020012090508361187a8484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505083612dbc565b146118b1576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b54886118bf919061438f565b34146118f7576040517f9f87ae5400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611908611902612b4d565b89612bf4565b50505050505050505050565b5f61191e82612a1b565b9050919050565b61192d612969565b81819050848490501461196c576040517fe6bbb3c100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611975610ca8565b90505f5b85859050811015611a6257600a5484848381811061199a576119996144cd565b5b90506020020135836119ac919061435c565b11156119e4576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8383828181106119f7576119f66144cd565b5b9050602002013582611a09919061435c565b9150611a55868683818110611a2157611a206144cd565b5b9050602002016020810190611a369190613bfa565b858584818110611a4957611a486144cd565b5b90506020020135612bf4565b8080600101915050611979565b505050505050565b600e8054611a7790614093565b80601f0160208091040260200160405190810160405280929190818152602001828054611aa390614093565b8015611aee5780601f10611ac557610100808354040283529160200191611aee565b820191905f5260205f20905b815481529060010190602001808311611ad157829003601f168201915b505050505081565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b3b57611b3a638f4eb60460e01b612837565b5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b6001806004811115611b9f57611b9e613fda565b5b601160019054906101000a900460ff166004811115611bc157611bc0613fda565b5b14611bf8576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600c54600a5482611c08610ca8565b611c12919061435c565b1115611c4a576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082611c5c611c57612b4d565b612d68565b611c66919061435c565b1115611c9e576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60125486865f801b8303611cde576040517fa14edd7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f611ce7612b4d565b604051602001611cf791906144b3565b60405160208183030381529060405280519060200120905083611d5a8484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505083612dbc565b14611d91576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611da2611d9c612b4d565b89612bf4565b50505050505050505050565b611db6612969565b611dbf5f612e0a565b565b600f8054611dce90614093565b80601f0160208091040260200160405190810160405280929190818152602001828054611dfa90614093565b8015611e455780601f10611e1c57610100808354040283529160200191611e45565b820191905f5260205f20905b815481529060010190602001808311611e2857829003601f168201915b505050505081565b611e55612969565b6002601160016101000a81548160ff02191690836004811115611e7b57611e7a613fda565b5b0217905550565b611e8a612969565b5f601160016101000a81548160ff02191690836004811115611eaf57611eae613fda565b5b0217905550565b611ebe612969565b80600d8190555050565b60607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611ef36129f4565b14611f0957611f0863bdba09d760e01b612837565b5b5f611f126129f0565b90505f611f1d612ecd565b90506060818314611f3657611f33858484612ed5565b90505b809350505050919050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611f7890614093565b80601f0160208091040260200160405190810160405280929190818152602001828054611fa490614093565b8015611fef5780601f10611fc657610100808354040283529160200191611fef565b820191905f5260205f20905b815481529060010190602001808311611fd257829003601f168201915b5050505050905090565b6060612006848484612ed5565b90509392505050565b612017612969565b80600c8190555050565b8060075f61202d612b4d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166120d6612b4d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161211b9190613489565b60405180910390a35050565b600b5481565b612138848484610d28565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146121785761216284848484613084565b6121775761217663d1a57ed660e01b612837565b5b5b50505050565b612186613393565b61218e6129f0565b82106121ed5761219c6129f4565b8211156121b3576121ac826131ae565b90506121ee565b6121bb612ecd565b8210156121ec575b6121cc826131d7565b6121dc57816001900391506121c3565b6121e5826131ae565b90506121ee565b5b5b919050565b600280600481111561220857612207613fda565b5b601160019054906101000a900460ff16600481111561222a57612229613fda565b5b14612261576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600d54600a5482612271610ca8565b61227b919061435c565b11156122b3576040517f52df9fe500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80826122c56122c0612b4d565b612d68565b6122cf919061435c565b1115612307576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60125486865f801b8303612347576040517fa14edd7700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612350612b4d565b60405160200161236091906144b3565b604051602081830303815290604052805190602001209050836123c38484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505083612dbc565b146123fa576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61240b612405612b4d565b89612bf4565b50505050505050505050565b60605f151560115f9054906101000a900460ff161515036124c257600f805461243f90614093565b80601f016020809104026020016040519081016040528092919081815260200182805461246b90614093565b80156124b65780601f1061248d576101008083540402835291602001916124b6565b820191905f5260205f20905b81548152906001019060200180831161249957829003601f168201915b5050505050905061259c565b5f600e80546124d090614093565b80601f01602080910402602001604051908101604052809291908181526020018280546124fc90614093565b80156125475780601f1061251e57610100808354040283529160200191612547565b820191905f5260205f20905b81548152906001019060200180831161252a57829003601f168201915b505050505090505f81511161256a5760405180602001604052805f815250612598565b80612574846131f4565b6010604051602001612588939291906145b4565b6040516020818303038152906040525b9150505b919050565b6013602052805f5260405f205f915090505481565b600a5481565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b612652612969565b60115f9054906101000a900460ff161560115f6101000a81548160ff021916908315150217905550565b600d5481565b61268a612969565b600a548111156126c6576040517f28da441900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a8190555050565b6126d8612969565b80600f90816126e79190614260565b5050565b6126f3612969565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612763575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161275a91906135e9565b60405180910390fd5b61276c81612e0a565b50565b612777612969565b8060128190555050565b601160019054906101000a900460ff1681565b5f8161279e6129f0565b11612831576127ab6129f4565b8211156127d3576127cc60045f8481526020019081526020015f2054613243565b9050612832565b5f54821015612830575f5b5f60045f8581526020019081526020015f20549150810361280a5782612803906145e4565b92506127de565b5f7c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b805f5260045ffd5b5f61284983611914565b905081801561288b57508073ffffffffffffffffffffffffffffffffffffffff16612872612b4d565b73ffffffffffffffffffffffffffffffffffffffff1614155b156128b7576128a18161289c612b4d565b6125bc565b6128b6576128b563cfb3b94260e01b612837565b5b5b8360065f8581526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b612971613283565b73ffffffffffffffffffffffffffffffffffffffff1661298f611f41565b73ffffffffffffffffffffffffffffffffffffffff16146129ee576129b2613283565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016129e591906135e9565b60405180910390fd5b565b5f90565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b5f81612a256129f0565b11612b145760045f8381526020019081526020015f20549050612a466129f4565b821115612a6b57612a5681613243565b612b2557612a6a63df2d9b4260e01b612837565b5b5f8103612aec575f548210612a8b57612a8a63df2d9b4260e01b612837565b5b5b60045f836001900393508381526020019081526020015f205490505f810315612ae7575f7c010000000000000000000000000000000000000000000000000000000082160315612b2557612ae663df2d9b4260e01b612837565b5b612a8c565b5f7c010000000000000000000000000000000000000000000000000000000082160315612b25575b612b2463df2d9b4260e01b612837565b5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8612bb386868461328a565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f805490505f8203612c1157612c1063b562e8dd60e01b612837565b5b612c1d5f848385612b97565b612c3b83612c2c5f865f612b9d565b612c3585613292565b17612bc4565b60045f8381526020019081526020015f2081905550600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505f73ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161690505f8103612cec57612ceb632e07630060e01b612837565b5b5f83830190505f839050612cfe6129f4565b600183031115612d1957612d186381647e3a60e01b612837565b5b5b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4818160010191508103612d1a57815f81905550505050612d635f848385612bee565b505050565b5f67ffffffffffffffff604060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054901c169050919050565b5f808290505f5b8451811015612dff57612df082868381518110612de357612de26144cd565b5b60200260200101516132a1565b91508080600101915050612dc3565b508091505092915050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f8054905090565b6060818310612eef57612eee6332c1995a60e01b612837565b5b612ef76129f0565b831015612f0957612f066129f0565b92505b5f612f12612ecd565b90505f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff612f3e6129f4565b03612f495781612f4b565b835b9050808410612f58578093505b5f612f6287611af6565b9050848610612f6f575f90505b5f811461307a578086860311612f855785850390505b5f60405194506001820160051b85019050806040525f612fa48861217e565b90505f8160400151612fb757815f015190505b5f5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff612fe26129f4565b1461301057868a03612ffc576001612ff86129f4565b0199505b6130046129f4565b8a111561300f575f91505b5b6130198a6131ae565b925060408301515f811461302f575f9250613055565b83511561303b57835192505b8b831860601b613054576001820191508a8260051b8a01525b5b5060018a01995083604052888a148061306d57508481145b15612fb957808852505050505b5050509392505050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130a9612b4d565b8786866040518563ffffffff1660e01b81526004016130cb949392919061465d565b6020604051808303815f875af192505050801561310657506040513d601f19601f8201168201806040525081019061310391906146bb565b60015b61315b573d805f8114613134576040519150601f19603f3d011682016040523d82523d5f602084013e613139565b606091505b505f8151036131535761315263d1a57ed660e01b612837565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6131b6613393565b6131d060045f8481526020019081526020015f20546132cb565b9050919050565b5f8060045f8481526020019081526020015f205414159050919050565b606060a060405101806040526020810391505f825281835b60011561322e57600184039350600a81066030018453600a810490508061320c575b50828103602084039350808452505050919050565b5f7c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b5f33905090565b5f9392505050565b5f6001821460e11b9050919050565b5f8183106132b8576132b3828461337f565b6132c3565b6132c2838361337f565b5b905092915050565b6132d3613393565b81815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff16815250505f7c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b5f825f528160205260405f20905092915050565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f67ffffffffffffffff1681526020015f151581526020015f62ffffff1681525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613423816133ef565b811461342d575f80fd5b50565b5f8135905061343e8161341a565b92915050565b5f60208284031215613459576134586133e7565b5b5f61346684828501613430565b91505092915050565b5f8115159050919050565b6134838161346f565b82525050565b5f60208201905061349c5f83018461347a565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156134d95780820151818401526020810190506134be565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6134fe826134a2565b61350881856134ac565b93506135188185602086016134bc565b613521816134e4565b840191505092915050565b5f6020820190508181035f83015261354481846134f4565b905092915050565b5f819050919050565b61355e8161354c565b8114613568575f80fd5b50565b5f8135905061357981613555565b92915050565b5f60208284031215613594576135936133e7565b5b5f6135a18482850161356b565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6135d3826135aa565b9050919050565b6135e3816135c9565b82525050565b5f6020820190506135fc5f8301846135da565b92915050565b61360b816135c9565b8114613615575f80fd5b50565b5f8135905061362681613602565b92915050565b5f8060408385031215613642576136416133e7565b5b5f61364f85828601613618565b92505060206136608582860161356b565b9150509250929050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6136a8826134e4565b810181811067ffffffffffffffff821117156136c7576136c6613672565b5b80604052505050565b5f6136d96133de565b90506136e5828261369f565b919050565b5f67ffffffffffffffff82111561370457613703613672565b5b61370d826134e4565b9050602081019050919050565b828183375f83830152505050565b5f61373a613735846136ea565b6136d0565b9050828152602081018484840111156137565761375561366e565b5b61376184828561371a565b509392505050565b5f82601f83011261377d5761377c61366a565b5b813561378d848260208601613728565b91505092915050565b5f602082840312156137ab576137aa6133e7565b5b5f82013567ffffffffffffffff8111156137c8576137c76133eb565b5b6137d484828501613769565b91505092915050565b6137e68161354c565b82525050565b5f6020820190506137ff5f8301846137dd565b92915050565b5f805f6060848603121561381c5761381b6133e7565b5b5f61382986828701613618565b935050602061383a86828701613618565b925050604061384b8682870161356b565b9150509250925092565b5f80fd5b5f80fd5b5f8083601f8401126138725761387161366a565b5b8235905067ffffffffffffffff81111561388f5761388e613855565b5b6020830191508360208202830111156138ab576138aa613859565b5b9250929050565b5f80602083850312156138c8576138c76133e7565b5b5f83013567ffffffffffffffff8111156138e5576138e46133eb565b5b6138f18582860161385d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61392f816135c9565b82525050565b5f67ffffffffffffffff82169050919050565b61395181613935565b82525050565b6139608161346f565b82525050565b5f62ffffff82169050919050565b61397d81613966565b82525050565b608082015f8201516139975f850182613926565b5060208201516139aa6020850182613948565b5060408201516139bd6040850182613957565b5060608201516139d06060850182613974565b50505050565b5f6139e18383613983565b60808301905092915050565b5f602082019050919050565b5f613a03826138fd565b613a0d8185613907565b9350613a1883613917565b805f5b83811015613a48578151613a2f88826139d6565b9750613a3a836139ed565b925050600181019050613a1b565b5085935050505092915050565b5f6020820190508181035f830152613a6d81846139f9565b905092915050565b5f8083601f840112613a8a57613a8961366a565b5b8235905067ffffffffffffffff811115613aa757613aa6613855565b5b602083019150836020820283011115613ac357613ac2613859565b5b9250929050565b5f805f60408486031215613ae157613ae06133e7565b5b5f84013567ffffffffffffffff811115613afe57613afd6133eb565b5b613b0a86828701613a75565b93509350506020613b1d8682870161356b565b9150509250925092565b5f8083601f840112613b3c57613b3b61366a565b5b8235905067ffffffffffffffff811115613b5957613b58613855565b5b602083019150836020820283011115613b7557613b74613859565b5b9250929050565b5f805f8060408587031215613b9457613b936133e7565b5b5f85013567ffffffffffffffff811115613bb157613bb06133eb565b5b613bbd87828801613b27565b9450945050602085013567ffffffffffffffff811115613be057613bdf6133eb565b5b613bec8782880161385d565b925092505092959194509250565b5f60208284031215613c0f57613c0e6133e7565b5b5f613c1c84828501613618565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613c578161354c565b82525050565b5f613c688383613c4e565b60208301905092915050565b5f602082019050919050565b5f613c8a82613c25565b613c948185613c2f565b9350613c9f83613c3f565b805f5b83811015613ccf578151613cb68882613c5d565b9750613cc183613c74565b925050600181019050613ca2565b5085935050505092915050565b5f6020820190508181035f830152613cf48184613c80565b905092915050565b5f805f60608486031215613d1357613d126133e7565b5b5f613d2086828701613618565b9350506020613d318682870161356b565b9250506040613d428682870161356b565b9150509250925092565b613d558161346f565b8114613d5f575f80fd5b50565b5f81359050613d7081613d4c565b92915050565b5f8060408385031215613d8c57613d8b6133e7565b5b5f613d9985828601613618565b9250506020613daa85828601613d62565b9150509250929050565b5f67ffffffffffffffff821115613dce57613dcd613672565b5b613dd7826134e4565b9050602081019050919050565b5f613df6613df184613db4565b6136d0565b905082815260208101848484011115613e1257613e1161366e565b5b613e1d84828561371a565b509392505050565b5f82601f830112613e3957613e3861366a565b5b8135613e49848260208601613de4565b91505092915050565b5f805f8060808587031215613e6a57613e696133e7565b5b5f613e7787828801613618565b9450506020613e8887828801613618565b9350506040613e998782880161356b565b925050606085013567ffffffffffffffff811115613eba57613eb96133eb565b5b613ec687828801613e25565b91505092959194509250565b608082015f820151613ee65f850182613926565b506020820151613ef96020850182613948565b506040820151613f0c6040850182613957565b506060820151613f1f6060850182613974565b50505050565b5f608082019050613f385f830184613ed2565b92915050565b5f8060408385031215613f5457613f536133e7565b5b5f613f6185828601613618565b9250506020613f7285828601613618565b9150509250929050565b5f819050919050565b613f8e81613f7c565b8114613f98575f80fd5b50565b5f81359050613fa981613f85565b92915050565b5f60208284031215613fc457613fc36133e7565b5b5f613fd184828501613f9b565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6005811061401857614017613fda565b5b50565b5f81905061402882614007565b919050565b5f6140378261401b565b9050919050565b6140478161402d565b82525050565b5f6020820190506140605f83018461403e565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806140aa57607f821691505b6020821081036140bd576140bc614066565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261411f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826140e4565b61412986836140e4565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61416461415f61415a8461354c565b614141565b61354c565b9050919050565b5f819050919050565b61417d8361414a565b6141916141898261416b565b8484546140f0565b825550505050565b5f90565b6141a5614199565b6141b0818484614174565b505050565b5b818110156141d3576141c85f8261419d565b6001810190506141b6565b5050565b601f821115614218576141e9816140c3565b6141f2846140d5565b81016020851015614201578190505b61421561420d856140d5565b8301826141b5565b50505b505050565b5f82821c905092915050565b5f6142385f198460080261421d565b1980831691505092915050565b5f6142508383614229565b9150826002028217905092915050565b614269826134a2565b67ffffffffffffffff81111561428257614281613672565b5b61428c8254614093565b6142978282856141d7565b5f60209050601f8311600181146142c8575f84156142b6578287015190505b6142c08582614245565b865550614327565b601f1984166142d6866140c3565b5f5b828110156142fd578489015182556001820191506020850194506020810190506142d8565b8683101561431a5784890151614316601f891682614229565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6143668261354c565b91506143718361354c565b92508282019050808211156143895761438861432f565b5b92915050565b5f6143998261354c565b91506143a48361354c565b92508282026143b28161354c565b915082820484148315176143c9576143c861432f565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6144078261354c565b91506144128361354c565b925082614422576144216143d0565b5b828204905092915050565b5f81905092915050565b50565b5f6144455f8361442d565b915061445082614437565b5f82019050919050565b5f6144648261443a565b9150819050919050565b5f8160601b9050919050565b5f6144848261446e565b9050919050565b5f6144958261447a565b9050919050565b6144ad6144a8826135c9565b61448b565b82525050565b5f6144be828461449c565b60148201915081905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81905092915050565b5f61450e826134a2565b61451881856144fa565b93506145288185602086016134bc565b80840191505092915050565b5f815461454081614093565b61454a81866144fa565b9450600182165f81146145645760018114614579576145ab565b60ff19831686528115158202860193506145ab565b614582856140c3565b5f5b838110156145a357815481890152600182019150602081019050614584565b838801955050505b50505092915050565b5f6145bf8286614504565b91506145cb8285614504565b91506145d78284614534565b9150819050949350505050565b5f6145ee8261354c565b91505f8203614600576145ff61432f565b5b600182039050919050565b5f81519050919050565b5f82825260208201905092915050565b5f61462f8261460b565b6146398185614615565b93506146498185602086016134bc565b614652816134e4565b840191505092915050565b5f6080820190506146705f8301876135da565b61467d60208301866135da565b61468a60408301856137dd565b818103606083015261469c8184614625565b905095945050505050565b5f815190506146b58161341a565b92915050565b5f602082840312156146d0576146cf6133e7565b5b5f6146dd848285016146a7565b9150509291505056fea2646970667358221220168e8bff347348b5820e9aacc602c416a5fefaceea7a714ac4ac42166570600764736f6c63430008180033

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

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