ETH Price: $3,159.58 (+2.19%)

Token

Cute Ape Yacht Club (QAYC)
 

Overview

Max Total Supply

5,000 QAYC

Holders

585

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
10 QAYC
0x8912619f80722Ef4aA1b47D353305AFc42B0c2eb
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:
QAYC

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

/**

 Q)qqqq    A)aa   Y)    yy   C)ccc  
Q)    qq  A)  aa   Y)  yy   C)   cc 
Q)    qq A)    aa   Y)yy   C)       
Q)  qq q A)aaaaaa    Y)    C)       
Q)   qq  A)    aa    Y)     C)   cc 
 Q)qqq q A)    aa    Y)      C)ccc  

*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

// File: https://github.com/ProjectOpenSea/operator-filter-registry/blob/529cceeda9f5f8e28812c20042cc57626f784718/src/OperatorFilterer.sol

pragma solidity ^0.8.13;

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */

abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // Allow spending tokens from addresses with balance
            // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
            // from an EOA.
            if (from == msg.sender) {
                _;
                return;
            }
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
        _;
    }
}

// File: https://github.com/ProjectOpenSea/operator-filter-registry/blob/529cceeda9f5f8e28812c20042cc57626f784718/src/DefaultOperatorFilterer.sol

pragma solidity ^0.8.13;

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

pragma solidity ^0.8.13;

// File: erc721a/contracts/IERC721A.sol

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: erc721a/contracts/ERC721A.sol

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

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


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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


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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

////////////////////
///// CONTRACT /////
////////////////////
pragma solidity ^0.8.17;

contract QAYC is ERC721A, Ownable, DefaultOperatorFilterer, ReentrancyGuard {

    ////////////////
    ///// SPEC /////
    ////////////////
    uint256 public maxSupply = 5000;
    uint256 public mintCost = 0.005 ether;
    uint256 public walletMax = 5;
    bool public saleActive = false;

    string public baseURI = "ipfs://QmUp7Fqm9QWqmsejFH7NWMraWr7bUN7To1FHKJH2mAF6ez/";

    mapping(address => bool) freeMint;
    mapping(address => uint) addressToMinted;
    
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    constructor () ERC721A("Cute Ape Yacht Club", "QAYC") {
    }

    /////////////////////
    ///// FUNCTIONS /////
    /////////////////////
    function mintQAYC(uint256 mintAmount) public payable nonReentrant {
        require(saleActive, "The sale is not active.");
        require(addressToMinted[msg.sender] + mintAmount <= walletMax, "This wallet already minted the maximum allocation.");
        require(totalSupply() + mintAmount <= maxSupply, "No more are available for mint.");

        if(freeMint[msg.sender]) {
            require(msg.value >= mintAmount * mintCost, "You require more funds to mint that many.");
        }
        else {
            require(msg.value >= (mintAmount - 1) * mintCost, "You require more funds to mint that many.");
            freeMint[msg.sender] = true;
        }
        
        addressToMinted[msg.sender] += mintAmount;
        _safeMint(msg.sender, mintAmount);
    }

    function reserveQAYC(uint256 mintAmount) public onlyOwner {
        require(totalSupply() + mintAmount <= maxSupply, "No more are available.");
        
        _safeMint(msg.sender, mintAmount);
    }

    /////////////////
    ///// OWNER /////
    /////////////////
    function setCost(uint256 newCost) external onlyOwner {
        mintCost = newCost;
    }

    function setWalletMax(uint256 newMax) external onlyOwner {
        walletMax = newMax;
    }

    function flipSale() external onlyOwner {
        saleActive = !saleActive;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

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

    function withdraw() public onlyOwner {
		payable(msg.sender).transfer(address(this).balance);
	}
    
    //////////////////////////////
    ///// OS OPERATOR FILTER /////
    //////////////////////////////
    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        payable
        override
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":[],"name":"flipSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"mintQAYC","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"reserveQAYC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setWalletMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

611388600a556611c37937e08000600b556005600c55600d805460ff1916905560e06040526036608081815290620020ff60a039600e9062000042908262000337565b503480156200005057600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280601381526020017f437574652041706520596163687420436c756200000000000000000000000000815250604051806040016040528060048152602001635141594360e01b8152508160029081620000cc919062000337565b506003620000db828262000337565b5050600160005550620000ee3362000240565b6daaeb6d7670e522a718067333cd4e3b15620002335780156200018157604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200016257600080fd5b505af115801562000177573d6000803e3d6000fd5b5050505062000233565b6001600160a01b03821615620001d25760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000147565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200021957600080fd5b505af11580156200022e573d6000803e3d6000fd5b505050505b5050600160095562000403565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002bd57607f821691505b602082108103620002de57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200033257600081815260208120601f850160051c810160208610156200030d5750805b601f850160051c820191505b818110156200032e5782815560010162000319565b5050505b505050565b81516001600160401b0381111562000353576200035362000292565b6200036b81620003648454620002a8565b84620002e4565b602080601f831160018114620003a357600084156200038a5750858301515b600019600386901b1c1916600185901b1785556200032e565b600085815260208120601f198616915b82811015620003d457888601518255948401946001909101908401620003b3565b5085821015620003f35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611cec80620004136000396000f3fe6080604052600436106101cd5760003560e01c8063715018a6116100f7578063bbac103f11610095578063d5abeb0111610064578063d5abeb01146104c2578063e985e9c5146104d8578063f2fde38b146104f8578063fe3145241461051857600080fd5b8063bbac103f14610459578063bdb4b8481461046c578063c87b56dd14610482578063cb55f072146104a257600080fd5b80638ff4013f116100d15780638ff4013f146103f157806395d89b4114610411578063a22cb46514610426578063b88d4fde1461044657600080fd5b8063715018a6146103a95780637ba5e621146103be5780638da5cb5b146103d357600080fd5b806341f434341161016f5780636352211e1161013e5780636352211e1461033a57806368428a1b1461035a5780636c0360eb1461037457806370a082311461038957600080fd5b806341f43434146102c557806342842e0e146102e757806344a0d68a146102fa57806355f804b31461031a57600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806318160ddd1461027657806323b872dd1461029d5780633ccfd60b146102b057600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611735565b61052e565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c610580565b6040516101fe91906117a2565b34801561023557600080fd5b506102496102443660046117b5565b610612565b6040516001600160a01b0390911681526020016101fe565b61027461026f3660046117ea565b610656565b005b34801561028257600080fd5b5060015460005403600019015b6040519081526020016101fe565b6102746102ab366004611814565b610724565b3480156102bc57600080fd5b506102746107fd565b3480156102d157600080fd5b506102496daaeb6d7670e522a718067333cd4e81565b6102746102f5366004611814565b610834565b34801561030657600080fd5b506102746103153660046117b5565b610902565b34801561032657600080fd5b506102746103353660046118dc565b61090f565b34801561034657600080fd5b506102496103553660046117b5565b610927565b34801561036657600080fd5b50600d546101f29060ff1681565b34801561038057600080fd5b5061021c610932565b34801561039557600080fd5b5061028f6103a4366004611925565b6109c0565b3480156103b557600080fd5b50610274610a0f565b3480156103ca57600080fd5b50610274610a23565b3480156103df57600080fd5b506008546001600160a01b0316610249565b3480156103fd57600080fd5b5061027461040c3660046117b5565b610a3f565b34801561041d57600080fd5b5061021c610a4c565b34801561043257600080fd5b5061027461044136600461194e565b610a5b565b610274610454366004611985565b610b1f565b6102746104673660046117b5565b610bfb565b34801561047857600080fd5b5061028f600b5481565b34801561048e57600080fd5b5061021c61049d3660046117b5565b610e19565b3480156104ae57600080fd5b506102746104bd3660046117b5565b610e9d565b3480156104ce57600080fd5b5061028f600a5481565b3480156104e457600080fd5b506101f26104f3366004611a01565b610f11565b34801561050457600080fd5b50610274610513366004611925565b610f3f565b34801561052457600080fd5b5061028f600c5481565b60006301ffc9a760e01b6001600160e01b03198316148061055f57506380ac58cd60e01b6001600160e01b03198316145b8061057a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461058f90611a34565b80601f01602080910402602001604051908101604052809291908181526020018280546105bb90611a34565b80156106085780601f106105dd57610100808354040283529160200191610608565b820191906000526020600020905b8154815290600101906020018083116105eb57829003601f168201915b5050505050905090565b600061061d82610fb5565b61063a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561071557604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156106c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e89190611a6e565b61071557604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b61071f8383610fea565b505050565b826daaeb6d7670e522a718067333cd4e3b156107ec57336001600160a01b0382160361075a5761075584848461108a565b6107f7565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156107a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cd9190611a6e565b6107ec57604051633b79c77360e21b815233600482015260240161070c565b6107f784848461108a565b50505050565b610805611223565b60405133904780156108fc02916000818181858888f19350505050158015610831573d6000803e3d6000fd5b50565b826daaeb6d7670e522a718067333cd4e3b156108f757336001600160a01b038216036108655761075584848461127d565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156108b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d89190611a6e565b6108f757604051633b79c77360e21b815233600482015260240161070c565b6107f784848461127d565b61090a611223565b600b55565b610917611223565b600e6109238282611ad1565b5050565b600061057a82611298565b600e805461093f90611a34565b80601f016020809104026020016040519081016040528092919081815260200182805461096b90611a34565b80156109b85780601f1061098d576101008083540402835291602001916109b8565b820191906000526020600020905b81548152906001019060200180831161099b57829003601f168201915b505050505081565b60006001600160a01b0382166109e9576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a17611223565b610a216000611307565b565b610a2b611223565b600d805460ff19811660ff90911615179055565b610a47611223565b600c55565b60606003805461058f90611a34565b816daaeb6d7670e522a718067333cd4e3b15610b1557604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ac9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aed9190611a6e565b610b1557604051633b79c77360e21b81526001600160a01b038216600482015260240161070c565b61071f8383611359565b836daaeb6d7670e522a718067333cd4e3b15610be857336001600160a01b03821603610b5657610b51858585856113c5565b610bf4565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ba5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc99190611a6e565b610be857604051633b79c77360e21b815233600482015260240161070c565b610bf4858585856113c5565b5050505050565b610c03611409565b600d5460ff16610c555760405162461bcd60e51b815260206004820152601760248201527f5468652073616c65206973206e6f74206163746976652e000000000000000000604482015260640161070c565b600c5433600090815260106020526040902054610c73908390611ba7565b1115610cdc5760405162461bcd60e51b815260206004820152603260248201527f546869732077616c6c657420616c7265616479206d696e74656420746865206d60448201527130bc34b6bab69030b63637b1b0ba34b7b71760711b606482015260840161070c565b600a546001546000548391900360001901610cf79190611ba7565b1115610d455760405162461bcd60e51b815260206004820152601f60248201527f4e6f206d6f72652061726520617661696c61626c6520666f72206d696e742e00604482015260640161070c565b336000908152600f602052604090205460ff1615610d8e57600b54610d6a9082611bba565b341015610d895760405162461bcd60e51b815260040161070c90611bd1565b610de0565b600b54610d9c600183611c1a565b610da69190611bba565b341015610dc55760405162461bcd60e51b815260040161070c90611bd1565b336000908152600f60205260409020805460ff191660011790555b3360009081526010602052604081208054839290610dff908490611ba7565b90915550610e0f90503382611462565b6108316001600955565b6060610e2482610fb5565b610e4157604051630a14c4b560e41b815260040160405180910390fd5b6000610e4b61147c565b90508051600003610e6b5760405180602001604052806000815250610e96565b80610e758461148b565b604051602001610e86929190611c2d565b6040516020818303038152906040525b9392505050565b610ea5611223565b600a546001546000548391900360001901610ec09190611ba7565b1115610f075760405162461bcd60e51b815260206004820152601660248201527527379036b7b9329030b9329030bb30b4b630b136329760511b604482015260640161070c565b6108313382611462565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610f47611223565b6001600160a01b038116610fac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161070c565b61083181611307565b600081600111158015610fc9575060005482105b801561057a575050600090815260046020526040902054600160e01b161590565b6000610ff582610927565b9050336001600160a01b0382161461102e576110118133610f11565b61102e576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061109582611298565b9050836001600160a01b0316816001600160a01b0316146110c85760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417611115576110f88633610f11565b61111557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661113c57604051633a954ecd60e21b815260040160405180910390fd5b801561114757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036111d9576001840160008181526004602052604081205490036111d75760005481146111d75760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b03163314610a215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161070c565b61071f83838360405180602001604052806000815250610b1f565b600081806001116112ee576000548110156112ee5760008181526004602052604081205490600160e01b821690036112ec575b80600003610e965750600019016000818152600460205260409020546112cb565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6113d0848484610724565b6001600160a01b0383163b156107f7576113ec848484846114cf565b6107f7576040516368d2bf6b60e11b815260040160405180910390fd5b60026009540361145b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161070c565b6002600955565b6109238282604051806020016040528060008152506115bb565b6060600e805461058f90611a34565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806114a55750819003601f19909101908152919050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611504903390899088908890600401611c5c565b6020604051808303816000875af192505050801561153f575060408051601f3d908101601f1916820190925261153c91810190611c99565b60015b61159d573d80801561156d576040519150601f19603f3d011682016040523d82523d6000602084013e611572565b606091505b508051600003611595576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6115c58383611621565b6001600160a01b0383163b1561071f576000548281035b6115ef60008683806001019450866114cf565b61160c576040516368d2bf6b60e11b815260040160405180910390fd5b8181106115dc578160005414610bf457600080fd5b60008054908290036116465760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146116f557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016116bd565b508160000361171657604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b03198116811461083157600080fd5b60006020828403121561174757600080fd5b8135610e968161171f565b60005b8381101561176d578181015183820152602001611755565b50506000910152565b6000815180845261178e816020860160208601611752565b601f01601f19169290920160200192915050565b602081526000610e966020830184611776565b6000602082840312156117c757600080fd5b5035919050565b80356001600160a01b03811681146117e557600080fd5b919050565b600080604083850312156117fd57600080fd5b611806836117ce565b946020939093013593505050565b60008060006060848603121561182957600080fd5b611832846117ce565b9250611840602085016117ce565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561188157611881611850565b604051601f8501601f19908116603f011681019082821181831017156118a9576118a9611850565b816040528093508581528686860111156118c257600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156118ee57600080fd5b813567ffffffffffffffff81111561190557600080fd5b8201601f8101841361191657600080fd5b6115b384823560208401611866565b60006020828403121561193757600080fd5b610e96826117ce565b801515811461083157600080fd5b6000806040838503121561196157600080fd5b61196a836117ce565b9150602083013561197a81611940565b809150509250929050565b6000806000806080858703121561199b57600080fd5b6119a4856117ce565b93506119b2602086016117ce565b925060408501359150606085013567ffffffffffffffff8111156119d557600080fd5b8501601f810187136119e657600080fd5b6119f587823560208401611866565b91505092959194509250565b60008060408385031215611a1457600080fd5b611a1d836117ce565b9150611a2b602084016117ce565b90509250929050565b600181811c90821680611a4857607f821691505b602082108103611a6857634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611a8057600080fd5b8151610e9681611940565b601f82111561071f57600081815260208120601f850160051c81016020861015611ab25750805b601f850160051c820191505b8181101561121b57828155600101611abe565b815167ffffffffffffffff811115611aeb57611aeb611850565b611aff81611af98454611a34565b84611a8b565b602080601f831160018114611b345760008415611b1c5750858301515b600019600386901b1c1916600185901b17855561121b565b600085815260208120601f198616915b82811015611b6357888601518255948401946001909101908401611b44565b5085821015611b815787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111561057a5761057a611b91565b808202811582820484141761057a5761057a611b91565b60208082526029908201527f596f752072657175697265206d6f72652066756e647320746f206d696e7420746040820152683430ba1036b0b73c9760b91b606082015260800190565b8181038181111561057a5761057a611b91565b60008351611c3f818460208801611752565b835190830190611c53818360208801611752565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611c8f90830184611776565b9695505050505050565b600060208284031215611cab57600080fd5b8151610e968161171f56fea2646970667358221220c1596c4bf82723642e6d619a7ae48e9973153dd6f96e7af8a0b38168aa934afd64736f6c63430008110033697066733a2f2f516d55703746716d395157716d73656a4648374e574d726157723762554e37546f3146484b4a48326d414636657a2f

Deployed Bytecode

0x6080604052600436106101cd5760003560e01c8063715018a6116100f7578063bbac103f11610095578063d5abeb0111610064578063d5abeb01146104c2578063e985e9c5146104d8578063f2fde38b146104f8578063fe3145241461051857600080fd5b8063bbac103f14610459578063bdb4b8481461046c578063c87b56dd14610482578063cb55f072146104a257600080fd5b80638ff4013f116100d15780638ff4013f146103f157806395d89b4114610411578063a22cb46514610426578063b88d4fde1461044657600080fd5b8063715018a6146103a95780637ba5e621146103be5780638da5cb5b146103d357600080fd5b806341f434341161016f5780636352211e1161013e5780636352211e1461033a57806368428a1b1461035a5780636c0360eb1461037457806370a082311461038957600080fd5b806341f43434146102c557806342842e0e146102e757806344a0d68a146102fa57806355f804b31461031a57600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806318160ddd1461027657806323b872dd1461029d5780633ccfd60b146102b057600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed366004611735565b61052e565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c610580565b6040516101fe91906117a2565b34801561023557600080fd5b506102496102443660046117b5565b610612565b6040516001600160a01b0390911681526020016101fe565b61027461026f3660046117ea565b610656565b005b34801561028257600080fd5b5060015460005403600019015b6040519081526020016101fe565b6102746102ab366004611814565b610724565b3480156102bc57600080fd5b506102746107fd565b3480156102d157600080fd5b506102496daaeb6d7670e522a718067333cd4e81565b6102746102f5366004611814565b610834565b34801561030657600080fd5b506102746103153660046117b5565b610902565b34801561032657600080fd5b506102746103353660046118dc565b61090f565b34801561034657600080fd5b506102496103553660046117b5565b610927565b34801561036657600080fd5b50600d546101f29060ff1681565b34801561038057600080fd5b5061021c610932565b34801561039557600080fd5b5061028f6103a4366004611925565b6109c0565b3480156103b557600080fd5b50610274610a0f565b3480156103ca57600080fd5b50610274610a23565b3480156103df57600080fd5b506008546001600160a01b0316610249565b3480156103fd57600080fd5b5061027461040c3660046117b5565b610a3f565b34801561041d57600080fd5b5061021c610a4c565b34801561043257600080fd5b5061027461044136600461194e565b610a5b565b610274610454366004611985565b610b1f565b6102746104673660046117b5565b610bfb565b34801561047857600080fd5b5061028f600b5481565b34801561048e57600080fd5b5061021c61049d3660046117b5565b610e19565b3480156104ae57600080fd5b506102746104bd3660046117b5565b610e9d565b3480156104ce57600080fd5b5061028f600a5481565b3480156104e457600080fd5b506101f26104f3366004611a01565b610f11565b34801561050457600080fd5b50610274610513366004611925565b610f3f565b34801561052457600080fd5b5061028f600c5481565b60006301ffc9a760e01b6001600160e01b03198316148061055f57506380ac58cd60e01b6001600160e01b03198316145b8061057a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461058f90611a34565b80601f01602080910402602001604051908101604052809291908181526020018280546105bb90611a34565b80156106085780601f106105dd57610100808354040283529160200191610608565b820191906000526020600020905b8154815290600101906020018083116105eb57829003601f168201915b5050505050905090565b600061061d82610fb5565b61063a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561071557604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156106c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e89190611a6e565b61071557604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b61071f8383610fea565b505050565b826daaeb6d7670e522a718067333cd4e3b156107ec57336001600160a01b0382160361075a5761075584848461108a565b6107f7565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156107a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107cd9190611a6e565b6107ec57604051633b79c77360e21b815233600482015260240161070c565b6107f784848461108a565b50505050565b610805611223565b60405133904780156108fc02916000818181858888f19350505050158015610831573d6000803e3d6000fd5b50565b826daaeb6d7670e522a718067333cd4e3b156108f757336001600160a01b038216036108655761075584848461127d565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156108b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d89190611a6e565b6108f757604051633b79c77360e21b815233600482015260240161070c565b6107f784848461127d565b61090a611223565b600b55565b610917611223565b600e6109238282611ad1565b5050565b600061057a82611298565b600e805461093f90611a34565b80601f016020809104026020016040519081016040528092919081815260200182805461096b90611a34565b80156109b85780601f1061098d576101008083540402835291602001916109b8565b820191906000526020600020905b81548152906001019060200180831161099b57829003601f168201915b505050505081565b60006001600160a01b0382166109e9576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a17611223565b610a216000611307565b565b610a2b611223565b600d805460ff19811660ff90911615179055565b610a47611223565b600c55565b60606003805461058f90611a34565b816daaeb6d7670e522a718067333cd4e3b15610b1557604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ac9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aed9190611a6e565b610b1557604051633b79c77360e21b81526001600160a01b038216600482015260240161070c565b61071f8383611359565b836daaeb6d7670e522a718067333cd4e3b15610be857336001600160a01b03821603610b5657610b51858585856113c5565b610bf4565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ba5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc99190611a6e565b610be857604051633b79c77360e21b815233600482015260240161070c565b610bf4858585856113c5565b5050505050565b610c03611409565b600d5460ff16610c555760405162461bcd60e51b815260206004820152601760248201527f5468652073616c65206973206e6f74206163746976652e000000000000000000604482015260640161070c565b600c5433600090815260106020526040902054610c73908390611ba7565b1115610cdc5760405162461bcd60e51b815260206004820152603260248201527f546869732077616c6c657420616c7265616479206d696e74656420746865206d60448201527130bc34b6bab69030b63637b1b0ba34b7b71760711b606482015260840161070c565b600a546001546000548391900360001901610cf79190611ba7565b1115610d455760405162461bcd60e51b815260206004820152601f60248201527f4e6f206d6f72652061726520617661696c61626c6520666f72206d696e742e00604482015260640161070c565b336000908152600f602052604090205460ff1615610d8e57600b54610d6a9082611bba565b341015610d895760405162461bcd60e51b815260040161070c90611bd1565b610de0565b600b54610d9c600183611c1a565b610da69190611bba565b341015610dc55760405162461bcd60e51b815260040161070c90611bd1565b336000908152600f60205260409020805460ff191660011790555b3360009081526010602052604081208054839290610dff908490611ba7565b90915550610e0f90503382611462565b6108316001600955565b6060610e2482610fb5565b610e4157604051630a14c4b560e41b815260040160405180910390fd5b6000610e4b61147c565b90508051600003610e6b5760405180602001604052806000815250610e96565b80610e758461148b565b604051602001610e86929190611c2d565b6040516020818303038152906040525b9392505050565b610ea5611223565b600a546001546000548391900360001901610ec09190611ba7565b1115610f075760405162461bcd60e51b815260206004820152601660248201527527379036b7b9329030b9329030bb30b4b630b136329760511b604482015260640161070c565b6108313382611462565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610f47611223565b6001600160a01b038116610fac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161070c565b61083181611307565b600081600111158015610fc9575060005482105b801561057a575050600090815260046020526040902054600160e01b161590565b6000610ff582610927565b9050336001600160a01b0382161461102e576110118133610f11565b61102e576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061109582611298565b9050836001600160a01b0316816001600160a01b0316146110c85760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417611115576110f88633610f11565b61111557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661113c57604051633a954ecd60e21b815260040160405180910390fd5b801561114757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036111d9576001840160008181526004602052604081205490036111d75760005481146111d75760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b03163314610a215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161070c565b61071f83838360405180602001604052806000815250610b1f565b600081806001116112ee576000548110156112ee5760008181526004602052604081205490600160e01b821690036112ec575b80600003610e965750600019016000818152600460205260409020546112cb565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6113d0848484610724565b6001600160a01b0383163b156107f7576113ec848484846114cf565b6107f7576040516368d2bf6b60e11b815260040160405180910390fd5b60026009540361145b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161070c565b6002600955565b6109238282604051806020016040528060008152506115bb565b6060600e805461058f90611a34565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806114a55750819003601f19909101908152919050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611504903390899088908890600401611c5c565b6020604051808303816000875af192505050801561153f575060408051601f3d908101601f1916820190925261153c91810190611c99565b60015b61159d573d80801561156d576040519150601f19603f3d011682016040523d82523d6000602084013e611572565b606091505b508051600003611595576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6115c58383611621565b6001600160a01b0383163b1561071f576000548281035b6115ef60008683806001019450866114cf565b61160c576040516368d2bf6b60e11b815260040160405180910390fd5b8181106115dc578160005414610bf457600080fd5b60008054908290036116465760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146116f557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016116bd565b508160000361171657604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b03198116811461083157600080fd5b60006020828403121561174757600080fd5b8135610e968161171f565b60005b8381101561176d578181015183820152602001611755565b50506000910152565b6000815180845261178e816020860160208601611752565b601f01601f19169290920160200192915050565b602081526000610e966020830184611776565b6000602082840312156117c757600080fd5b5035919050565b80356001600160a01b03811681146117e557600080fd5b919050565b600080604083850312156117fd57600080fd5b611806836117ce565b946020939093013593505050565b60008060006060848603121561182957600080fd5b611832846117ce565b9250611840602085016117ce565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561188157611881611850565b604051601f8501601f19908116603f011681019082821181831017156118a9576118a9611850565b816040528093508581528686860111156118c257600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156118ee57600080fd5b813567ffffffffffffffff81111561190557600080fd5b8201601f8101841361191657600080fd5b6115b384823560208401611866565b60006020828403121561193757600080fd5b610e96826117ce565b801515811461083157600080fd5b6000806040838503121561196157600080fd5b61196a836117ce565b9150602083013561197a81611940565b809150509250929050565b6000806000806080858703121561199b57600080fd5b6119a4856117ce565b93506119b2602086016117ce565b925060408501359150606085013567ffffffffffffffff8111156119d557600080fd5b8501601f810187136119e657600080fd5b6119f587823560208401611866565b91505092959194509250565b60008060408385031215611a1457600080fd5b611a1d836117ce565b9150611a2b602084016117ce565b90509250929050565b600181811c90821680611a4857607f821691505b602082108103611a6857634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611a8057600080fd5b8151610e9681611940565b601f82111561071f57600081815260208120601f850160051c81016020861015611ab25750805b601f850160051c820191505b8181101561121b57828155600101611abe565b815167ffffffffffffffff811115611aeb57611aeb611850565b611aff81611af98454611a34565b84611a8b565b602080601f831160018114611b345760008415611b1c5750858301515b600019600386901b1c1916600185901b17855561121b565b600085815260208120601f198616915b82811015611b6357888601518255948401946001909101908401611b44565b5085821015611b815787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111561057a5761057a611b91565b808202811582820484141761057a5761057a611b91565b60208082526029908201527f596f752072657175697265206d6f72652066756e647320746f206d696e7420746040820152683430ba1036b0b73c9760b91b606082015260800190565b8181038181111561057a5761057a611b91565b60008351611c3f818460208801611752565b835190830190611c53818360208801611752565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611c8f90830184611776565b9695505050505050565b600060208284031215611cab57600080fd5b8151610e968161171f56fea2646970667358221220c1596c4bf82723642e6d619a7ae48e9973153dd6f96e7af8a0b38168aa934afd64736f6c63430008110033

Deployed Bytecode Sourcemap

64081:3530:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24419:639;;;;;;;;;;-1:-1:-1;24419:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;24419:639:0;;;;;;;;25321:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;31812:218::-;;;;;;;;;;-1:-1:-1;31812:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;31812:218:0;1533:203:1;66824:165:0;;;;;;:::i;:::-;;:::i;:::-;;21072:323;;;;;;;;;;-1:-1:-1;64662:1:0;21346:12;21133:7;21330:13;:28;-1:-1:-1;;21330:46:0;21072:323;;;2324:25:1;;;2312:2;2297:18;21072:323:0;2178:177:1;66997:171:0;;;;;;:::i;:::-;;:::i;66422:98::-;;;;;;;;;;;;;:::i;3212:143::-;;;;;;;;;;;;3312:42;3212:143;;67176:179;;;;;;:::i;:::-;;:::i;65908:90::-;;;;;;;;;;-1:-1:-1;65908:90:0;;;;;:::i;:::-;;:::i;66314:100::-;;;;;;;;;;-1:-1:-1;66314:100:0;;;;;:::i;:::-;;:::i;26714:152::-;;;;;;;;;;-1:-1:-1;26714:152:0;;;;;:::i;:::-;;:::i;64349:30::-;;;;;;;;;;-1:-1:-1;64349:30:0;;;;;;;;64388:80;;;;;;;;;;;;;:::i;22256:233::-;;;;;;;;;;-1:-1:-1;22256:233:0;;;;;:::i;:::-;;:::i;63170:103::-;;;;;;;;;;;;;:::i;66108:82::-;;;;;;;;;;;;;:::i;62522:87::-;;;;;;;;;;-1:-1:-1;62595:6:0;;-1:-1:-1;;;;;62595:6:0;62522:87;;66006:94;;;;;;;;;;-1:-1:-1;66006:94:0;;;;;:::i;:::-;;:::i;25497:104::-;;;;;;;;;;;;;:::i;66640:176::-;;;;;;;;;;-1:-1:-1;66640:176:0;;;;;:::i;:::-;;:::i;67363:245::-;;;;;;:::i;:::-;;:::i;64830:788::-;;;;;;:::i;:::-;;:::i;64270:37::-;;;;;;;;;;;;;;;;25707:318;;;;;;;;;;-1:-1:-1;25707:318:0;;;;;:::i;:::-;;:::i;65626:205::-;;;;;;;;;;-1:-1:-1;65626:205:0;;;;;:::i;:::-;;:::i;64232:31::-;;;;;;;;;;;;;;;;32761:164;;;;;;;;;;-1:-1:-1;32761:164:0;;;;;:::i;:::-;;:::i;63428:201::-;;;;;;;;;;-1:-1:-1;63428:201:0;;;;;:::i;:::-;;:::i;64314:28::-;;;;;;;;;;;;;;;;24419:639;24504:4;-1:-1:-1;;;;;;;;;24828:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;24905:25:0;;;24828:102;:179;;;-1:-1:-1;;;;;;;;;;24982:25:0;;;24828:179;24808:199;24419:639;-1:-1:-1;;24419:639:0:o;25321:100::-;25375:13;25408:5;25401:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25321:100;:::o;31812:218::-;31888:7;31913:16;31921:7;31913;:16::i;:::-;31908:64;;31938:34;;-1:-1:-1;;;31938:34:0;;;;;;;;;;;31908:64;-1:-1:-1;31992:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;31992:30:0;;31812:218::o;66824:165::-;66928:8;3312:42;5206:45;:49;5202:225;;5277:67;;-1:-1:-1;;;5277:67:0;;5328:4;5277:67;;;6325:34:1;-1:-1:-1;;;;;6395:15:1;;6375:18;;;6368:43;3312:42:0;;5277;;6260:18:1;;5277:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5272:144;;5372:28;;-1:-1:-1;;;5372:28:0;;-1:-1:-1;;;;;1697:32:1;;5372:28:0;;;1679:51:1;1652:18;;5372:28:0;;;;;;;;5272:144;66949:32:::1;66963:8;66973:7;66949:13;:32::i;:::-;66824:165:::0;;;:::o;66997:171::-;67106:4;3312:42;4460:45;:49;4456:539;;4749:10;-1:-1:-1;;;;;4741:18:0;;;4737:85;;67123:37:::1;67142:4;67148:2;67152:7;67123:18;:37::i;:::-;4800:7:::0;;4737:85;4841:69;;-1:-1:-1;;;4841:69:0;;4892:4;4841:69;;;6325:34:1;4899:10:0;6375:18:1;;;6368:43;3312:42:0;;4841;;6260:18:1;;4841:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4836:148;;4938:30;;-1:-1:-1;;;4938:30:0;;4957:10;4938:30;;;1679:51:1;1652:18;;4938:30:0;1533:203:1;4836:148:0;67123:37:::1;67142:4;67148:2;67152:7;67123:18;:37::i;:::-;66997:171:::0;;;;:::o;66422:98::-;62408:13;:11;:13::i;:::-;66464:51:::1;::::0;66472:10:::1;::::0;66493:21:::1;66464:51:::0;::::1;;;::::0;::::1;::::0;;;66493:21;66472:10;66464:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;66422:98::o:0;67176:179::-;67289:4;3312:42;4460:45;:49;4456:539;;4749:10;-1:-1:-1;;;;;4741:18:0;;;4737:85;;67306:41:::1;67329:4;67335:2;67339:7;67306:22;:41::i;4737:85::-:0;4841:69;;-1:-1:-1;;;4841:69:0;;4892:4;4841:69;;;6325:34:1;4899:10:0;6375:18:1;;;6368:43;3312:42:0;;4841;;6260:18:1;;4841:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4836:148;;4938:30;;-1:-1:-1;;;4938:30:0;;4957:10;4938:30;;;1679:51:1;1652:18;;4938:30:0;1533:203:1;4836:148:0;67306:41:::1;67329:4;67335:2;67339:7;67306:22;:41::i;65908:90::-:0;62408:13;:11;:13::i;:::-;65972:8:::1;:18:::0;65908:90::o;66314:100::-;62408:13;:11;:13::i;:::-;66388:7:::1;:18;66398:8:::0;66388:7;:18:::1;:::i;:::-;;66314:100:::0;:::o;26714:152::-;26786:7;26829:27;26848:7;26829:18;:27::i;64388:80::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;22256:233::-;22328:7;-1:-1:-1;;;;;22352:19:0;;22348:60;;22380:28;;-1:-1:-1;;;22380:28:0;;;;;;;;;;;22348:60;-1:-1:-1;;;;;;22426:25:0;;;;;:18;:25;;;;;;16415:13;22426:55;;22256:233::o;63170:103::-;62408:13;:11;:13::i;:::-;63235:30:::1;63262:1;63235:18;:30::i;:::-;63170:103::o:0;66108:82::-;62408:13;:11;:13::i;:::-;66172:10:::1;::::0;;-1:-1:-1;;66158:24:0;::::1;66172:10;::::0;;::::1;66171:11;66158:24;::::0;;66108:82::o;66006:94::-;62408:13;:11;:13::i;:::-;66074:9:::1;:18:::0;66006:94::o;25497:104::-;25553:13;25586:7;25579:14;;;;;:::i;66640:176::-;66744:8;3312:42;5206:45;:49;5202:225;;5277:67;;-1:-1:-1;;;5277:67:0;;5328:4;5277:67;;;6325:34:1;-1:-1:-1;;;;;6395:15:1;;6375:18;;;6368:43;3312:42:0;;5277;;6260:18:1;;5277:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5272:144;;5372:28;;-1:-1:-1;;;5372:28:0;;-1:-1:-1;;;;;1697:32:1;;5372:28:0;;;1679:51:1;1652:18;;5372:28:0;1533:203:1;5272:144:0;66765:43:::1;66789:8;66799;66765:23;:43::i;67363:245::-:0;67531:4;3312:42;4460:45;:49;4456:539;;4749:10;-1:-1:-1;;;;;4741:18:0;;;4737:85;;67553:47:::1;67576:4;67582:2;67586:7;67595:4;67553:22;:47::i;:::-;4800:7:::0;;4737:85;4841:69;;-1:-1:-1;;;4841:69:0;;4892:4;4841:69;;;6325:34:1;4899:10:0;6375:18:1;;;6368:43;3312:42:0;;4841;;6260:18:1;;4841:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4836:148;;4938:30;;-1:-1:-1;;;4938:30:0;;4957:10;4938:30;;;1679:51:1;1652:18;;4938:30:0;1533:203:1;4836:148:0;67553:47:::1;67576:4;67582:2;67586:7;67595:4;67553:22;:47::i;:::-;67363:245:::0;;;;;:::o;64830:788::-;59795:21;:19;:21::i;:::-;64915:10:::1;::::0;::::1;;64907:46;;;::::0;-1:-1:-1;;;64907:46:0;;9078:2:1;64907:46:0::1;::::0;::::1;9060:21:1::0;9117:2;9097:18;;;9090:30;9156:25;9136:18;;;9129:53;9199:18;;64907:46:0::1;8876:347:1::0;64907:46:0::1;65016:9;::::0;64988:10:::1;64972:27;::::0;;;:15:::1;:27;::::0;;;;;:40:::1;::::0;65002:10;;64972:40:::1;:::i;:::-;:53;;64964:116;;;::::0;-1:-1:-1;;;64964:116:0;;9692:2:1;64964:116:0::1;::::0;::::1;9674:21:1::0;9731:2;9711:18;;;9704:30;9770:34;9750:18;;;9743:62;-1:-1:-1;;;9821:18:1;;;9814:48;9879:19;;64964:116:0::1;9490:414:1::0;64964:116:0::1;65129:9;::::0;64662:1;21346:12;21133:7;21330:13;65115:10;;21330:28;;-1:-1:-1;;21330:46:0;65099:26:::1;;;;:::i;:::-;:39;;65091:83;;;::::0;-1:-1:-1;;;65091:83:0;;10111:2:1;65091:83:0::1;::::0;::::1;10093:21:1::0;10150:2;10130:18;;;10123:30;10189:33;10169:18;;;10162:61;10240:18;;65091:83:0::1;9909:355:1::0;65091:83:0::1;65199:10;65190:20;::::0;;;:8:::1;:20;::::0;;;;;::::1;;65187:318;;;65261:8;::::0;65248:21:::1;::::0;:10;:21:::1;:::i;:::-;65235:9;:34;;65227:88;;;;-1:-1:-1::0;;;65227:88:0::1;;;;;;;:::i;:::-;65187:318;;;65397:8;::::0;65379:14:::1;65392:1;65379:10:::0;:14:::1;:::i;:::-;65378:27;;;;:::i;:::-;65365:9;:40;;65357:94;;;;-1:-1:-1::0;;;65357:94:0::1;;;;;;;:::i;:::-;65475:10;65466:20;::::0;;;:8:::1;:20;::::0;;;;:27;;-1:-1:-1;;65466:27:0::1;65489:4;65466:27;::::0;;65187:318:::1;65541:10;65525:27;::::0;;;:15:::1;:27;::::0;;;;:41;;65556:10;;65525:27;:41:::1;::::0;65556:10;;65525:41:::1;:::i;:::-;::::0;;;-1:-1:-1;65577:33:0::1;::::0;-1:-1:-1;65587:10:0::1;65599::::0;65577:9:::1;:33::i;:::-;59839:20:::0;59233:1;60359:7;:22;60176:213;25707:318;25780:13;25811:16;25819:7;25811;:16::i;:::-;25806:59;;25836:29;;-1:-1:-1;;;25836:29:0;;;;;;;;;;;25806:59;25878:21;25902:10;:8;:10::i;:::-;25878:34;;25936:7;25930:21;25955:1;25930:26;:87;;;;;;;;;;;;;;;;;25983:7;25992:18;26002:7;25992:9;:18::i;:::-;25966:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;25930:87;25923:94;25707:318;-1:-1:-1;;;25707:318:0:o;65626:205::-;62408:13;:11;:13::i;:::-;65733:9:::1;::::0;64662:1;21346:12;21133:7;21330:13;65719:10;;21330:28;;-1:-1:-1;;21330:46:0;65703:26:::1;;;;:::i;:::-;:39;;65695:74;;;::::0;-1:-1:-1;;;65695:74:0;;11688:2:1;65695:74:0::1;::::0;::::1;11670:21:1::0;11727:2;11707:18;;;11700:30;-1:-1:-1;;;11746:18:1;;;11739:52;11808:18;;65695:74:0::1;11486:346:1::0;65695:74:0::1;65790:33;65800:10;65812;65790:9;:33::i;32761:164::-:0;-1:-1:-1;;;;;32882:25:0;;;32858:4;32882:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;32761:164::o;63428:201::-;62408:13;:11;:13::i;:::-;-1:-1:-1;;;;;63517:22:0;::::1;63509:73;;;::::0;-1:-1:-1;;;63509:73:0;;12039:2:1;63509:73:0::1;::::0;::::1;12021:21:1::0;12078:2;12058:18;;;12051:30;12117:34;12097:18;;;12090:62;-1:-1:-1;;;12168:18:1;;;12161:36;12214:19;;63509:73:0::1;11837:402:1::0;63509:73:0::1;63593:28;63612:8;63593:18;:28::i;33183:282::-:0;33248:4;33304:7;64662:1;33285:26;;:66;;;;;33338:13;;33328:7;:23;33285:66;:153;;;;-1:-1:-1;;33389:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;33389:44:0;:49;;33183:282::o;31245:408::-;31334:13;31350:16;31358:7;31350;:16::i;:::-;31334:32;-1:-1:-1;55578:10:0;-1:-1:-1;;;;;31383:28:0;;;31379:175;;31431:44;31448:5;55578:10;32761:164;:::i;31431:44::-;31426:128;;31503:35;;-1:-1:-1;;;31503:35:0;;;;;;;;;;;31426:128;31566:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;31566:35:0;-1:-1:-1;;;;;31566:35:0;;;;;;;;;31617:28;;31566:24;;31617:28;;;;;;;31323:330;31245:408;;:::o;35451:2825::-;35593:27;35623;35642:7;35623:18;:27::i;:::-;35593:57;;35708:4;-1:-1:-1;;;;;35667:45:0;35683:19;-1:-1:-1;;;;;35667:45:0;;35663:86;;35721:28;;-1:-1:-1;;;35721:28:0;;;;;;;;;;;35663:86;35763:27;34559:24;;;:15;:24;;;;;34787:26;;55578:10;34184:30;;;-1:-1:-1;;;;;33877:28:0;;34162:20;;;34159:56;35949:180;;36042:43;36059:4;55578:10;32761:164;:::i;36042:43::-;36037:92;;36094:35;;-1:-1:-1;;;36094:35:0;;;;;;;;;;;36037:92;-1:-1:-1;;;;;36146:16:0;;36142:52;;36171:23;;-1:-1:-1;;;36171:23:0;;;;;;;;;;;36142:52;36343:15;36340:160;;;36483:1;36462:19;36455:30;36340:160;-1:-1:-1;;;;;36880:24:0;;;;;;;:18;:24;;;;;;36878:26;;-1:-1:-1;;36878:26:0;;;36949:22;;;;;;;;;36947:24;;-1:-1:-1;36947:24:0;;;30103:11;30078:23;30074:41;30061:63;-1:-1:-1;;;30061:63:0;37242:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;37537:47:0;;:52;;37533:627;;37642:1;37632:11;;37610:19;37765:30;;;:17;:30;;;;;;:35;;37761:384;;37903:13;;37888:11;:28;37884:242;;38050:30;;;;:17;:30;;;;;:52;;;37884:242;37591:569;37533:627;38207:7;38203:2;-1:-1:-1;;;;;38188:27:0;38197:4;-1:-1:-1;;;;;38188:27:0;;;;;;;;;;;38226:42;35582:2694;;;35451:2825;;;:::o;62687:132::-;62595:6;;-1:-1:-1;;;;;62595:6:0;55578:10;62751:23;62743:68;;;;-1:-1:-1;;;62743:68:0;;12446:2:1;62743:68:0;;;12428:21:1;;;12465:18;;;12458:30;12524:34;12504:18;;;12497:62;12576:18;;62743:68:0;12244:356:1;38372:193:0;38518:39;38535:4;38541:2;38545:7;38518:39;;;;;;;;;;;;:16;:39::i;27869:1275::-;27936:7;27971;;64662:1;28020:23;28016:1061;;28073:13;;28066:4;:20;28062:1015;;;28111:14;28128:23;;;:17;:23;;;;;;;-1:-1:-1;;;28217:24:0;;:29;;28213:845;;28882:113;28889:6;28899:1;28889:11;28882:113;;-1:-1:-1;;;28960:6:0;28942:25;;;;:17;:25;;;;;;28882:113;;28213:845;28088:989;28062:1015;29105:31;;-1:-1:-1;;;29105:31:0;;;;;;;;;;;63789:191;63882:6;;;-1:-1:-1;;;;;63899:17:0;;;-1:-1:-1;;;;;;63899:17:0;;;;;;;63932:40;;63882:6;;;63899:17;63882:6;;63932:40;;63863:16;;63932:40;63852:128;63789:191;:::o;32370:234::-;55578:10;32465:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;32465:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;32465:60:0;;;;;;;;;;32541:55;;540:41:1;;;32465:49:0;;55578:10;32541:55;;513:18:1;32541:55:0;;;;;;;32370:234;;:::o;39163:407::-;39338:31;39351:4;39357:2;39361:7;39338:12;:31::i;:::-;-1:-1:-1;;;;;39384:14:0;;;:19;39380:183;;39423:56;39454:4;39460:2;39464:7;39473:5;39423:30;:56::i;:::-;39418:145;;39507:40;;-1:-1:-1;;;39507:40:0;;;;;;;;;;;59875:293;59277:1;60009:7;;:19;60001:63;;;;-1:-1:-1;;;60001:63:0;;12807:2:1;60001:63:0;;;12789:21:1;12846:2;12826:18;;;12819:30;12885:33;12865:18;;;12858:61;12936:18;;60001:63:0;12605:355:1;60001:63:0;59277:1;60142:7;:18;59875:293::o;49323:112::-;49400:27;49410:2;49414:8;49400:27;;;;;;;;;;;;:9;:27::i;66198:108::-;66258:13;66291:7;66284:14;;;;;:::i;55698:1745::-;55763:17;56197:4;56190;56184:11;56180:22;56289:1;56283:4;56276:15;56364:4;56361:1;56357:12;56350:19;;;56446:1;56441:3;56434:14;56550:3;56789:5;56771:428;56837:1;56832:3;56828:11;56821:18;;57008:2;57002:4;56998:13;56994:2;56990:22;56985:3;56977:36;57102:2;57092:13;;57159:25;56771:428;57159:25;-1:-1:-1;57229:13:0;;;-1:-1:-1;;57344:14:0;;;57406:19;;;57344:14;55698:1745;-1:-1:-1;55698:1745:0:o;41654:716::-;41838:88;;-1:-1:-1;;;41838:88:0;;41817:4;;-1:-1:-1;;;;;41838:45:0;;;;;:88;;55578:10;;41905:4;;41911:7;;41920:5;;41838:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41838:88:0;;;;;;;;-1:-1:-1;;41838:88:0;;;;;;;;;;;;:::i;:::-;;;41834:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42121:6;:13;42138:1;42121:18;42117:235;;42167:40;;-1:-1:-1;;;42167:40:0;;;;;;;;;;;42117:235;42310:6;42304:13;42295:6;42291:2;42287:15;42280:38;41834:529;-1:-1:-1;;;;;;41997:64:0;-1:-1:-1;;;41997:64:0;;-1:-1:-1;41834:529:0;41654:716;;;;;;:::o;48550:689::-;48681:19;48687:2;48691:8;48681:5;:19::i;:::-;-1:-1:-1;;;;;48742:14:0;;;:19;48738:483;;48782:11;48796:13;48844:14;;;48877:233;48908:62;48947:1;48951:2;48955:7;;;;;;48964:5;48908:30;:62::i;:::-;48903:167;;49006:40;;-1:-1:-1;;;49006:40:0;;;;;;;;;;;48903:167;49105:3;49097:5;:11;48877:233;;49192:3;49175:13;;:20;49171:34;;49197:8;;;42832:2966;42905:20;42928:13;;;42956;;;42952:44;;42978:18;;-1:-1:-1;;;42978:18:0;;;;;;;;;;;42952:44;-1:-1:-1;;;;;43484:22:0;;;;;;:18;:22;;;;16553:2;43484:22;;;:71;;43522:32;43510:45;;43484:71;;;43798:31;;;:17;:31;;;;;-1:-1:-1;30534:15:0;;30508:24;30504:46;30103:11;30078:23;30074:41;30071:52;30061:63;;43798:173;;44033:23;;;;43798:31;;43484:22;;44798:25;43484:22;;44651:335;45312:1;45298:12;45294:20;45252:346;45353:3;45344:7;45341:16;45252:346;;45571:7;45561:8;45558:1;45531:25;45528:1;45525;45520:59;45406:1;45393:15;45252:346;;;45256:77;45631:8;45643:1;45631:13;45627:45;;45653:19;;-1:-1:-1;;;45653:19:0;;;;;;;;;;;45627:45;45689:13;:19;-1:-1:-1;66824:165:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2932:127::-;2993:10;2988:3;2984:20;2981:1;2974:31;3024:4;3021:1;3014:15;3048:4;3045:1;3038:15;3064:632;3129:5;3159:18;3200:2;3192:6;3189:14;3186:40;;;3206:18;;:::i;:::-;3281:2;3275:9;3249:2;3335:15;;-1:-1:-1;;3331:24:1;;;3357:2;3327:33;3323:42;3311:55;;;3381:18;;;3401:22;;;3378:46;3375:72;;;3427:18;;:::i;:::-;3467:10;3463:2;3456:22;3496:6;3487:15;;3526:6;3518;3511:22;3566:3;3557:6;3552:3;3548:16;3545:25;3542:45;;;3583:1;3580;3573:12;3542:45;3633:6;3628:3;3621:4;3613:6;3609:17;3596:44;3688:1;3681:4;3672:6;3664;3660:19;3656:30;3649:41;;;;3064:632;;;;;:::o;3701:451::-;3770:6;3823:2;3811:9;3802:7;3798:23;3794:32;3791:52;;;3839:1;3836;3829:12;3791:52;3879:9;3866:23;3912:18;3904:6;3901:30;3898:50;;;3944:1;3941;3934:12;3898:50;3967:22;;4020:4;4012:13;;4008:27;-1:-1:-1;3998:55:1;;4049:1;4046;4039:12;3998:55;4072:74;4138:7;4133:2;4120:16;4115:2;4111;4107:11;4072:74;:::i;4157:186::-;4216:6;4269:2;4257:9;4248:7;4244:23;4240:32;4237:52;;;4285:1;4282;4275:12;4237:52;4308:29;4327:9;4308:29;:::i;4348:118::-;4434:5;4427:13;4420:21;4413:5;4410:32;4400:60;;4456:1;4453;4446:12;4471:315;4536:6;4544;4597:2;4585:9;4576:7;4572:23;4568:32;4565:52;;;4613:1;4610;4603:12;4565:52;4636:29;4655:9;4636:29;:::i;:::-;4626:39;;4715:2;4704:9;4700:18;4687:32;4728:28;4750:5;4728:28;:::i;:::-;4775:5;4765:15;;;4471:315;;;;;:::o;4791:667::-;4886:6;4894;4902;4910;4963:3;4951:9;4942:7;4938:23;4934:33;4931:53;;;4980:1;4977;4970:12;4931:53;5003:29;5022:9;5003:29;:::i;:::-;4993:39;;5051:38;5085:2;5074:9;5070:18;5051:38;:::i;:::-;5041:48;;5136:2;5125:9;5121:18;5108:32;5098:42;;5191:2;5180:9;5176:18;5163:32;5218:18;5210:6;5207:30;5204:50;;;5250:1;5247;5240:12;5204:50;5273:22;;5326:4;5318:13;;5314:27;-1:-1:-1;5304:55:1;;5355:1;5352;5345:12;5304:55;5378:74;5444:7;5439:2;5426:16;5421:2;5417;5413:11;5378:74;:::i;:::-;5368:84;;;4791:667;;;;;;;:::o;5463:260::-;5531:6;5539;5592:2;5580:9;5571:7;5567:23;5563:32;5560:52;;;5608:1;5605;5598:12;5560:52;5631:29;5650:9;5631:29;:::i;:::-;5621:39;;5679:38;5713:2;5702:9;5698:18;5679:38;:::i;:::-;5669:48;;5463:260;;;;;:::o;5728:380::-;5807:1;5803:12;;;;5850;;;5871:61;;5925:4;5917:6;5913:17;5903:27;;5871:61;5978:2;5970:6;5967:14;5947:18;5944:38;5941:161;;6024:10;6019:3;6015:20;6012:1;6005:31;6059:4;6056:1;6049:15;6087:4;6084:1;6077:15;5941:161;;5728:380;;;:::o;6422:245::-;6489:6;6542:2;6530:9;6521:7;6517:23;6513:32;6510:52;;;6558:1;6555;6548:12;6510:52;6590:9;6584:16;6609:28;6631:5;6609:28;:::i;6798:545::-;6900:2;6895:3;6892:11;6889:448;;;6936:1;6961:5;6957:2;6950:17;7006:4;7002:2;6992:19;7076:2;7064:10;7060:19;7057:1;7053:27;7047:4;7043:38;7112:4;7100:10;7097:20;7094:47;;;-1:-1:-1;7135:4:1;7094:47;7190:2;7185:3;7181:12;7178:1;7174:20;7168:4;7164:31;7154:41;;7245:82;7263:2;7256:5;7253:13;7245:82;;;7308:17;;;7289:1;7278:13;7245:82;;7519:1352;7645:3;7639:10;7672:18;7664:6;7661:30;7658:56;;;7694:18;;:::i;:::-;7723:97;7813:6;7773:38;7805:4;7799:11;7773:38;:::i;:::-;7767:4;7723:97;:::i;:::-;7875:4;;7939:2;7928:14;;7956:1;7951:663;;;;8658:1;8675:6;8672:89;;;-1:-1:-1;8727:19:1;;;8721:26;8672:89;-1:-1:-1;;7476:1:1;7472:11;;;7468:24;7464:29;7454:40;7500:1;7496:11;;;7451:57;8774:81;;7921:944;;7951:663;6745:1;6738:14;;;6782:4;6769:18;;-1:-1:-1;;7987:20:1;;;8105:236;8119:7;8116:1;8113:14;8105:236;;;8208:19;;;8202:26;8187:42;;8300:27;;;;8268:1;8256:14;;;;8135:19;;8105:236;;;8109:3;8369:6;8360:7;8357:19;8354:201;;;8430:19;;;8424:26;-1:-1:-1;;8513:1:1;8509:14;;;8525:3;8505:24;8501:37;8497:42;8482:58;8467:74;;8354:201;-1:-1:-1;;;;;8601:1:1;8585:14;;;8581:22;8568:36;;-1:-1:-1;7519:1352:1:o;9228:127::-;9289:10;9284:3;9280:20;9277:1;9270:31;9320:4;9317:1;9310:15;9344:4;9341:1;9334:15;9360:125;9425:9;;;9446:10;;;9443:36;;;9459:18;;:::i;10269:168::-;10342:9;;;10373;;10390:15;;;10384:22;;10370:37;10360:71;;10411:18;;:::i;10442:405::-;10644:2;10626:21;;;10683:2;10663:18;;;10656:30;10722:34;10717:2;10702:18;;10695:62;-1:-1:-1;;;10788:2:1;10773:18;;10766:39;10837:3;10822:19;;10442:405::o;10852:128::-;10919:9;;;10940:11;;;10937:37;;;10954:18;;:::i;10985:496::-;11164:3;11202:6;11196:13;11218:66;11277:6;11272:3;11265:4;11257:6;11253:17;11218:66;:::i;:::-;11347:13;;11306:16;;;;11369:70;11347:13;11306:16;11416:4;11404:17;;11369:70;:::i;:::-;11455:20;;10985:496;-1:-1:-1;;;;10985:496:1:o;12965:489::-;-1:-1:-1;;;;;13234:15:1;;;13216:34;;13286:15;;13281:2;13266:18;;13259:43;13333:2;13318:18;;13311:34;;;13381:3;13376:2;13361:18;;13354:31;;;13159:4;;13402:46;;13428:19;;13420:6;13402:46;:::i;:::-;13394:54;12965:489;-1:-1:-1;;;;;;12965:489:1:o;13459:249::-;13528:6;13581:2;13569:9;13560:7;13556:23;13552:32;13549:52;;;13597:1;13594;13587:12;13549:52;13629:9;13623:16;13648:30;13672:5;13648:30;:::i

Swarm Source

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