ETH Price: $3,384.34 (-1.55%)
Gas: 1 Gwei

Token

Gasoline (GAS)
 

Overview

Max Total Supply

211 GAS

Holders

180

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
teddybomber.eth
Balance
1 GAS
0x08a4f7C5b0021ca15D65e410b22825AAdC84aba1
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:
Gasoline

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : GasolineV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {ERC2981} from "@openzeppelin/contracts/token/common/ERC2981.sol";
import {DefaultOperatorFilterer} from "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import {IAccessControl, AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import {ERC721A} from "./ERC721A.sol";

contract Gasoline is ERC721A, ERC2981, DefaultOperatorFilterer, AccessControl {
    uint256 public MAX_TOKEN_SUPPLY = 3333;
    uint256 public MAX_STANDARD_TOKEN_SUPPLY = 3000;
    uint256 public MAX_SUPER_TOKEN_SUPPLY = 333;

    uint256 public MAX_ALLOWLIST_TOTAL_SUPPLY = 2500;
    uint256 public MAX_ALLOWLIST_SUPER_SUPPLY = 102;
    uint256 public MAX_ALLOWLIST_STANDARD_SUPPLY = 2000;

    bool public paused = true;
    bool public publicMintPhase = false;
    bytes32 public allowlistMerkleRoot = 0x0;
    bytes32 public freeClaimMerkleRoot = 0x0;
    uint256 public price = 0.22 ether;
    bool public staking = false;

    string private baseURI;

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

    function setBaseURI(string memory _uri)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        baseURI = _uri;
    }

    constructor() ERC721A("Gasoline", "GAS") {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);

        _setDefaultRoyalty(0xC71Df678A0026861d1975EbD7478E73F3845A2ce, 500);

        _currentIndexStandard = _standardStartTokenId();
        _currentIndexSuper = _superStartTokenId();
    }

    function setAllowlistMerkleRoot(bytes32 _merkleRoot)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        allowlistMerkleRoot = _merkleRoot;
    }

    function setFreeClaimMerkleRoot(bytes32 _merkleRoot)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        freeClaimMerkleRoot = _merkleRoot;
    }

    function pause(bool _pause) external onlyRole(DEFAULT_ADMIN_ROLE) {
        paused = _pause;
    }

    function setPublicMintPhase(bool _publicMintPhase)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        publicMintPhase = _publicMintPhase;
    }

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

    modifier supplyCheck() {
        require(_totalMinted() < MAX_TOKEN_SUPPLY, "Max token supply reached.");

        _;
    }

    modifier pauseCheck() {
        require(paused == false, "Minting is paused.");

        _;
    }

    function _generateRandomNumber(address to) public view returns (uint256) {
        bytes32 blockHash = blockhash(block.number - 1);
        bytes32 combined = keccak256(
            abi.encodePacked(blockHash, block.timestamp, to)
        );
        uint256 random = uint256(combined) % 1000; // [0..999]

        return random;
    }

    function _randomMint(address minter) private {
        uint256 roll = _generateRandomNumber(minter);

        if (minter == address(0)) {
            revert MintToZeroAddress();
        }

        if (roll >= 901) {
            // if roll is [901..999]
            // then superMint
            _superMint(minter, 1);
        } else {
            // standardMint
            _standardMint(minter, 1);
        }
    }

    /**
     * @notice Each allowlisted address can mint one token (randomly rolled).
     */
    function allowlistMint(bytes32[] calldata _merkleProof)
        public
        payable
        supplyCheck
        pauseCheck
    {
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));

        require(_numberMinted(msg.sender) == 0, "Already minted.");
        require(
            MerkleProof.verify(_merkleProof, allowlistMerkleRoot, leaf),
            "Invalid Merkle proof."
        );
        require(msg.value >= price, "Incorrect ether sent.");
        require(
            totalSupply() < MAX_ALLOWLIST_TOTAL_SUPPLY,
            "Allowlist supply reached."
        );

        if (totalMintedSuper() >= MAX_ALLOWLIST_SUPER_SUPPLY) {
            _standardMint(msg.sender, 1);
        } else if (totalMintedStandard() >= MAX_ALLOWLIST_STANDARD_SUPPLY) {
            _superMint(msg.sender, 1);
        } else {
            _randomMint(msg.sender);
        }
    }

    /**
     * @notice Public mint is still 1 mint per tx (still randomly rolled).
     */
    function publicMint() public payable supplyCheck pauseCheck {
        require(publicMintPhase == true, "Public mint is not open.");
        require(msg.value >= price, "Incorrect ether sent.");

        // If one supply is tapped out, then default to the other.
        if (totalMintedStandard() >= MAX_STANDARD_TOKEN_SUPPLY) {
            _superMint(msg.sender, 1);
        } else if (totalMintedSuper() >= MAX_SUPER_TOKEN_SUPPLY) {
            _standardMint(msg.sender, 1);
        } else {
            _randomMint(msg.sender);
        }
    }

    uint256 public constant STANDARD_MINT_COST = 5;
    uint256 public constant SUPER_MINT_COST = 10;

    function freeClaimMint(
        bytes32[] calldata _merkleProof,
        uint256 _numberOfStandardMints,
        uint256 _numberOfSuperMints
    ) public supplyCheck pauseCheck {
        require(_numberOfSuperMints <= 1, "Only 1 super allowed.");
        require(_numberMinted(msg.sender) == 0, "Already minted.");

        bytes32 leaf = keccak256(
            abi.encodePacked(
                msg.sender,
                _numberOfStandardMints *
                    STANDARD_MINT_COST +
                    _numberOfSuperMints *
                    SUPER_MINT_COST
            )
        );

        require(
            MerkleProof.verify(_merkleProof, freeClaimMerkleRoot, leaf),
            "Invalid Merkle proof."
        );

        if (_numberOfStandardMints > 0) {
            _standardMint(msg.sender, _numberOfStandardMints);
        }
        if (_numberOfSuperMints > 0) {
            _superMint(msg.sender, _numberOfSuperMints);
        }
    }

    function adminMint(
        uint256 _numberOfStandardMints,
        uint256 _numberOfSuperMints
    ) external supplyCheck onlyRole(DEFAULT_ADMIN_ROLE) {
        if (_numberOfStandardMints > 0) {
            _standardMint(msg.sender, _numberOfStandardMints);
        }
        if (_numberOfSuperMints > 0) {
            _superMint(msg.sender, _numberOfSuperMints);
        }
    }

    function _standardMint(address _to, uint256 _mintAmount) private {
        // mint 1-3000
        require(
            totalMintedStandard() + _mintAmount <= MAX_STANDARD_TOKEN_SUPPLY,
            "Will exceed token supply."
        );

        _safeMint(_to, _mintAmount, _currentIndexStandard);
        _currentIndexStandard = _currentIndexStandard + _mintAmount;
    }

    function _superMint(address _to, uint256 _mintAmount) private {
        // mint 3001-3333
        require(
            totalMintedSuper() + _mintAmount <= MAX_SUPER_TOKEN_SUPPLY,
            "Will exceed token supply."
        );
        _safeMint(_to, _mintAmount, _currentIndexSuper);
        _currentIndexSuper = _currentIndexSuper + _mintAmount;
    }

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

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

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

    function _superStartTokenId() internal view virtual returns (uint256) {
        return 3001;
    }

    function totalMintedStandard() public view virtual returns (uint256) {
        unchecked {
            return _currentIndexStandard - _standardStartTokenId();
        }
    }

    function totalMintedSuper() public view virtual returns (uint256) {
        unchecked {
            return _currentIndexSuper - _superStartTokenId();
        }
    }

    function _totalMinted() internal view virtual override returns (uint256) {
        unchecked {
            return totalMintedStandard() + totalMintedSuper();
        }
    }

    function totalSupply() public view virtual override returns (uint256) {
        return _totalMinted();
    }

    // =============================================================
    //   STAKING OPERATIONS
    // =============================================================

    mapping(uint256 => uint256) private tokenIdToStakingStartTime;
    event Staked(uint256 indexed _tokenId, uint256 _stakingStartTime);
    event Unstaked(uint256 indexed _tokenId, uint256 _stakingEndTime);

    function setStaking(bool _staking) external onlyRole(DEFAULT_ADMIN_ROLE) {
        staking = _staking;
    }

    function _stake(uint256 tokenId) private {
        require(ownerOf(tokenId) == msg.sender, "Not owner.");

        uint256 timestamp = block.timestamp;

        tokenIdToStakingStartTime[tokenId] = timestamp;
        emit Staked(tokenId, timestamp);
    }

    function stake(uint256[] calldata tokenIds) external {
        require(staking == true, "Staking is not enabled.");

        uint256 n = tokenIds.length;
        for (uint256 i = 0; i < n; ++i) {
            _stake(tokenIds[i]);
        }
    }

    function _unstake(uint256 tokenId, bool _expel) private {
        if (!_expel) {
            require(ownerOf(tokenId) == msg.sender, "Not owner.");
        }
        tokenIdToStakingStartTime[tokenId] = 0;
        emit Unstaked(tokenId, block.timestamp);
    }

    function unstake(uint256[] calldata tokenIds) external {
        require(staking == true, "Staking is not enabled.");

        uint256 n = tokenIds.length;
        for (uint256 i = 0; i < n; ++i) {
            _unstake(tokenIds[i], false);
        }
    }

    function expel(uint256[] calldata tokenIds)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        uint256 n = tokenIds.length;
        for (uint256 i = 0; i < n; ++i) {
            _unstake(tokenIds[i], true);
        }
    }

    function timeStaked(uint256 tokenId) external view returns (uint256) {
        if (tokenIdToStakingStartTime[tokenId] == 0) {
            return 0;
        }

        return block.timestamp - tokenIdToStakingStartTime[tokenId];
    }

    function stakingStartTime(uint256 tokenId) external view returns (uint256) {
        return tokenIdToStakingStartTime[tokenId];
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal view override {
        uint256 tokenId = startTokenId;

        for (uint256 end = tokenId + quantity; tokenId < end; ++tokenId) {
            require(
                tokenIdToStakingStartTime[tokenId] == 0,
                "Token is staking."
            );
        }
    }

    // =============================================================
    //   ADMIN OPERATIONS
    // =============================================================

    function withdraw() external payable onlyRole(DEFAULT_ADMIN_ROLE) {
        (bool os, ) = payable(msg.sender).call{value: address(this).balance}(
            ""
        );
        require(os);
    }

    function setPrice(uint256 _price) external onlyRole(DEFAULT_ADMIN_ROLE) {
        price = _price;
    }

    function setMaxTokenSupply(uint256 _max)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        require(_max <= 3333, "Cannot exceed 3333.");
        require(_max >= totalSupply(), "Less than current supply.");

        MAX_TOKEN_SUPPLY = _max;
    }

    function setMaxStandardTokenSupply(uint256 _max)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        require(_max <= 3333, "Cannot exceed 3333.");
        require(_max >= totalMintedStandard(), "Less than current supply.");

        MAX_STANDARD_TOKEN_SUPPLY = _max;
    }

    function setMaxSuperTokenSupply(uint256 _max)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        require(_max <= 3333, "Cannot exceed 3333.");
        require(_max >= totalMintedSuper(), "Less than current supply.");

        MAX_SUPER_TOKEN_SUPPLY = _max;
    }

    function setMaxAllowlistSuperSupply(uint256 _max)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        MAX_ALLOWLIST_SUPER_SUPPLY = _max;
    }

    function setMaxAllowlistStandardSupply(uint256 _max)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        MAX_ALLOWLIST_STANDARD_SUPPLY = _max;
    }

    function setMaxAllowlistTotalSupply(uint256 _max)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        MAX_ALLOWLIST_TOTAL_SUPPLY = _max;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721A, ERC2981, AccessControl)
        returns (bool)
    {
        return
            interfaceId == 0x01ffc9a7 || // ERC165
            interfaceId == 0x80ac58cd || // ERC721
            interfaceId == 0x5b5e139f || // IERC721Metadata
            interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE ||
            interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 ||
            interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE ||
            ERC721A.supportsInterface(interfaceId) ||
            ERC2981.supportsInterface(interfaceId) ||
            AccessControl.supportsInterface(interfaceId) ||
            super.supportsInterface(interfaceId);
    }

    // =============================================================
    //   EIP 2981 ROYALTIES
    // =============================================================

    function setDefaultRoyalty(address receiver, uint96 feeNumerator)
        external
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    bytes4 private constant _INTERFACE_ID_ROYALTIES_CREATORCORE = 0xbb3bafd6;
    bytes4 private constant _INTERFACE_ID_ROYALTIES_EIP2981 = 0x2a55205a;
    bytes4 private constant _INTERFACE_ID_ROYALTIES_RARIBLE = 0xb7799584;

    // =============================================================
    //   OPERATOR FILTERING
    // =============================================================

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

File 2 of 16 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs
// NOTE This contract has been modified to allow for non-sequential minting.

pragma solidity ^0.8.4;

import "./IERC721A.sol";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // NON-SEQUENTIAL STUFF
    uint256 internal _currentIndexStandard;
    uint256 internal _currentIndexSuper;

    // 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)
        internal
        view
        returns (uint256)
    {
        uint256 curr = tokenId;

        unchecked {
            if (curr >= _currentIndexStandard && curr < 3001) {
                revert OwnerQueryForNonexistentToken();
            }

            if (curr >= _currentIndexSuper) {
                revert OwnerQueryForNonexistentToken();
            }

            if (_startTokenId() <= curr) {
                // if (curr < _currentIndex) { // NOTE: We are skipping the bounds check due to non-sequential minting
                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) {
        if (tokenId >= _currentIndexStandard && tokenId < 3001) {
            return false;
        }

        if (tokenId >= _currentIndexSuper) {
            return false;
        }

        return
            _startTokenId() <= tokenId &&
            // tokenId < _currentIndex && // If within bounds, // NOTE: Removing bounds due to non-sequential minting
            _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,
        uint256 startTokenId
    ) internal virtual {
        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; // gets set to 6
        }
        _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,
        uint256 startIndex,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity, startIndex);

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

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

    // =============================================================
    //                        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 3 of 16 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 4 of 16 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 5 of 16 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 6 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

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

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

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

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 16 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @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.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    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));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // 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) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 9 of 16 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 10 of 16 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

File 11 of 16 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 12 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 13 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// 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 14 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 16 of 16 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

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

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

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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_stakingStartTime","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_stakingEndTime","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ALLOWLIST_STANDARD_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ALLOWLIST_SUPER_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ALLOWLIST_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_STANDARD_TOKEN_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPER_TOKEN_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKEN_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STANDARD_MINT_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPER_MINT_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"_generateRandomNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfStandardMints","type":"uint256"},{"internalType":"uint256","name":"_numberOfSuperMints","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","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":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"expel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeClaimMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_numberOfStandardMints","type":"uint256"},{"internalType":"uint256","name":"_numberOfSuperMints","type":"uint256"}],"name":"freeClaimMint","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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMintPhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setAllowlistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setFreeClaimMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxAllowlistStandardSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxAllowlistSuperSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxAllowlistTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxStandardTokenSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxSuperTokenSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxTokenSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_publicMintPhase","type":"bool"}],"name":"setPublicMintPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_staking","type":"bool"}],"name":"setStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stakingStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"timeStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintedStandard","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintedSuper","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

6080604052610d05600d55610bb8600e5561014d600f556109c460105560666011556107d06012556001601360006101000a81548160ff0219169083151502179055506000601360016101000a81548160ff0219169083151502179055506000801b6014556000801b60155567030d98d59a9600006016556000601760006101000a81548160ff0219169083151502179055503480156200009f57600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600881526020017f4761736f6c696e650000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f474153000000000000000000000000000000000000000000000000000000000081525081600490805190602001906200013b92919062000725565b5080600590805190602001906200015492919062000725565b5062000165620003d360201b60201c565b600081905550505060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200036257801562000228576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001ee9291906200081a565b600060405180830381600087803b1580156200020957600080fd5b505af11580156200021e573d6000803e3d6000fd5b5050505062000361565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620002e2576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b8152600401620002a89291906200081a565b600060405180830381600087803b158015620002c357600080fd5b505af1158015620002d8573d6000803e3d6000fd5b5050505062000360565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b81526004016200032b919062000847565b600060405180830381600087803b1580156200034657600080fd5b505af11580156200035b573d6000803e3d6000fd5b505050505b5b5b5050620003796000801b33620003dc60201b60201c565b620003a173c71df678a0026861d1975ebd7478e73f3845a2ce6101f4620003f260201b60201c565b620003b16200059560201b60201c565b600181905550620003c7620005ac60201b60201c565b600281905550620009e3565b60006001905090565b620003ee8282620005b660201b60201c565b5050565b62000402620006a860201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000463576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200045a90620008eb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620004d5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004cc906200095d565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000620005a7620003d360201b60201c565b905090565b6000610bb9905090565b620005c88282620006b260201b60201c565b620006a4576001600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620006496200071d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000612710905090565b6000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b8280546200073390620009ae565b90600052602060002090601f016020900481019282620007575760008555620007a3565b82601f106200077257805160ff1916838001178555620007a3565b82800160010185558215620007a3579182015b82811115620007a257825182559160200191906001019062000785565b5b509050620007b29190620007b6565b5090565b5b80821115620007d1576000816000905550600101620007b7565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200080282620007d5565b9050919050565b6200081481620007f5565b82525050565b600060408201905062000831600083018562000809565b62000840602083018462000809565b9392505050565b60006020820190506200085e600083018462000809565b92915050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000620008d3602a8362000864565b9150620008e08262000875565b604082019050919050565b600060208201905081810360008301526200090681620008c4565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006200094560198362000864565b915062000952826200090d565b602082019050919050565b60006020820190508181036000830152620009788162000936565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620009c757607f821691505b602082108103620009dd57620009dc6200097f565b5b50919050565b615ba080620009f36000396000f3fe6080604052600436106103b85760003560e01c8063570e56f1116101f2578063b07ed9821161010d578063d547741f116100a0578063e61058b01161006f578063e61058b014610db8578063e985e9c514610de1578063ebe384c114610e1e578063f95df41414610e47576103b8565b8063d547741f14610cfe578063df17f13b14610d27578063e449f34114610d64578063e489d51014610d8d576103b8565b8063c28822d7116100dc578063c28822d714610c44578063c59cba2f14610c6d578063c87b56dd14610c98578063d00e40ce14610cd5576103b8565b8063b07ed98214610ba9578063b713176f14610bd2578063b88d4fde14610bfd578063b93d9af614610c19576103b8565b806391b7f5ed11610185578063a217fddf11610154578063a217fddf14610aed578063a22cb46514610b18578063a57e1a0714610b41578063acee66fa14610b6c576103b8565b806391b7f5ed14610a3157806391d1485414610a5a57806395d89b4114610a97578063a035b1fe14610ac2576103b8565b806370a08231116101c157806370a082311461097757806385955c83146109b45780638ca2fec7146109dd578063910730a814610a08576103b8565b8063570e56f1146108bb57806357839839146108e65780635c975abb1461090f5780636352211e1461093a576103b8565b806328148645116102e25780633ccfd60b116102755780634760943e116102445780634760943e146108205780634cf088d91461084b578063537924ef1461087657806355f804b314610892576103b8565b80633ccfd60b146107a457806341f43434146107ae57806342842e0e146107d957806344d3575d146107f5576103b8565b80632f2ff15d116102b15780632f2ff15d146106fc57806336568abe14610725578063399a0de01461074e57806339bd211c14610779576103b8565b80632814864514610641578063293108e01461066a5780632a55205a146106955780632ae8b22f146106d3576103b8565b80630fbf0a931161035a57806323b872dd1161032957806323b872dd146105b3578063241b7a87146105cf578063248a9ca3146105fa57806326092b8314610637576103b8565b80630fbf0a93146104f957806318160ddd146105225780631a6ef5311461054d5780631c06adcd14610576576103b8565b806306fdde031161039657806306fdde031461044c578063081812fc14610477578063095ea7b3146104b45780630c01414b146104d0576103b8565b806301ffc9a7146103bd57806302329a29146103fa57806304634d8d14610423575b600080fd5b3480156103c957600080fd5b506103e460048036038101906103df91906142a8565b610e70565b6040516103f191906142f0565b60405180910390f35b34801561040657600080fd5b50610421600480360381019061041c9190614337565b61102f565b005b34801561042f57600080fd5b5061044a60048036038101906104459190614406565b61105a565b005b34801561045857600080fd5b50610461611076565b60405161046e91906144df565b60405180910390f35b34801561048357600080fd5b5061049e60048036038101906104999190614537565b611108565b6040516104ab9190614573565b60405180910390f35b6104ce60048036038101906104c9919061458e565b611187565b005b3480156104dc57600080fd5b506104f760048036038101906104f29190614537565b6111a0565b005b34801561050557600080fd5b50610520600480360381019061051b9190614633565b611247565b005b34801561052e57600080fd5b506105376112e9565b604051610544919061468f565b60405180910390f35b34801561055957600080fd5b50610574600480360381019061056f9190614537565b6112f8565b005b34801561058257600080fd5b5061059d60048036038101906105989190614537565b611310565b6040516105aa919061468f565b60405180910390f35b6105cd60048036038101906105c891906146aa565b61132d565b005b3480156105db57600080fd5b506105e461137c565b6040516105f1919061468f565b60405180910390f35b34801561060657600080fd5b50610621600480360381019061061c9190614733565b61138f565b60405161062e919061476f565b60405180910390f35b61063f6113af565b005b34801561064d57600080fd5b5061066860048036038101906106639190614537565b611538565b005b34801561067657600080fd5b5061067f611550565b60405161068c919061476f565b60405180910390f35b3480156106a157600080fd5b506106bc60048036038101906106b7919061478a565b611556565b6040516106ca9291906147ca565b60405180910390f35b3480156106df57600080fd5b506106fa60048036038101906106f59190614337565b611740565b005b34801561070857600080fd5b50610723600480360381019061071e91906147f3565b61176b565b005b34801561073157600080fd5b5061074c600480360381019061074791906147f3565b61178c565b005b34801561075a57600080fd5b5061076361180f565b604051610770919061468f565b60405180910390f35b34801561078557600080fd5b5061078e611814565b60405161079b919061468f565b60405180910390f35b6107ac61181a565b005b3480156107ba57600080fd5b506107c36118a1565b6040516107d09190614892565b60405180910390f35b6107f360048036038101906107ee91906146aa565b6118b3565b005b34801561080157600080fd5b5061080a611902565b60405161081791906142f0565b60405180910390f35b34801561082c57600080fd5b50610835611915565b604051610842919061468f565b60405180910390f35b34801561085757600080fd5b50610860611928565b60405161086d91906142f0565b60405180910390f35b610890600480360381019061088b9190614903565b61193b565b005b34801561089e57600080fd5b506108b960048036038101906108b49190614a80565b611bbf565b005b3480156108c757600080fd5b506108d0611be7565b6040516108dd919061468f565b60405180910390f35b3480156108f257600080fd5b5061090d60048036038101906109089190614537565b611bed565b005b34801561091b57600080fd5b50610924611c94565b60405161093191906142f0565b60405180910390f35b34801561094657600080fd5b50610961600480360381019061095c9190614537565b611ca7565b60405161096e9190614573565b60405180910390f35b34801561098357600080fd5b5061099e60048036038101906109999190614ac9565b611cb9565b6040516109ab919061468f565b60405180910390f35b3480156109c057600080fd5b506109db60048036038101906109d69190614633565b611d71565b005b3480156109e957600080fd5b506109f2611dcd565b6040516109ff919061476f565b60405180910390f35b348015610a1457600080fd5b50610a2f6004803603810190610a2a9190614337565b611dd3565b005b348015610a3d57600080fd5b50610a586004803603810190610a539190614537565b611dfe565b005b348015610a6657600080fd5b50610a816004803603810190610a7c91906147f3565b611e16565b604051610a8e91906142f0565b60405180910390f35b348015610aa357600080fd5b50610aac611e81565b604051610ab991906144df565b60405180910390f35b348015610ace57600080fd5b50610ad7611f13565b604051610ae4919061468f565b60405180910390f35b348015610af957600080fd5b50610b02611f19565b604051610b0f919061476f565b60405180910390f35b348015610b2457600080fd5b50610b3f6004803603810190610b3a9190614af6565b611f20565b005b348015610b4d57600080fd5b50610b56611f39565b604051610b63919061468f565b60405180910390f35b348015610b7857600080fd5b50610b936004803603810190610b8e9190614537565b611f3f565b604051610ba0919061468f565b60405180910390f35b348015610bb557600080fd5b50610bd06004803603810190610bcb9190614537565b611f8b565b005b348015610bde57600080fd5b50610be7612032565b604051610bf4919061468f565b60405180910390f35b610c176004803603810190610c129190614bd7565b612037565b005b348015610c2557600080fd5b50610c2e612088565b604051610c3b919061468f565b60405180910390f35b348015610c5057600080fd5b50610c6b6004803603810190610c669190614733565b61208e565b005b348015610c7957600080fd5b50610c826120a6565b604051610c8f919061468f565b60405180910390f35b348015610ca457600080fd5b50610cbf6004803603810190610cba9190614537565b6120ac565b604051610ccc91906144df565b60405180910390f35b348015610ce157600080fd5b50610cfc6004803603810190610cf7919061478a565b61214a565b005b348015610d0a57600080fd5b50610d256004803603810190610d2091906147f3565b6121cf565b005b348015610d3357600080fd5b50610d4e6004803603810190610d499190614ac9565b6121f0565b604051610d5b919061468f565b60405180910390f35b348015610d7057600080fd5b50610d8b6004803603810190610d869190614633565b612252565b005b348015610d9957600080fd5b50610da26122f6565b604051610daf919061468f565b60405180910390f35b348015610dc457600080fd5b50610ddf6004803603810190610dda9190614c5a565b6122fc565b005b348015610ded57600080fd5b50610e086004803603810190610e039190614cce565b612538565b604051610e1591906142f0565b60405180910390f35b348015610e2a57600080fd5b50610e456004803603810190610e409190614537565b6125cc565b005b348015610e5357600080fd5b50610e6e6004803603810190610e699190614733565b6125e4565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610ecb57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610efb5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610f4a575063bb3bafd660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610f995750632a55205a60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610fe8575063b779958460e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ff85750610ff7826125fc565b5b8061100857506110078261268e565b5b80611018575061101782612708565b5b80611028575061102782612708565b5b9050919050565b6000801b61103c81612782565b81601360006101000a81548160ff0219169083151502179055505050565b6000801b61106781612782565b6110718383612796565b505050565b60606004805461108590614d3d565b80601f01602080910402602001604051908101604052809291908181526020018280546110b190614d3d565b80156110fe5780601f106110d3576101008083540402835291602001916110fe565b820191906000526020600020905b8154815290600101906020018083116110e157829003601f168201915b5050505050905090565b60006111138261292b565b611149576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81611191816129b1565b61119b8383612aae565b505050565b6000801b6111ad81612782565b610d058211156111f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e990614dba565b60405180910390fd5b6111fa611915565b82101561123c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123390614e26565b60405180910390fd5b81600e819055505050565b60011515601760009054906101000a900460ff1615151461129d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129490614e92565b60405180910390fd5b600082829050905060005b818110156112e3576112d28484838181106112c6576112c5614eb2565b5b90506020020135612bf2565b806112dc90614f10565b90506112a8565b50505050565b60006112f3612cc1565b905090565b6000801b61130581612782565b816012819055505050565b600060196000838152602001908152602001600020549050919050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461136b5761136a336129b1565b5b611376848484612cd9565b50505050565b6000611386612ffb565b60025403905090565b6000600c6000838152602001908152602001600020600101549050919050565b600d546113ba612cc1565b106113fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f190614fa4565b60405180910390fd5b60001515601360009054906101000a900460ff16151514611450576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144790615010565b60405180910390fd5b60011515601360019054906101000a900460ff161515146114a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149d9061507c565b60405180910390fd5b6016543410156114eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e2906150e8565b60405180910390fd5b600e546114f6611915565b1061150b57611506336001613005565b611536565b600f5461151661137c565b1061152b57611526336001613081565b611535565b611534336130fd565b5b5b565b6000801b61154581612782565b816011819055505050565b60145481565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036116eb57600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006116f5613199565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866117219190615108565b61172b9190615191565b90508160000151819350935050509250929050565b6000801b61174d81612782565b81601360016101000a81548160ff0219169083151502179055505050565b6117748261138f565b61177d81612782565b61178783836131a3565b505050565b611794613284565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611801576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f890615234565b60405180910390fd5b61180b828261328c565b5050565b600581565b60105481565b6000801b61182781612782565b60003373ffffffffffffffffffffffffffffffffffffffff164760405161184d90615285565b60006040518083038185875af1925050503d806000811461188a576040519150601f19603f3d011682016040523d82523d6000602084013e61188f565b606091505b505090508061189d57600080fd5b5050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146118f1576118f0336129b1565b5b6118fc84848461336e565b50505050565b601360019054906101000a900460ff1681565b600061191f61338e565b60015403905090565b601760009054906101000a900460ff1681565b600d54611946612cc1565b10611986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197d90614fa4565b60405180910390fd5b60001515601360009054906101000a900460ff161515146119dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d390615010565b60405180910390fd5b6000336040516020016119ef91906152e2565b6040516020818303038152906040528051906020012090506000611a123361339d565b14611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4990615349565b60405180910390fd5b611aa0838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601454836133f4565b611adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad6906153b5565b60405180910390fd5b601654341015611b24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1b906150e8565b60405180910390fd5b601054611b2f6112e9565b10611b6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6690615421565b60405180910390fd5b601154611b7a61137c565b10611b8f57611b8a336001613081565b611bba565b601254611b9a611915565b10611baf57611baa336001613005565b611bb9565b611bb8336130fd565b5b5b505050565b6000801b611bcc81612782565b8160189080519060200190611be2929190614199565b505050565b60125481565b6000801b611bfa81612782565b610d05821115611c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3690614dba565b60405180910390fd5b611c4761137c565b821015611c89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8090614e26565b60405180910390fd5b81600f819055505050565b601360009054906101000a900460ff1681565b6000611cb28261340b565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d20576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6000801b611d7e81612782565b600083839050905060005b81811015611dc657611db5858583818110611da757611da6614eb2565b5b905060200201356001613551565b80611dbf90614f10565b9050611d89565b5050505050565b60155481565b6000801b611de081612782565b81601760006101000a81548160ff0219169083151502179055505050565b6000801b611e0b81612782565b816016819055505050565b6000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060058054611e9090614d3d565b80601f0160208091040260200160405190810160405280929190818152602001828054611ebc90614d3d565b8015611f095780601f10611ede57610100808354040283529160200191611f09565b820191906000526020600020905b815481529060010190602001808311611eec57829003601f168201915b5050505050905090565b60165481565b6000801b81565b81611f2a816129b1565b611f348383613622565b505050565b600e5481565b600080601960008481526020019081526020016000205403611f645760009050611f86565b601960008381526020019081526020016000205442611f839190615441565b90505b919050565b6000801b611f9881612782565b610d05821115611fdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd490614dba565b60405180910390fd5b611fe56112e9565b821015612027576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201e90614e26565b60405180910390fd5b81600d819055505050565b600a81565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461207557612074336129b1565b5b6120818585858561372d565b5050505050565b600f5481565b6000801b61209b81612782565b816015819055505050565b60115481565b60606120b78261292b565b6120ed576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006120f76137a0565b905060008151036121175760405180602001604052806000815250612142565b8061212184613832565b6040516020016121329291906154b1565b6040516020818303038152906040525b915050919050565b600d54612155612cc1565b10612195576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218c90614fa4565b60405180910390fd5b6000801b6121a281612782565b60008311156121b6576121b53384613081565b5b60008211156121ca576121c93383613005565b5b505050565b6121d88261138f565b6121e181612782565b6121eb838361328c565b505050565b6000806001436122009190615441565b409050600081428560405160200161221a93929190615517565b60405160208183030381529060405280519060200120905060006103e88260001c6122459190615554565b9050809350505050919050565b60011515601760009054906101000a900460ff161515146122a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229f90614e92565b60405180910390fd5b600082829050905060005b818110156122f0576122df8484838181106122d1576122d0614eb2565b5b905060200201356000613551565b806122e990614f10565b90506122b3565b50505050565b600d5481565b600d54612307612cc1565b10612347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233e90614fa4565b60405180910390fd5b60001515601360009054906101000a900460ff1615151461239d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239490615010565b60405180910390fd5b60018111156123e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d8906155d1565b60405180910390fd5b60006123ec3361339d565b1461242c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242390615349565b60405180910390fd5b600033600a8361243c9190615108565b6005856124499190615108565b61245391906155f1565b604051602001612464929190615647565b6040516020818303038152906040528051906020012090506124ca858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601554836133f4565b612509576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612500906153b5565b60405180910390fd5b600083111561251d5761251c3384613081565b5b6000821115612531576125303383613005565b5b5050505050565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6125d981612782565b816010819055505050565b6000801b6125f181612782565b816014819055505050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061265757506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806126875750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612701575061270082613882565b5b9050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061277b575061277a8261268e565b5b9050919050565b6127938161278e613284565b6138ec565b50565b61279e613199565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156127fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f3906156e5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361286b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286290615751565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600060015482101580156129405750610bb982105b1561294e57600090506129ac565b600254821061296057600090506129ac565b81612969613989565b111580156129a9575060007c0100000000000000000000000000000000000000000000000000000000600660008581526020019081526020016000205416145b90505b919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612aab576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612a28929190615771565b602060405180830381865afa158015612a45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6991906157af565b612aaa57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401612aa19190614573565b60405180910390fd5b5b50565b6000612ab982611ca7565b90508073ffffffffffffffffffffffffffffffffffffffff16612ada613992565b73ffffffffffffffffffffffffffffffffffffffff1614612b3d57612b0681612b01613992565b612538565b612b3c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826008600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b3373ffffffffffffffffffffffffffffffffffffffff16612c1282611ca7565b73ffffffffffffffffffffffffffffffffffffffff1614612c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5f90615828565b60405180910390fd5b6000429050806019600084815260200190815260200160002081905550817f925435fa7e37e5d9555bb18ce0d62bb9627d0846942e58e5291e9a2dded462ed82604051612cb5919061468f565b60405180910390a25050565b6000612ccb61137c565b612cd3611915565b01905090565b6000612ce48261340b565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612d4b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612d578461399a565b91509150612d6d8187612d68613992565b6139c1565b612db957612d8286612d7d613992565b612538565b612db8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612e1f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e2c8686866001613a05565b8015612e3757600082555b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612f0585612ee1888887613a92565b7c020000000000000000000000000000000000000000000000000000000017613aba565b600660008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612f8b5760006001850190506000600660008381526020019081526020016000205403612f89576000548114612f88578360066000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ff38686866001613ae5565b505050505050565b6000610bb9905090565b600f548161301161137c565b61301b91906155f1565b111561305c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305390615894565b60405180910390fd5b6130698282600254613aeb565b8060025461307791906155f1565b6002819055505050565b600e548161308d611915565b61309791906155f1565b11156130d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130cf90615894565b60405180910390fd5b6130e58282600154613aeb565b806001546130f391906155f1565b6001819055505050565b6000613108826121f0565b9050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613170576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610385811061318957613184826001613005565b613195565b613194826001613081565b5b5050565b6000612710905090565b6131ad8282611e16565b613280576001600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550613225613284565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6132968282611e16565b1561336a576000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061330f613284565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61338983838360405180602001604052806000815250612037565b505050565b6000613398613989565b905090565b600067ffffffffffffffff6040600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b6000826134018584613b0b565b1490509392505050565b60008082905060015481101580156134245750610bb981105b1561345b576040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002548110613496576040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8061349f613989565b1161351a5760006006600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613518575b6000810361350e5760066000836001900393508381526020019081526020016000205490506134e4565b809250505061354c565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b806135cd573373ffffffffffffffffffffffffffffffffffffffff1661357683611ca7565b73ffffffffffffffffffffffffffffffffffffffff16146135cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135c390615828565b60405180910390fd5b5b60006019600084815260200190815260200160002081905550817ffe67007f52a1bf967323b00fd406f9028a8e8a88aec274e07a63b2fabacc64a742604051613616919061468f565b60405180910390a25050565b806009600061362f613992565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166136dc613992565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161372191906142f0565b60405180910390a35050565b61373884848461132d565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461379a5761376384848484613b61565b613799576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060601880546137af90614d3d565b80601f01602080910402602001604051908101604052809291908181526020018280546137db90614d3d565b80156138285780601f106137fd57610100808354040283529160200191613828565b820191906000526020600020905b81548152906001019060200180831161380b57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561386d57600184039350600a81066030018453600a810490508061384b575b50828103602084039350808452505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6138f68282611e16565b6139855761391b8173ffffffffffffffffffffffffffffffffffffffff166014613cb1565b6139298360001c6020613cb1565b60405160200161393a92919061594c565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161397c91906144df565b60405180910390fd5b5050565b60006001905090565b600033905090565b60008060006008600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b600082905060008282613a1891906155f1565b90505b80821015613a8a576000601960008481526020019081526020016000205414613a79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a70906159d2565b60405180910390fd5b81613a8390614f10565b9150613a1b565b505050505050565b60008060e883901c905060e8613aa9868684613eed565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b613b0683838360405180602001604052806000815250613ef6565b505050565b60008082905060005b8451811015613b5657613b4182868381518110613b3457613b33614eb2565b5b6020026020010151613f92565b91508080613b4e90614f10565b915050613b14565b508091505092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613b87613992565b8786866040518563ffffffff1660e01b8152600401613ba99493929190615a47565b6020604051808303816000875af1925050508015613be557506040513d601f19601f82011682018060405250810190613be29190615aa8565b60015b613c5e573d8060008114613c15576040519150601f19603f3d011682016040523d82523d6000602084013e613c1a565b606091505b506000815103613c56576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060006002836002613cc49190615108565b613cce91906155f1565b67ffffffffffffffff811115613ce757613ce6614955565b5b6040519080825280601f01601f191660200182016040528015613d195781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613d5157613d50614eb2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613db557613db4614eb2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613df59190615108565b613dff91906155f1565b90505b6001811115613e9f577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613e4157613e40614eb2565b5b1a60f81b828281518110613e5857613e57614eb2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613e9890615ad5565b9050613e02565b5060008414613ee3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613eda90615b4a565b60405180910390fd5b8091505092915050565b60009392505050565b613f01848484613fbd565b60008473ffffffffffffffffffffffffffffffffffffffff163b14613f8c576000829050600084820390505b613f406000878380600101945086613b61565b613f76576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110613f2d57818414613f8957600080fd5b50505b50505050565b6000818310613faa57613fa58284614172565b613fb5565b613fb48383614172565b5b905092915050565b60008203613ff7576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6140046000848385613a05565b600160406001901b178202600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061407b8361406c6000866000613a92565b61407585614189565b17613aba565b6006600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461411c57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506140e1565b5060008203614157576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061416d6000848385613ae5565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b8280546141a590614d3d565b90600052602060002090601f0160209004810192826141c7576000855561420e565b82601f106141e057805160ff191683800117855561420e565b8280016001018555821561420e579182015b8281111561420d5782518255916020019190600101906141f2565b5b50905061421b919061421f565b5090565b5b80821115614238576000816000905550600101614220565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61428581614250565b811461429057600080fd5b50565b6000813590506142a28161427c565b92915050565b6000602082840312156142be576142bd614246565b5b60006142cc84828501614293565b91505092915050565b60008115159050919050565b6142ea816142d5565b82525050565b600060208201905061430560008301846142e1565b92915050565b614314816142d5565b811461431f57600080fd5b50565b6000813590506143318161430b565b92915050565b60006020828403121561434d5761434c614246565b5b600061435b84828501614322565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061438f82614364565b9050919050565b61439f81614384565b81146143aa57600080fd5b50565b6000813590506143bc81614396565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6143e3816143c2565b81146143ee57600080fd5b50565b600081359050614400816143da565b92915050565b6000806040838503121561441d5761441c614246565b5b600061442b858286016143ad565b925050602061443c858286016143f1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015614480578082015181840152602081019050614465565b8381111561448f576000848401525b50505050565b6000601f19601f8301169050919050565b60006144b182614446565b6144bb8185614451565b93506144cb818560208601614462565b6144d481614495565b840191505092915050565b600060208201905081810360008301526144f981846144a6565b905092915050565b6000819050919050565b61451481614501565b811461451f57600080fd5b50565b6000813590506145318161450b565b92915050565b60006020828403121561454d5761454c614246565b5b600061455b84828501614522565b91505092915050565b61456d81614384565b82525050565b60006020820190506145886000830184614564565b92915050565b600080604083850312156145a5576145a4614246565b5b60006145b3858286016143ad565b92505060206145c485828601614522565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126145f3576145f26145ce565b5b8235905067ffffffffffffffff8111156146105761460f6145d3565b5b60208301915083602082028301111561462c5761462b6145d8565b5b9250929050565b6000806020838503121561464a57614649614246565b5b600083013567ffffffffffffffff8111156146685761466761424b565b5b614674858286016145dd565b92509250509250929050565b61468981614501565b82525050565b60006020820190506146a46000830184614680565b92915050565b6000806000606084860312156146c3576146c2614246565b5b60006146d1868287016143ad565b93505060206146e2868287016143ad565b92505060406146f386828701614522565b9150509250925092565b6000819050919050565b614710816146fd565b811461471b57600080fd5b50565b60008135905061472d81614707565b92915050565b60006020828403121561474957614748614246565b5b60006147578482850161471e565b91505092915050565b614769816146fd565b82525050565b60006020820190506147846000830184614760565b92915050565b600080604083850312156147a1576147a0614246565b5b60006147af85828601614522565b92505060206147c085828601614522565b9150509250929050565b60006040820190506147df6000830185614564565b6147ec6020830184614680565b9392505050565b6000806040838503121561480a57614809614246565b5b60006148188582860161471e565b9250506020614829858286016143ad565b9150509250929050565b6000819050919050565b600061485861485361484e84614364565b614833565b614364565b9050919050565b600061486a8261483d565b9050919050565b600061487c8261485f565b9050919050565b61488c81614871565b82525050565b60006020820190506148a76000830184614883565b92915050565b60008083601f8401126148c3576148c26145ce565b5b8235905067ffffffffffffffff8111156148e0576148df6145d3565b5b6020830191508360208202830111156148fc576148fb6145d8565b5b9250929050565b6000806020838503121561491a57614919614246565b5b600083013567ffffffffffffffff8111156149385761493761424b565b5b614944858286016148ad565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61498d82614495565b810181811067ffffffffffffffff821117156149ac576149ab614955565b5b80604052505050565b60006149bf61423c565b90506149cb8282614984565b919050565b600067ffffffffffffffff8211156149eb576149ea614955565b5b6149f482614495565b9050602081019050919050565b82818337600083830152505050565b6000614a23614a1e846149d0565b6149b5565b905082815260208101848484011115614a3f57614a3e614950565b5b614a4a848285614a01565b509392505050565b600082601f830112614a6757614a666145ce565b5b8135614a77848260208601614a10565b91505092915050565b600060208284031215614a9657614a95614246565b5b600082013567ffffffffffffffff811115614ab457614ab361424b565b5b614ac084828501614a52565b91505092915050565b600060208284031215614adf57614ade614246565b5b6000614aed848285016143ad565b91505092915050565b60008060408385031215614b0d57614b0c614246565b5b6000614b1b858286016143ad565b9250506020614b2c85828601614322565b9150509250929050565b600067ffffffffffffffff821115614b5157614b50614955565b5b614b5a82614495565b9050602081019050919050565b6000614b7a614b7584614b36565b6149b5565b905082815260208101848484011115614b9657614b95614950565b5b614ba1848285614a01565b509392505050565b600082601f830112614bbe57614bbd6145ce565b5b8135614bce848260208601614b67565b91505092915050565b60008060008060808587031215614bf157614bf0614246565b5b6000614bff878288016143ad565b9450506020614c10878288016143ad565b9350506040614c2187828801614522565b925050606085013567ffffffffffffffff811115614c4257614c4161424b565b5b614c4e87828801614ba9565b91505092959194509250565b60008060008060608587031215614c7457614c73614246565b5b600085013567ffffffffffffffff811115614c9257614c9161424b565b5b614c9e878288016148ad565b94509450506020614cb187828801614522565b9250506040614cc287828801614522565b91505092959194509250565b60008060408385031215614ce557614ce4614246565b5b6000614cf3858286016143ad565b9250506020614d04858286016143ad565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614d5557607f821691505b602082108103614d6857614d67614d0e565b5b50919050565b7f43616e6e6f742065786365656420333333332e00000000000000000000000000600082015250565b6000614da4601383614451565b9150614daf82614d6e565b602082019050919050565b60006020820190508181036000830152614dd381614d97565b9050919050565b7f4c657373207468616e2063757272656e7420737570706c792e00000000000000600082015250565b6000614e10601983614451565b9150614e1b82614dda565b602082019050919050565b60006020820190508181036000830152614e3f81614e03565b9050919050565b7f5374616b696e67206973206e6f7420656e61626c65642e000000000000000000600082015250565b6000614e7c601783614451565b9150614e8782614e46565b602082019050919050565b60006020820190508181036000830152614eab81614e6f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614f1b82614501565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614f4d57614f4c614ee1565b5b600182019050919050565b7f4d617820746f6b656e20737570706c7920726561636865642e00000000000000600082015250565b6000614f8e601983614451565b9150614f9982614f58565b602082019050919050565b60006020820190508181036000830152614fbd81614f81565b9050919050565b7f4d696e74696e67206973207061757365642e0000000000000000000000000000600082015250565b6000614ffa601283614451565b915061500582614fc4565b602082019050919050565b6000602082019050818103600083015261502981614fed565b9050919050565b7f5075626c6963206d696e74206973206e6f74206f70656e2e0000000000000000600082015250565b6000615066601883614451565b915061507182615030565b602082019050919050565b6000602082019050818103600083015261509581615059565b9050919050565b7f496e636f72726563742065746865722073656e742e0000000000000000000000600082015250565b60006150d2601583614451565b91506150dd8261509c565b602082019050919050565b60006020820190508181036000830152615101816150c5565b9050919050565b600061511382614501565b915061511e83614501565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561515757615156614ee1565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061519c82614501565b91506151a783614501565b9250826151b7576151b6615162565b5b828204905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600061521e602f83614451565b9150615229826151c2565b604082019050919050565b6000602082019050818103600083015261524d81615211565b9050919050565b600081905092915050565b50565b600061526f600083615254565b915061527a8261525f565b600082019050919050565b600061529082615262565b9150819050919050565b60008160601b9050919050565b60006152b28261529a565b9050919050565b60006152c4826152a7565b9050919050565b6152dc6152d782614384565b6152b9565b82525050565b60006152ee82846152cb565b60148201915081905092915050565b7f416c7265616479206d696e7465642e0000000000000000000000000000000000600082015250565b6000615333600f83614451565b915061533e826152fd565b602082019050919050565b6000602082019050818103600083015261536281615326565b9050919050565b7f496e76616c6964204d65726b6c652070726f6f662e0000000000000000000000600082015250565b600061539f601583614451565b91506153aa82615369565b602082019050919050565b600060208201905081810360008301526153ce81615392565b9050919050565b7f416c6c6f776c69737420737570706c7920726561636865642e00000000000000600082015250565b600061540b601983614451565b9150615416826153d5565b602082019050919050565b6000602082019050818103600083015261543a816153fe565b9050919050565b600061544c82614501565b915061545783614501565b92508282101561546a57615469614ee1565b5b828203905092915050565b600081905092915050565b600061548b82614446565b6154958185615475565b93506154a5818560208601614462565b80840191505092915050565b60006154bd8285615480565b91506154c98284615480565b91508190509392505050565b6000819050919050565b6154f06154eb826146fd565b6154d5565b82525050565b6000819050919050565b61551161550c82614501565b6154f6565b82525050565b600061552382866154df565b6020820191506155338285615500565b60208201915061554382846152cb565b601482019150819050949350505050565b600061555f82614501565b915061556a83614501565b92508261557a57615579615162565b5b828206905092915050565b7f4f6e6c79203120737570657220616c6c6f7765642e0000000000000000000000600082015250565b60006155bb601583614451565b91506155c682615585565b602082019050919050565b600060208201905081810360008301526155ea816155ae565b9050919050565b60006155fc82614501565b915061560783614501565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561563c5761563b614ee1565b5b828201905092915050565b600061565382856152cb565b6014820191506156638284615500565b6020820191508190509392505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006156cf602a83614451565b91506156da82615673565b604082019050919050565b600060208201905081810360008301526156fe816156c2565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061573b601983614451565b915061574682615705565b602082019050919050565b6000602082019050818103600083015261576a8161572e565b9050919050565b60006040820190506157866000830185614564565b6157936020830184614564565b9392505050565b6000815190506157a98161430b565b92915050565b6000602082840312156157c5576157c4614246565b5b60006157d38482850161579a565b91505092915050565b7f4e6f74206f776e65722e00000000000000000000000000000000000000000000600082015250565b6000615812600a83614451565b915061581d826157dc565b602082019050919050565b6000602082019050818103600083015261584181615805565b9050919050565b7f57696c6c2065786365656420746f6b656e20737570706c792e00000000000000600082015250565b600061587e601983614451565b915061588982615848565b602082019050919050565b600060208201905081810360008301526158ad81615871565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006158ea601783615475565b91506158f5826158b4565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000615936601183615475565b915061594182615900565b601182019050919050565b6000615957826158dd565b91506159638285615480565b915061596e82615929565b915061597a8284615480565b91508190509392505050565b7f546f6b656e206973207374616b696e672e000000000000000000000000000000600082015250565b60006159bc601183614451565b91506159c782615986565b602082019050919050565b600060208201905081810360008301526159eb816159af565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615a19826159f2565b615a2381856159fd565b9350615a33818560208601614462565b615a3c81614495565b840191505092915050565b6000608082019050615a5c6000830187614564565b615a696020830186614564565b615a766040830185614680565b8181036060830152615a888184615a0e565b905095945050505050565b600081519050615aa28161427c565b92915050565b600060208284031215615abe57615abd614246565b5b6000615acc84828501615a93565b91505092915050565b6000615ae082614501565b915060008203615af357615af2614ee1565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615b34602083614451565b9150615b3f82615afe565b602082019050919050565b60006020820190508181036000830152615b6381615b27565b905091905056fea264697066735822122027ddb998d97aeb986bef10ec1d82d9d38f818926f4bf1e917bc75accb5d89b5764736f6c634300080d0033

Deployed Bytecode

0x6080604052600436106103b85760003560e01c8063570e56f1116101f2578063b07ed9821161010d578063d547741f116100a0578063e61058b01161006f578063e61058b014610db8578063e985e9c514610de1578063ebe384c114610e1e578063f95df41414610e47576103b8565b8063d547741f14610cfe578063df17f13b14610d27578063e449f34114610d64578063e489d51014610d8d576103b8565b8063c28822d7116100dc578063c28822d714610c44578063c59cba2f14610c6d578063c87b56dd14610c98578063d00e40ce14610cd5576103b8565b8063b07ed98214610ba9578063b713176f14610bd2578063b88d4fde14610bfd578063b93d9af614610c19576103b8565b806391b7f5ed11610185578063a217fddf11610154578063a217fddf14610aed578063a22cb46514610b18578063a57e1a0714610b41578063acee66fa14610b6c576103b8565b806391b7f5ed14610a3157806391d1485414610a5a57806395d89b4114610a97578063a035b1fe14610ac2576103b8565b806370a08231116101c157806370a082311461097757806385955c83146109b45780638ca2fec7146109dd578063910730a814610a08576103b8565b8063570e56f1146108bb57806357839839146108e65780635c975abb1461090f5780636352211e1461093a576103b8565b806328148645116102e25780633ccfd60b116102755780634760943e116102445780634760943e146108205780634cf088d91461084b578063537924ef1461087657806355f804b314610892576103b8565b80633ccfd60b146107a457806341f43434146107ae57806342842e0e146107d957806344d3575d146107f5576103b8565b80632f2ff15d116102b15780632f2ff15d146106fc57806336568abe14610725578063399a0de01461074e57806339bd211c14610779576103b8565b80632814864514610641578063293108e01461066a5780632a55205a146106955780632ae8b22f146106d3576103b8565b80630fbf0a931161035a57806323b872dd1161032957806323b872dd146105b3578063241b7a87146105cf578063248a9ca3146105fa57806326092b8314610637576103b8565b80630fbf0a93146104f957806318160ddd146105225780631a6ef5311461054d5780631c06adcd14610576576103b8565b806306fdde031161039657806306fdde031461044c578063081812fc14610477578063095ea7b3146104b45780630c01414b146104d0576103b8565b806301ffc9a7146103bd57806302329a29146103fa57806304634d8d14610423575b600080fd5b3480156103c957600080fd5b506103e460048036038101906103df91906142a8565b610e70565b6040516103f191906142f0565b60405180910390f35b34801561040657600080fd5b50610421600480360381019061041c9190614337565b61102f565b005b34801561042f57600080fd5b5061044a60048036038101906104459190614406565b61105a565b005b34801561045857600080fd5b50610461611076565b60405161046e91906144df565b60405180910390f35b34801561048357600080fd5b5061049e60048036038101906104999190614537565b611108565b6040516104ab9190614573565b60405180910390f35b6104ce60048036038101906104c9919061458e565b611187565b005b3480156104dc57600080fd5b506104f760048036038101906104f29190614537565b6111a0565b005b34801561050557600080fd5b50610520600480360381019061051b9190614633565b611247565b005b34801561052e57600080fd5b506105376112e9565b604051610544919061468f565b60405180910390f35b34801561055957600080fd5b50610574600480360381019061056f9190614537565b6112f8565b005b34801561058257600080fd5b5061059d60048036038101906105989190614537565b611310565b6040516105aa919061468f565b60405180910390f35b6105cd60048036038101906105c891906146aa565b61132d565b005b3480156105db57600080fd5b506105e461137c565b6040516105f1919061468f565b60405180910390f35b34801561060657600080fd5b50610621600480360381019061061c9190614733565b61138f565b60405161062e919061476f565b60405180910390f35b61063f6113af565b005b34801561064d57600080fd5b5061066860048036038101906106639190614537565b611538565b005b34801561067657600080fd5b5061067f611550565b60405161068c919061476f565b60405180910390f35b3480156106a157600080fd5b506106bc60048036038101906106b7919061478a565b611556565b6040516106ca9291906147ca565b60405180910390f35b3480156106df57600080fd5b506106fa60048036038101906106f59190614337565b611740565b005b34801561070857600080fd5b50610723600480360381019061071e91906147f3565b61176b565b005b34801561073157600080fd5b5061074c600480360381019061074791906147f3565b61178c565b005b34801561075a57600080fd5b5061076361180f565b604051610770919061468f565b60405180910390f35b34801561078557600080fd5b5061078e611814565b60405161079b919061468f565b60405180910390f35b6107ac61181a565b005b3480156107ba57600080fd5b506107c36118a1565b6040516107d09190614892565b60405180910390f35b6107f360048036038101906107ee91906146aa565b6118b3565b005b34801561080157600080fd5b5061080a611902565b60405161081791906142f0565b60405180910390f35b34801561082c57600080fd5b50610835611915565b604051610842919061468f565b60405180910390f35b34801561085757600080fd5b50610860611928565b60405161086d91906142f0565b60405180910390f35b610890600480360381019061088b9190614903565b61193b565b005b34801561089e57600080fd5b506108b960048036038101906108b49190614a80565b611bbf565b005b3480156108c757600080fd5b506108d0611be7565b6040516108dd919061468f565b60405180910390f35b3480156108f257600080fd5b5061090d60048036038101906109089190614537565b611bed565b005b34801561091b57600080fd5b50610924611c94565b60405161093191906142f0565b60405180910390f35b34801561094657600080fd5b50610961600480360381019061095c9190614537565b611ca7565b60405161096e9190614573565b60405180910390f35b34801561098357600080fd5b5061099e60048036038101906109999190614ac9565b611cb9565b6040516109ab919061468f565b60405180910390f35b3480156109c057600080fd5b506109db60048036038101906109d69190614633565b611d71565b005b3480156109e957600080fd5b506109f2611dcd565b6040516109ff919061476f565b60405180910390f35b348015610a1457600080fd5b50610a2f6004803603810190610a2a9190614337565b611dd3565b005b348015610a3d57600080fd5b50610a586004803603810190610a539190614537565b611dfe565b005b348015610a6657600080fd5b50610a816004803603810190610a7c91906147f3565b611e16565b604051610a8e91906142f0565b60405180910390f35b348015610aa357600080fd5b50610aac611e81565b604051610ab991906144df565b60405180910390f35b348015610ace57600080fd5b50610ad7611f13565b604051610ae4919061468f565b60405180910390f35b348015610af957600080fd5b50610b02611f19565b604051610b0f919061476f565b60405180910390f35b348015610b2457600080fd5b50610b3f6004803603810190610b3a9190614af6565b611f20565b005b348015610b4d57600080fd5b50610b56611f39565b604051610b63919061468f565b60405180910390f35b348015610b7857600080fd5b50610b936004803603810190610b8e9190614537565b611f3f565b604051610ba0919061468f565b60405180910390f35b348015610bb557600080fd5b50610bd06004803603810190610bcb9190614537565b611f8b565b005b348015610bde57600080fd5b50610be7612032565b604051610bf4919061468f565b60405180910390f35b610c176004803603810190610c129190614bd7565b612037565b005b348015610c2557600080fd5b50610c2e612088565b604051610c3b919061468f565b60405180910390f35b348015610c5057600080fd5b50610c6b6004803603810190610c669190614733565b61208e565b005b348015610c7957600080fd5b50610c826120a6565b604051610c8f919061468f565b60405180910390f35b348015610ca457600080fd5b50610cbf6004803603810190610cba9190614537565b6120ac565b604051610ccc91906144df565b60405180910390f35b348015610ce157600080fd5b50610cfc6004803603810190610cf7919061478a565b61214a565b005b348015610d0a57600080fd5b50610d256004803603810190610d2091906147f3565b6121cf565b005b348015610d3357600080fd5b50610d4e6004803603810190610d499190614ac9565b6121f0565b604051610d5b919061468f565b60405180910390f35b348015610d7057600080fd5b50610d8b6004803603810190610d869190614633565b612252565b005b348015610d9957600080fd5b50610da26122f6565b604051610daf919061468f565b60405180910390f35b348015610dc457600080fd5b50610ddf6004803603810190610dda9190614c5a565b6122fc565b005b348015610ded57600080fd5b50610e086004803603810190610e039190614cce565b612538565b604051610e1591906142f0565b60405180910390f35b348015610e2a57600080fd5b50610e456004803603810190610e409190614537565b6125cc565b005b348015610e5357600080fd5b50610e6e6004803603810190610e699190614733565b6125e4565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610ecb57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610efb5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610f4a575063bb3bafd660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610f995750632a55205a60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610fe8575063b779958460e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ff85750610ff7826125fc565b5b8061100857506110078261268e565b5b80611018575061101782612708565b5b80611028575061102782612708565b5b9050919050565b6000801b61103c81612782565b81601360006101000a81548160ff0219169083151502179055505050565b6000801b61106781612782565b6110718383612796565b505050565b60606004805461108590614d3d565b80601f01602080910402602001604051908101604052809291908181526020018280546110b190614d3d565b80156110fe5780601f106110d3576101008083540402835291602001916110fe565b820191906000526020600020905b8154815290600101906020018083116110e157829003601f168201915b5050505050905090565b60006111138261292b565b611149576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81611191816129b1565b61119b8383612aae565b505050565b6000801b6111ad81612782565b610d058211156111f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e990614dba565b60405180910390fd5b6111fa611915565b82101561123c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123390614e26565b60405180910390fd5b81600e819055505050565b60011515601760009054906101000a900460ff1615151461129d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129490614e92565b60405180910390fd5b600082829050905060005b818110156112e3576112d28484838181106112c6576112c5614eb2565b5b90506020020135612bf2565b806112dc90614f10565b90506112a8565b50505050565b60006112f3612cc1565b905090565b6000801b61130581612782565b816012819055505050565b600060196000838152602001908152602001600020549050919050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461136b5761136a336129b1565b5b611376848484612cd9565b50505050565b6000611386612ffb565b60025403905090565b6000600c6000838152602001908152602001600020600101549050919050565b600d546113ba612cc1565b106113fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f190614fa4565b60405180910390fd5b60001515601360009054906101000a900460ff16151514611450576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144790615010565b60405180910390fd5b60011515601360019054906101000a900460ff161515146114a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149d9061507c565b60405180910390fd5b6016543410156114eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e2906150e8565b60405180910390fd5b600e546114f6611915565b1061150b57611506336001613005565b611536565b600f5461151661137c565b1061152b57611526336001613081565b611535565b611534336130fd565b5b5b565b6000801b61154581612782565b816011819055505050565b60145481565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036116eb57600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006116f5613199565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866117219190615108565b61172b9190615191565b90508160000151819350935050509250929050565b6000801b61174d81612782565b81601360016101000a81548160ff0219169083151502179055505050565b6117748261138f565b61177d81612782565b61178783836131a3565b505050565b611794613284565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611801576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f890615234565b60405180910390fd5b61180b828261328c565b5050565b600581565b60105481565b6000801b61182781612782565b60003373ffffffffffffffffffffffffffffffffffffffff164760405161184d90615285565b60006040518083038185875af1925050503d806000811461188a576040519150601f19603f3d011682016040523d82523d6000602084013e61188f565b606091505b505090508061189d57600080fd5b5050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146118f1576118f0336129b1565b5b6118fc84848461336e565b50505050565b601360019054906101000a900460ff1681565b600061191f61338e565b60015403905090565b601760009054906101000a900460ff1681565b600d54611946612cc1565b10611986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197d90614fa4565b60405180910390fd5b60001515601360009054906101000a900460ff161515146119dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d390615010565b60405180910390fd5b6000336040516020016119ef91906152e2565b6040516020818303038152906040528051906020012090506000611a123361339d565b14611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4990615349565b60405180910390fd5b611aa0838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601454836133f4565b611adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad6906153b5565b60405180910390fd5b601654341015611b24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1b906150e8565b60405180910390fd5b601054611b2f6112e9565b10611b6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6690615421565b60405180910390fd5b601154611b7a61137c565b10611b8f57611b8a336001613081565b611bba565b601254611b9a611915565b10611baf57611baa336001613005565b611bb9565b611bb8336130fd565b5b5b505050565b6000801b611bcc81612782565b8160189080519060200190611be2929190614199565b505050565b60125481565b6000801b611bfa81612782565b610d05821115611c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3690614dba565b60405180910390fd5b611c4761137c565b821015611c89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8090614e26565b60405180910390fd5b81600f819055505050565b601360009054906101000a900460ff1681565b6000611cb28261340b565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d20576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6000801b611d7e81612782565b600083839050905060005b81811015611dc657611db5858583818110611da757611da6614eb2565b5b905060200201356001613551565b80611dbf90614f10565b9050611d89565b5050505050565b60155481565b6000801b611de081612782565b81601760006101000a81548160ff0219169083151502179055505050565b6000801b611e0b81612782565b816016819055505050565b6000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060058054611e9090614d3d565b80601f0160208091040260200160405190810160405280929190818152602001828054611ebc90614d3d565b8015611f095780601f10611ede57610100808354040283529160200191611f09565b820191906000526020600020905b815481529060010190602001808311611eec57829003601f168201915b5050505050905090565b60165481565b6000801b81565b81611f2a816129b1565b611f348383613622565b505050565b600e5481565b600080601960008481526020019081526020016000205403611f645760009050611f86565b601960008381526020019081526020016000205442611f839190615441565b90505b919050565b6000801b611f9881612782565b610d05821115611fdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd490614dba565b60405180910390fd5b611fe56112e9565b821015612027576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201e90614e26565b60405180910390fd5b81600d819055505050565b600a81565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461207557612074336129b1565b5b6120818585858561372d565b5050505050565b600f5481565b6000801b61209b81612782565b816015819055505050565b60115481565b60606120b78261292b565b6120ed576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006120f76137a0565b905060008151036121175760405180602001604052806000815250612142565b8061212184613832565b6040516020016121329291906154b1565b6040516020818303038152906040525b915050919050565b600d54612155612cc1565b10612195576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218c90614fa4565b60405180910390fd5b6000801b6121a281612782565b60008311156121b6576121b53384613081565b5b60008211156121ca576121c93383613005565b5b505050565b6121d88261138f565b6121e181612782565b6121eb838361328c565b505050565b6000806001436122009190615441565b409050600081428560405160200161221a93929190615517565b60405160208183030381529060405280519060200120905060006103e88260001c6122459190615554565b9050809350505050919050565b60011515601760009054906101000a900460ff161515146122a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229f90614e92565b60405180910390fd5b600082829050905060005b818110156122f0576122df8484838181106122d1576122d0614eb2565b5b905060200201356000613551565b806122e990614f10565b90506122b3565b50505050565b600d5481565b600d54612307612cc1565b10612347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233e90614fa4565b60405180910390fd5b60001515601360009054906101000a900460ff1615151461239d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239490615010565b60405180910390fd5b60018111156123e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d8906155d1565b60405180910390fd5b60006123ec3361339d565b1461242c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242390615349565b60405180910390fd5b600033600a8361243c9190615108565b6005856124499190615108565b61245391906155f1565b604051602001612464929190615647565b6040516020818303038152906040528051906020012090506124ca858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601554836133f4565b612509576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612500906153b5565b60405180910390fd5b600083111561251d5761251c3384613081565b5b6000821115612531576125303383613005565b5b5050505050565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b6125d981612782565b816010819055505050565b6000801b6125f181612782565b816014819055505050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061265757506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806126875750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612701575061270082613882565b5b9050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061277b575061277a8261268e565b5b9050919050565b6127938161278e613284565b6138ec565b50565b61279e613199565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156127fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f3906156e5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361286b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161286290615751565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600060015482101580156129405750610bb982105b1561294e57600090506129ac565b600254821061296057600090506129ac565b81612969613989565b111580156129a9575060007c0100000000000000000000000000000000000000000000000000000000600660008581526020019081526020016000205416145b90505b919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612aab576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612a28929190615771565b602060405180830381865afa158015612a45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6991906157af565b612aaa57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401612aa19190614573565b60405180910390fd5b5b50565b6000612ab982611ca7565b90508073ffffffffffffffffffffffffffffffffffffffff16612ada613992565b73ffffffffffffffffffffffffffffffffffffffff1614612b3d57612b0681612b01613992565b612538565b612b3c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826008600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b3373ffffffffffffffffffffffffffffffffffffffff16612c1282611ca7565b73ffffffffffffffffffffffffffffffffffffffff1614612c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5f90615828565b60405180910390fd5b6000429050806019600084815260200190815260200160002081905550817f925435fa7e37e5d9555bb18ce0d62bb9627d0846942e58e5291e9a2dded462ed82604051612cb5919061468f565b60405180910390a25050565b6000612ccb61137c565b612cd3611915565b01905090565b6000612ce48261340b565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612d4b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612d578461399a565b91509150612d6d8187612d68613992565b6139c1565b612db957612d8286612d7d613992565b612538565b612db8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612e1f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e2c8686866001613a05565b8015612e3757600082555b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612f0585612ee1888887613a92565b7c020000000000000000000000000000000000000000000000000000000017613aba565b600660008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612f8b5760006001850190506000600660008381526020019081526020016000205403612f89576000548114612f88578360066000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ff38686866001613ae5565b505050505050565b6000610bb9905090565b600f548161301161137c565b61301b91906155f1565b111561305c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305390615894565b60405180910390fd5b6130698282600254613aeb565b8060025461307791906155f1565b6002819055505050565b600e548161308d611915565b61309791906155f1565b11156130d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130cf90615894565b60405180910390fd5b6130e58282600154613aeb565b806001546130f391906155f1565b6001819055505050565b6000613108826121f0565b9050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613170576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610385811061318957613184826001613005565b613195565b613194826001613081565b5b5050565b6000612710905090565b6131ad8282611e16565b613280576001600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550613225613284565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b6132968282611e16565b1561336a576000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061330f613284565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61338983838360405180602001604052806000815250612037565b505050565b6000613398613989565b905090565b600067ffffffffffffffff6040600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b6000826134018584613b0b565b1490509392505050565b60008082905060015481101580156134245750610bb981105b1561345b576040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002548110613496576040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8061349f613989565b1161351a5760006006600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613518575b6000810361350e5760066000836001900393508381526020019081526020016000205490506134e4565b809250505061354c565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b806135cd573373ffffffffffffffffffffffffffffffffffffffff1661357683611ca7565b73ffffffffffffffffffffffffffffffffffffffff16146135cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135c390615828565b60405180910390fd5b5b60006019600084815260200190815260200160002081905550817ffe67007f52a1bf967323b00fd406f9028a8e8a88aec274e07a63b2fabacc64a742604051613616919061468f565b60405180910390a25050565b806009600061362f613992565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166136dc613992565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161372191906142f0565b60405180910390a35050565b61373884848461132d565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461379a5761376384848484613b61565b613799576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060601880546137af90614d3d565b80601f01602080910402602001604051908101604052809291908181526020018280546137db90614d3d565b80156138285780601f106137fd57610100808354040283529160200191613828565b820191906000526020600020905b81548152906001019060200180831161380b57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561386d57600184039350600a81066030018453600a810490508061384b575b50828103602084039350808452505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6138f68282611e16565b6139855761391b8173ffffffffffffffffffffffffffffffffffffffff166014613cb1565b6139298360001c6020613cb1565b60405160200161393a92919061594c565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161397c91906144df565b60405180910390fd5b5050565b60006001905090565b600033905090565b60008060006008600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b600082905060008282613a1891906155f1565b90505b80821015613a8a576000601960008481526020019081526020016000205414613a79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a70906159d2565b60405180910390fd5b81613a8390614f10565b9150613a1b565b505050505050565b60008060e883901c905060e8613aa9868684613eed565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b613b0683838360405180602001604052806000815250613ef6565b505050565b60008082905060005b8451811015613b5657613b4182868381518110613b3457613b33614eb2565b5b6020026020010151613f92565b91508080613b4e90614f10565b915050613b14565b508091505092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613b87613992565b8786866040518563ffffffff1660e01b8152600401613ba99493929190615a47565b6020604051808303816000875af1925050508015613be557506040513d601f19601f82011682018060405250810190613be29190615aa8565b60015b613c5e573d8060008114613c15576040519150601f19603f3d011682016040523d82523d6000602084013e613c1a565b606091505b506000815103613c56576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060006002836002613cc49190615108565b613cce91906155f1565b67ffffffffffffffff811115613ce757613ce6614955565b5b6040519080825280601f01601f191660200182016040528015613d195781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613d5157613d50614eb2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613db557613db4614eb2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613df59190615108565b613dff91906155f1565b90505b6001811115613e9f577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613e4157613e40614eb2565b5b1a60f81b828281518110613e5857613e57614eb2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613e9890615ad5565b9050613e02565b5060008414613ee3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613eda90615b4a565b60405180910390fd5b8091505092915050565b60009392505050565b613f01848484613fbd565b60008473ffffffffffffffffffffffffffffffffffffffff163b14613f8c576000829050600084820390505b613f406000878380600101945086613b61565b613f76576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110613f2d57818414613f8957600080fd5b50505b50505050565b6000818310613faa57613fa58284614172565b613fb5565b613fb48383614172565b5b905092915050565b60008203613ff7576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6140046000848385613a05565b600160406001901b178202600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061407b8361406c6000866000613a92565b61407585614189565b17613aba565b6006600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461411c57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506140e1565b5060008203614157576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061416d6000848385613ae5565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b8280546141a590614d3d565b90600052602060002090601f0160209004810192826141c7576000855561420e565b82601f106141e057805160ff191683800117855561420e565b8280016001018555821561420e579182015b8281111561420d5782518255916020019190600101906141f2565b5b50905061421b919061421f565b5090565b5b80821115614238576000816000905550600101614220565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61428581614250565b811461429057600080fd5b50565b6000813590506142a28161427c565b92915050565b6000602082840312156142be576142bd614246565b5b60006142cc84828501614293565b91505092915050565b60008115159050919050565b6142ea816142d5565b82525050565b600060208201905061430560008301846142e1565b92915050565b614314816142d5565b811461431f57600080fd5b50565b6000813590506143318161430b565b92915050565b60006020828403121561434d5761434c614246565b5b600061435b84828501614322565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061438f82614364565b9050919050565b61439f81614384565b81146143aa57600080fd5b50565b6000813590506143bc81614396565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6143e3816143c2565b81146143ee57600080fd5b50565b600081359050614400816143da565b92915050565b6000806040838503121561441d5761441c614246565b5b600061442b858286016143ad565b925050602061443c858286016143f1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015614480578082015181840152602081019050614465565b8381111561448f576000848401525b50505050565b6000601f19601f8301169050919050565b60006144b182614446565b6144bb8185614451565b93506144cb818560208601614462565b6144d481614495565b840191505092915050565b600060208201905081810360008301526144f981846144a6565b905092915050565b6000819050919050565b61451481614501565b811461451f57600080fd5b50565b6000813590506145318161450b565b92915050565b60006020828403121561454d5761454c614246565b5b600061455b84828501614522565b91505092915050565b61456d81614384565b82525050565b60006020820190506145886000830184614564565b92915050565b600080604083850312156145a5576145a4614246565b5b60006145b3858286016143ad565b92505060206145c485828601614522565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126145f3576145f26145ce565b5b8235905067ffffffffffffffff8111156146105761460f6145d3565b5b60208301915083602082028301111561462c5761462b6145d8565b5b9250929050565b6000806020838503121561464a57614649614246565b5b600083013567ffffffffffffffff8111156146685761466761424b565b5b614674858286016145dd565b92509250509250929050565b61468981614501565b82525050565b60006020820190506146a46000830184614680565b92915050565b6000806000606084860312156146c3576146c2614246565b5b60006146d1868287016143ad565b93505060206146e2868287016143ad565b92505060406146f386828701614522565b9150509250925092565b6000819050919050565b614710816146fd565b811461471b57600080fd5b50565b60008135905061472d81614707565b92915050565b60006020828403121561474957614748614246565b5b60006147578482850161471e565b91505092915050565b614769816146fd565b82525050565b60006020820190506147846000830184614760565b92915050565b600080604083850312156147a1576147a0614246565b5b60006147af85828601614522565b92505060206147c085828601614522565b9150509250929050565b60006040820190506147df6000830185614564565b6147ec6020830184614680565b9392505050565b6000806040838503121561480a57614809614246565b5b60006148188582860161471e565b9250506020614829858286016143ad565b9150509250929050565b6000819050919050565b600061485861485361484e84614364565b614833565b614364565b9050919050565b600061486a8261483d565b9050919050565b600061487c8261485f565b9050919050565b61488c81614871565b82525050565b60006020820190506148a76000830184614883565b92915050565b60008083601f8401126148c3576148c26145ce565b5b8235905067ffffffffffffffff8111156148e0576148df6145d3565b5b6020830191508360208202830111156148fc576148fb6145d8565b5b9250929050565b6000806020838503121561491a57614919614246565b5b600083013567ffffffffffffffff8111156149385761493761424b565b5b614944858286016148ad565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61498d82614495565b810181811067ffffffffffffffff821117156149ac576149ab614955565b5b80604052505050565b60006149bf61423c565b90506149cb8282614984565b919050565b600067ffffffffffffffff8211156149eb576149ea614955565b5b6149f482614495565b9050602081019050919050565b82818337600083830152505050565b6000614a23614a1e846149d0565b6149b5565b905082815260208101848484011115614a3f57614a3e614950565b5b614a4a848285614a01565b509392505050565b600082601f830112614a6757614a666145ce565b5b8135614a77848260208601614a10565b91505092915050565b600060208284031215614a9657614a95614246565b5b600082013567ffffffffffffffff811115614ab457614ab361424b565b5b614ac084828501614a52565b91505092915050565b600060208284031215614adf57614ade614246565b5b6000614aed848285016143ad565b91505092915050565b60008060408385031215614b0d57614b0c614246565b5b6000614b1b858286016143ad565b9250506020614b2c85828601614322565b9150509250929050565b600067ffffffffffffffff821115614b5157614b50614955565b5b614b5a82614495565b9050602081019050919050565b6000614b7a614b7584614b36565b6149b5565b905082815260208101848484011115614b9657614b95614950565b5b614ba1848285614a01565b509392505050565b600082601f830112614bbe57614bbd6145ce565b5b8135614bce848260208601614b67565b91505092915050565b60008060008060808587031215614bf157614bf0614246565b5b6000614bff878288016143ad565b9450506020614c10878288016143ad565b9350506040614c2187828801614522565b925050606085013567ffffffffffffffff811115614c4257614c4161424b565b5b614c4e87828801614ba9565b91505092959194509250565b60008060008060608587031215614c7457614c73614246565b5b600085013567ffffffffffffffff811115614c9257614c9161424b565b5b614c9e878288016148ad565b94509450506020614cb187828801614522565b9250506040614cc287828801614522565b91505092959194509250565b60008060408385031215614ce557614ce4614246565b5b6000614cf3858286016143ad565b9250506020614d04858286016143ad565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614d5557607f821691505b602082108103614d6857614d67614d0e565b5b50919050565b7f43616e6e6f742065786365656420333333332e00000000000000000000000000600082015250565b6000614da4601383614451565b9150614daf82614d6e565b602082019050919050565b60006020820190508181036000830152614dd381614d97565b9050919050565b7f4c657373207468616e2063757272656e7420737570706c792e00000000000000600082015250565b6000614e10601983614451565b9150614e1b82614dda565b602082019050919050565b60006020820190508181036000830152614e3f81614e03565b9050919050565b7f5374616b696e67206973206e6f7420656e61626c65642e000000000000000000600082015250565b6000614e7c601783614451565b9150614e8782614e46565b602082019050919050565b60006020820190508181036000830152614eab81614e6f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614f1b82614501565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614f4d57614f4c614ee1565b5b600182019050919050565b7f4d617820746f6b656e20737570706c7920726561636865642e00000000000000600082015250565b6000614f8e601983614451565b9150614f9982614f58565b602082019050919050565b60006020820190508181036000830152614fbd81614f81565b9050919050565b7f4d696e74696e67206973207061757365642e0000000000000000000000000000600082015250565b6000614ffa601283614451565b915061500582614fc4565b602082019050919050565b6000602082019050818103600083015261502981614fed565b9050919050565b7f5075626c6963206d696e74206973206e6f74206f70656e2e0000000000000000600082015250565b6000615066601883614451565b915061507182615030565b602082019050919050565b6000602082019050818103600083015261509581615059565b9050919050565b7f496e636f72726563742065746865722073656e742e0000000000000000000000600082015250565b60006150d2601583614451565b91506150dd8261509c565b602082019050919050565b60006020820190508181036000830152615101816150c5565b9050919050565b600061511382614501565b915061511e83614501565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561515757615156614ee1565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061519c82614501565b91506151a783614501565b9250826151b7576151b6615162565b5b828204905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600061521e602f83614451565b9150615229826151c2565b604082019050919050565b6000602082019050818103600083015261524d81615211565b9050919050565b600081905092915050565b50565b600061526f600083615254565b915061527a8261525f565b600082019050919050565b600061529082615262565b9150819050919050565b60008160601b9050919050565b60006152b28261529a565b9050919050565b60006152c4826152a7565b9050919050565b6152dc6152d782614384565b6152b9565b82525050565b60006152ee82846152cb565b60148201915081905092915050565b7f416c7265616479206d696e7465642e0000000000000000000000000000000000600082015250565b6000615333600f83614451565b915061533e826152fd565b602082019050919050565b6000602082019050818103600083015261536281615326565b9050919050565b7f496e76616c6964204d65726b6c652070726f6f662e0000000000000000000000600082015250565b600061539f601583614451565b91506153aa82615369565b602082019050919050565b600060208201905081810360008301526153ce81615392565b9050919050565b7f416c6c6f776c69737420737570706c7920726561636865642e00000000000000600082015250565b600061540b601983614451565b9150615416826153d5565b602082019050919050565b6000602082019050818103600083015261543a816153fe565b9050919050565b600061544c82614501565b915061545783614501565b92508282101561546a57615469614ee1565b5b828203905092915050565b600081905092915050565b600061548b82614446565b6154958185615475565b93506154a5818560208601614462565b80840191505092915050565b60006154bd8285615480565b91506154c98284615480565b91508190509392505050565b6000819050919050565b6154f06154eb826146fd565b6154d5565b82525050565b6000819050919050565b61551161550c82614501565b6154f6565b82525050565b600061552382866154df565b6020820191506155338285615500565b60208201915061554382846152cb565b601482019150819050949350505050565b600061555f82614501565b915061556a83614501565b92508261557a57615579615162565b5b828206905092915050565b7f4f6e6c79203120737570657220616c6c6f7765642e0000000000000000000000600082015250565b60006155bb601583614451565b91506155c682615585565b602082019050919050565b600060208201905081810360008301526155ea816155ae565b9050919050565b60006155fc82614501565b915061560783614501565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561563c5761563b614ee1565b5b828201905092915050565b600061565382856152cb565b6014820191506156638284615500565b6020820191508190509392505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006156cf602a83614451565b91506156da82615673565b604082019050919050565b600060208201905081810360008301526156fe816156c2565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061573b601983614451565b915061574682615705565b602082019050919050565b6000602082019050818103600083015261576a8161572e565b9050919050565b60006040820190506157866000830185614564565b6157936020830184614564565b9392505050565b6000815190506157a98161430b565b92915050565b6000602082840312156157c5576157c4614246565b5b60006157d38482850161579a565b91505092915050565b7f4e6f74206f776e65722e00000000000000000000000000000000000000000000600082015250565b6000615812600a83614451565b915061581d826157dc565b602082019050919050565b6000602082019050818103600083015261584181615805565b9050919050565b7f57696c6c2065786365656420746f6b656e20737570706c792e00000000000000600082015250565b600061587e601983614451565b915061588982615848565b602082019050919050565b600060208201905081810360008301526158ad81615871565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006158ea601783615475565b91506158f5826158b4565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000615936601183615475565b915061594182615900565b601182019050919050565b6000615957826158dd565b91506159638285615480565b915061596e82615929565b915061597a8284615480565b91508190509392505050565b7f546f6b656e206973207374616b696e672e000000000000000000000000000000600082015250565b60006159bc601183614451565b91506159c782615986565b602082019050919050565b600060208201905081810360008301526159eb816159af565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615a19826159f2565b615a2381856159fd565b9350615a33818560208601614462565b615a3c81614495565b840191505092915050565b6000608082019050615a5c6000830187614564565b615a696020830186614564565b615a766040830185614680565b8181036060830152615a888184615a0e565b905095945050505050565b600081519050615aa28161427c565b92915050565b600060208284031215615abe57615abd614246565b5b6000615acc84828501615a93565b91505092915050565b6000615ae082614501565b915060008203615af357615af2614ee1565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615b34602083614451565b9150615b3f82615afe565b602082019050919050565b60006020820190508181036000830152615b6381615b27565b905091905056fea264697066735822122027ddb998d97aeb986bef10ec1d82d9d38f818926f4bf1e917bc75accb5d89b5764736f6c634300080d0033

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.