ETH Price: $3,365.11 (+0.08%)
Gas: 5.69 Gwei

Token

CNPinfant_2023Valentine_SBT (CI23VS)
 

Overview

Max Total Supply

459 CI23VS

Holders

170

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 CI23VS
0x80282ca38a1f353588ae02c71303e0060164fc37
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:
CNPi_2023VT_SBT

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : cnpi2023ValentineSbt.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2022 Gaku-BRSLIFE

pragma solidity >=0.7.0 <0.9.0;

import { Base64 } from 'base64-sol/base64.sol';
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";


//tokenURI interface
interface iTokenURI {
    function tokenURI(uint256 _tokenId) external view returns (string memory);
}

contract CNPi_2023VT_SBT is Ownable, ERC721A ,AccessControl {

    constructor(
    ) ERC721A("CNPinfant_2023Valentine_SBT", "CI23VS") {
        
        //Role initialization
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(MINTER_ROLE       , msg.sender);
        _setupRole(AIRDROP_ROLE      , msg.sender);

        //use single metadata
        // setUseSingleMetadata(true);
        // setMetadataTitle("CNPinfant 2023 SBT");
        // setMetadataDescription("CNPinfant Links : https://lit.link/cnpinfant ");
        // setMetadataAttributes("2023SBT");
        // setImageURI("ipfs://QmbF9GCfi5fsmEC2mNoeCZ64k7Qj9Bpag38yThHPHDgZXc/");

        //use multi metadata
        setUseMultiMetadata(true);
        setInterval(18000);
        setPicChgCnt(2);
        setPicGrpCnt(3);
        setMetadataTitle("CNPinfant 2023 Valentine's Day SBT");
        setMetadataDescription("CNPinfant Links : https://lit.link/cnpinfant ");
        setMetadataAttributes("2023 Valentine's Day SBT");
        metadataTeamName = ["Orochi/Luna", "Narukami/Yama", "Leelee/Mitama"];

    }

    //
    //withdraw section
    //
    address public constant withdrawAddress = 0xB65e9b81Bc515756dD823A94Ad79e34e3c44A20D;
    function withdraw() public payable onlyOwner {
        (bool os, ) = payable(withdrawAddress).call{value: address(this).balance}('');
        require(os);
    }

    //
    //mint section
    //
    uint256 public cost = 3000000000000000;
    uint256 public maxSupply = 10000;
    uint256 public maxMintAmountPerTransaction = 100;
    uint256 public publicSaleMaxMintAmountPerAddress = 1000;
    bool public paused = true;

    bool public onlyAllowlisted = false;
    bool public mintCount = false;
    bool public burnAndMintMode = false;

    //0 : Merkle Tree
    //1 : Mapping
    uint256 public allowlistType = 0;
    bytes32 public merkleRoot;
    uint256 public saleId = 0;
    mapping(uint256 => mapping(address => uint256)) public userMintedAmount;
    mapping(uint256 => mapping(address => uint256)) public allowlistUserAmount;

    // multiImage
    mapping(uint256 => uint256) public picGrpNo;// 画像グループ番号

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract.");
        _;
    }
 
    //mint with merkle tree
    function mint(uint256 _mintAmount , uint256 _maxMintAmount , bytes32[] calldata _merkleProof , uint256 _burnId , uint256[] memory _gpNos , address _giftAddress) public payable callerIsUser{
        require(!paused, "the contract is paused");
        require(0 < _mintAmount, "need to mint at least 1 NFT");
        require(_mintAmount <= maxMintAmountPerTransaction, "max mint amount per session exceeded");
        require( _nextTokenId() -1 + _mintAmount <= maxSupply , "max NFT limit exceeded");
        require(cost * _mintAmount <= msg.value, "insufficient funds");

        uint256 maxMintAmountPerAddress;
        address sendToAddress;
        if(onlyAllowlisted == true) {
            if(allowlistType == 0){
                //Merkle tree
                bytes32 leaf = keccak256( abi.encodePacked(msg.sender, _maxMintAmount) );
                require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), "user is not allowlisted");
                maxMintAmountPerAddress = _maxMintAmount;
            }else if(allowlistType == 1){
                //Mapping
                require( allowlistUserAmount[saleId][msg.sender] != 0 , "user is not allowlisted");
                maxMintAmountPerAddress = allowlistUserAmount[saleId][msg.sender];
            }
        }else{
            maxMintAmountPerAddress = publicSaleMaxMintAmountPerAddress;
        }

        if(mintCount == true){
            require(_mintAmount <= maxMintAmountPerAddress - userMintedAmount[saleId][msg.sender] , "max NFT per address exceeded");
            userMintedAmount[saleId][msg.sender] += _mintAmount;
        }

        if(burnAndMintMode == true ){
            require(_mintAmount == 1, "");
            require(msg.sender == ownerOf(_burnId) , "Owner is different");
            _burn(_burnId);
        }

        if(useMultiMetadata == true){
            require(_mintAmount == _gpNos.length, "mint amount and gpNo length is different");
            for (uint256 i = 0; i < _gpNos.length; i++) {
                picGrpNo[i + _nextTokenId()] = _gpNos[i];
            }
        }

        if(_giftAddress == address(0)) {
            sendToAddress = msg.sender;
        } else {
            sendToAddress = _giftAddress;
        }

        _safeMint(sendToAddress, _mintAmount);
    }

    bytes32 public constant AIRDROP_ROLE = keccak256("AIRDROP_ROLE");
    function airdropMint(address[] calldata _airdropAddresses , uint256[] memory _UserMintAmount) public {
        require(hasRole(AIRDROP_ROLE, msg.sender), "Caller is not a air dropper");
        uint256 _mintAmount = 0;
        for (uint256 i = 0; i < _UserMintAmount.length; i++) {
            _mintAmount += _UserMintAmount[i];
        }
        require(0 < _mintAmount , "need to mint at least 1 NFT");
        require(totalSupply() + _mintAmount <= maxSupply, "max NFT limit exceeded");
        for (uint256 i = 0; i < _UserMintAmount.length; i++) {
            _safeMint(_airdropAddresses[i], _UserMintAmount[i] );
        }
    }
    function setBurnAndMintMode(bool _burnAndMintMode) public onlyOwner {
        burnAndMintMode = _burnAndMintMode;
    }
    function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
        merkleRoot = _merkleRoot;
    }
    function setPause(bool _state) public onlyOwner {
        paused = _state;
    }
    function setAllowListType(uint256 _type)public onlyOwner{
        require( _type == 0 || _type == 1 , "Allow list type error");
        allowlistType = _type;
    }
    function setAllowlistMapping(uint256 _saleId , address[] memory addresses, uint256[] memory saleSupplies) public onlyOwner {
        require(addresses.length == saleSupplies.length);
        for (uint256 i = 0; i < addresses.length; i++) {
            allowlistUserAmount[_saleId][addresses[i]] = saleSupplies[i];
        }
    }
    function getAllowlistUserAmount(address _address ) public view returns(uint256){
        return allowlistUserAmount[saleId][_address];
    }
    function getUserMintedAmountBySaleId(uint256 _saleId , address _address ) public view returns(uint256){
        return userMintedAmount[_saleId][_address];
    }
    function getUserMintedAmount(address _address ) public view returns(uint256){
        return userMintedAmount[saleId][_address];
    }
    function setSaleId(uint256 _saleId) public onlyOwner {
        saleId = _saleId;
    }
    function setMaxSupply(uint256 _maxSupply) public onlyOwner() {
        maxSupply = _maxSupply;
    }
    function setPublicSaleMaxMintAmountPerAddress(uint256 _publicSaleMaxMintAmountPerAddress) public onlyOwner() {
        publicSaleMaxMintAmountPerAddress = _publicSaleMaxMintAmountPerAddress;
    }
    function setCost(uint256 _newCost) public onlyOwner {
        cost = _newCost;
    }
    function setOnlyAllowlisted(bool _state) public onlyOwner {
        onlyAllowlisted = _state;
    }
    function setMaxMintAmountPerTransaction(uint256 _maxMintAmountPerTransaction) public onlyOwner {
        maxMintAmountPerTransaction = _maxMintAmountPerTransaction;
    }
    function setMintCount(bool _state) public onlyOwner {
        mintCount = _state;
    }

    //
    //URI section
    //
    string public baseURI = "ipfs://QmZs8ty46F1RjjeqFxBD4GyCpcma97GT2Ysr8cPdw4j36s/";
    string public baseExtension = ".jpg";
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;        
    }
    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }
    function setBaseExtension(string memory _newBaseExtension) public onlyOwner {
        baseExtension = _newBaseExtension;
    }

    //
    //interface metadata
    //
    iTokenURI public interfaceOfTokenURI;
    bool public useInterfaceMetadata = false;

    function setInterfaceOfTokenURI(address _address) public onlyOwner() {
        interfaceOfTokenURI = iTokenURI(_address);
    }
    function setUseInterfaceMetadata(bool _useInterfaceMetadata) public onlyOwner() {
        useInterfaceMetadata = _useInterfaceMetadata;
    }

    //
    //single metadata
    //
    bool public useSingleMetadata = false;
    string public imageURI;
    string public metadataTitle;
    string public metadataDescription;
    string public metadataAttributes;

    //single image metadata
    function setUseSingleMetadata(bool _useSingleMetadata) public onlyOwner() {
        useSingleMetadata = _useSingleMetadata;
    }
    function setMetadataTitle(string memory _metadataTitle) public onlyOwner {
        metadataTitle = _metadataTitle;
    }
    function setMetadataDescription(string memory _metadataDescription) public onlyOwner {
        metadataDescription = _metadataDescription;
    }
    function setMetadataAttributes(string memory _metadataAttributes) public onlyOwner {
        metadataAttributes = _metadataAttributes;
    }
    function setImageURI(string memory _newImageURI) public onlyOwner {
        imageURI = _newImageURI;
    }

    // 
    //multi image metadata
    // 
    bool public useMultiMetadata = false;
    uint public interval; //画像切り替え間隔
    uint public picChgCnt; //変わる画像数
    uint public picGrpCnt; //画像グループ数
    string[] public metadataTeamName;//Teamプロパティ

    function setUseMultiMetadata(bool _useMultiMetadata) public onlyOwner() {
        useMultiMetadata = _useMultiMetadata;
    }
    function setInterval(uint _interval) public onlyOwner() {
        interval = _interval;
    }
    function setPicChgCnt(uint _picChgCnt) public onlyOwner() {
        picChgCnt = _picChgCnt;
    }
    function setPicGrpCnt(uint _picGrpCnt) public onlyOwner() {
        picGrpCnt = _picGrpCnt;
    }
    function setMetadataTeamName(string[] memory _metadataTeamName) public onlyOwner() {
        metadataTeamName = _metadataTeamName;
    }

    //
    //token URI
    //
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        if (useInterfaceMetadata == true) {
            return interfaceOfTokenURI.tokenURI(tokenId);
        }
        if(useSingleMetadata == true){
            return string( abi.encodePacked( 'data:application/json;base64,' , Base64.encode(
                abi.encodePacked(
                    '{'
                        '"name":"' , metadataTitle ,'",' ,
                        '"description":"' , metadataDescription ,  '",' ,
                        '"image": "' , imageURI , '",' ,
                        '"attributes":[{"trait_type":"type","value":"' , metadataAttributes , '"}]',
                    '}'
                )
            ) ) );
        }
        if(useMultiMetadata == true){
            // 時間による画像番号
            uint picNo = uint((block.timestamp / interval) % picChgCnt) + 1;
            return string( abi.encodePacked( 'data:application/json;base64,' , Base64.encode(
                    abi.encodePacked(
                        abi.encodePacked(
                            '{' ,
                                '"name":"' , metadataTitle , ' #' , _toString(tokenId), '",' ,
                                '"description":"' , metadataDescription ,  '",' ,
                                '"image": "' , baseURI , _toString(picGrpNo[tokenId] + 1) , '-' , _toString(picNo) , baseExtension , '",') ,
                        abi.encodePacked(
                                '"attributes":[' ,
                                '{"trait_type":"type","value":"' , metadataAttributes , '"},' ,
                                '{"trait_type":"team","value":"' , metadataTeamName[picGrpNo[tokenId]] , '"}]' ,
                            '}')
                    )
                ) ) );
            }

        return string(abi.encodePacked(ERC721A.tokenURI(tokenId), baseExtension));
    }
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    //
    //burnin' section
    //
    bytes32 public constant MINTER_ROLE  = keccak256("MINTER_ROLE");
    bytes32 public constant BURNER_ROLE  = keccak256("BURNER_ROLE");
    function externalMint(address _address , uint256 _amount ) external payable {
        require(hasRole(MINTER_ROLE, msg.sender), "Caller is not a minter");
        require( _nextTokenId() -1 + _amount <= maxSupply , "max NFT limit exceeded");
        _safeMint( _address, _amount );
    }

    function externalBurn(uint256[] memory _burnTokenIds) external {
        require(hasRole(BURNER_ROLE, msg.sender), "Caller is not a burner");
        for (uint256 i = 0; i < _burnTokenIds.length; i++) {
            uint256 tokenId = _burnTokenIds[i];
            require(msg.sender == ownerOf(tokenId) , "Owner is different");
            _burn(tokenId);
        }        
    }

    //
    //sbt section
    //
    bool public isSBT = true;
    function setIsSBT(bool _state) public onlyOwner {
        isSBT = _state;
    }

    function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity) internal virtual override{
        require( isSBT == false || from == address(0) || to == address(0x000000000000000000000000000000000000dEaD), "transfer is prohibited");
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }

    function setApprovalForAll(address operator, bool approved) public virtual override {
        require( isSBT == false , "setApprovalForAll is prohibited");
        super.setApprovalForAll(operator, approved);
    }

    function approve(address to, uint256 tokenId) public payable virtual override {
        require( isSBT == false , "approve is prohibited");
        super.approve(to, tokenId);
    }

    //
    // override section
    //
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721A, AccessControl)
        returns (bool)
    {
        return
            AccessControl.supportsInterface(interfaceId) ||
            ERC721A.supportsInterface(interfaceId);
    }

}

File 2 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev 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 simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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 sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _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}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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 3 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

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

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

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

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

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

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

File 4 of 13 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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(account),
                        " 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 13 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 13 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 13 : 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 9 of 13 : 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 10 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

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

File 11 of 13 : 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 13 : 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 13 of 13 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"AIRDROP_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_airdropAddresses","type":"address[]"},{"internalType":"uint256[]","name":"_UserMintAmount","type":"uint256[]"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowlistType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"allowlistUserAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnAndMintMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_burnTokenIds","type":"uint256[]"}],"name":"externalBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"externalMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getAllowlistUserAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getUserMintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"getUserMintedAmountBySaleId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"imageURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"interfaceOfTokenURI","outputs":[{"internalType":"contract iTokenURI","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"interval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"isSBT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataAttributes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataDescription","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metadataTeamName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataTitle","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_maxMintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_burnId","type":"uint256"},{"internalType":"uint256[]","name":"_gpNos","type":"uint256[]"},{"internalType":"address","name":"_giftAddress","type":"address"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyAllowlisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"picChgCnt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"picGrpCnt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"picGrpNo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleMaxMintAmountPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"saleId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"setAllowListType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"},{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"saleSupplies","type":"uint256[]"}],"name":"setAllowlistMapping","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":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_burnAndMintMode","type":"bool"}],"name":"setBurnAndMintMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newImageURI","type":"string"}],"name":"setImageURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setInterfaceOfTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_interval","type":"uint256"}],"name":"setInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setIsSBT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTransaction","type":"uint256"}],"name":"setMaxMintAmountPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataAttributes","type":"string"}],"name":"setMetadataAttributes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataDescription","type":"string"}],"name":"setMetadataDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"_metadataTeamName","type":"string[]"}],"name":"setMetadataTeamName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_metadataTitle","type":"string"}],"name":"setMetadataTitle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setMintCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyAllowlisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_picChgCnt","type":"uint256"}],"name":"setPicChgCnt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_picGrpCnt","type":"uint256"}],"name":"setPicGrpCnt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicSaleMaxMintAmountPerAddress","type":"uint256"}],"name":"setPublicSaleMaxMintAmountPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"}],"name":"setSaleId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_useInterfaceMetadata","type":"bool"}],"name":"setUseInterfaceMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_useMultiMetadata","type":"bool"}],"name":"setUseMultiMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_useSingleMetadata","type":"bool"}],"name":"setUseSingleMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"useInterfaceMetadata","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"useMultiMetadata","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"useSingleMetadata","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userMintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

660aa87bee538000600a55612710600b556064600c556103e8600d55600e805463ffffffff191660011790556000600f81905560115560e060405260366080818152906200497760a03980516200005f9160159160209091019062000522565b50604080518082019091526004808252632e6a706760e01b60209092019182526200008d9160169162000522565b506017805461ffff60a01b19169055601c805460ff19908116909155602180549091166001179055348015620000c257600080fd5b506040518060400160405280601b81526020017f434e50696e66616e745f3230323356616c656e74696e655f53425400000000008152506040518060400160405280600681526020016543493233565360d01b815250620001326200012c6200031260201b60201c565b62000316565b81516200014790600390602085019062000522565b5080516200015d90600490602084019062000522565b505060018055506200017160003362000366565b6200019d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000366565b620001c97f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f3362000366565b620001d5600162000376565b620001e261465062000393565b620001ee6002620003a2565b620001fa6003620003b1565b6200021e6040518060600160405280602281526020016200492860229139620003c0565b620002426040518060600160405280602d81526020016200494a602d9139620003df565b60408051808201909152601881527f323032332056616c656e74696e6527732044617920534254000000000000000060208201526200028190620003fe565b6040805160a081018252600b606082019081526a4f726f6368692f4c756e6160a81b6080830152815281518083018352600d8082526c4e6172756b616d692f59616d6160981b60208381019190915280840192909252835180850185529081526c4c65656c65652f4d6974616d6160981b81830152928201929092526200030b91906003620005b1565b50620006c8565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200037282826200041d565b5050565b62000380620004c1565b601c805460ff1916911515919091179055565b6200039d620004c1565b601d55565b620003ac620004c1565b601e55565b620003bb620004c1565b601f55565b620003ca620004c1565b80516200037290601990602084019062000522565b620003e9620004c1565b80516200037290601a90602084019062000522565b62000408620004c1565b80516200037290601b90602084019062000522565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff16620003725760008281526009602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200047d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000546001600160a01b03163314620005205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b82805462000530906200068b565b90600052602060002090601f0160209004810192826200055457600085556200059f565b82601f106200056f57805160ff19168380011785556200059f565b828001600101855582156200059f579182015b828111156200059f57825182559160200191906001019062000582565b50620005ad92915062000611565b5090565b82805482825590600052602060002090810192821562000603579160200282015b82811115620006035782518051620005f291849160209091019062000522565b5091602001919060010190620005d2565b50620005ad92915062000628565b5b80821115620005ad576000815560010162000612565b80821115620005ad5760006200063f828262000649565b5060010162000628565b50805462000657906200068b565b6000825580601f1062000668575050565b601f01602090049060005260206000209081019062000688919062000611565b50565b600181811c90821680620006a057607f821691505b60208210811415620006c257634e487b7160e01b600052602260045260246000fd5b50919050565b61425080620006d86000396000f3fe6080604052600436106104eb5760003560e01c80637cb647591161028c578063ba6269c61161015a578063d728312a116100cc578063e985e9c511610085578063e985e9c514610f71578063f138abfa14610fba578063f2fde38b14610fda578063f48824db14610ffa578063fb6b5ca714611032578063fcd1aac91461105257600080fd5b8063d728312a14610eae578063da3ef23f14610ece578063dcb8571114610eee578063ddecc4d014610f04578063df4b0d9814610f24578063e39e026914610f5157600080fd5b8063c87b56dd1161011e578063c87b56dd14610dbf578063d04f32d214610ddf578063d539139314610e23578063d547741f14610e57578063d5abeb0114610e77578063d6dfad7614610e8d57600080fd5b8063ba6269c614610d3d578063bbb8974414610d5e578063bedb86fb14610d74578063c668286214610d94578063c84c038714610da957600080fd5b80639659867e116101fe578063a72193b6116101b7578063a72193b614610ca5578063a9e2acd514610cbb578063aa89ca9714610cdb578063aabb9a8614610cf5578063b5f94d0614610d0a578063b88d4fde14610d2a57600080fd5b80639659867e14610bfd578063981eb34414610c1d57806399f9889814610c3d5780639e35e27414610c50578063a217fddf14610c70578063a22cb46514610c8557600080fd5b80638e73cf00116102505780638e73cf0014610b5d57806391d1485414610b7d578063942c927314610b9d578063947a36fb14610bb257806394de66a114610bc857806395d89b4114610be857600080fd5b80637cb6475914610ac95780637ee3b2ac14610ae95780638541797d14610b09578063877984cb14610b1f5780638da5cb5b14610b3f57600080fd5b806336568abe116103c95780635978c0121161033b5780636c0360eb116102f45780636c0360eb14610a295780636c32868a14610a3e5780636f8b44b014610a5e57806370a0823114610a7e578063715018a614610a9e57806373ef64fd14610ab357600080fd5b80635978c01214610970578063599487c3146109905780635c975abb146109b05780636352211e146109ca578063674c02aa146109ea5780636b8ee0ec14610a0957600080fd5b806344a0d68a1161038d57806344a0d68a1461087457806347705cbc1461089457806347d65fb5146108d8578063499a15d4146108f85780634e6bf2041461093057806355f804b31461095057600080fd5b806336568abe1461080c5780633ccfd60b1461082c5780633cf40df3146108345780633d9c6a921461084e57806342842e0e1461086157600080fd5b806318160ddd11610462578063248a9ca311610426578063248a9ca31461070f578063279a669e1461073f578063282c51f31461075f5780632eb4a7ab146107935780632f2ff15d146107a95780633511cd54146107c957600080fd5b806318160ddd1461066b5780631e0fbfa21461068857806322a90082146106bc57806323b872dd146106dc57806323c03085146106ef57600080fd5b8063081812fc116104b4578063081812fc1461059f578063095ea7b3146105d7578063135d088d146105ea57806313faede6146105ff5780631581b6001461062357806317dc10c41461064b57600080fd5b806285bb6f146104f057806301340a321461052657806301ffc9a71461054857806304787ca21461056857806306fdde031461058a575b600080fd5b3480156104fc57600080fd5b50600e54610511906301000000900460ff1681565b60405190151581526020015b60405180910390f35b34801561053257600080fd5b5061053b611072565b60405161051d9190613f80565b34801561055457600080fd5b506105116105633660046138b8565b611100565b34801561057457600080fd5b506105886105833660046138f2565b611120565b005b34801561059657600080fd5b5061053b61113f565b3480156105ab57600080fd5b506105bf6105ba36600461387c565b6111d1565b6040516001600160a01b03909116815260200161051d565b6105886105e53660046136e4565b611215565b3480156105f657600080fd5b5061053b61126f565b34801561060b57600080fd5b50610615600a5481565b60405190815260200161051d565b34801561062f57600080fd5b506105bf73b65e9b81bc515756dd823a94ad79e34e3c44a20d81565b34801561065757600080fd5b50610588610666366004613861565b61127c565b34801561067757600080fd5b506002546001540360001901610615565b34801561069457600080fd5b506106157f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f81565b3480156106c857600080fd5b506105886106d736600461387c565b61129e565b6105886106ea366004613603565b6112ab565b3480156106fb57600080fd5b5061058861070a3660046135b5565b611441565b34801561071b57600080fd5b5061061561072a36600461387c565b60009081526009602052604090206001015490565b34801561074b57600080fd5b5061058861075a36600461370e565b61146b565b34801561076b57600080fd5b506106157f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b34801561079f57600080fd5b5061061560105481565b3480156107b557600080fd5b506105886107c4366004613895565b61161f565b3480156107d557600080fd5b506106156107e4366004613895565b60009182526012602090815260408084206001600160a01b0393909316845291905290205490565b34801561081857600080fd5b50610588610827366004613895565b611649565b6105886116c3565b34801561084057600080fd5b506021546105119060ff1681565b61058861085c366004613a63565b611737565b61058861086f366004613603565b611d04565b34801561088057600080fd5b5061058861088f36600461387c565b611d1f565b3480156108a057600080fd5b506106156108af3660046135b5565b60115460009081526012602090815260408083206001600160a01b039094168352929052205490565b3480156108e457600080fd5b506105886108f3366004613776565b611d2c565b34801561090457600080fd5b50610615610913366004613895565b601360209081526000928352604080842090915290825290205481565b34801561093c57600080fd5b5061058861094b36600461399c565b611d46565b34801561095c57600080fd5b5061058861096b3660046138f2565b611dee565b34801561097c57600080fd5b5061058861098b36600461382d565b611e09565b34801561099c57600080fd5b506105886109ab3660046138f2565b611f1c565b3480156109bc57600080fd5b50600e546105119060ff1681565b3480156109d657600080fd5b506105bf6109e536600461387c565b611f37565b3480156109f657600080fd5b50600e5461051190610100900460ff1681565b348015610a1557600080fd5b50610588610a24366004613861565b611f42565b348015610a3557600080fd5b5061053b611f68565b348015610a4a57600080fd5b50610588610a5936600461387c565b611f75565b348015610a6a57600080fd5b50610588610a7936600461387c565b611f82565b348015610a8a57600080fd5b50610615610a993660046135b5565b611f8f565b348015610aaa57600080fd5b50610588611fdd565b348015610abf57600080fd5b50610615600d5481565b348015610ad557600080fd5b50610588610ae436600461387c565b611ff1565b348015610af557600080fd5b50610588610b0436600461387c565b611ffe565b348015610b1557600080fd5b50610615601f5481565b348015610b2b57600080fd5b506017546105bf906001600160a01b031681565b348015610b4b57600080fd5b506000546001600160a01b03166105bf565b348015610b6957600080fd5b50610588610b78366004613861565b61205c565b348015610b8957600080fd5b50610511610b98366004613895565b612080565b348015610ba957600080fd5b5061053b6120ab565b348015610bbe57600080fd5b50610615601d5481565b348015610bd457600080fd5b50610588610be3366004613861565b6120b8565b348015610bf457600080fd5b5061053b6120d3565b348015610c0957600080fd5b50600e546105119062010000900460ff1681565b348015610c2957600080fd5b50610588610c383660046138f2565b6120e2565b610588610c4b3660046136e4565b6120fd565b348015610c5c57600080fd5b5061053b610c6b36600461387c565b6121b7565b348015610c7c57600080fd5b50610615600081565b348015610c9157600080fd5b50610588610ca03660046136ba565b6121e2565b348015610cb157600080fd5b50610615600f5481565b348015610cc757600080fd5b50610588610cd636600461387c565b61223f565b348015610ce757600080fd5b50601c546105119060ff1681565b348015610d0157600080fd5b5061053b61224c565b348015610d1657600080fd5b50610588610d2536600461387c565b612259565b610588610d3836600461363f565b612266565b348015610d4957600080fd5b5060175461051190600160a01b900460ff1681565b348015610d6a57600080fd5b50610615600c5481565b348015610d8057600080fd5b50610588610d8f366004613861565b6122aa565b348015610da057600080fd5b5061053b6122c5565b348015610db557600080fd5b5061061560115481565b348015610dcb57600080fd5b5061053b610dda36600461387c565b6122d2565b348015610deb57600080fd5b50610615610dfa3660046135b5565b60115460009081526013602090815260408083206001600160a01b039094168352929052205490565b348015610e2f57600080fd5b506106157f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610e6357600080fd5b50610588610e72366004613895565b612520565b348015610e8357600080fd5b50610615600b5481565b348015610e9957600080fd5b5060175461051190600160a81b900460ff1681565b348015610eba57600080fd5b50610588610ec936600461387c565b612545565b348015610eda57600080fd5b50610588610ee93660046138f2565b612552565b348015610efa57600080fd5b50610615601e5481565b348015610f1057600080fd5b50610588610f1f3660046138f2565b61256d565b348015610f3057600080fd5b50610615610f3f36600461387c565b60146020526000908152604090205481565b348015610f5d57600080fd5b50610588610f6c366004613861565b612588565b348015610f7d57600080fd5b50610511610f8c3660046135d0565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610fc657600080fd5b50610588610fd5366004613861565b6125ae565b348015610fe657600080fd5b50610588610ff53660046135b5565b6125d4565b34801561100657600080fd5b50610615611015366004613895565b601260209081526000928352604080842090915290825290205481565b34801561103e57600080fd5b5061058861104d36600461387c565b61264a565b34801561105e57600080fd5b5061058861106d366004613861565b612657565b601b805461107f906140e2565b80601f01602080910402602001604051908101604052809291908181526020018280546110ab906140e2565b80156110f85780601f106110cd576101008083540402835291602001916110f8565b820191906000526020600020905b8154815290600101906020018083116110db57829003601f168201915b505050505081565b600061110b82612672565b8061111a575061111a826126a7565b92915050565b6111286126f5565b805161113b90601890602084019061332a565b5050565b60606003805461114e906140e2565b80601f016020809104026020016040519081016040528092919081815260200182805461117a906140e2565b80156111c75780601f1061119c576101008083540402835291602001916111c7565b820191906000526020600020905b8154815290600101906020018083116111aa57829003601f168201915b5050505050905090565b60006111dc8261274f565b6111f9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60215460ff16156112655760405162461bcd60e51b8152602060048201526015602482015274185c1c1c9bdd99481a5cc81c1c9bda1a589a5d1959605a1b60448201526064015b60405180910390fd5b61113b8282612784565b6018805461107f906140e2565b6112846126f5565b600e80549115156101000261ff0019909216919091179055565b6112a66126f5565b601d55565b60006112b682612824565b9050836001600160a01b0316816001600160a01b0316146112e95760405162a1148160e81b815260040160405180910390fd5b600082815260076020526040902080546113158187335b6001600160a01b039081169116811491141790565b611340576113238633610f8c565b61134057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661136757604051633a954ecd60e21b815260040160405180910390fd5b6113748686866001612894565b801561137f57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040902055600160e11b831661140a57600184016000818152600560205260409020546114085760015481146114085760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206141fb83398151915260405160405180910390a4505050505050565b6114496126f5565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6114957f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f33612080565b6114e15760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f742061206169722064726f707065720000000000604482015260640161125c565b6000805b82518110156115275782818151811061150057611500614178565b602002602001015182611513919061403d565b91508061151f8161411d565b9150506114e5565b50806000106115785760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e46540000000000604482015260640161125c565b600b546002546001548391900360001901611593919061403d565b11156115b15760405162461bcd60e51b815260040161125c90613f93565b60005b8251811015611618576116068585838181106115d2576115d2614178565b90506020020160208101906115e791906135b5565b8483815181106115f9576115f9614178565b602002602001015161290c565b806116108161411d565b9150506115b4565b5050505050565b60008281526009602052604090206001015461163a81612926565b6116448383612930565b505050565b6001600160a01b03811633146116b95760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161125c565b61113b82826129b6565b6116cb6126f5565b60405160009073b65e9b81bc515756dd823a94ad79e34e3c44a20d9047908381818185875af1925050503d8060008114611721576040519150601f19603f3d011682016040523d82523d6000602084013e611726565b606091505b505090508061173457600080fd5b50565b3233146117865760405162461bcd60e51b815260206004820152601f60248201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00604482015260640161125c565b600e5460ff16156117d25760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b604482015260640161125c565b866000106118225760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e46540000000000604482015260640161125c565b600c548711156118805760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b606482015260840161125c565b600b5487600161188f60015490565b6118999190614088565b6118a3919061403d565b11156118c15760405162461bcd60e51b815260040161125c90613f93565b3487600a546118d09190614069565b11156119135760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b604482015260640161125c565b600e54600090819060ff61010090910416151560011415611a9857600f54611a05576040516bffffffffffffffffffffffff193360601b166020820152603481018990526000906054016040516020818303038152906040528051906020012090506119b6888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506010549150849050612a1d565b6119fc5760405162461bcd60e51b81526020600482015260176024820152761d5cd95c881a5cc81b9bdd08185b1b1bdddb1a5cdd1959604a1b604482015260640161125c565b88925050611a9e565b600f5460011415611a93576011546000908152601360209081526040808320338452909152902054611a735760405162461bcd60e51b81526020600482015260176024820152761d5cd95c881a5cc81b9bdd08185b1b1bdddb1a5cdd1959604a1b604482015260640161125c565b601154600090815260136020908152604080832033845290915290205491505b611a9e565b600d5491505b600e5462010000900460ff16151560011415611b5c576011546000908152601260209081526040808320338452909152902054611adb9083614088565b891115611b2a5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e465420706572206164647265737320657863656564656400000000604482015260640161125c565b6011546000908152601260209081526040808320338452909152812080548b9290611b5690849061403d565b90915550505b600e546301000000900460ff16151560011415611c045788600114611b9d5760405162461bcd60e51b8152602060048201526000602482015260440161125c565b611ba685611f37565b6001600160a01b0316336001600160a01b031614611bfb5760405162461bcd60e51b815260206004820152601260248201527113dddb995c881a5cc8191a5999995c995b9d60721b604482015260640161125c565b611c0485612a33565b601c5460ff16151560011415611cd75783518914611c755760405162461bcd60e51b815260206004820152602860248201527f6d696e7420616d6f756e7420616e642067704e6f206c656e67746820697320646044820152671a5999995c995b9d60c21b606482015260840161125c565b60005b8451811015611cd557848181518110611c9357611c93614178565b602002602001015160146000611ca860015490565b611cb2908561403d565b815260208101919091526040016000205580611ccd8161411d565b915050611c78565b505b6001600160a01b038316611cec575033611cef565b50815b611cf9818a61290c565b505050505050505050565b61164483838360405180602001604052806000815250612266565b611d276126f5565b600a55565b611d346126f5565b805161113b90602090818401906133ae565b611d4e6126f5565b8051825114611d5c57600080fd5b60005b8251811015611de857818181518110611d7a57611d7a614178565b6020026020010151601360008681526020019081526020016000206000858481518110611da957611da9614178565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080611de09061411d565b915050611d5f565b50505050565b611df66126f5565b805161113b90601590602084019061332a565b611e337f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84833612080565b611e785760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba103090313ab93732b960511b604482015260640161125c565b60005b815181101561113b576000828281518110611e9857611e98614178565b60200260200101519050611eab81611f37565b6001600160a01b0316336001600160a01b031614611f005760405162461bcd60e51b815260206004820152601260248201527113dddb995c881a5cc8191a5999995c995b9d60721b604482015260640161125c565b611f0981612a33565b5080611f148161411d565b915050611e7b565b611f246126f5565b805161113b90601a90602084019061332a565b600061111a82612824565b611f4a6126f5565b60178054911515600160a81b0260ff60a81b19909216919091179055565b6015805461107f906140e2565b611f7d6126f5565b601e55565b611f8a6126f5565b600b55565b60006001600160a01b038216611fb8576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b611fe56126f5565b611fef6000612a3e565b565b611ff96126f5565b601055565b6120066126f5565b8015806120135750806001145b6120575760405162461bcd60e51b815260206004820152601560248201527420b63637bb903634b9ba103a3cb8329032b93937b960591b604482015260640161125c565b600f55565b6120646126f5565b600e8054911515620100000262ff000019909216919091179055565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b601a805461107f906140e2565b6120c06126f5565b601c805460ff1916911515919091179055565b60606004805461114e906140e2565b6120ea6126f5565b805161113b90601990602084019061332a565b6121277f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633612080565b61216c5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba10309036b4b73a32b960511b604482015260640161125c565b600b5481600161217b60015490565b6121859190614088565b61218f919061403d565b11156121ad5760405162461bcd60e51b815260040161125c90613f93565b61113b828261290c565b602081815481106121c757600080fd5b90600052602060002001600091509050805461107f906140e2565b60215460ff16156122355760405162461bcd60e51b815260206004820152601f60248201527f736574417070726f76616c466f72416c6c2069732070726f6869626974656400604482015260640161125c565b61113b8282612a8e565b6122476126f5565b600c55565b6019805461107f906140e2565b6122616126f5565b600d55565b6122718484846112ab565b6001600160a01b0383163b15611de85761228d84848484612afa565b611de8576040516368d2bf6b60e11b815260040160405180910390fd5b6122b26126f5565b600e805460ff1916911515919091179055565b6016805461107f906140e2565b601754606090600160a01b900460ff1615156001141561236c5760175460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd9060240160006040518083038186803b15801561233057600080fd5b505afa158015612344573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261111a9190810190613926565b601754600160a81b900460ff161515600114156123db576123b56019601a6018601b6040516020016123a19493929190613c0c565b604051602081830303815290604052612bf2565b6040516020016123c59190613de5565b6040516020818303038152906040529050919050565b601c5460ff16151560011415612504576000601e54601d54426123fe9190614055565b6124089190614138565b61241390600161403d565b90506124dd601961242385612d57565b600086815260146020526040902054601a9060159061244c9061244790600161403d565b612d57565b61245587612d57565b601660405160200161246d9796959493929190613ceb565b604051602081830303815290604052601b60206014600088815260200190815260200160002054815481106124a4576124a4614178565b906000526020600020016040516020016124bf929190613e9f565b60408051601f19818403018152908290526123a19291602001613bbf565b6040516020016124ed9190613de5565b604051602081830303815290604052915050919050565b61250d82612da5565b60166040516020016123c5929190613bee565b60008281526009602052604090206001015461253b81612926565b61164483836129b6565b61254d6126f5565b601155565b61255a6126f5565b805161113b90601690602084019061332a565b6125756126f5565b805161113b90601b90602084019061332a565b6125906126f5565b600e805491151563010000000263ff00000019909216919091179055565b6125b66126f5565b60178054911515600160a01b0260ff60a01b19909216919091179055565b6125dc6126f5565b6001600160a01b0381166126415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161125c565b61173481612a3e565b6126526126f5565b601f55565b61265f6126f5565b6021805460ff1916911515919091179055565b60006001600160e01b03198216637965db0b60e01b148061111a57506301ffc9a760e01b6001600160e01b031983161461111a565b60006301ffc9a760e01b6001600160e01b0319831614806126d857506380ac58cd60e01b6001600160e01b03198316145b8061111a5750506001600160e01b031916635b5e139f60e01b1490565b6000546001600160a01b03163314611fef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161125c565b600081600111158015612763575060015482105b801561111a575050600090815260056020526040902054600160e01b161590565b600061278f82611f37565b9050336001600160a01b038216146127c8576127ab8133610f8c565b6127c8576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818060011161287b5760015481101561287b57600081815260056020526040902054600160e01b8116612879575b80612872575060001901600081815260056020526040902054612854565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b60215460ff1615806128ad57506001600160a01b038416155b806128c257506001600160a01b03831661dead145b6129075760405162461bcd60e51b81526020600482015260166024820152751d1c985b9cd9995c881a5cc81c1c9bda1a589a5d195960521b604482015260640161125c565b611de8565b61113b828260405180602001604052806000815250612e13565b6117348133612e79565b61293a8282612080565b61113b5760008281526009602090815260408083206001600160a01b03851684529091529020805460ff191660011790556129723390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6129c08282612080565b1561113b5760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600082612a2a8584612ed2565b14949350505050565b611734816000612f1f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612b2f903390899088908890600401613f43565b602060405180830381600087803b158015612b4957600080fd5b505af1925050508015612b79575060408051601f3d908101601f19168201909252612b76918101906138d5565b60015b612bd4573d808015612ba7576040519150601f19603f3d011682016040523d82523d6000602084013e612bac565b606091505b508051612bcc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060815160001415612c1257505060408051602081019091526000815290565b60006040518060600160405280604081526020016141bb6040913990506000600384516002612c41919061403d565b612c4b9190614055565b612c56906004614069565b90506000612c6582602061403d565b6001600160401b03811115612c7c57612c7c61418e565b6040519080825280601f01601f191660200182016040528015612ca6576020820181803683370190505b509050818152600183018586518101602084015b81831015612d12576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612cba565b600389510660018114612d2c5760028114612d3d57612d49565b613d3d60f01b600119830152612d49565b603d60f81b6000198301525b509398975050505050505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480612d8e57612d93565b612d71565b50819003601f19909101908152919050565b6060612db08261274f565b612dcd57604051630a14c4b560e41b815260040160405180910390fd5b6000612dd761305f565b9050805160001415612df85760405180602001604052806000815250612872565b80612e0284612d57565b6040516020016124ed929190613bbf565b612e1d838361306e565b6001600160a01b0383163b15611644576001548281035b612e476000868380600101945086612afa565b612e64576040516368d2bf6b60e11b815260040160405180910390fd5b818110612e3457816001541461161857600080fd5b612e838282612080565b61113b57612e908161314e565b612e9b836020613160565b604051602001612eac929190613e2a565b60408051601f198184030181529082905262461bcd60e51b825261125c91600401613f80565b600081815b8451811015612f1757612f0382868381518110612ef657612ef6614178565b60200260200101516132fb565b915080612f0f8161411d565b915050612ed7565b509392505050565b6000612f2a83612824565b905080600080612f4886600090815260076020526040902080549091565b915091508415612f8857612f5d818433611300565b612f8857612f6b8333610f8c565b612f8857604051632ce44b5f60e11b815260040160405180910390fd5b612f96836000886001612894565b8015612fa157600082555b6001600160a01b038316600081815260066020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260056020526040902055600160e11b841661302857600186016000818152600560205260409020546130265760015481146130265760008181526005602052604090208590555b505b60405186906000906001600160a01b038616906000805160206141fb833981519152908390a4505060028054600101905550505050565b60606015805461114e906140e2565b6001548161308f5760405163b562e8dd60e01b815260040160405180910390fd5b61309c6000848385612894565b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083906000805160206141fb8339815191528180a4600183015b81811461312757808360006000805160206141fb833981519152600080a4600101613101565b508161314557604051622e076360e81b815260040160405180910390fd5b60015550505050565b606061111a6001600160a01b03831660145b6060600061316f836002614069565b61317a90600261403d565b6001600160401b038111156131915761319161418e565b6040519080825280601f01601f1916602001820160405280156131bb576020820181803683370190505b509050600360fc1b816000815181106131d6576131d6614178565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061320557613205614178565b60200101906001600160f81b031916908160001a9053506000613229846002614069565b61323490600161403d565b90505b60018111156132ac576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061326857613268614178565b1a60f81b82828151811061327e5761327e614178565b60200101906001600160f81b031916908160001a90535060049490941c936132a5816140cb565b9050613237565b5083156128725760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161125c565b6000818310613317576000828152602084905260409020612872565b6000838152602083905260409020612872565b828054613336906140e2565b90600052602060002090601f016020900481019282613358576000855561339e565b82601f1061337157805160ff191683800117855561339e565b8280016001018555821561339e579182015b8281111561339e578251825591602001919060010190613383565b506133aa929150613407565b5090565b8280548282559060005260206000209081019282156133fb579160200282015b828111156133fb57825180516133eb91849160209091019061332a565b50916020019190600101906133ce565b506133aa92915061341c565b5b808211156133aa5760008155600101613408565b808211156133aa5760006134308282613439565b5060010161341c565b508054613445906140e2565b6000825580601f10613455575050565b601f0160209004906000526020600020908101906117349190613407565b600061348661348184614016565b613fc3565b905082815283838301111561349a57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146134c857600080fd5b919050565b60008083601f8401126134df57600080fd5b5081356001600160401b038111156134f657600080fd5b6020830191508360208260051b850101111561351157600080fd5b9250929050565b600082601f83011261352957600080fd5b8135602061353961348183613ff3565b80838252828201915082860187848660051b890101111561355957600080fd5b60005b858110156135785781358452928401929084019060010161355c565b5090979650505050505050565b803580151581146134c857600080fd5b600082601f8301126135a657600080fd5b61287283833560208501613473565b6000602082840312156135c757600080fd5b612872826134b1565b600080604083850312156135e357600080fd5b6135ec836134b1565b91506135fa602084016134b1565b90509250929050565b60008060006060848603121561361857600080fd5b613621846134b1565b925061362f602085016134b1565b9150604084013590509250925092565b6000806000806080858703121561365557600080fd5b61365e856134b1565b935061366c602086016134b1565b92506040850135915060608501356001600160401b0381111561368e57600080fd5b8501601f8101871361369f57600080fd5b6136ae87823560208401613473565b91505092959194509250565b600080604083850312156136cd57600080fd5b6136d6836134b1565b91506135fa60208401613585565b600080604083850312156136f757600080fd5b613700836134b1565b946020939093013593505050565b60008060006040848603121561372357600080fd5b83356001600160401b038082111561373a57600080fd5b613746878388016134cd565b9095509350602086013591508082111561375f57600080fd5b5061376c86828701613518565b9150509250925092565b6000602080838503121561378957600080fd5b82356001600160401b03808211156137a057600080fd5b818501915085601f8301126137b457600080fd5b81356137c261348182613ff3565b80828252858201915085850189878560051b88010111156137e257600080fd5b6000805b8581101561381d578235878111156137fc578283fd5b61380a8d8b838c0101613595565b86525093880193918801916001016137e6565b50919a9950505050505050505050565b60006020828403121561383f57600080fd5b81356001600160401b0381111561385557600080fd5b612bea84828501613518565b60006020828403121561387357600080fd5b61287282613585565b60006020828403121561388e57600080fd5b5035919050565b600080604083850312156138a857600080fd5b823591506135fa602084016134b1565b6000602082840312156138ca57600080fd5b8135612872816141a4565b6000602082840312156138e757600080fd5b8151612872816141a4565b60006020828403121561390457600080fd5b81356001600160401b0381111561391a57600080fd5b612bea84828501613595565b60006020828403121561393857600080fd5b81516001600160401b0381111561394e57600080fd5b8201601f8101841361395f57600080fd5b805161396d61348182614016565b81815285602083850101111561398257600080fd5b61399382602083016020860161409f565b95945050505050565b6000806000606084860312156139b157600080fd5b833592506020808501356001600160401b03808211156139d057600080fd5b818701915087601f8301126139e457600080fd5b81356139f261348182613ff3565b8082825285820191508585018b878560051b8801011115613a1257600080fd5b600095505b83861015613a3c57613a28816134b1565b835260019590950194918601918601613a17565b50965050506040870135925080831115613a5557600080fd5b505061376c86828701613518565b600080600080600080600060c0888a031215613a7e57600080fd5b873596506020880135955060408801356001600160401b0380821115613aa357600080fd5b613aaf8b838c016134cd565b909750955060608a0135945060808a0135915080821115613acf57600080fd5b50613adc8a828b01613518565b925050613aeb60a089016134b1565b905092959891949750929550565b60008151808452613b1181602086016020860161409f565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680613b3f57607f831692505b6020808410821415613b6157634e487b7160e01b600052602260045260246000fd5b818015613b755760018114613b8657613bb3565b60ff19861689528489019650613bb3565b60008881526020902060005b86811015613bab5781548b820152908501908301613b92565b505084890196505b50505050505092915050565b60008351613bd181846020880161409f565b835190830190613be581836020880161409f565b01949350505050565b60008351613c0081846020880161409f565b61399381840185613b25565b683d913730b6b2911d1160b91b81526000613c2a6009830187613b25565b61088b60f21b8082526e113232b9b1b934b83a34b7b7111d1160891b6002830152613c586011830188613b25565b818152691134b6b0b3b2911d101160b11b60028201529150613c7d600c830187613b25565b9081527f2261747472696275746573223a5b7b2274726169745f74797065223a2274797060028201526b329116113b30b63ab2911d1160a11b60228201529050613cca602e820185613b25565b62227d5d60e81b8152607d60f81b6003820152600401979650505050505050565b607b60f81b815267113730b6b2911d1160c11b60018201526000613d12600983018a613b25565b61202360f01b81528851613d2d816002840160208d0161409f565b61088b60f21b9101600281018290526e113232b9b1b934b83a34b7b7111d1160891b600482015290613d62601383018a613b25565b908152691134b6b0b3b2911d101160b11b60028201529050613d87600c820188613b25565b90508551613d99818360208a0161409f565b602d60f81b91019081528451613db681600184016020890161409f565b613dd6613dc860018385010187613b25565b61088b60f21b815260020190565b9b9a5050505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613e1d81601d85016020870161409f565b91909101601d0192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613e6281601785016020880161409f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613e9381602884016020880161409f565b01602801949350505050565b6d2261747472696275746573223a5b60901b81527f7b2274726169745f74797065223a2274797065222c2276616c7565223a220000600e8201526000613ee8602c830185613b25565b62089f4b60ea1b81527f7b2274726169745f74797065223a227465616d222c2276616c7565223a2200006003820152613f246021820185613b25565b62227d5d60e81b8152607d60f81b600382015260040195945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613f7690830184613af9565b9695505050505050565b6020815260006128726020830184613af9565b6020808252601690820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715613feb57613feb61418e565b604052919050565b60006001600160401b0382111561400c5761400c61418e565b5060051b60200190565b60006001600160401b0382111561402f5761402f61418e565b50601f01601f191660200190565b600082198211156140505761405061414c565b500190565b60008261406457614064614162565b500490565b60008160001904831182151516156140835761408361414c565b500290565b60008282101561409a5761409a61414c565b500390565b60005b838110156140ba5781810151838201526020016140a2565b83811115611de85750506000910152565b6000816140da576140da61414c565b506000190190565b600181811c908216806140f657607f821691505b6020821081141561411757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156141315761413161414c565b5060010190565b60008261414757614147614162565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461173457600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122008197aec02bdc4b667ffc5ba247d989bc85ca88cb5f09f516753ae73ba309fb864736f6c63430008070033434e50696e66616e7420323032332056616c656e74696e6527732044617920534254434e50696e66616e74204c696e6b73203a2068747470733a2f2f6c69742e6c696e6b2f636e70696e66616e7420697066733a2f2f516d5a7338747934364631526a6a6571467842443447794370636d6139374754325973723863506477346a3336732f

Deployed Bytecode

0x6080604052600436106104eb5760003560e01c80637cb647591161028c578063ba6269c61161015a578063d728312a116100cc578063e985e9c511610085578063e985e9c514610f71578063f138abfa14610fba578063f2fde38b14610fda578063f48824db14610ffa578063fb6b5ca714611032578063fcd1aac91461105257600080fd5b8063d728312a14610eae578063da3ef23f14610ece578063dcb8571114610eee578063ddecc4d014610f04578063df4b0d9814610f24578063e39e026914610f5157600080fd5b8063c87b56dd1161011e578063c87b56dd14610dbf578063d04f32d214610ddf578063d539139314610e23578063d547741f14610e57578063d5abeb0114610e77578063d6dfad7614610e8d57600080fd5b8063ba6269c614610d3d578063bbb8974414610d5e578063bedb86fb14610d74578063c668286214610d94578063c84c038714610da957600080fd5b80639659867e116101fe578063a72193b6116101b7578063a72193b614610ca5578063a9e2acd514610cbb578063aa89ca9714610cdb578063aabb9a8614610cf5578063b5f94d0614610d0a578063b88d4fde14610d2a57600080fd5b80639659867e14610bfd578063981eb34414610c1d57806399f9889814610c3d5780639e35e27414610c50578063a217fddf14610c70578063a22cb46514610c8557600080fd5b80638e73cf00116102505780638e73cf0014610b5d57806391d1485414610b7d578063942c927314610b9d578063947a36fb14610bb257806394de66a114610bc857806395d89b4114610be857600080fd5b80637cb6475914610ac95780637ee3b2ac14610ae95780638541797d14610b09578063877984cb14610b1f5780638da5cb5b14610b3f57600080fd5b806336568abe116103c95780635978c0121161033b5780636c0360eb116102f45780636c0360eb14610a295780636c32868a14610a3e5780636f8b44b014610a5e57806370a0823114610a7e578063715018a614610a9e57806373ef64fd14610ab357600080fd5b80635978c01214610970578063599487c3146109905780635c975abb146109b05780636352211e146109ca578063674c02aa146109ea5780636b8ee0ec14610a0957600080fd5b806344a0d68a1161038d57806344a0d68a1461087457806347705cbc1461089457806347d65fb5146108d8578063499a15d4146108f85780634e6bf2041461093057806355f804b31461095057600080fd5b806336568abe1461080c5780633ccfd60b1461082c5780633cf40df3146108345780633d9c6a921461084e57806342842e0e1461086157600080fd5b806318160ddd11610462578063248a9ca311610426578063248a9ca31461070f578063279a669e1461073f578063282c51f31461075f5780632eb4a7ab146107935780632f2ff15d146107a95780633511cd54146107c957600080fd5b806318160ddd1461066b5780631e0fbfa21461068857806322a90082146106bc57806323b872dd146106dc57806323c03085146106ef57600080fd5b8063081812fc116104b4578063081812fc1461059f578063095ea7b3146105d7578063135d088d146105ea57806313faede6146105ff5780631581b6001461062357806317dc10c41461064b57600080fd5b806285bb6f146104f057806301340a321461052657806301ffc9a71461054857806304787ca21461056857806306fdde031461058a575b600080fd5b3480156104fc57600080fd5b50600e54610511906301000000900460ff1681565b60405190151581526020015b60405180910390f35b34801561053257600080fd5b5061053b611072565b60405161051d9190613f80565b34801561055457600080fd5b506105116105633660046138b8565b611100565b34801561057457600080fd5b506105886105833660046138f2565b611120565b005b34801561059657600080fd5b5061053b61113f565b3480156105ab57600080fd5b506105bf6105ba36600461387c565b6111d1565b6040516001600160a01b03909116815260200161051d565b6105886105e53660046136e4565b611215565b3480156105f657600080fd5b5061053b61126f565b34801561060b57600080fd5b50610615600a5481565b60405190815260200161051d565b34801561062f57600080fd5b506105bf73b65e9b81bc515756dd823a94ad79e34e3c44a20d81565b34801561065757600080fd5b50610588610666366004613861565b61127c565b34801561067757600080fd5b506002546001540360001901610615565b34801561069457600080fd5b506106157f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f81565b3480156106c857600080fd5b506105886106d736600461387c565b61129e565b6105886106ea366004613603565b6112ab565b3480156106fb57600080fd5b5061058861070a3660046135b5565b611441565b34801561071b57600080fd5b5061061561072a36600461387c565b60009081526009602052604090206001015490565b34801561074b57600080fd5b5061058861075a36600461370e565b61146b565b34801561076b57600080fd5b506106157f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b34801561079f57600080fd5b5061061560105481565b3480156107b557600080fd5b506105886107c4366004613895565b61161f565b3480156107d557600080fd5b506106156107e4366004613895565b60009182526012602090815260408084206001600160a01b0393909316845291905290205490565b34801561081857600080fd5b50610588610827366004613895565b611649565b6105886116c3565b34801561084057600080fd5b506021546105119060ff1681565b61058861085c366004613a63565b611737565b61058861086f366004613603565b611d04565b34801561088057600080fd5b5061058861088f36600461387c565b611d1f565b3480156108a057600080fd5b506106156108af3660046135b5565b60115460009081526012602090815260408083206001600160a01b039094168352929052205490565b3480156108e457600080fd5b506105886108f3366004613776565b611d2c565b34801561090457600080fd5b50610615610913366004613895565b601360209081526000928352604080842090915290825290205481565b34801561093c57600080fd5b5061058861094b36600461399c565b611d46565b34801561095c57600080fd5b5061058861096b3660046138f2565b611dee565b34801561097c57600080fd5b5061058861098b36600461382d565b611e09565b34801561099c57600080fd5b506105886109ab3660046138f2565b611f1c565b3480156109bc57600080fd5b50600e546105119060ff1681565b3480156109d657600080fd5b506105bf6109e536600461387c565b611f37565b3480156109f657600080fd5b50600e5461051190610100900460ff1681565b348015610a1557600080fd5b50610588610a24366004613861565b611f42565b348015610a3557600080fd5b5061053b611f68565b348015610a4a57600080fd5b50610588610a5936600461387c565b611f75565b348015610a6a57600080fd5b50610588610a7936600461387c565b611f82565b348015610a8a57600080fd5b50610615610a993660046135b5565b611f8f565b348015610aaa57600080fd5b50610588611fdd565b348015610abf57600080fd5b50610615600d5481565b348015610ad557600080fd5b50610588610ae436600461387c565b611ff1565b348015610af557600080fd5b50610588610b0436600461387c565b611ffe565b348015610b1557600080fd5b50610615601f5481565b348015610b2b57600080fd5b506017546105bf906001600160a01b031681565b348015610b4b57600080fd5b506000546001600160a01b03166105bf565b348015610b6957600080fd5b50610588610b78366004613861565b61205c565b348015610b8957600080fd5b50610511610b98366004613895565b612080565b348015610ba957600080fd5b5061053b6120ab565b348015610bbe57600080fd5b50610615601d5481565b348015610bd457600080fd5b50610588610be3366004613861565b6120b8565b348015610bf457600080fd5b5061053b6120d3565b348015610c0957600080fd5b50600e546105119062010000900460ff1681565b348015610c2957600080fd5b50610588610c383660046138f2565b6120e2565b610588610c4b3660046136e4565b6120fd565b348015610c5c57600080fd5b5061053b610c6b36600461387c565b6121b7565b348015610c7c57600080fd5b50610615600081565b348015610c9157600080fd5b50610588610ca03660046136ba565b6121e2565b348015610cb157600080fd5b50610615600f5481565b348015610cc757600080fd5b50610588610cd636600461387c565b61223f565b348015610ce757600080fd5b50601c546105119060ff1681565b348015610d0157600080fd5b5061053b61224c565b348015610d1657600080fd5b50610588610d2536600461387c565b612259565b610588610d3836600461363f565b612266565b348015610d4957600080fd5b5060175461051190600160a01b900460ff1681565b348015610d6a57600080fd5b50610615600c5481565b348015610d8057600080fd5b50610588610d8f366004613861565b6122aa565b348015610da057600080fd5b5061053b6122c5565b348015610db557600080fd5b5061061560115481565b348015610dcb57600080fd5b5061053b610dda36600461387c565b6122d2565b348015610deb57600080fd5b50610615610dfa3660046135b5565b60115460009081526013602090815260408083206001600160a01b039094168352929052205490565b348015610e2f57600080fd5b506106157f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610e6357600080fd5b50610588610e72366004613895565b612520565b348015610e8357600080fd5b50610615600b5481565b348015610e9957600080fd5b5060175461051190600160a81b900460ff1681565b348015610eba57600080fd5b50610588610ec936600461387c565b612545565b348015610eda57600080fd5b50610588610ee93660046138f2565b612552565b348015610efa57600080fd5b50610615601e5481565b348015610f1057600080fd5b50610588610f1f3660046138f2565b61256d565b348015610f3057600080fd5b50610615610f3f36600461387c565b60146020526000908152604090205481565b348015610f5d57600080fd5b50610588610f6c366004613861565b612588565b348015610f7d57600080fd5b50610511610f8c3660046135d0565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610fc657600080fd5b50610588610fd5366004613861565b6125ae565b348015610fe657600080fd5b50610588610ff53660046135b5565b6125d4565b34801561100657600080fd5b50610615611015366004613895565b601260209081526000928352604080842090915290825290205481565b34801561103e57600080fd5b5061058861104d36600461387c565b61264a565b34801561105e57600080fd5b5061058861106d366004613861565b612657565b601b805461107f906140e2565b80601f01602080910402602001604051908101604052809291908181526020018280546110ab906140e2565b80156110f85780601f106110cd576101008083540402835291602001916110f8565b820191906000526020600020905b8154815290600101906020018083116110db57829003601f168201915b505050505081565b600061110b82612672565b8061111a575061111a826126a7565b92915050565b6111286126f5565b805161113b90601890602084019061332a565b5050565b60606003805461114e906140e2565b80601f016020809104026020016040519081016040528092919081815260200182805461117a906140e2565b80156111c75780601f1061119c576101008083540402835291602001916111c7565b820191906000526020600020905b8154815290600101906020018083116111aa57829003601f168201915b5050505050905090565b60006111dc8261274f565b6111f9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b60215460ff16156112655760405162461bcd60e51b8152602060048201526015602482015274185c1c1c9bdd99481a5cc81c1c9bda1a589a5d1959605a1b60448201526064015b60405180910390fd5b61113b8282612784565b6018805461107f906140e2565b6112846126f5565b600e80549115156101000261ff0019909216919091179055565b6112a66126f5565b601d55565b60006112b682612824565b9050836001600160a01b0316816001600160a01b0316146112e95760405162a1148160e81b815260040160405180910390fd5b600082815260076020526040902080546113158187335b6001600160a01b039081169116811491141790565b611340576113238633610f8c565b61134057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661136757604051633a954ecd60e21b815260040160405180910390fd5b6113748686866001612894565b801561137f57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040902055600160e11b831661140a57600184016000818152600560205260409020546114085760015481146114085760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206141fb83398151915260405160405180910390a4505050505050565b6114496126f5565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6114957f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f33612080565b6114e15760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f742061206169722064726f707065720000000000604482015260640161125c565b6000805b82518110156115275782818151811061150057611500614178565b602002602001015182611513919061403d565b91508061151f8161411d565b9150506114e5565b50806000106115785760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e46540000000000604482015260640161125c565b600b546002546001548391900360001901611593919061403d565b11156115b15760405162461bcd60e51b815260040161125c90613f93565b60005b8251811015611618576116068585838181106115d2576115d2614178565b90506020020160208101906115e791906135b5565b8483815181106115f9576115f9614178565b602002602001015161290c565b806116108161411d565b9150506115b4565b5050505050565b60008281526009602052604090206001015461163a81612926565b6116448383612930565b505050565b6001600160a01b03811633146116b95760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161125c565b61113b82826129b6565b6116cb6126f5565b60405160009073b65e9b81bc515756dd823a94ad79e34e3c44a20d9047908381818185875af1925050503d8060008114611721576040519150601f19603f3d011682016040523d82523d6000602084013e611726565b606091505b505090508061173457600080fd5b50565b3233146117865760405162461bcd60e51b815260206004820152601f60248201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00604482015260640161125c565b600e5460ff16156117d25760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b604482015260640161125c565b866000106118225760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e46540000000000604482015260640161125c565b600c548711156118805760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b606482015260840161125c565b600b5487600161188f60015490565b6118999190614088565b6118a3919061403d565b11156118c15760405162461bcd60e51b815260040161125c90613f93565b3487600a546118d09190614069565b11156119135760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b604482015260640161125c565b600e54600090819060ff61010090910416151560011415611a9857600f54611a05576040516bffffffffffffffffffffffff193360601b166020820152603481018990526000906054016040516020818303038152906040528051906020012090506119b6888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506010549150849050612a1d565b6119fc5760405162461bcd60e51b81526020600482015260176024820152761d5cd95c881a5cc81b9bdd08185b1b1bdddb1a5cdd1959604a1b604482015260640161125c565b88925050611a9e565b600f5460011415611a93576011546000908152601360209081526040808320338452909152902054611a735760405162461bcd60e51b81526020600482015260176024820152761d5cd95c881a5cc81b9bdd08185b1b1bdddb1a5cdd1959604a1b604482015260640161125c565b601154600090815260136020908152604080832033845290915290205491505b611a9e565b600d5491505b600e5462010000900460ff16151560011415611b5c576011546000908152601260209081526040808320338452909152902054611adb9083614088565b891115611b2a5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e465420706572206164647265737320657863656564656400000000604482015260640161125c565b6011546000908152601260209081526040808320338452909152812080548b9290611b5690849061403d565b90915550505b600e546301000000900460ff16151560011415611c045788600114611b9d5760405162461bcd60e51b8152602060048201526000602482015260440161125c565b611ba685611f37565b6001600160a01b0316336001600160a01b031614611bfb5760405162461bcd60e51b815260206004820152601260248201527113dddb995c881a5cc8191a5999995c995b9d60721b604482015260640161125c565b611c0485612a33565b601c5460ff16151560011415611cd75783518914611c755760405162461bcd60e51b815260206004820152602860248201527f6d696e7420616d6f756e7420616e642067704e6f206c656e67746820697320646044820152671a5999995c995b9d60c21b606482015260840161125c565b60005b8451811015611cd557848181518110611c9357611c93614178565b602002602001015160146000611ca860015490565b611cb2908561403d565b815260208101919091526040016000205580611ccd8161411d565b915050611c78565b505b6001600160a01b038316611cec575033611cef565b50815b611cf9818a61290c565b505050505050505050565b61164483838360405180602001604052806000815250612266565b611d276126f5565b600a55565b611d346126f5565b805161113b90602090818401906133ae565b611d4e6126f5565b8051825114611d5c57600080fd5b60005b8251811015611de857818181518110611d7a57611d7a614178565b6020026020010151601360008681526020019081526020016000206000858481518110611da957611da9614178565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508080611de09061411d565b915050611d5f565b50505050565b611df66126f5565b805161113b90601590602084019061332a565b611e337f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84833612080565b611e785760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba103090313ab93732b960511b604482015260640161125c565b60005b815181101561113b576000828281518110611e9857611e98614178565b60200260200101519050611eab81611f37565b6001600160a01b0316336001600160a01b031614611f005760405162461bcd60e51b815260206004820152601260248201527113dddb995c881a5cc8191a5999995c995b9d60721b604482015260640161125c565b611f0981612a33565b5080611f148161411d565b915050611e7b565b611f246126f5565b805161113b90601a90602084019061332a565b600061111a82612824565b611f4a6126f5565b60178054911515600160a81b0260ff60a81b19909216919091179055565b6015805461107f906140e2565b611f7d6126f5565b601e55565b611f8a6126f5565b600b55565b60006001600160a01b038216611fb8576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b611fe56126f5565b611fef6000612a3e565b565b611ff96126f5565b601055565b6120066126f5565b8015806120135750806001145b6120575760405162461bcd60e51b815260206004820152601560248201527420b63637bb903634b9ba103a3cb8329032b93937b960591b604482015260640161125c565b600f55565b6120646126f5565b600e8054911515620100000262ff000019909216919091179055565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b601a805461107f906140e2565b6120c06126f5565b601c805460ff1916911515919091179055565b60606004805461114e906140e2565b6120ea6126f5565b805161113b90601990602084019061332a565b6121277f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633612080565b61216c5760405162461bcd60e51b815260206004820152601660248201527521b0b63632b91034b9903737ba10309036b4b73a32b960511b604482015260640161125c565b600b5481600161217b60015490565b6121859190614088565b61218f919061403d565b11156121ad5760405162461bcd60e51b815260040161125c90613f93565b61113b828261290c565b602081815481106121c757600080fd5b90600052602060002001600091509050805461107f906140e2565b60215460ff16156122355760405162461bcd60e51b815260206004820152601f60248201527f736574417070726f76616c466f72416c6c2069732070726f6869626974656400604482015260640161125c565b61113b8282612a8e565b6122476126f5565b600c55565b6019805461107f906140e2565b6122616126f5565b600d55565b6122718484846112ab565b6001600160a01b0383163b15611de85761228d84848484612afa565b611de8576040516368d2bf6b60e11b815260040160405180910390fd5b6122b26126f5565b600e805460ff1916911515919091179055565b6016805461107f906140e2565b601754606090600160a01b900460ff1615156001141561236c5760175460405163c87b56dd60e01b8152600481018490526001600160a01b039091169063c87b56dd9060240160006040518083038186803b15801561233057600080fd5b505afa158015612344573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261111a9190810190613926565b601754600160a81b900460ff161515600114156123db576123b56019601a6018601b6040516020016123a19493929190613c0c565b604051602081830303815290604052612bf2565b6040516020016123c59190613de5565b6040516020818303038152906040529050919050565b601c5460ff16151560011415612504576000601e54601d54426123fe9190614055565b6124089190614138565b61241390600161403d565b90506124dd601961242385612d57565b600086815260146020526040902054601a9060159061244c9061244790600161403d565b612d57565b61245587612d57565b601660405160200161246d9796959493929190613ceb565b604051602081830303815290604052601b60206014600088815260200190815260200160002054815481106124a4576124a4614178565b906000526020600020016040516020016124bf929190613e9f565b60408051601f19818403018152908290526123a19291602001613bbf565b6040516020016124ed9190613de5565b604051602081830303815290604052915050919050565b61250d82612da5565b60166040516020016123c5929190613bee565b60008281526009602052604090206001015461253b81612926565b61164483836129b6565b61254d6126f5565b601155565b61255a6126f5565b805161113b90601690602084019061332a565b6125756126f5565b805161113b90601b90602084019061332a565b6125906126f5565b600e805491151563010000000263ff00000019909216919091179055565b6125b66126f5565b60178054911515600160a01b0260ff60a01b19909216919091179055565b6125dc6126f5565b6001600160a01b0381166126415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161125c565b61173481612a3e565b6126526126f5565b601f55565b61265f6126f5565b6021805460ff1916911515919091179055565b60006001600160e01b03198216637965db0b60e01b148061111a57506301ffc9a760e01b6001600160e01b031983161461111a565b60006301ffc9a760e01b6001600160e01b0319831614806126d857506380ac58cd60e01b6001600160e01b03198316145b8061111a5750506001600160e01b031916635b5e139f60e01b1490565b6000546001600160a01b03163314611fef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161125c565b600081600111158015612763575060015482105b801561111a575050600090815260056020526040902054600160e01b161590565b600061278f82611f37565b9050336001600160a01b038216146127c8576127ab8133610f8c565b6127c8576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818060011161287b5760015481101561287b57600081815260056020526040902054600160e01b8116612879575b80612872575060001901600081815260056020526040902054612854565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b60215460ff1615806128ad57506001600160a01b038416155b806128c257506001600160a01b03831661dead145b6129075760405162461bcd60e51b81526020600482015260166024820152751d1c985b9cd9995c881a5cc81c1c9bda1a589a5d195960521b604482015260640161125c565b611de8565b61113b828260405180602001604052806000815250612e13565b6117348133612e79565b61293a8282612080565b61113b5760008281526009602090815260408083206001600160a01b03851684529091529020805460ff191660011790556129723390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6129c08282612080565b1561113b5760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600082612a2a8584612ed2565b14949350505050565b611734816000612f1f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612b2f903390899088908890600401613f43565b602060405180830381600087803b158015612b4957600080fd5b505af1925050508015612b79575060408051601f3d908101601f19168201909252612b76918101906138d5565b60015b612bd4573d808015612ba7576040519150601f19603f3d011682016040523d82523d6000602084013e612bac565b606091505b508051612bcc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060815160001415612c1257505060408051602081019091526000815290565b60006040518060600160405280604081526020016141bb6040913990506000600384516002612c41919061403d565b612c4b9190614055565b612c56906004614069565b90506000612c6582602061403d565b6001600160401b03811115612c7c57612c7c61418e565b6040519080825280601f01601f191660200182016040528015612ca6576020820181803683370190505b509050818152600183018586518101602084015b81831015612d12576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612cba565b600389510660018114612d2c5760028114612d3d57612d49565b613d3d60f01b600119830152612d49565b603d60f81b6000198301525b509398975050505050505050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480612d8e57612d93565b612d71565b50819003601f19909101908152919050565b6060612db08261274f565b612dcd57604051630a14c4b560e41b815260040160405180910390fd5b6000612dd761305f565b9050805160001415612df85760405180602001604052806000815250612872565b80612e0284612d57565b6040516020016124ed929190613bbf565b612e1d838361306e565b6001600160a01b0383163b15611644576001548281035b612e476000868380600101945086612afa565b612e64576040516368d2bf6b60e11b815260040160405180910390fd5b818110612e3457816001541461161857600080fd5b612e838282612080565b61113b57612e908161314e565b612e9b836020613160565b604051602001612eac929190613e2a565b60408051601f198184030181529082905262461bcd60e51b825261125c91600401613f80565b600081815b8451811015612f1757612f0382868381518110612ef657612ef6614178565b60200260200101516132fb565b915080612f0f8161411d565b915050612ed7565b509392505050565b6000612f2a83612824565b905080600080612f4886600090815260076020526040902080549091565b915091508415612f8857612f5d818433611300565b612f8857612f6b8333610f8c565b612f8857604051632ce44b5f60e11b815260040160405180910390fd5b612f96836000886001612894565b8015612fa157600082555b6001600160a01b038316600081815260066020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260056020526040902055600160e11b841661302857600186016000818152600560205260409020546130265760015481146130265760008181526005602052604090208590555b505b60405186906000906001600160a01b038616906000805160206141fb833981519152908390a4505060028054600101905550505050565b60606015805461114e906140e2565b6001548161308f5760405163b562e8dd60e01b815260040160405180910390fd5b61309c6000848385612894565b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083906000805160206141fb8339815191528180a4600183015b81811461312757808360006000805160206141fb833981519152600080a4600101613101565b508161314557604051622e076360e81b815260040160405180910390fd5b60015550505050565b606061111a6001600160a01b03831660145b6060600061316f836002614069565b61317a90600261403d565b6001600160401b038111156131915761319161418e565b6040519080825280601f01601f1916602001820160405280156131bb576020820181803683370190505b509050600360fc1b816000815181106131d6576131d6614178565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061320557613205614178565b60200101906001600160f81b031916908160001a9053506000613229846002614069565b61323490600161403d565b90505b60018111156132ac576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061326857613268614178565b1a60f81b82828151811061327e5761327e614178565b60200101906001600160f81b031916908160001a90535060049490941c936132a5816140cb565b9050613237565b5083156128725760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161125c565b6000818310613317576000828152602084905260409020612872565b6000838152602083905260409020612872565b828054613336906140e2565b90600052602060002090601f016020900481019282613358576000855561339e565b82601f1061337157805160ff191683800117855561339e565b8280016001018555821561339e579182015b8281111561339e578251825591602001919060010190613383565b506133aa929150613407565b5090565b8280548282559060005260206000209081019282156133fb579160200282015b828111156133fb57825180516133eb91849160209091019061332a565b50916020019190600101906133ce565b506133aa92915061341c565b5b808211156133aa5760008155600101613408565b808211156133aa5760006134308282613439565b5060010161341c565b508054613445906140e2565b6000825580601f10613455575050565b601f0160209004906000526020600020908101906117349190613407565b600061348661348184614016565b613fc3565b905082815283838301111561349a57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146134c857600080fd5b919050565b60008083601f8401126134df57600080fd5b5081356001600160401b038111156134f657600080fd5b6020830191508360208260051b850101111561351157600080fd5b9250929050565b600082601f83011261352957600080fd5b8135602061353961348183613ff3565b80838252828201915082860187848660051b890101111561355957600080fd5b60005b858110156135785781358452928401929084019060010161355c565b5090979650505050505050565b803580151581146134c857600080fd5b600082601f8301126135a657600080fd5b61287283833560208501613473565b6000602082840312156135c757600080fd5b612872826134b1565b600080604083850312156135e357600080fd5b6135ec836134b1565b91506135fa602084016134b1565b90509250929050565b60008060006060848603121561361857600080fd5b613621846134b1565b925061362f602085016134b1565b9150604084013590509250925092565b6000806000806080858703121561365557600080fd5b61365e856134b1565b935061366c602086016134b1565b92506040850135915060608501356001600160401b0381111561368e57600080fd5b8501601f8101871361369f57600080fd5b6136ae87823560208401613473565b91505092959194509250565b600080604083850312156136cd57600080fd5b6136d6836134b1565b91506135fa60208401613585565b600080604083850312156136f757600080fd5b613700836134b1565b946020939093013593505050565b60008060006040848603121561372357600080fd5b83356001600160401b038082111561373a57600080fd5b613746878388016134cd565b9095509350602086013591508082111561375f57600080fd5b5061376c86828701613518565b9150509250925092565b6000602080838503121561378957600080fd5b82356001600160401b03808211156137a057600080fd5b818501915085601f8301126137b457600080fd5b81356137c261348182613ff3565b80828252858201915085850189878560051b88010111156137e257600080fd5b6000805b8581101561381d578235878111156137fc578283fd5b61380a8d8b838c0101613595565b86525093880193918801916001016137e6565b50919a9950505050505050505050565b60006020828403121561383f57600080fd5b81356001600160401b0381111561385557600080fd5b612bea84828501613518565b60006020828403121561387357600080fd5b61287282613585565b60006020828403121561388e57600080fd5b5035919050565b600080604083850312156138a857600080fd5b823591506135fa602084016134b1565b6000602082840312156138ca57600080fd5b8135612872816141a4565b6000602082840312156138e757600080fd5b8151612872816141a4565b60006020828403121561390457600080fd5b81356001600160401b0381111561391a57600080fd5b612bea84828501613595565b60006020828403121561393857600080fd5b81516001600160401b0381111561394e57600080fd5b8201601f8101841361395f57600080fd5b805161396d61348182614016565b81815285602083850101111561398257600080fd5b61399382602083016020860161409f565b95945050505050565b6000806000606084860312156139b157600080fd5b833592506020808501356001600160401b03808211156139d057600080fd5b818701915087601f8301126139e457600080fd5b81356139f261348182613ff3565b8082825285820191508585018b878560051b8801011115613a1257600080fd5b600095505b83861015613a3c57613a28816134b1565b835260019590950194918601918601613a17565b50965050506040870135925080831115613a5557600080fd5b505061376c86828701613518565b600080600080600080600060c0888a031215613a7e57600080fd5b873596506020880135955060408801356001600160401b0380821115613aa357600080fd5b613aaf8b838c016134cd565b909750955060608a0135945060808a0135915080821115613acf57600080fd5b50613adc8a828b01613518565b925050613aeb60a089016134b1565b905092959891949750929550565b60008151808452613b1181602086016020860161409f565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680613b3f57607f831692505b6020808410821415613b6157634e487b7160e01b600052602260045260246000fd5b818015613b755760018114613b8657613bb3565b60ff19861689528489019650613bb3565b60008881526020902060005b86811015613bab5781548b820152908501908301613b92565b505084890196505b50505050505092915050565b60008351613bd181846020880161409f565b835190830190613be581836020880161409f565b01949350505050565b60008351613c0081846020880161409f565b61399381840185613b25565b683d913730b6b2911d1160b91b81526000613c2a6009830187613b25565b61088b60f21b8082526e113232b9b1b934b83a34b7b7111d1160891b6002830152613c586011830188613b25565b818152691134b6b0b3b2911d101160b11b60028201529150613c7d600c830187613b25565b9081527f2261747472696275746573223a5b7b2274726169745f74797065223a2274797060028201526b329116113b30b63ab2911d1160a11b60228201529050613cca602e820185613b25565b62227d5d60e81b8152607d60f81b6003820152600401979650505050505050565b607b60f81b815267113730b6b2911d1160c11b60018201526000613d12600983018a613b25565b61202360f01b81528851613d2d816002840160208d0161409f565b61088b60f21b9101600281018290526e113232b9b1b934b83a34b7b7111d1160891b600482015290613d62601383018a613b25565b908152691134b6b0b3b2911d101160b11b60028201529050613d87600c820188613b25565b90508551613d99818360208a0161409f565b602d60f81b91019081528451613db681600184016020890161409f565b613dd6613dc860018385010187613b25565b61088b60f21b815260020190565b9b9a5050505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613e1d81601d85016020870161409f565b91909101601d0192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613e6281601785016020880161409f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613e9381602884016020880161409f565b01602801949350505050565b6d2261747472696275746573223a5b60901b81527f7b2274726169745f74797065223a2274797065222c2276616c7565223a220000600e8201526000613ee8602c830185613b25565b62089f4b60ea1b81527f7b2274726169745f74797065223a227465616d222c2276616c7565223a2200006003820152613f246021820185613b25565b62227d5d60e81b8152607d60f81b600382015260040195945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613f7690830184613af9565b9695505050505050565b6020815260006128726020830184613af9565b6020808252601690820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715613feb57613feb61418e565b604052919050565b60006001600160401b0382111561400c5761400c61418e565b5060051b60200190565b60006001600160401b0382111561402f5761402f61418e565b50601f01601f191660200190565b600082198211156140505761405061414c565b500190565b60008261406457614064614162565b500490565b60008160001904831182151516156140835761408361414c565b500290565b60008282101561409a5761409a61414c565b500390565b60005b838110156140ba5781810151838201526020016140a2565b83811115611de85750506000910152565b6000816140da576140da61414c565b506000190190565b600181811c908216806140f657607f821691505b6020821081141561411757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156141315761413161414c565b5060010190565b60008261414757614147614162565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461173457600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122008197aec02bdc4b667ffc5ba247d989bc85ca88cb5f09f516753ae73ba309fb864736f6c63430008070033

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.