ETH Price: $2,299.42 (+5.00%)

DCC (DCC)
 

Overview

TokenID

2974

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The First NFT Project of Nine Chronicles

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DCC

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

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

import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "erc721a/contracts/ERC721A.sol";
import "./interfaces/IDCC.sol";

/*
* @author Karl
* @notice Token metadata (e.g., NFT traits) is stored in this contract (on-chain). Therefore, tokenURI is generated
* on chain. The reason that traits are stored in the contract is to provide a program
* that gives additional rewards when nft staking if certain combinations of traits are collected. So the reveal process
* is also carried out within the contract. When revealing, if a random number is entered into the contract,
* the unique combinations of traits are fixed according to the number.
*/
contract DCC is IDCC, AccessControlEnumerable, ERC721A, Ownable {
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant EXTRA_UPGRADE_ROLE = keccak256("EXTRA_UPGRADE_ROLE");

    string private baseImageURI = "ipfs://Qmc8KWcEJaTCJpdSRrJGoYNBSWHioJGQB8W29mJRHA9pQL/";
    string private description = "D:CC is the secret society that serves the Cosmic Cat God the Grrreat. To spread its perfection across the galaxy, the Grrreatness has decentralized itself and shed its fur throughout the universe; this is the cat.";

    uint256 public constant MAX_QUANTITY_LIMIT = 3000;

    enum TraitType {BACKGROUND, SKIN, FACE, EARTAIL, ACCESSORY, HAIR, GLASSES, CAT}
    uint256 public TRAITS_COUNT = 8;

    /*
    * A NFT can have up to 8 traits.
    * Bit operation is used to express all traits as one uint256 variable.
    * Each trait takes 6 bits.
    * Therefore, the number of traits must not exceed 63 (0 means not used).
    */
    uint256 public BITS_PER_ATTR = 6;
    uint256 public BITS_MASK_ATTR = 0x3f;
    /*
    * Since traitBits never change after reveal, memoization can save gas fee.
    */
    mapping(uint256 => uint256) private traitBitsMemoized;

    string[8] public TRAITS_NAME;
    /*
    * Probability that the trait will not appear
    */
    uint256[8] public TRAITS_HIDDEN;
    /*
    * For quick probability calculation
    */
    uint256[8] public TRAITS_RARITY_SUM;

    /*
    * Trait values
    */
    mapping(uint256 => string[]) public TRAITS_ATTR;
    /*
    * trait rarities
    */
    mapping(uint256 => uint256[]) public TRAITS_RARITY;


    /*
    * One trait may be added in the future.
    */
    string public extraTraitName;
    string[] public extraTraitAttr;
    mapping(uint256 => uint256) public extraTrait;

    /*
    * For quick probability calculation
    */
    uint256 public numOfCombination;

    /*
     * Two unpredictable numbers for REVEAL.
     */
    uint256 private revealNumber;
    uint256 private revealOffset;

    /*
     * To prevent tampering after sale, we provide a hash of revealNumber and revealOffset before sale.
     */
    bytes32 public revealHash;
    uint256 private revealSalt;

    /* ====== EVENTS ======= */
    event REVEALED(uint256 revealNumber, uint256 revealOffset);
    event MINTED(address indexed user, uint256 quantity);
    event RESERVED(address indexed user, uint256 quantity);
    event REVEALED_EXTRA_TRAITS(string name, string[] attrs);
    event UPDATE_TOKEN_EXTRA_TRAIT(uint256 indexed tokenId, uint256 attrIndex);
    event SET_REVEAL_HASH();

    /* ====== CONSTRUCTOR ====== */

    constructor() ERC721A("DCC", "DCC") {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(MINTER_ROLE, _msgSender());

        uint t = uint(TraitType.BACKGROUND);
        TRAITS_NAME[t] = "Background";
        TRAITS_ATTR[t] = ["", "Neutral", "Water", "Wind", "Earth", "Fire"];
        TRAITS_RARITY[t] = [0, 128, 64, 64, 64, 64];
        for (uint a = 0; a < TRAITS_RARITY[t].length; a++) TRAITS_RARITY_SUM[t] += TRAITS_RARITY[t][a];

        t = uint(TraitType.SKIN);
        TRAITS_NAME[t] = "Skin Color";
        TRAITS_ATTR[t] = ["", "Tone 1", "Tone 2", "Tone 3", "Tone 4"];
        TRAITS_RARITY[t] = [0, 128, 40, 40, 40];
        for (uint a = 0; a < TRAITS_RARITY[t].length; a++) TRAITS_RARITY_SUM[t] += TRAITS_RARITY[t][a];

        t = uint(TraitType.FACE);
        TRAITS_NAME[t] = "Face";
        TRAITS_ATTR[t] = ["", "Smiley", "Curious Yellow", "Peaceful", "Calm Red", "Calm Pink", "Playful Red", "Playful Yellow", "Pouty Green", "Pouty Blue", "Seducing Pink", "Proud", "Blushed Green", "Blushed Blue", "Curious Teal", "Content Purple", "Content Gold", "Meditating Thick", "Meditating Thin", "Blushed Gold", "Determined Blue", "Determined Brown", "Determined Green", "Determined Dark Brown", "Playful & Blushed", "Shy Pink", "Shy Skyblue", "Blushed & Pouty", "Cold Orange", "Cold Purple", "Perplexed Fuchsia", "Perplexed Purple", "Timid Skyblue", "Timid Pink", "Seducing Yellow", "Confident Purple", "Confident Closed", "Introverted Purple", "Introverted Dark", "Cry Baby", "Smile & White", "Cheerful Green", "Unyielding", "Jester", "Enlightened", "Enlightened Lashes", "Very Shy", "Odd Eyes (G&B)", "Grinning", "Blushed Red", "Blushed & Proud", "Odd Eyes (G&Y)", "Odd Eyes (R&B)", "Composed", "Cry Baby Green", "Blue Fallen in Love", "Starlight Eyes", "Shining Smile", "Pink Fallen in Love", "Brainwashed", "CCGG"];
        TRAITS_RARITY[t] = [0, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 48, 48, 48, 48, 30];

        for (uint a = 0; a < TRAITS_RARITY[t].length; a++) TRAITS_RARITY_SUM[t] += TRAITS_RARITY[t][a];

        t = uint(TraitType.EARTAIL);
        TRAITS_NAME[t] = "Ear & Tail";
        TRAITS_ATTR[t] = ["", "Yellow Kitty Cat", "Red Kitty Cat", "Green Kitty Cat", "Blue Kitty Cat", "Karakal", "Tiger", "Lion", "Leopard", "Red Fox", "Black Panther", "American Curl", "Arctic Fox", "Raccoon", "Sphinx Cat", "Red Panda", "Sand Cat", "Snow Leopard", "Main Coon", "Skunk", "Stallion", "Space Goblin", "Blasting Speaker", "Extra Fluffy", "Crystal Glacier", "Ancient Ruins", "Out of the Oven", "Delicate Origami", "Hell Bringer", "Magma Lobster", "Starlit Lobster", "Pink Coral Island", "Red Coral Island", "Frost Dragon", "The Fallen One", "Siren's Conch", "Essence of Flame", "Essence of Ocean", "Moonlight Elves", "Archangel Wings", "Fallen Angel", "Coronation Crown", "Pharaoh's Guard", "CCGG"];
        TRAITS_RARITY[t] = [0, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 90, 90, 90, 90, 90, 90, 90, 90, 70, 70, 70, 70, 70, 70, 70, 70, 70, 48, 48, 48, 48, 48, 30];
        for (uint a = 0; a < TRAITS_RARITY[t].length; a++) TRAITS_RARITY_SUM[t] += TRAITS_RARITY[t][a];

        t = uint(TraitType.ACCESSORY);
        TRAITS_NAME[t] = "Accessory";
        TRAITS_ATTR[t] = ["", "Pink Bubble Gum", "Freckles", "Kitty Whiskers", "Fashion Bandage", "White Mask", "Black Mask", "Poolside Whistle", "Pink Doughnut", "Mouth Spot", "Eyes Spot", "Sus White Beard", "Pepperoni Pizza"];
        TRAITS_RARITY[t] = [0, 128, 128, 128, 128, 128, 128, 128, 128, 80, 80, 80, 50];
        for (uint a = 0; a < TRAITS_RARITY[t].length; a++) TRAITS_RARITY_SUM[t] += TRAITS_RARITY[t][a];
        TRAITS_HIDDEN[t] = 70;

        t = uint(TraitType.HAIR);
        TRAITS_NAME[t] = "Hair";
        TRAITS_ATTR[t] = ["", "Layered Brown", "Bob Cut Beige", "Long Pink", "Windy Green", "Spiky Mustard", "Layered Orange", "Layered Navy", "Layered Jade", "Layered Metal", "White Tail", "Long Plum", "Windy Carmine", "Windy Orchid", "Spiky Sepia", "Spiky Coal", "Curly Wine", "Curly Sand", "Curly Sage", "Bob Cut Platinum", "Bob Cut Raven", "Spiky Rose", "Curly Smoke", "Curly Frost", "Bob Cut Midnight", "Bob Cut Ash", "Long Eggnog", "Funky Sangria", "Funky Cobalt", "Magenta Cobra", "Biscotti Cobra", "Mint C-Curl", "Lavender C-Curl", "Long Onyx", "Funky New Lemon", "Fuchsia Bob Cut", "Onyx Shaggy", "Long Peach", "Emerald Shaggy", "Amber Shaggy", "Golden Cobra", "Mystic Forest", "Mystic Ocean", "Mystic Sunset", "Silver Braid", "Golden Braid", "Golden Curls", "Pink Dreams", "Dreamy Curls", "Rainbow Dance", "Rainbow Falls"];
        TRAITS_RARITY[t] = [0, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 60, 60, 60, 60, 60, 60, 60, 40, 40, 40, 40, 30, 30, 30, 18, 18];
        for (uint a = 0; a < TRAITS_RARITY[t].length; a++) TRAITS_RARITY_SUM[t] += TRAITS_RARITY[t][a];

        t = uint(TraitType.GLASSES);
        TRAITS_NAME[t] = "Glasses";
        TRAITS_ATTR[t] = ["", "Circular Black", "Circular Thin", "Nerdy", "Orange Sunglasses", "Red Granny Specs", "Leopard", "Cool Aviators", "Fancy Sunglasses"];
        TRAITS_RARITY[t] = [0, 128, 128, 128, 128, 128, 128, 28, 28];
        for (uint a = 0; a < TRAITS_RARITY[t].length; a++) TRAITS_RARITY_SUM[t] += TRAITS_RARITY[t][a];
        TRAITS_HIDDEN[t] = 90;

        t = uint(TraitType.CAT);
        TRAITS_NAME[t] = "Cat";
        TRAITS_ATTR[t] = ["", "Pondering Cat", "Stretching Cat", "Big Eyed Cat", "Dozing Cat"];
        TRAITS_RARITY[t] = [0, 128, 128, 128, 128];
        for (uint a = 0; a < TRAITS_RARITY[t].length; a++) TRAITS_RARITY_SUM[t] += TRAITS_RARITY[t][a];

        numOfCombination = 1;
        for (uint i = 0; i < TRAITS_COUNT; i++) {
            numOfCombination *= (TRAITS_ATTR[i].length - 1);
        }

        // First trait is mandatory.
        require(TRAITS_HIDDEN[0] == 0);
    }

    /* ====== PUBLIC FUNCTIONS (onlyRole) ====== */

    // Call from only DCCMinter contract
    function mintDCC(address _user, uint256 _quantity) external onlyRole(MINTER_ROLE) {
        if (totalSupply() + _quantity > MAX_QUANTITY_LIMIT) revert ExceedsLimit();
        //_safeMint checks if _user and _quantity is 0
        _safeMint(_user, _quantity);

        emit MINTED(_user, _quantity);
    }

    // Call from only owner
    function mintReserved(address _user, uint256 _quantity) external onlyOwner {
        if (totalSupply() + _quantity > MAX_QUANTITY_LIMIT) revert ExceedsLimit();
        //_safeMint checks if _user and _quantity is 0
        _safeMint(_user, _quantity);

        emit RESERVED(_user, _quantity);
    }

    // Call from only DCCExtra contract
    function setExtraTrait(uint256 _tokenId, uint256 _attrIndex) external onlyRole(EXTRA_UPGRADE_ROLE) {
        if (_attrIndex >= extraTraitAttr.length) revert InvalidIndex();
        if (!_validTokenId(_tokenId)) revert InvalidTokenId();
        extraTrait[_tokenId] = _attrIndex;

        emit UPDATE_TOKEN_EXTRA_TRAIT(_tokenId, _attrIndex);
    }

    /* ====== VIEW FUNCTIONS ====== */

    function getAllTraits(TraitType _traitType) external view returns (string[] memory) {
        return TRAITS_ATTR[uint(_traitType)];
    }

    function getExtraTrait(uint256 _tokenId) external view returns (uint256) {
        return extraTrait[_tokenId];
    }

    /*
    * @notice The revealNumber 0 means before revealing and all traits are unknown.
    */
    function isRevealed() public view returns (bool) {
        return revealNumber > 0;
    }

    function checkRevealHashIsValid() public view returns (bool) {
        return revealHash == keccak256(abi.encodePacked(revealNumber, revealOffset, revealSalt));
    }

    /*
    * @notice Since we do reveal on-chain, we have to convert tokenId to certain traits combination.
    * This must not be predictable until reveal, and then each combination must be unique.
    * For this, we use the idea of non-duplicate item selection using co-prime number.
    * Therefore [revealNumber] and [numOfCombination] must be co-prime.
    *
    * @return this is a index of all combinations.
    * For example, we have 3 traits, each with 3 attributes,
    * the first combination means [0,0,0] and the last combination means [2,2,2]
    */
    function combinationIndex(uint256 _tokenId) public view returns (uint256) {
        if (!_validTokenId(_tokenId)) return 0;
        return (_tokenId * revealNumber + revealOffset) % numOfCombination;
    }

    /*
    * @notice All traits are combined to one variable using bit operation.
    * 5 bits represents the attribute index of one trait. Through bit operation, It can be speed up
    * to calculate of combination when staking. this can also reduce gas price.
    *
    * see also: function combinationIndex(uint256)
    */
    function getTraitBits(uint256 _tokenId) public view override returns (uint256) {
        if (!isRevealed()) return 0;
        if (!_validTokenId(_tokenId)) return 0;

        uint256 combIdx = combinationIndex(_tokenId);
        if (extraTrait[_tokenId] > 0) {
            return _traitBitsWithExtraTrait(_getTraitBits(combIdx), _tokenId);
        }
        return _getTraitBits(combIdx);
    }

    function getTraitBitsPreview(uint256 _tokenId, uint256 _revealNumber, uint256 _revealOffset) public view returns (uint256) {
        if (!_validTokenId(_tokenId)) return 0;

        return _getTraitBits((_tokenId * _revealNumber + _revealOffset) % numOfCombination);
    }

    function getTraitBitsMemoized(uint256 _tokenId) external view override returns (uint256) {
        if (traitBitsMemoized[_tokenId] > 0 && extraTrait[_tokenId] > 0) {
            return _traitBitsWithExtraTrait(traitBitsMemoized[_tokenId], _tokenId);
        }
        return traitBitsMemoized[_tokenId];
    }

    function memoizeTraitBits(uint256 _tokenId) external override returns (uint256) {
        if (!isRevealed()) revert ForbidMemoizationBeforeReveal();
        if (!_validTokenId(_tokenId)) revert InvalidTokenId();

        uint256 combIdx = combinationIndex(_tokenId);
        traitBitsMemoized[_tokenId] = _getTraitBits(combIdx);
        return traitBitsMemoized[_tokenId];
    }

    /*
    * @notice The tokenURI is auto-generated on-chain.
    * This is because our NFT traits need to be referenced and utilized by other contracts,
    * so all traits must be stored on-chain.
    * @return Returns json that is dataURI format base64 encoded.
    */
    function tokenURI(uint256 _tokenId) override public view returns (string memory) {
        if (!_validTokenId(_tokenId)) revert InvalidTokenId();

        string memory output = string(abi.encodePacked('{'));
        output = string(abi.encodePacked(output, '"name": "', name(), ' #', Strings.toString(_tokenId), '",'));
        output = string(abi.encodePacked(output, '"description": "', description, '",'));
        output = string(abi.encodePacked(output, '"image": "', _imageURI(_tokenId), '",'));
        output = string(abi.encodePacked(output, '"attributes": ['));
        if (isRevealed()) {
            uint256 traitBits = getTraitBits(_tokenId);

            // First trait is mandatory
            output = string(abi.encodePacked(output, '{"trait_type": "', TRAITS_NAME[0] ,'", "value": "', _extractTrait(TraitType(0), traitBits), '"}'));

            for (uint i = 1; i < TRAITS_COUNT; i++) {
                if (_getIndexFromTraitBits(TraitType(i), traitBits) > 0) {
                    output = string(abi.encodePacked(output, ',{"trait_type": "', TRAITS_NAME[i] ,'", "value": "', _extractTrait(TraitType(i), traitBits), '"}'));
                }
            }
            if (extraTrait[_tokenId] > 0) {
                output = string(abi.encodePacked(output,',{"trait_type": "', extraTraitName ,'", "value": "', extraTraitAttr[extraTrait[_tokenId]], '"}'));
            }
        }
        output = string(abi.encodePacked(output, ']}'));

        string memory json = Base64.encode(bytes(output));
        output = string(abi.encodePacked('data:application/json;base64,', json));

        return output;
    }

    function totalMinted() public view returns (uint256) {
        return _totalMinted();
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721A) returns (bool) {
        return interfaceId == type(IAccessControlEnumerable).interfaceId
        || interfaceId == 0x01ffc9a7 // ERC165 interface ID for ERC165.
        || interfaceId == 0x80ac58cd // ERC165 interface ID for ERC721.
        || interfaceId == 0x5b5e139f
        || super.supportsInterface(interfaceId);
    }

    /* ====== INTERNAL FUNCTIONS ====== */

    /*
    * @notice The imageURI is auto-generated by combining all public trait names of the NFT.
    * Naturally, it returns unknown.png before revealing.
    */
    function _imageURI(uint256 _tokenId) internal view returns (string memory) {
        string memory output = string(abi.encodePacked(baseImageURI));

        if (isRevealed()) {
            if (extraTrait[_tokenId] > 0) {
                string memory extraValue = Strings.toString(extraTrait[_tokenId]);
                output = string(abi.encodePacked(output, extraValue, '/'));
            }
            uint256 traitBits = getTraitBits(_tokenId);
            for (uint i = 0; i < TRAITS_COUNT; i++) {
                string memory traitValue = Strings.toString(_getIndexFromTraitBits(TraitType(i), traitBits));
                string memory suffix = i < (TRAITS_COUNT - 1) ? '-' : '';
                output = string(abi.encodePacked(output, traitValue, suffix));
            }
        } else {
            output = string(abi.encodePacked(output, 'unknown'));
        }

        return output;
    }

    /*
    * @notice This function returns the attribute index of a specific trait from
    * the traitBits generated by getTraitBits(tokenId)
    * 0x1f == 11111 (binary)
    * @param traitType
    * @param traitBits is from getTraitBits
    * @return attribute index of trait
    */
    function _getIndexFromTraitBits(TraitType _traitType, uint256 _traitBits) internal view returns (uint256) {
        if (_traitBits == 0) return 0;
        return (_traitBits >> (BITS_PER_ATTR * uint(_traitType))) & BITS_MASK_ATTR;
    }

    function _getTraitBits(uint256 _combIdx) internal view returns (uint256) {
        uint256 combIdx = _combIdx;
        uint256 rand = uint256(keccak256(abi.encodePacked(Strings.toString(combIdx))));

        uint256 result;

        for (uint i = 0; i < TRAITS_COUNT; i++) {
            //If it match to the TRAITS_HIDDEN probability, This NFT of the tokenId has no this trait.
            if (TRAITS_HIDDEN[i] > 0 && _extract7Bits(rand, i) < TRAITS_HIDDEN[i]) {
                continue;
            }

            //Extract attribute index from combination index.
            uint256 attrIndex = (combIdx % (TRAITS_ATTR[i].length - 1)) + 1;

            //if TRAITS_RARITY is 128(maximum), this case will pass.
            //However, if it is less than 128, it will pluck attribute again based on probability.
            //There is the possibility of NFT traits duplication here,
            //but we can solve it by finding the appropriate revealNumber.
            if (_extract7Bits(rand, i + TRAITS_COUNT) >= TRAITS_RARITY[i][attrIndex]) {
                attrIndex = _pluckAttrWithRarity(TRAITS_RARITY[i], _extract32Bits(rand, i) % TRAITS_RARITY_SUM[i]);
            }

            result |= attrIndex << (BITS_PER_ATTR * i);

            combIdx = combIdx / (TRAITS_ATTR[i].length - 1);
        }
        return result;
    }

    function _extractTrait(TraitType _traitType, uint256 _traitBits) internal view returns (string memory) {
        uint256 index = _getIndexFromTraitBits(_traitType, _traitBits);
        return TRAITS_ATTR[uint(_traitType)][index];
    }

    function _pluckAttrWithRarity(uint256[] storage _rarity, uint256 _seed) internal view returns (uint256) {
        for (uint attr = 1; attr < _rarity.length; attr++) {
            if (_seed < _rarity[attr]) {
                return attr;
            } else {
                _seed -= _rarity[attr];
            }
        }
        return 0;
    }

    function _extract7Bits(uint256 _rand, uint256 _index) internal pure returns (uint256) {
        return ((_rand >> _index * 7) & 127);
    }

    function _extract32Bits(uint256 _rand, uint256 _index) internal pure returns (uint256) {
        return ((_rand >> _index * 32) & 0xffffffff);
    }

    function _traitBitsWithExtraTrait(uint256 _traitBits, uint256 _tokenId) internal view returns (uint256) {
        return _traitBits | (extraTrait[_tokenId] << (BITS_PER_ATTR * TRAITS_COUNT));
    }

    function _validTokenId(uint256 _tokenId) internal pure returns (bool) {
        return _tokenId > 0 && _tokenId <= MAX_QUANTITY_LIMIT;
    }

    function _startTokenId() internal pure override returns (uint256) {
        return 1;
    }
    /* ====== ADMIN FUNCTIONS ====== */

    function setDescription(string memory _description) external onlyOwner {
        description = _description;
    }

    function setBaseImageURI(string memory _baseImageURI) external onlyOwner {
        baseImageURI = _baseImageURI;
    }

    function setTraitName(TraitType _traitType, uint256 _index, string memory _name) external onlyOwner {
        TRAITS_ATTR[uint(_traitType)][_index] = _name;
    }

    function setRevealHash(bytes32 _revealHash) external onlyOwner {
        revealHash = _revealHash;
        emit SET_REVEAL_HASH();
    }

    /*
    * @notice When this value is assigned, all traits are determined and revealed. (i.e., 0 is before REVEAL.)
    */
    function reveal(uint256 _number, uint256 _offset, uint256 _salt) external onlyOwner {
        if (revealNumber > 0) revert AlreadyRevealed();
        revealNumber = _number;
        revealOffset = _offset;
        revealSalt = _salt;

        emit REVEALED(_number, _offset);
    }

    function revealExtraTraits(string memory _name, string[] memory _attrs) external onlyOwner {
        if (_attrs.length < extraTraitAttr.length) revert ReduceAttributesSize();
        extraTraitName = _name;
        extraTraitAttr = _attrs;

        emit REVEALED_EXTRA_TRAITS(_name, _attrs);
    }
}

File 2 of 16 : IDCC.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./ITraitBits.sol";

interface IDCC is ITraitBits {
    error ExceedsLimit();
    error InvalidIndex();
    error InvalidTokenId();
    error AlreadyRevealed();
    error ReduceAttributesSize();
    error ForbidMemoizationBeforeReveal();
}

File 3 of 16 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 4 of 16 : 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 5 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 6 of 16 : 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 7 of 16 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

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

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

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

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

import "erc721a/contracts/IERC721A.sol";

interface ITraitBits {
    function getTraitBits(uint256 _tokenId) external view returns (uint256);
    function getTraitBitsMemoized(uint256 _tokenId) external view returns (uint256);
    function memoizeTraitBits(uint256 _tokenId) external returns (uint256);
}

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 14 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyRevealed","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ExceedsLimit","type":"error"},{"inputs":[],"name":"ForbidMemoizationBeforeReveal","type":"error"},{"inputs":[],"name":"InvalidIndex","type":"error"},{"inputs":[],"name":"InvalidTokenId","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":"ReduceAttributesSize","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"MINTED","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"RESERVED","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"revealNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"revealOffset","type":"uint256"}],"name":"REVEALED","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string[]","name":"attrs","type":"string[]"}],"name":"REVEALED_EXTRA_TRAITS","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":[],"name":"SET_REVEAL_HASH","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"attrIndex","type":"uint256"}],"name":"UPDATE_TOKEN_EXTRA_TRAIT","type":"event"},{"inputs":[],"name":"BITS_MASK_ATTR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BITS_PER_ATTR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXTRA_UPGRADE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_QUANTITY_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"TRAITS_ATTR","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAITS_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TRAITS_HIDDEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TRAITS_NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"TRAITS_RARITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"TRAITS_RARITY_SUM","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":"checkRevealHashIsValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"combinationIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"extraTrait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"extraTraitAttr","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extraTraitName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum DCC.TraitType","name":"_traitType","type":"uint8"}],"name":"getAllTraits","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"getExtraTrait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTraitBits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getTraitBitsMemoized","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_revealNumber","type":"uint256"},{"internalType":"uint256","name":"_revealOffset","type":"uint256"}],"name":"getTraitBitsPreview","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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"memoizeTraitBits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintDCC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numOfCombination","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_number","type":"uint256"},{"internalType":"uint256","name":"_offset","type":"uint256"},{"internalType":"uint256","name":"_salt","type":"uint256"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string[]","name":"_attrs","type":"string[]"}],"name":"revealExtraTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseImageURI","type":"string"}],"name":"setBaseImageURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_attrIndex","type":"uint256"}],"name":"setExtraTrait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_revealHash","type":"bytes32"}],"name":"setRevealHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum DCC.TraitType","name":"_traitType","type":"uint8"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"string","name":"_name","type":"string"}],"name":"setTraitName","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":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e0604052603660808181529062006ca160a03980516200002991600b9160209091019062002d45565b5060405180610100016040528060d6815260200162006cd760d6913980516200005b91600c9160209091019062002d45565b506008600d556006600e55603f600f553480156200007857600080fd5b5060408051808201825260038082526244434360e81b602080840182815285518087019096529285528401528151919291620000b79160049162002d45565b508051620000cd90600590602084019062002d45565b5050600160025550620000e03362002b8e565b620000ed60003362002be0565b620001197f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362002be0565b60408051808201909152600a80825269109858dad9dc9bdd5b9960b21b602090920191825260009162000150916011919062002d45565b506040805160e081018252600060c08201818152825282518084018452600781526613995d5d1c985b60ca1b60208281019190915280840191909152835180850185526005808252642bb0ba32b960d91b82840152848601919091528451808601865260048082526315da5b9960e21b828501526060860191909152855180870187529182526408ac2e4e8d60db1b82840152608085019190915284518086018652908152634669726560e01b8183015260a084015284825260299052919091206200021e91600662002dd4565b506040805160c0810182526000808252608060208084018290528385018590526060840185905290830184905260a08301849052848252602a9052919091206200026a91600662002e34565b5060005b6000828152602a6020526040902054811015620002f6576000828152602a60205260409020805482908110620002a857620002a8620030dd565b906000526020600020015460218360088110620002c957620002c9620030dd565b016000828254620002db919062003109565b90915550819050620002ed8162003124565b9150506200026e565b505060408051808201909152600a8082526929b5b4b71021b7b637b960b11b60209092019182526001916200032f916012919062002d45565b506040805160c081018252600060a08201818152825282518084018452600680825265546f6e65203160d01b6020838101919091528085019290925284518086018652818152652a37b732901960d11b81840152848601528451808601865281815265546f6e65203360d01b8184015260608501528451808601865290815265151bdb99480d60d21b8183015260808401528482526029905291909120620003d991600562002e77565b506040805160a08101825260008082526080602080840182905260288486018190526060850181905291840191909152848252602a9052919091206200042191600562002e34565b5060005b6000828152602a6020526040902054811015620004ad576000828152602a602052604090208054829081106200045f576200045f620030dd565b906000526020600020015460218360088110620004805762000480620030dd565b01600082825462000492919062003109565b90915550819050620004a48162003124565b91505062000425565b5050604080518082019091526004808252634661636560e01b6020909201918252600291620004e0916013919062002d45565b50604080516107c08101825260006107a08201818152825282518084018452600680825265536d696c657960d01b6020838101919091528085019290925284518086018652600e8082526d437572696f75732059656c6c6f7760901b82850152858701919091528551808701875260088082526714195858d9599d5b60c21b828601526060870191909152865180880188528181526710d85b1b4814995960c21b81860152608087015286518088018852600981526843616c6d2050696e6b60b81b8186015260a087015286518088018852600b8082526a141b185e599d5b0814995960aa1b8287015260c0880191909152875180890189528381526d506c617966756c2059656c6c6f7760901b8187015260e0880152875180890189528181526a2837baba3c9023b932b2b760a91b8187015261010088015287518089018952600a80825269506f75747920426c756560b01b828801526101208901919091528851808a018a52600d8082526c5365647563696e672050696e6b60981b828901526101408a01919091528951808b018b526005815264141c9bdd5960da1b818901526101608a01528951808b018b528181526c21363ab9b432b21023b932b2b760991b818901526101808a01528951808b018b52600c8082526b426c757368656420426c756560a01b828a01526101a08b01919091528a51808c018c528181526b10dd5c9a5bdd5cc81519585b60a21b818a01526101c08b01528a51808c018c528681526d436f6e74656e7420507572706c6560901b818a01526101e08b01528a51808c018c528181526b10dbdb9d195b9d0811dbdb1960a21b818a01526102008b01528a51808c018c5260108082526f4d656469746174696e6720546869636b60801b828b01526102208c01919091528b51808d018d52600f8082526e26b2b234ba30ba34b733902a3434b760891b828c01526102408d01919091528c51808e018e529283526b109b1d5cda19590811dbdb1960a21b838b01526102608c01929092528b51808d018d528281526e44657465726d696e656420426c756560881b818b01526102808c01528b51808d018d528181526f2232ba32b936b4b732b210213937bbb760811b818b01526102a08c01528b51808d018d528181526f2232ba32b936b4b732b21023b932b2b760811b818b01526102c08c01528b51808d018d52601581527f44657465726d696e6564204461726b2042726f776e0000000000000000000000818b01526102e08c01528b51808d018d52601180825270141b185e599d5b080988109b1d5cda1959607a1b828c01526103008d01919091528c51808e018e52878152675368792050696e6b60c01b818c01526103208d01528c51808e018e528681526a53687920536b79626c756560a81b818c01526103408d01528c51808e018e528381526e426c7573686564202620506f75747960881b818c01526103608d01528c51808e018e528681526a436f6c64204f72616e676560a81b818c01526103808d01528c51808e018e528681526a436f6c6420507572706c6560a81b818c01526103a08d01528c51808e018e5290815270506572706c65786564204675636873696160781b818b01526103c08c01528b51808d018d528181526f506572706c6578656420507572706c6560801b818b01526103e08c01528b51808d018d528381526c54696d696420536b79626c756560981b818b01526104008c01528b51808d018d528481526954696d69642050696e6b60b01b818b01526104208c01528b51808d018d528281526e5365647563696e672059656c6c6f7760881b818b01526104408c01528b51808d018d528181526f436f6e666964656e7420507572706c6560801b818b01526104608c01528b51808d018d528181526f10dbdb999a59195b9d0810db1bdcd95960821b818b01526104808c01528b51808d018d52601280825271496e74726f76657274656420507572706c6560701b828c01526104a08d01919091528c51808e018e529182526f496e74726f766572746564204461726b60801b828b01526104c08c01919091528b51808d018d5286815267437279204261627960c01b818b01526104e08c01528b51808d018d528381526c536d696c65202620576869746560981b818b01526105008c01528b51808d018d528781526d21b432b2b9333ab61023b932b2b760911b818b01526105208c01528b51808d018d5293845269556e7969656c64696e6760b01b848a01526105408b01939093528a51808c018c52968752652532b9ba32b960d11b878901526105608a01969096528951808b018b528381526a115b9b1a59da1d195b995960aa1b818901526105808a01528951808b018b5291825271456e6c69676874656e6564204c617368657360701b828801526105a08901919091528851808a018a5283815267566572792053687960c01b818801526105c08901528851808a018a528481526d4f6464204579657320284726422960901b818801526105e08901528851808a018a52838152674772696e6e696e6760c01b818801526106008901528851808a018a528281526a109b1d5cda19590814995960aa1b818801526106208901528851808a018a529485526e109b1d5cda1959080988141c9bdd59608a1b85870152610640880194909452875180890189528381526d4f6464204579657320284726592960901b81870152610660880152875180890189528381526d4f6464204579657320285226422960901b81870152610680880152875180890189529182526710dbdb5c1bdcd95960c21b828601526106a0870191909152865180880188528281526d21b93c902130b13c9023b932b2b760911b818601526106c08701528651808801885260138082527f426c75652046616c6c656e20696e204c6f766500000000000000000000000000828701526106e0880191909152875180890189529283526d537461726c69676874204579657360901b83860152610700870192909252865180880188529283526c5368696e696e6720536d696c6560981b83850152610720860192909252855180870187529081527f50696e6b2046616c6c656e20696e204c6f76650000000000000000000000000081840152610740850152845180860186529081526a109c985a5b9dd85cda195960aa1b818301526107608401528351808501855260048152634343474760e01b81830152610780840152848252602990529190912062000e1a91603d62002ec9565b50604080516107a0810182526000808252608060208084018290528385018290526060840182905281840182905260a0840182905260c0840182905260e08401829052610100840182905261012084018290526101408401829052610160840191909152605a61018084018190526101a084018190526101c084018190526101e08401819052610200840181905261022084018190526102408401819052610260840181905261028084018190526102a084018190526102c084018190526102e08401819052610300840181905261032084018190526103408401819052610360840181905261038084018190526103a084018190526103c084018190526103e08401819052610400840181905261042084018190526104408401819052610460840181905261048084018190526104a084018190526104c084018190526104e08401526046610500840181905261052084018190526105408401819052610560840181905261058084018190526105a084018190526105c084018190526105e08401819052610600840181905261062084018190526106408401819052610660840181905261068084018190526106a084018190526106c084018190526106e08401526030610700840181905261072084018190526107408401819052610760840152601e610780840152848252602a9052919091206200101e91603d62002e34565b5060005b6000828152602a6020526040902054811015620010aa576000828152602a602052604090208054829081106200105c576200105c620030dd565b9060005260206000200154602183600881106200107d576200107d620030dd565b0160008282546200108f919062003109565b90915550819050620010a18162003124565b91505062001022565b505060408051808201909152600a8082526911585c88098815185a5b60b21b6020909201918252600391620010e3916014919062002d45565b50604080516105a0810182526000610580820181815282528251808401845260108082526f16595b1b1bddc812da5d1d1e4810d85d60821b6020838101919091528085019290925284518086018652600d8082526c1499590812da5d1d1e4810d85d609a1b828501528587019190915285518087018752600f8082526e11dc99595b8812da5d1d1e4810d85d608a1b82860152606087019190915286518088018852600e8082526d109b1d594812da5d1d1e4810d85d60921b8287015260808801919091528751808901895260078082526612d85c985ad85b60ca1b8288015260a08901919091528851808a018a526005808252642a34b3b2b960d91b8289015260c08a01919091528951808b018b526004808252632634b7b760e11b828a015260e08b01919091528a51808c018c528381526613195bdc185c9960ca1b818a01526101008b01528a51808c018c52838152660a4cac8408cdef60cb1b818a01526101208b01528a51808c018c528681526c213630b1b5902830b73a3432b960991b818a01526101408b01528a51808c018c528681526c105b595c9a58d85b8810dd5c9b609a1b818a01526101608b01528a51808c018c52600a80825269082e4c6e8d2c6408cdef60b31b828b01526101808c01919091528b51808d018d52938452662930b1b1b7b7b760c91b848a01526101a08b01939093528a51808c018c529283526914dc1a1a5b9e0810d85d60b21b838901526101c08a01929092528951808b018b526009808252685265642050616e646160b81b828a01526101e08b01919091528a51808c018c5260088082526714d85b990810d85d60c21b828b01526102008c01919091528b51808d018d52600c8082526b14db9bddc813195bdc185c9960a21b828c01526102208d01919091528c51808e018e529283526826b0b4b71021b7b7b760b91b838b01526102408c01929092528b51808d018d5292835264536b756e6b60d81b838a01526102608b01929092528a51808c018c529182526729ba30b63634b7b760c11b828901526102808a01919091528951808b018b528181526b29b830b1b29023b7b13634b760a11b818901526102a08a01528951808b018b528681526f213630b9ba34b7339029b832b0b5b2b960811b818901526102c08a01528951808b018b528181526b457874726120466c7566667960a01b818901526102e08a01528951808b018b528481526e21b93cb9ba30b61023b630b1b4b2b960891b818901526103008a01528951808b018b528581526c416e6369656e74205275696e7360981b818901526103208a01528951808b018b528481526e27baba1037b3103a34329027bb32b760891b818901526103408a01528951808b018b528681526f44656c6963617465204f726967616d6960801b818901526103608a01528951808b018b528181526b2432b63610213934b733b2b960a11b818901526103808a01528951808b018b528581526c26b0b3b6b0902637b139ba32b960991b818901526103a08a01528951808b018b528481526e29ba30b93634ba102637b139ba32b960891b818901526103c08a01528951808b018b526011815270141a5b9ac810dbdc985b08125cdb185b99607a1b818901526103e08a01528951808b018b528681526f1499590810dbdc985b08125cdb185b9960821b818901526104008a01528951808b018b528181526b233937b9ba10223930b3b7b760a11b818901526104208a01528951808b018b529283526d5468652046616c6c656e204f6e6560901b838801526104408901929092528851808a018a529384526c0a6d2e4cadc4ee64086dedcc6d609b1b84870152610460880193909352875180890189528481526f457373656e6365206f6620466c616d6560801b81870152610480880152875180890189528481526f22b9b9b2b731b29037b31027b1b2b0b760811b818701526104a0880152875180890189528281526e4d6f6f6e6c6967687420456c76657360881b818701526104c0880152875180890189528281526e41726368616e67656c2057696e677360881b818701526104e0880152875180890189529081526b11985b1b195b88105b99d95b60a21b81860152610500870152865180880188529283526f21b7b937b730ba34b7b71021b937bbb760811b83850152610520860192909252855180870187529182526e141a185c985bda09dcc811dd585c99608a1b8284015261054085019190915284518086018652908152634343474760e01b8183015261056084015284825260299052919091206200176a91602c62002f1b565b5060408051610580810182526000808252608060208084018290528385018290526060840182905281840182905260a0840182905260c0840182905260e08401829052610100840182905261012084018290526101408401829052610160840182905261018084018290526101a084018290526101c084018290526101e084018290526102008401829052610220840182905261024084018290526102608401829052610280840191909152605a6102a084018190526102c084018190526102e08401819052610300840181905261032084018190526103408401819052610360840181905261038084015260466103a084018190526103c084018190526103e08401819052610400840181905261042084018190526104408401819052610460840181905261048084018190526104a084015260306104c084018190526104e0840181905261050084018190526105208401819052610540840152601e610560840152848252602a905291909120620018e691602c62002e34565b5060005b6000828152602a602052604090205481101562001972576000828152602a60205260409020805482908110620019245762001924620030dd565b906000526020600020015460218360088110620019455762001945620030dd565b01600082825462001957919062003109565b90915550819050620019698162003124565b915050620018ea565b5050604080518082019091526009808252684163636573736f727960b81b6020909201918252600491620019aa916015919062002d45565b50604080516101c08101825260006101a08201818152825282518084018452600f8082526e50696e6b20427562626c652047756d60881b60208381019190915280850192909252845180860186526008815267467265636b6c657360c01b818401528486015284518086018652600e81526d4b6974747920576869736b65727360901b818401526060850152845180860186528181526e46617368696f6e2042616e6461676560881b81840152608085015284518086018652600a808252695768697465204d61736b60b01b8285015260a08601919091528551808701875281815269426c61636b204d61736b60b01b8185015260c086015285518087018752601081526f506f6f6c736964652057686973746c6560801b8185015260e086015285518087018752600d8082526c141a5b9ac8111bdd59da1b9d5d609a1b828601526101008701919091528651808801885291825269135bdd5d1a0814dc1bdd60b21b82850152610120860191909152855180870187526009815268115e595cc814dc1bdd60ba1b81850152610140860152855180870187528281526e14dd5cc815da1a5d19481099585c99608a1b81850152610160860152855180870187529182526e5065707065726f6e692050697a7a6160881b82840152610180850191909152858352602990915292902062001ba69290919062002f6d565b50604080516101a0810182526000808252608060208084018290528385018290526060840182905281840182905260a0840182905260c0840182905260e084018290526101008401919091526050610120840181905261014084018190526101608401526032610180840152848252602a90529190912062001c2a91600d62002e34565b5060005b6000828152602a602052604090205481101562001cb6576000828152602a6020526040902080548290811062001c685762001c68620030dd565b90600052602060002001546021836008811062001c895762001c89620030dd565b01600082825462001c9b919062003109565b9091555081905062001cad8162003124565b91505062001c2e565b5060466019826008811062001ccf5762001ccf620030dd565b015550604080518082019091526004808252632430b4b960e11b602090920191825260059162001d03916016919062002d45565b50604080516106808101825260006106608201818152825282518084018452600d8082526c2630bcb2b932b210213937bbb760991b60208381019190915280850192909252845180860186528181526c426f622043757420426569676560981b8184015284860152845180860186526009808252684c6f6e672050696e6b60b81b82850152606086019190915285518087018752600b8082526a2bb4b7323c9023b932b2b760a91b828601526080870191909152865180880188528381526c14dc1a5ade48135d5cdd185c99609a1b8186015260a087015286518088018852600e8082526d4c617965726564204f72616e676560901b8287015260c088019190915287518089018952600c8082526b4c617965726564204e61767960a01b8288015260e08901919091528851808a018a528181526b4c617965726564204a61646560a01b818801526101008901528851808a018a528581526c13185e595c99590813595d185b609a1b818801526101208901528851808a018a52600a8082526915da1a5d194815185a5b60b21b828901526101408a01919091528951808b018b52858152684c6f6e6720506c756d60b81b818901526101608a01528951808b018b528681526c57696e6479204361726d696e6560981b818901526101808a01528951808b018b528281526b15da5b991e4813dc98da1a5960a21b818901526101a08a01528951808b018b528481526a5370696b7920536570696160a81b818901526101c08a01528951808b018b528181526914dc1a5ade4810dbd85b60b21b818901526101e08a01528951808b018b52818152694375726c792057696e6560b01b818901526102008a01528951808b018b528181526910dd5c9b1e4814d85b9960b21b818901526102208a01528951808b018b52818152694375726c79205361676560b01b818901526102408a01528951808b018b5260108082526f426f622043757420506c6174696e756d60801b828a01526102608b01919091528a51808c018c528781526c2137b11021baba102930bb32b760991b818a01526102808b01528a51808c018c52828152695370696b7920526f736560b01b818a01526102a08b01528a51808c018c528581526a4375726c7920536d6f6b6560a81b818a01526102c08b01528a51808c018c528581526a10dd5c9b1e48119c9bdcdd60aa1b818a01526102e08b01528a51808c018c529081526f109bd88810dd5d08135a591b9a59da1d60821b818901526103008a01528951808b018b528481526a084dec44086eae84082e6d60ab1b818901526103208a01528951808b018b528481526a4c6f6e67204567676e6f6760a81b818901526103408a01528951808b018b528681526c46756e6b792053616e6772696160981b818901526103608a01528951808b018b528281526b119d5b9ade4810dbd8985b1d60a21b818901526103808a01528951808b018b528681526c4d6167656e746120436f62726160981b818901526103a08a01528951808b018b528381526d426973636f74746920436f62726160901b818901526103c08a01528951808b018b528481526a135a5b9d0810cb50dd5c9b60aa1b818901526103e08a01528951808b018b52600f8082526e13185d995b99195c8810cb50dd5c9b608a1b828a01526104008b01919091528a51808c018c5295865268098dedcce409edcf2f60bb1b868901526104208a01959095528951808b018b528581526e233ab735bc902732bb902632b6b7b760891b818901526104408a01528951808b018b529485526e119d58da1cda5848109bd88810dd5d608a1b858801526104608901949094528851808a018a528381526a4f6e79782053686167677960a81b818801526104808901528851808a018a5293845269098dedcce40a0cac2c6d60b31b848701526104a0880193909352875180890189529081526d456d6572616c642053686167677960901b818601526104c0870152865180880188528281526b416d6265722053686167677960a01b818601526104e0870152865180880188528281526b476f6c64656e20436f62726160a01b81860152610500870152865180880188528381526c135e5cdd1a58c8119bdc995cdd609a1b81860152610520870152865180880188528281526b26bcb9ba34b19027b1b2b0b760a11b81860152610540870152865180880188528381526c135e5cdd1a58c814dd5b9cd95d609a1b81860152610560870152865180880188528281526b14da5b1d995c88109c985a5960a21b81860152610580870152865180880188528281526b11dbdb19195b88109c985a5960a21b818601526105a0870152865180880188528281526b476f6c64656e204375726c7360a01b818601526105c0870152865180880188529081526a50696e6b20447265616d7360a81b818501526105e0860152855180870187529081526b447265616d79204375726c7360a01b81840152610600850152845180860186528181526c5261696e626f772044616e636560981b81840152610620850152845180860186529081526c5261696e626f772046616c6c7360981b8183015261064084015284825260299052919091206200246b91603362002fbf565b5060408051610660810182526000808252608060208084018290528385018290526060840182905281840182905260a0840182905260c0840182905260e08401829052610100840182905261012084018290526101408401829052610160840191909152605a61018084018190526101a084018190526101c084018190526101e08401819052610200840181905261022084018190526102408401819052610260840181905261028084018190526102a084018190526102c084018190526102e08401819052610300840181905261032084018190526103408401819052610360840181905261038084018190526103a084018190526103c084018190526103e0840181905261040084018190526104208401819052610440840152603c610460840181905261048084018190526104a084018190526104c084018190526104e08401819052610500840181905261052084015260286105408401819052610560840181905261058084018190526105a0840152601e6105c084018190526105e0840181905261060084015260126106208401819052610640840152848252602a9052919091206200261f91603362002e34565b5060005b6000828152602a6020526040902054811015620026ab576000828152602a602052604090208054829081106200265d576200265d620030dd565b9060005260206000200154602183600881106200267e576200267e620030dd565b01600082825462002690919062003109565b90915550819050620026a28162003124565b91505062002623565b505060408051808201909152600780825266476c617373657360c81b6020909201918252600691620026e1916017919062002d45565b50604080516101408101825260006101208201818152825282518084018452600e81526d43697263756c617220426c61636b60901b6020828101919091528084019190915283518085018552600d8082526c21b4b931bab630b9102a3434b760991b82840152848601919091528451808601865260058152644e6572647960d81b8184015260608501528451808601865260118152704f72616e67652053756e676c617373657360781b8184015260808501528451808601865260108082526f526564204772616e6e7920537065637360801b8285015260a086019190915285518087018752600781526613195bdc185c9960ca1b8185015260c0860152855180870187529182526c436f6f6c2041766961746f727360981b8284015260e0850191909152845180860186529081526f46616e63792053756e676c617373657360801b8183015261010084015284825260299052919091206200284691600962003011565b5060408051610120810182526000808252608060208084018290528385018290526060840182905281840182905260a0840182905260c0840191909152601c60e08401819052610100840152848252602a905291909120620028aa91600962002e34565b5060005b6000828152602a602052604090205481101562002936576000828152602a60205260409020805482908110620028e857620028e8620030dd565b906000526020600020015460218360088110620029095762002909620030dd565b0160008282546200291b919062003109565b909155508190506200292d8162003124565b915050620028ae565b50605a601982600881106200294f576200294f620030dd565b0155506040805180820190915260038082526210d85d60ea1b602090920191825260079162002982916018919062002d45565b506040805160c081018252600060a08201818152825282518084018452600d81526c141bdb99195c9a5b99c810d85d609a1b6020828101919091528084019190915283518085018552600e81526d14dd1c995d18da1a5b99c810d85d60921b818301528385015283518085018552600c81526b109a59c8115e59590810d85d60a21b81830152606084015283518085018552600a815269111bde9a5b99c810d85d60b21b818301526080840152848252602990529190912062002a4791600562002e77565b506040805160a0810182526000808252608060208084018290528385018290526060840182905281840191909152848252602a90529190912062002a8d91600562002e34565b5060005b6000828152602a602052604090205481101562002b19576000828152602a6020526040902080548290811062002acb5762002acb620030dd565b90600052602060002001546021836008811062002aec5762002aec620030dd565b01600082825462002afe919062003109565b9091555081905062002b108162003124565b91505062002a91565b506001602e5560005b600d5481101562002b785760008181526029602052604090205462002b4a9060019062003142565b602e600082825462002b5d91906200315c565b9091555081905062002b6f8162003124565b91505062002b22565b506019541562002b8757600080fd5b50620031bb565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62002bec828262002bf0565b5050565b62002c07828262002c3360201b62001c8a1760201c565b600082815260016020908152604090912062002c2e91839062001d0e62002cd3821b17901c565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662002bec576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905562002c8f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062002cea836001600160a01b03841662002cf3565b90505b92915050565b600081815260018301602052604081205462002d3c5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562002ced565b50600062002ced565b82805462002d53906200317e565b90600052602060002090601f01602090048101928262002d77576000855562002dc2565b82601f1062002d9257805160ff191683800117855562002dc2565b8280016001018555821562002dc2579182015b8281111562002dc257825182559160200191906001019062002da5565b5062002dd092915062003063565b5090565b82805482825590600052602060002090810192821562002e26579160200282015b8281111562002e26578251805162002e1591849160209091019062002d45565b509160200191906001019062002df5565b5062002dd09291506200307a565b82805482825590600052602060002090810192821562002dc2579160200282015b8281111562002dc2578251829060ff1690559160200191906001019062002e55565b82805482825590600052602060002090810192821562002e26579160200282015b8281111562002e26578251805162002eb891849160209091019062002d45565b509160200191906001019062002e98565b82805482825590600052602060002090810192821562002e26579160200282015b8281111562002e26578251805162002f0a91849160209091019062002d45565b509160200191906001019062002eea565b82805482825590600052602060002090810192821562002e26579160200282015b8281111562002e26578251805162002f5c91849160209091019062002d45565b509160200191906001019062002f3c565b82805482825590600052602060002090810192821562002e26579160200282015b8281111562002e26578251805162002fae91849160209091019062002d45565b509160200191906001019062002f8e565b82805482825590600052602060002090810192821562002e26579160200282015b8281111562002e2657825180516200300091849160209091019062002d45565b509160200191906001019062002fe0565b82805482825590600052602060002090810192821562002e26579160200282015b8281111562002e2657825180516200305291849160209091019062002d45565b509160200191906001019062003032565b5b8082111562002dd0576000815560010162003064565b8082111562002dd05760006200309182826200309b565b506001016200307a565b508054620030a9906200317e565b6000825580601f10620030ba575050565b601f016020900490600052602060002090810190620030da919062003063565b50565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156200311f576200311f620030f3565b500190565b60006000198214156200313b576200313b620030f3565b5060010190565b600082821015620031575762003157620030f3565b500390565b6000816000190483118215151615620031795762003179620030f3565b500290565b600181811c908216806200319357607f821691505b60208210811415620031b557634e487b7160e01b600052602260045260246000fd5b50919050565b613ad680620031cb6000396000f3fe6080604052600436106103975760003560e01c806390c3f38f116101dc578063c87b56dd11610102578063dd183a42116100a0578063f2fde38b1161006f578063f2fde38b14610ad2578063f3474b3b14610af2578063f61d919214610b1f578063fa98074214610b3f57600080fd5b8063dd183a4214610a30578063e11ad5f214610a46578063e985e9c514610a5c578063eabce98414610aa557600080fd5b8063cd0a711d116100dc578063cd0a711d1461098f578063d5391393146109bc578063d547741f146109f0578063d5d4657514610a1057600080fd5b8063c87b56dd1461092f578063c8847a6c1461094f578063ca15c8731461096f57600080fd5b8063a217fddf1161017a578063b047570a11610149578063b047570a146108d0578063b25b66ff146108e6578063b88d4fde14610906578063c44c63671461091957600080fd5b8063a217fddf14610866578063a22cb4651461087b578063a2309ff81461089b578063a4ab8ab8146108b057600080fd5b806393f08251116101b657806393f08251146107fb57806395d89b41146108115780639a5237ae14610826578063a0b7ac841461084657600080fd5b806390c3f38f1461079b57806391d14854146107bb57806393ef39c6146107db57600080fd5b806341e1f071116102c157806370a082311161025f578063857682f31161022e578063857682f31461071d5780638647ca761461073d5780638da5cb5b1461075d5780639010d07c1461077b57600080fd5b806370a08231146106a8578063715018a6146106c8578063790c5b30146106dd5780637de55fe1146106fd57600080fd5b80635e6426901161029b5780635e642690146105f35780636352211e146106485780636c6e9b23146106685780636f9c4bfd1461068857600080fd5b806341e1f071146105a957806342842e0e146105c957806354214f69146105dc57600080fd5b806323b872dd116103395780632f169c91116103085780632f169c911461051f5780632f2ff15d1461055357806336568abe1461057357806341a674e01461059357600080fd5b806323b872dd1461049c578063248a9ca3146104af57806326592ae4146104df578063282a3643146104ff57600080fd5b8063095ea7b311610375578063095ea7b31461042b5780630ca0067e146104405780630ea5be831461046057806318160ddd1461047557600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004612e6a565b610b5f565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610bdb565b6040516103c89190612edf565b3480156103ff57600080fd5b5061041361040e366004612ef2565b610c6d565b6040516001600160a01b0390911681526020016103c8565b61043e610439366004612f27565b610cb1565b005b34801561044c57600080fd5b506103e661045b366004612f51565b610d51565b34801561046c57600080fd5b506103e6610e0a565b34801561048157600080fd5b5060035460025403600019015b6040519081526020016103c8565b61043e6104aa366004612f73565b610e17565b3480156104bb57600080fd5b5061048e6104ca366004612ef2565b60009081526020819052604090206001015490565b3480156104eb57600080fd5b506103e66104fa366004612ef2565b610fa8565b34801561050b57600080fd5b5061048e61051a366004612ef2565b610fc7565b34801561052b57600080fd5b5061048e7f9b68ff5a609d4f46e354ee0585b0dc13a372a76b24df74377a8e29c04d6517ce81565b34801561055f57600080fd5b5061043e61056e366004612faf565b610fde565b34801561057f57600080fd5b5061043e61058e366004612faf565b611008565b34801561059f57600080fd5b5061048e600d5481565b3480156105b557600080fd5b506103e66105c4366004612ef2565b61108b565b61043e6105d7366004612f73565b6110b6565b3480156105e857600080fd5b50602f5415156103bc565b3480156105ff57600080fd5b506103bc602f5460305460325460408051602081019490945283019190915260608201526000906080016040516020818303038152906040528051906020012060315414905090565b34801561065457600080fd5b50610413610663366004612ef2565b6110d1565b34801561067457600080fd5b5061048e610683366004612f51565b6110dc565b34801561069457600080fd5b5061043e6106a336600461309a565b61110d565b3480156106b457600080fd5b5061048e6106c3366004613181565b61119e565b3480156106d457600080fd5b5061043e6111ed565b3480156106e957600080fd5b5061048e6106f8366004612ef2565b611201565b34801561070957600080fd5b5061043e610718366004612f27565b61125c565b34801561072957600080fd5b5061048e610738366004612ef2565b6112ef565b34801561074957600080fd5b5061043e61075836600461319c565b61132d565b34801561076957600080fd5b50600a546001600160a01b0316610413565b34801561078757600080fd5b50610413610796366004612f51565b611348565b3480156107a757600080fd5b5061043e6107b636600461319c565b611367565b3480156107c757600080fd5b506103bc6107d6366004612faf565b611382565b3480156107e757600080fd5b5061043e6107f6366004612f27565b6113ab565b34801561080757600080fd5b5061048e600e5481565b34801561081d57600080fd5b506103e6611461565b34801561083257600080fd5b5061048e6108413660046131d1565b611470565b34801561085257600080fd5b5061043e610861366004612f51565b6114ba565b34801561087257600080fd5b5061048e600081565b34801561088757600080fd5b5061043e6108963660046131fd565b611571565b3480156108a757600080fd5b5061048e6115dd565b3480156108bc57600080fd5b5061048e6108cb366004612ef2565b6115f1565b3480156108dc57600080fd5b5061048e60315481565b3480156108f257600080fd5b5061043e610901366004612ef2565b611670565b61043e610914366004613239565b6116a9565b34801561092557600080fd5b5061048e600f5481565b34801561093b57600080fd5b506103e661094a366004612ef2565b6116f3565b34801561095b57600080fd5b5061043e61096a3660046132c4565b61198c565b34801561097b57600080fd5b5061048e61098a366004612ef2565b6119e7565b34801561099b57600080fd5b506109af6109aa36600461331b565b6119fe565b6040516103c8919061338b565b3480156109c857600080fd5b5061048e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156109fc57600080fd5b5061043e610a0b366004612faf565b611afb565b348015610a1c57600080fd5b5061048e610a2b366004612ef2565b611b20565b348015610a3c57600080fd5b5061048e602e5481565b348015610a5257600080fd5b5061048e610bb881565b348015610a6857600080fd5b506103bc610a7736600461339e565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b348015610ab157600080fd5b5061048e610ac0366004612ef2565b602d6020526000908152604090205481565b348015610ade57600080fd5b5061043e610aed366004613181565b611b8b565b348015610afe57600080fd5b5061048e610b0d366004612ef2565b6000908152602d602052604090205490565b348015610b2b57600080fd5b5061043e610b3a3660046131d1565b611c04565b348015610b4b57600080fd5b5061048e610b5a366004612ef2565b611c7a565b60006001600160e01b03198216635a05180f60e01b1480610b9057506301ffc9a760e01b6001600160e01b03198316145b80610bab57506380ac58cd60e01b6001600160e01b03198316145b80610bc65750635b5e139f60e01b6001600160e01b03198316145b80610bd55750610bd582611d23565b92915050565b606060048054610bea906133c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610c16906133c8565b8015610c635780601f10610c3857610100808354040283529160200191610c63565b820191906000526020600020905b815481529060010190602001808311610c4657829003601f168201915b5050505050905090565b6000610c7882611d71565b610c95576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610cbc826110d1565b9050336001600160a01b03821614610cf557610cd88133610a77565b610cf5576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60296020528160005260406000208181548110610d6d57600080fd5b90600052602060002001600091509150508054610d89906133c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610db5906133c8565b8015610e025780601f10610dd757610100808354040283529160200191610e02565b820191906000526020600020905b815481529060010190602001808311610de557829003601f168201915b505050505081565b602b8054610d89906133c8565b6000610e2282611da6565b9050836001600160a01b0316816001600160a01b031614610e555760405162a1148160e81b815260040160405180910390fd5b60008281526008602052604090208054338082146001600160a01b03881690911417610ea257610e858633610a77565b610ea257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610ec957604051633a954ecd60e21b815260040160405180910390fd5b8015610ed457600082555b6001600160a01b038681166000908152600760205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260066020526040902055600160e11b8316610f5f5760018401600081815260066020526040902054610f5d576002548114610f5d5760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60118160088110610fb857600080fd5b018054909150610d89906133c8565b60198160088110610fd757600080fd5b0154905081565b600082815260208190526040902060010154610ff981611e0f565b6110038383611e19565b505050565b6001600160a01b038116331461107d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6110878282611e3b565b5050565b602c818154811061109b57600080fd5b906000526020600020016000915090508054610d89906133c8565b611003838383604051806020016040528060008152506116a9565b6000610bd582611da6565b602a60205281600052604060002081815481106110f857600080fd5b90600052602060002001600091509150505481565b611115611e5d565b602c548151101561113957604051637f7d934f60e01b815260040160405180910390fd5b815161114c90602b906020850190612d0b565b50805161116090602c906020840190612d8f565b507f96620119e5f8b323d981944cac3b7d493098c8a69c8afb17c59f57bbd602f0d98282604051611192929190613403565b60405180910390a15050565b60006001600160a01b0382166111c7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b6111f5611e5d565b6111ff6000611eb7565b565b6000818152601060205260408120541580159061122b57506000828152602d602052604090205415155b1561124957600082815260106020526040902054610bd59083611f09565b5060009081526010602052604090205490565b611264611e5d565b600354600254610bb8918391036000190161127f9190613447565b111561129e57604051632795088960e11b815260040160405180910390fd5b6112a88282611f36565b816001600160a01b03167f835fefe6c67bfcdab09e80bf7e620155df779b40de34bfba1e1aa6feb8712d53826040516112e391815260200190565b60405180910390a25050565b60006112fa82611f50565b61130657506000919050565b602e54603054602f54611319908561345f565b6113239190613447565b610bd59190613494565b611335611e5d565b805161108790600b906020840190612d0b565b60008281526001602052604081206113609083611f65565b9392505050565b61136f611e5d565b805161108790600c906020840190612d0b565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66113d581611e0f565b600354600254610bb891849103600019016113f09190613447565b111561140f57604051632795088960e11b815260040160405180910390fd5b6114198383611f36565b826001600160a01b03167fdae674dcfe00575192c2bdc37b3269f3022785b77c4f0fc5b595db726740efe68360405161145491815260200190565b60405180910390a2505050565b606060058054610bea906133c8565b600061147b84611f50565b61148757506000611360565b602e546114b29083611499868861345f565b6114a39190613447565b6114ad9190613494565b611f71565b949350505050565b7f9b68ff5a609d4f46e354ee0585b0dc13a372a76b24df74377a8e29c04d6517ce6114e481611e0f565b602c548210611506576040516363df817160e01b815260040160405180910390fd5b61150f83611f50565b61152c576040516307ed98ed60e31b815260040160405180910390fd5b6000838152602d6020526040908190208390555183907f8641bfa5e7f229a0cf7fb66a456566ca3ebf5e3f6a87fa67e749b5ae389580f6906114549085815260200190565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006115ec6002546000190190565b905090565b60006115fe602f54151590565b61161b57604051636f7dd8d560e01b815260040160405180910390fd5b61162482611f50565b611641576040516307ed98ed60e31b815260040160405180910390fd5b600061164c836112ef565b905061165781611f71565b6000938452601060205260409093208390555090919050565b611678611e5d565b60318190556040517ffdbff6218df92772eb15f2d2ccd63d3e081ed150c9bc50560cf7ad826752c35f90600090a150565b6116b4848484610e17565b6001600160a01b0383163b156116ed576116d084848484612119565b6116ed576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606116fe82611f50565b61171b576040516307ed98ed60e31b815260040160405180910390fd5b60408051607b60f81b602082015281516001818303018152602190910190915280611744610bdb565b61174d85612210565b60405160200161175f939291906134a8565b604051602081830303815290604052905080600c6040516020016117849291906135b9565b60405160208183030381529060405290508061179f8461230e565b6040516020016117b0929190613606565b6040516020818303038152906040529050806040516020016117d2919061365a565b60405160208183030381529060405290506117ee602f54151590565b156119345760006117fe84611b20565b905081601161180e60008461248d565b604051602001611820939291906136b9565b60408051601f19818403018152919052915060015b600d548110156118c857600061185c826007811115611856576118566136a3565b8461256e565b11156118b65782601182600881106118765761187661368d565b0161189283600781111561188c5761188c6136a3565b8561248d565b6040516020016118a493929190613737565b60405160208183030381529060405292505b806118c081613771565b915050611835565b506000848152602d602052604090205415611932576000848152602d6020526040902054602c80548492602b929181106119045761190461368d565b906000526020600020016040516020016119209392919061378c565b60405160208183030381529060405291505b505b8060405160200161194591906137fd565b60405160208183030381529060405290506000611961826125ab565b9050806040516020016119749190613823565b60408051601f19818403018152919052949350505050565b611994611e5d565b80602960008560078111156119ab576119ab6136a3565b815260200190815260200160002083815481106119ca576119ca61368d565b9060005260206000200190805190602001906116ed929190612d0b565b6000818152600160205260408120610bd5906126ff565b606060296000836007811115611a1657611a166136a3565b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611af0578382906000526020600020018054611a63906133c8565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8f906133c8565b8015611adc5780601f10611ab157610100808354040283529160200191611adc565b820191906000526020600020905b815481529060010190602001808311611abf57829003601f168201915b505050505081526020019060010190611a44565b505050509050919050565b600082815260208190526040902060010154611b1681611e0f565b6110038383611e3b565b6000611b2d602f54151590565b611b3957506000919050565b611b4282611f50565b611b4e57506000919050565b6000611b59836112ef565b6000848152602d602052604090205490915015611b8257611360611b7c82611f71565b84611f09565b61136081611f71565b611b93611e5d565b6001600160a01b038116611bf85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611074565b611c0181611eb7565b50565b611c0c611e5d565b602f5415611c2d5760405163a89ac15160e01b815260040160405180910390fd5b602f8390556030829055603281905560408051848152602081018490527fb8349fbdf2fcc29ce592edcad8f7eb683211b3cee76a45543fc8eaf73bb43d42910160405180910390a1505050565b60218160088110610fd757600080fd5b611c948282611382565b611087576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611cca3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611360836001600160a01b038416612709565b60006301ffc9a760e01b6001600160e01b031983161480611d5457506380ac58cd60e01b6001600160e01b03198316145b80610bd55750506001600160e01b031916635b5e139f60e01b1490565b600081600111158015611d85575060025482105b8015610bd5575050600090815260066020526040902054600160e01b161590565b60008180600111611df657600254811015611df657600081815260066020526040902054600160e01b8116611df4575b80611360575060001901600081815260066020526040902054611dd6565b505b604051636f96cda160e11b815260040160405180910390fd5b611c018133612758565b611e238282611c8a565b60008281526001602052604090206110039082611d0e565b611e4582826127bc565b60008281526001602052604090206110039082612821565b600a546001600160a01b031633146111ff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611074565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000600d54600e54611f1b919061345f565b6000838152602d6020526040902054901b8317905092915050565b611087828260405180602001604052806000815250612836565b60008082118015610bd5575050610bb8101590565b600061136083836128a3565b60008181611f7e82612210565b604051602001611f8e9190613868565b60408051601f19818403018152919052805160209091012090506000805b600d5481101561211057600060198260088110611fcb57611fcb61368d565b0154118015611ff6575060198160088110611fe857611fe861368d565b0154611ff484836128cd565b105b15612000576120fe565b60008181526029602052604081205461201b90600190613884565b6120259086613494565b612030906001613447565b6000838152602a60205260409020805491925090829081106120545761205461368d565b906000526020600020015461207685600d54856120719190613447565b6128cd565b106120be576000828152602a602052604090206120bb90602184600881106120a0576120a061368d565b01546120ac87866128e8565b6120b69190613494565b612906565b90505b81600e546120cc919061345f565b6000838152602960205260409020549082901b93909317926120f090600190613884565b6120fa908661389b565b9450505b8061210881613771565b915050611fac565b50949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061214e9033908990889088906004016138af565b602060405180830381600087803b15801561216857600080fd5b505af1925050508015612198575060408051601f3d908101601f19168201909252612195918101906138ec565b60015b6121f3573d8080156121c6576040519150601f19603f3d011682016040523d82523d6000602084013e6121cb565b606091505b5080516121eb576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060816122345750506040805180820190915260018152600360fc1b602082015290565b8160005b811561225e578061224881613771565b91506122579050600a8361389b565b9150612238565b60008167ffffffffffffffff81111561227957612279612fdb565b6040519080825280601f01601f1916602001820160405280156122a3576020820181803683370190505b5090505b84156114b2576122b8600183613884565b91506122c5600a86613494565b6122d0906030613447565b60f81b8183815181106122e5576122e561368d565b60200101906001600160f81b031916908160001a905350612307600a8661389b565b94506122a7565b60606000600b6040516020016123249190613909565b6040516020818303038152906040529050612340602f54151590565b15612465576000838152602d602052604090205415612399576000838152602d602052604081205461237190612210565b90508181604051602001612386929190613915565b6040516020818303038152906040529150505b60006123a484611b20565b905060005b600d5481101561245e5760006123d86123d38360078111156123cd576123cd6136a3565b8561256e565b612210565b905060006001600d546123eb9190613884565b83106124065760405180602001604052806000815250612421565b604051806040016040528060018152602001602d60f81b8152505b905084828260405160200161243893929190613950565b60405160208183030381529060405294505050808061245690613771565b9150506123a9565b5050610bd5565b806040516020016124769190613993565b604051602081830303815290604052905092915050565b6060600061249b848461256e565b9050602960008560078111156124b3576124b36136a3565b815260200190815260200160002081815481106124d2576124d261368d565b9060005260206000200180546124e7906133c8565b80601f0160208091040260200160405190810160405280929190818152602001828054612513906133c8565b80156125605780601f1061253557610100808354040283529160200191612560565b820191906000526020600020905b81548152906001019060200180831161254357829003601f168201915b505050505091505092915050565b60008161257d57506000610bd5565b600f54836007811115612592576125926136a3565b600e5461259f919061345f565b83901c16905092915050565b60608151600014156125cb57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613a6160409139905060006003845160026125fa9190613447565b612604919061389b565b61260f90600461345f565b67ffffffffffffffff81111561262757612627612fdb565b6040519080825280601f01601f191660200182016040528015612651576020820181803683370190505b509050600182016020820185865187015b808210156126bd576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612662565b50506003865106600181146126d957600281146126ec576126f4565b603d6001830353603d60028303536126f4565b603d60018303535b509195945050505050565b6000610bd5825490565b600081815260018301602052604081205461275057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610bd5565b506000610bd5565b6127628282611382565b6110875761277a816001600160a01b03166014612985565b612785836020612985565b6040516020016127969291906139be565b60408051601f198184030181529082905262461bcd60e51b825261107491600401612edf565b6127c68282611382565b15611087576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611360836001600160a01b038416612b21565b6128408383612c14565b6001600160a01b0383163b15611003576002548281035b61286a6000868380600101945086612119565b612887576040516368d2bf6b60e11b815260040160405180910390fd5b81811061285757816002541461289c57600080fd5b5050505050565b60008260000182815481106128ba576128ba61368d565b9060005260206000200154905092915050565b60006128da82600761345f565b83901c607f16905092915050565b60006128f582602061345f565b83901c63ffffffff16905092915050565b600060015b835481101561297b578381815481106129265761292661368d565b906000526020600020015483101561293f579050610bd5565b8381815481106129515761295161368d565b9060005260206000200154836129679190613884565b92508061297381613771565b91505061290b565b5060009392505050565b6060600061299483600261345f565b61299f906002613447565b67ffffffffffffffff8111156129b7576129b7612fdb565b6040519080825280601f01601f1916602001820160405280156129e1576020820181803683370190505b509050600360fc1b816000815181106129fc576129fc61368d565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612a2b57612a2b61368d565b60200101906001600160f81b031916908160001a9053506000612a4f84600261345f565b612a5a906001613447565b90505b6001811115612ad2576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612a8e57612a8e61368d565b1a60f81b828281518110612aa457612aa461368d565b60200101906001600160f81b031916908160001a90535060049490941c93612acb81613a33565b9050612a5d565b5083156113605760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401611074565b60008181526001830160205260408120548015612c0a576000612b45600183613884565b8554909150600090612b5990600190613884565b9050818114612bbe576000866000018281548110612b7957612b7961368d565b9060005260206000200154905080876000018481548110612b9c57612b9c61368d565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612bcf57612bcf613a4a565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610bd5565b6000915050610bd5565b60025481612c355760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114612ce457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612cac565b5081612d0257604051622e076360e81b815260040160405180910390fd5b60025550505050565b828054612d17906133c8565b90600052602060002090601f016020900481019282612d395760008555612d7f565b82601f10612d5257805160ff1916838001178555612d7f565b82800160010185558215612d7f579182015b82811115612d7f578251825591602001919060010190612d64565b50612d8b929150612de8565b5090565b828054828255906000526020600020908101928215612ddc579160200282015b82811115612ddc5782518051612dcc918491602090910190612d0b565b5091602001919060010190612daf565b50612d8b929150612dfd565b5b80821115612d8b5760008155600101612de9565b80821115612d8b576000612e118282612e1a565b50600101612dfd565b508054612e26906133c8565b6000825580601f10612e36575050565b601f016020900490600052602060002090810190611c019190612de8565b6001600160e01b031981168114611c0157600080fd5b600060208284031215612e7c57600080fd5b813561136081612e54565b60005b83811015612ea2578181015183820152602001612e8a565b838111156116ed5750506000910152565b60008151808452612ecb816020860160208601612e87565b601f01601f19169290920160200192915050565b6020815260006113606020830184612eb3565b600060208284031215612f0457600080fd5b5035919050565b80356001600160a01b0381168114612f2257600080fd5b919050565b60008060408385031215612f3a57600080fd5b612f4383612f0b565b946020939093013593505050565b60008060408385031215612f6457600080fd5b50508035926020909101359150565b600080600060608486031215612f8857600080fd5b612f9184612f0b565b9250612f9f60208501612f0b565b9150604084013590509250925092565b60008060408385031215612fc257600080fd5b82359150612fd260208401612f0b565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561301a5761301a612fdb565b604052919050565b600067ffffffffffffffff83111561303c5761303c612fdb565b61304f601f8401601f1916602001612ff1565b905082815283838301111561306357600080fd5b828260208301376000602084830101529392505050565b600082601f83011261308b57600080fd5b61136083833560208501613022565b600080604083850312156130ad57600080fd5b823567ffffffffffffffff808211156130c557600080fd5b6130d18683870161307a565b93506020915081850135818111156130e857600080fd5b8501601f810187136130f957600080fd5b80358281111561310b5761310b612fdb565b8060051b61311a858201612ff1565b918252828101850191858101908a84111561313457600080fd5b86850192505b83831015613170578235868111156131525760008081fd5b6131608c898389010161307a565b835250918601919086019061313a565b809750505050505050509250929050565b60006020828403121561319357600080fd5b61136082612f0b565b6000602082840312156131ae57600080fd5b813567ffffffffffffffff8111156131c557600080fd5b6114b28482850161307a565b6000806000606084860312156131e657600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561321057600080fd5b61321983612f0b565b91506020830135801515811461322e57600080fd5b809150509250929050565b6000806000806080858703121561324f57600080fd5b61325885612f0b565b935061326660208601612f0b565b925060408501359150606085013567ffffffffffffffff81111561328957600080fd5b8501601f8101871361329a57600080fd5b6132a987823560208401613022565b91505092959194509250565b803560088110612f2257600080fd5b6000806000606084860312156132d957600080fd5b6132e2846132b5565b925060208401359150604084013567ffffffffffffffff81111561330557600080fd5b6133118682870161307a565b9150509250925092565b60006020828403121561332d57600080fd5b611360826132b5565b600081518084526020808501808196508360051b8101915082860160005b8581101561337e57828403895261336c848351612eb3565b98850198935090840190600101613354565b5091979650505050505050565b6020815260006113606020830184613336565b600080604083850312156133b157600080fd5b6133ba83612f0b565b9150612fd260208401612f0b565b600181811c908216806133dc57607f821691505b602082108114156133fd57634e487b7160e01b600052602260045260246000fd5b50919050565b6040815260006134166040830185612eb3565b82810360208401526134288185613336565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561345a5761345a613431565b500190565b600081600019048311821515161561347957613479613431565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826134a3576134a361347e565b500690565b600084516134ba818460208901612e87565b68113730b6b2911d101160b91b90830190815284516134e0816009840160208901612e87565b61202360f01b60099290910191820152835161350381600b840160208801612e87565b61088b60f21b600b9290910191820152600d0195945050505050565b8054600090600181811c908083168061353957607f831692505b602080841082141561355b57634e487b7160e01b600052602260045260246000fd5b81801561356f5760018114613580576135ad565b60ff198616895284890196506135ad565b60008881526020902060005b868110156135a55781548b82015290850190830161358c565b505084890196505b50505050505092915050565b600083516135cb818460208801612e87565b6f113232b9b1b934b83a34b7b7111d101160811b9083019081526135f2601082018561351f565b61088b60f21b815260020195945050505050565b60008351613618818460208801612e87565b691134b6b0b3b2911d101160b11b908301908152835161363f81600a840160208801612e87565b61088b60f21b600a9290910191820152600c01949350505050565b6000825161366c818460208701612e87565b6e2261747472696275746573223a205b60881b920191825250600f01919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b600084516136cb818460208901612e87565b6f3d913a3930b4ba2fba3cb832911d101160811b9083019081526136f2601082018661351f565b6c111610113b30b63ab2911d101160991b8152845190915061371b81600d840160208801612e87565b61227d60f01b600d9290910191820152600f0195945050505050565b60008451613749818460208901612e87565b70163d913a3930b4ba2fba3cb832911d101160791b9083019081526136f2601182018661351f565b600060001982141561378557613785613431565b5060010190565b6000845161379e818460208901612e87565b70163d913a3930b4ba2fba3cb832911d101160791b9083019081526137c6601182018661351f565b6c111610113b30b63ab2911d101160991b815290506137e8600d82018561351f565b61227d60f01b81526002019695505050505050565b6000825161380f818460208701612e87565b615d7d60f01b920191825250600201919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161385b81601d850160208701612e87565b91909101601d0192915050565b6000825161387a818460208701612e87565b9190910192915050565b60008282101561389657613896613431565b500390565b6000826138aa576138aa61347e565b500490565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906138e290830184612eb3565b9695505050505050565b6000602082840312156138fe57600080fd5b815161136081612e54565b6000611360828461351f565b60008351613927818460208801612e87565b83519083019061393b818360208801612e87565b602f60f81b9101908152600101949350505050565b60008451613962818460208901612e87565b845190830190613976818360208901612e87565b8451910190613989818360208801612e87565b0195945050505050565b600082516139a5818460208701612e87565b663ab735b737bbb760c91b920191825250600701919050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516139f6816017850160208801612e87565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613a27816028840160208801612e87565b01602801949350505050565b600081613a4257613a42613431565b506000190190565b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212209284bce1983f2dc0c8bae275dc450fcf3f4bcc032938edef8eccb798cd07f34a64736f6c63430008090033697066733a2f2f516d63384b5763454a6154434a70645352724a476f594e42535748696f4a475142385732396d4a5248413970514c2f443a4343206973207468652073656372657420736f63696574792074686174207365727665732074686520436f736d69632043617420476f642074686520477272726561742e20546f20737072656164206974732070657266656374696f6e206163726f7373207468652067616c6178792c2074686520477272726561746e6573732068617320646563656e7472616c697a656420697473656c6620616e6420736865642069747320667572207468726f7567686f75742074686520756e6976657273653b207468697320697320746865206361742e

Deployed Bytecode

0x6080604052600436106103975760003560e01c806390c3f38f116101dc578063c87b56dd11610102578063dd183a42116100a0578063f2fde38b1161006f578063f2fde38b14610ad2578063f3474b3b14610af2578063f61d919214610b1f578063fa98074214610b3f57600080fd5b8063dd183a4214610a30578063e11ad5f214610a46578063e985e9c514610a5c578063eabce98414610aa557600080fd5b8063cd0a711d116100dc578063cd0a711d1461098f578063d5391393146109bc578063d547741f146109f0578063d5d4657514610a1057600080fd5b8063c87b56dd1461092f578063c8847a6c1461094f578063ca15c8731461096f57600080fd5b8063a217fddf1161017a578063b047570a11610149578063b047570a146108d0578063b25b66ff146108e6578063b88d4fde14610906578063c44c63671461091957600080fd5b8063a217fddf14610866578063a22cb4651461087b578063a2309ff81461089b578063a4ab8ab8146108b057600080fd5b806393f08251116101b657806393f08251146107fb57806395d89b41146108115780639a5237ae14610826578063a0b7ac841461084657600080fd5b806390c3f38f1461079b57806391d14854146107bb57806393ef39c6146107db57600080fd5b806341e1f071116102c157806370a082311161025f578063857682f31161022e578063857682f31461071d5780638647ca761461073d5780638da5cb5b1461075d5780639010d07c1461077b57600080fd5b806370a08231146106a8578063715018a6146106c8578063790c5b30146106dd5780637de55fe1146106fd57600080fd5b80635e6426901161029b5780635e642690146105f35780636352211e146106485780636c6e9b23146106685780636f9c4bfd1461068857600080fd5b806341e1f071146105a957806342842e0e146105c957806354214f69146105dc57600080fd5b806323b872dd116103395780632f169c91116103085780632f169c911461051f5780632f2ff15d1461055357806336568abe1461057357806341a674e01461059357600080fd5b806323b872dd1461049c578063248a9ca3146104af57806326592ae4146104df578063282a3643146104ff57600080fd5b8063095ea7b311610375578063095ea7b31461042b5780630ca0067e146104405780630ea5be831461046057806318160ddd1461047557600080fd5b806301ffc9a71461039c57806306fdde03146103d1578063081812fc146103f3575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004612e6a565b610b5f565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103e6610bdb565b6040516103c89190612edf565b3480156103ff57600080fd5b5061041361040e366004612ef2565b610c6d565b6040516001600160a01b0390911681526020016103c8565b61043e610439366004612f27565b610cb1565b005b34801561044c57600080fd5b506103e661045b366004612f51565b610d51565b34801561046c57600080fd5b506103e6610e0a565b34801561048157600080fd5b5060035460025403600019015b6040519081526020016103c8565b61043e6104aa366004612f73565b610e17565b3480156104bb57600080fd5b5061048e6104ca366004612ef2565b60009081526020819052604090206001015490565b3480156104eb57600080fd5b506103e66104fa366004612ef2565b610fa8565b34801561050b57600080fd5b5061048e61051a366004612ef2565b610fc7565b34801561052b57600080fd5b5061048e7f9b68ff5a609d4f46e354ee0585b0dc13a372a76b24df74377a8e29c04d6517ce81565b34801561055f57600080fd5b5061043e61056e366004612faf565b610fde565b34801561057f57600080fd5b5061043e61058e366004612faf565b611008565b34801561059f57600080fd5b5061048e600d5481565b3480156105b557600080fd5b506103e66105c4366004612ef2565b61108b565b61043e6105d7366004612f73565b6110b6565b3480156105e857600080fd5b50602f5415156103bc565b3480156105ff57600080fd5b506103bc602f5460305460325460408051602081019490945283019190915260608201526000906080016040516020818303038152906040528051906020012060315414905090565b34801561065457600080fd5b50610413610663366004612ef2565b6110d1565b34801561067457600080fd5b5061048e610683366004612f51565b6110dc565b34801561069457600080fd5b5061043e6106a336600461309a565b61110d565b3480156106b457600080fd5b5061048e6106c3366004613181565b61119e565b3480156106d457600080fd5b5061043e6111ed565b3480156106e957600080fd5b5061048e6106f8366004612ef2565b611201565b34801561070957600080fd5b5061043e610718366004612f27565b61125c565b34801561072957600080fd5b5061048e610738366004612ef2565b6112ef565b34801561074957600080fd5b5061043e61075836600461319c565b61132d565b34801561076957600080fd5b50600a546001600160a01b0316610413565b34801561078757600080fd5b50610413610796366004612f51565b611348565b3480156107a757600080fd5b5061043e6107b636600461319c565b611367565b3480156107c757600080fd5b506103bc6107d6366004612faf565b611382565b3480156107e757600080fd5b5061043e6107f6366004612f27565b6113ab565b34801561080757600080fd5b5061048e600e5481565b34801561081d57600080fd5b506103e6611461565b34801561083257600080fd5b5061048e6108413660046131d1565b611470565b34801561085257600080fd5b5061043e610861366004612f51565b6114ba565b34801561087257600080fd5b5061048e600081565b34801561088757600080fd5b5061043e6108963660046131fd565b611571565b3480156108a757600080fd5b5061048e6115dd565b3480156108bc57600080fd5b5061048e6108cb366004612ef2565b6115f1565b3480156108dc57600080fd5b5061048e60315481565b3480156108f257600080fd5b5061043e610901366004612ef2565b611670565b61043e610914366004613239565b6116a9565b34801561092557600080fd5b5061048e600f5481565b34801561093b57600080fd5b506103e661094a366004612ef2565b6116f3565b34801561095b57600080fd5b5061043e61096a3660046132c4565b61198c565b34801561097b57600080fd5b5061048e61098a366004612ef2565b6119e7565b34801561099b57600080fd5b506109af6109aa36600461331b565b6119fe565b6040516103c8919061338b565b3480156109c857600080fd5b5061048e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156109fc57600080fd5b5061043e610a0b366004612faf565b611afb565b348015610a1c57600080fd5b5061048e610a2b366004612ef2565b611b20565b348015610a3c57600080fd5b5061048e602e5481565b348015610a5257600080fd5b5061048e610bb881565b348015610a6857600080fd5b506103bc610a7736600461339e565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b348015610ab157600080fd5b5061048e610ac0366004612ef2565b602d6020526000908152604090205481565b348015610ade57600080fd5b5061043e610aed366004613181565b611b8b565b348015610afe57600080fd5b5061048e610b0d366004612ef2565b6000908152602d602052604090205490565b348015610b2b57600080fd5b5061043e610b3a3660046131d1565b611c04565b348015610b4b57600080fd5b5061048e610b5a366004612ef2565b611c7a565b60006001600160e01b03198216635a05180f60e01b1480610b9057506301ffc9a760e01b6001600160e01b03198316145b80610bab57506380ac58cd60e01b6001600160e01b03198316145b80610bc65750635b5e139f60e01b6001600160e01b03198316145b80610bd55750610bd582611d23565b92915050565b606060048054610bea906133c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610c16906133c8565b8015610c635780601f10610c3857610100808354040283529160200191610c63565b820191906000526020600020905b815481529060010190602001808311610c4657829003601f168201915b5050505050905090565b6000610c7882611d71565b610c95576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610cbc826110d1565b9050336001600160a01b03821614610cf557610cd88133610a77565b610cf5576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60296020528160005260406000208181548110610d6d57600080fd5b90600052602060002001600091509150508054610d89906133c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610db5906133c8565b8015610e025780601f10610dd757610100808354040283529160200191610e02565b820191906000526020600020905b815481529060010190602001808311610de557829003601f168201915b505050505081565b602b8054610d89906133c8565b6000610e2282611da6565b9050836001600160a01b0316816001600160a01b031614610e555760405162a1148160e81b815260040160405180910390fd5b60008281526008602052604090208054338082146001600160a01b03881690911417610ea257610e858633610a77565b610ea257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610ec957604051633a954ecd60e21b815260040160405180910390fd5b8015610ed457600082555b6001600160a01b038681166000908152600760205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260066020526040902055600160e11b8316610f5f5760018401600081815260066020526040902054610f5d576002548114610f5d5760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60118160088110610fb857600080fd5b018054909150610d89906133c8565b60198160088110610fd757600080fd5b0154905081565b600082815260208190526040902060010154610ff981611e0f565b6110038383611e19565b505050565b6001600160a01b038116331461107d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6110878282611e3b565b5050565b602c818154811061109b57600080fd5b906000526020600020016000915090508054610d89906133c8565b611003838383604051806020016040528060008152506116a9565b6000610bd582611da6565b602a60205281600052604060002081815481106110f857600080fd5b90600052602060002001600091509150505481565b611115611e5d565b602c548151101561113957604051637f7d934f60e01b815260040160405180910390fd5b815161114c90602b906020850190612d0b565b50805161116090602c906020840190612d8f565b507f96620119e5f8b323d981944cac3b7d493098c8a69c8afb17c59f57bbd602f0d98282604051611192929190613403565b60405180910390a15050565b60006001600160a01b0382166111c7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b6111f5611e5d565b6111ff6000611eb7565b565b6000818152601060205260408120541580159061122b57506000828152602d602052604090205415155b1561124957600082815260106020526040902054610bd59083611f09565b5060009081526010602052604090205490565b611264611e5d565b600354600254610bb8918391036000190161127f9190613447565b111561129e57604051632795088960e11b815260040160405180910390fd5b6112a88282611f36565b816001600160a01b03167f835fefe6c67bfcdab09e80bf7e620155df779b40de34bfba1e1aa6feb8712d53826040516112e391815260200190565b60405180910390a25050565b60006112fa82611f50565b61130657506000919050565b602e54603054602f54611319908561345f565b6113239190613447565b610bd59190613494565b611335611e5d565b805161108790600b906020840190612d0b565b60008281526001602052604081206113609083611f65565b9392505050565b61136f611e5d565b805161108790600c906020840190612d0b565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66113d581611e0f565b600354600254610bb891849103600019016113f09190613447565b111561140f57604051632795088960e11b815260040160405180910390fd5b6114198383611f36565b826001600160a01b03167fdae674dcfe00575192c2bdc37b3269f3022785b77c4f0fc5b595db726740efe68360405161145491815260200190565b60405180910390a2505050565b606060058054610bea906133c8565b600061147b84611f50565b61148757506000611360565b602e546114b29083611499868861345f565b6114a39190613447565b6114ad9190613494565b611f71565b949350505050565b7f9b68ff5a609d4f46e354ee0585b0dc13a372a76b24df74377a8e29c04d6517ce6114e481611e0f565b602c548210611506576040516363df817160e01b815260040160405180910390fd5b61150f83611f50565b61152c576040516307ed98ed60e31b815260040160405180910390fd5b6000838152602d6020526040908190208390555183907f8641bfa5e7f229a0cf7fb66a456566ca3ebf5e3f6a87fa67e749b5ae389580f6906114549085815260200190565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006115ec6002546000190190565b905090565b60006115fe602f54151590565b61161b57604051636f7dd8d560e01b815260040160405180910390fd5b61162482611f50565b611641576040516307ed98ed60e31b815260040160405180910390fd5b600061164c836112ef565b905061165781611f71565b6000938452601060205260409093208390555090919050565b611678611e5d565b60318190556040517ffdbff6218df92772eb15f2d2ccd63d3e081ed150c9bc50560cf7ad826752c35f90600090a150565b6116b4848484610e17565b6001600160a01b0383163b156116ed576116d084848484612119565b6116ed576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606116fe82611f50565b61171b576040516307ed98ed60e31b815260040160405180910390fd5b60408051607b60f81b602082015281516001818303018152602190910190915280611744610bdb565b61174d85612210565b60405160200161175f939291906134a8565b604051602081830303815290604052905080600c6040516020016117849291906135b9565b60405160208183030381529060405290508061179f8461230e565b6040516020016117b0929190613606565b6040516020818303038152906040529050806040516020016117d2919061365a565b60405160208183030381529060405290506117ee602f54151590565b156119345760006117fe84611b20565b905081601161180e60008461248d565b604051602001611820939291906136b9565b60408051601f19818403018152919052915060015b600d548110156118c857600061185c826007811115611856576118566136a3565b8461256e565b11156118b65782601182600881106118765761187661368d565b0161189283600781111561188c5761188c6136a3565b8561248d565b6040516020016118a493929190613737565b60405160208183030381529060405292505b806118c081613771565b915050611835565b506000848152602d602052604090205415611932576000848152602d6020526040902054602c80548492602b929181106119045761190461368d565b906000526020600020016040516020016119209392919061378c565b60405160208183030381529060405291505b505b8060405160200161194591906137fd565b60405160208183030381529060405290506000611961826125ab565b9050806040516020016119749190613823565b60408051601f19818403018152919052949350505050565b611994611e5d565b80602960008560078111156119ab576119ab6136a3565b815260200190815260200160002083815481106119ca576119ca61368d565b9060005260206000200190805190602001906116ed929190612d0b565b6000818152600160205260408120610bd5906126ff565b606060296000836007811115611a1657611a166136a3565b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611af0578382906000526020600020018054611a63906133c8565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8f906133c8565b8015611adc5780601f10611ab157610100808354040283529160200191611adc565b820191906000526020600020905b815481529060010190602001808311611abf57829003601f168201915b505050505081526020019060010190611a44565b505050509050919050565b600082815260208190526040902060010154611b1681611e0f565b6110038383611e3b565b6000611b2d602f54151590565b611b3957506000919050565b611b4282611f50565b611b4e57506000919050565b6000611b59836112ef565b6000848152602d602052604090205490915015611b8257611360611b7c82611f71565b84611f09565b61136081611f71565b611b93611e5d565b6001600160a01b038116611bf85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611074565b611c0181611eb7565b50565b611c0c611e5d565b602f5415611c2d5760405163a89ac15160e01b815260040160405180910390fd5b602f8390556030829055603281905560408051848152602081018490527fb8349fbdf2fcc29ce592edcad8f7eb683211b3cee76a45543fc8eaf73bb43d42910160405180910390a1505050565b60218160088110610fd757600080fd5b611c948282611382565b611087576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611cca3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611360836001600160a01b038416612709565b60006301ffc9a760e01b6001600160e01b031983161480611d5457506380ac58cd60e01b6001600160e01b03198316145b80610bd55750506001600160e01b031916635b5e139f60e01b1490565b600081600111158015611d85575060025482105b8015610bd5575050600090815260066020526040902054600160e01b161590565b60008180600111611df657600254811015611df657600081815260066020526040902054600160e01b8116611df4575b80611360575060001901600081815260066020526040902054611dd6565b505b604051636f96cda160e11b815260040160405180910390fd5b611c018133612758565b611e238282611c8a565b60008281526001602052604090206110039082611d0e565b611e4582826127bc565b60008281526001602052604090206110039082612821565b600a546001600160a01b031633146111ff5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611074565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000600d54600e54611f1b919061345f565b6000838152602d6020526040902054901b8317905092915050565b611087828260405180602001604052806000815250612836565b60008082118015610bd5575050610bb8101590565b600061136083836128a3565b60008181611f7e82612210565b604051602001611f8e9190613868565b60408051601f19818403018152919052805160209091012090506000805b600d5481101561211057600060198260088110611fcb57611fcb61368d565b0154118015611ff6575060198160088110611fe857611fe861368d565b0154611ff484836128cd565b105b15612000576120fe565b60008181526029602052604081205461201b90600190613884565b6120259086613494565b612030906001613447565b6000838152602a60205260409020805491925090829081106120545761205461368d565b906000526020600020015461207685600d54856120719190613447565b6128cd565b106120be576000828152602a602052604090206120bb90602184600881106120a0576120a061368d565b01546120ac87866128e8565b6120b69190613494565b612906565b90505b81600e546120cc919061345f565b6000838152602960205260409020549082901b93909317926120f090600190613884565b6120fa908661389b565b9450505b8061210881613771565b915050611fac565b50949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061214e9033908990889088906004016138af565b602060405180830381600087803b15801561216857600080fd5b505af1925050508015612198575060408051601f3d908101601f19168201909252612195918101906138ec565b60015b6121f3573d8080156121c6576040519150601f19603f3d011682016040523d82523d6000602084013e6121cb565b606091505b5080516121eb576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060816122345750506040805180820190915260018152600360fc1b602082015290565b8160005b811561225e578061224881613771565b91506122579050600a8361389b565b9150612238565b60008167ffffffffffffffff81111561227957612279612fdb565b6040519080825280601f01601f1916602001820160405280156122a3576020820181803683370190505b5090505b84156114b2576122b8600183613884565b91506122c5600a86613494565b6122d0906030613447565b60f81b8183815181106122e5576122e561368d565b60200101906001600160f81b031916908160001a905350612307600a8661389b565b94506122a7565b60606000600b6040516020016123249190613909565b6040516020818303038152906040529050612340602f54151590565b15612465576000838152602d602052604090205415612399576000838152602d602052604081205461237190612210565b90508181604051602001612386929190613915565b6040516020818303038152906040529150505b60006123a484611b20565b905060005b600d5481101561245e5760006123d86123d38360078111156123cd576123cd6136a3565b8561256e565b612210565b905060006001600d546123eb9190613884565b83106124065760405180602001604052806000815250612421565b604051806040016040528060018152602001602d60f81b8152505b905084828260405160200161243893929190613950565b60405160208183030381529060405294505050808061245690613771565b9150506123a9565b5050610bd5565b806040516020016124769190613993565b604051602081830303815290604052905092915050565b6060600061249b848461256e565b9050602960008560078111156124b3576124b36136a3565b815260200190815260200160002081815481106124d2576124d261368d565b9060005260206000200180546124e7906133c8565b80601f0160208091040260200160405190810160405280929190818152602001828054612513906133c8565b80156125605780601f1061253557610100808354040283529160200191612560565b820191906000526020600020905b81548152906001019060200180831161254357829003601f168201915b505050505091505092915050565b60008161257d57506000610bd5565b600f54836007811115612592576125926136a3565b600e5461259f919061345f565b83901c16905092915050565b60608151600014156125cb57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613a6160409139905060006003845160026125fa9190613447565b612604919061389b565b61260f90600461345f565b67ffffffffffffffff81111561262757612627612fdb565b6040519080825280601f01601f191660200182016040528015612651576020820181803683370190505b509050600182016020820185865187015b808210156126bd576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612662565b50506003865106600181146126d957600281146126ec576126f4565b603d6001830353603d60028303536126f4565b603d60018303535b509195945050505050565b6000610bd5825490565b600081815260018301602052604081205461275057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610bd5565b506000610bd5565b6127628282611382565b6110875761277a816001600160a01b03166014612985565b612785836020612985565b6040516020016127969291906139be565b60408051601f198184030181529082905262461bcd60e51b825261107491600401612edf565b6127c68282611382565b15611087576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611360836001600160a01b038416612b21565b6128408383612c14565b6001600160a01b0383163b15611003576002548281035b61286a6000868380600101945086612119565b612887576040516368d2bf6b60e11b815260040160405180910390fd5b81811061285757816002541461289c57600080fd5b5050505050565b60008260000182815481106128ba576128ba61368d565b9060005260206000200154905092915050565b60006128da82600761345f565b83901c607f16905092915050565b60006128f582602061345f565b83901c63ffffffff16905092915050565b600060015b835481101561297b578381815481106129265761292661368d565b906000526020600020015483101561293f579050610bd5565b8381815481106129515761295161368d565b9060005260206000200154836129679190613884565b92508061297381613771565b91505061290b565b5060009392505050565b6060600061299483600261345f565b61299f906002613447565b67ffffffffffffffff8111156129b7576129b7612fdb565b6040519080825280601f01601f1916602001820160405280156129e1576020820181803683370190505b509050600360fc1b816000815181106129fc576129fc61368d565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612a2b57612a2b61368d565b60200101906001600160f81b031916908160001a9053506000612a4f84600261345f565b612a5a906001613447565b90505b6001811115612ad2576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612a8e57612a8e61368d565b1a60f81b828281518110612aa457612aa461368d565b60200101906001600160f81b031916908160001a90535060049490941c93612acb81613a33565b9050612a5d565b5083156113605760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401611074565b60008181526001830160205260408120548015612c0a576000612b45600183613884565b8554909150600090612b5990600190613884565b9050818114612bbe576000866000018281548110612b7957612b7961368d565b9060005260206000200154905080876000018481548110612b9c57612b9c61368d565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612bcf57612bcf613a4a565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610bd5565b6000915050610bd5565b60025481612c355760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114612ce457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612cac565b5081612d0257604051622e076360e81b815260040160405180910390fd5b60025550505050565b828054612d17906133c8565b90600052602060002090601f016020900481019282612d395760008555612d7f565b82601f10612d5257805160ff1916838001178555612d7f565b82800160010185558215612d7f579182015b82811115612d7f578251825591602001919060010190612d64565b50612d8b929150612de8565b5090565b828054828255906000526020600020908101928215612ddc579160200282015b82811115612ddc5782518051612dcc918491602090910190612d0b565b5091602001919060010190612daf565b50612d8b929150612dfd565b5b80821115612d8b5760008155600101612de9565b80821115612d8b576000612e118282612e1a565b50600101612dfd565b508054612e26906133c8565b6000825580601f10612e36575050565b601f016020900490600052602060002090810190611c019190612de8565b6001600160e01b031981168114611c0157600080fd5b600060208284031215612e7c57600080fd5b813561136081612e54565b60005b83811015612ea2578181015183820152602001612e8a565b838111156116ed5750506000910152565b60008151808452612ecb816020860160208601612e87565b601f01601f19169290920160200192915050565b6020815260006113606020830184612eb3565b600060208284031215612f0457600080fd5b5035919050565b80356001600160a01b0381168114612f2257600080fd5b919050565b60008060408385031215612f3a57600080fd5b612f4383612f0b565b946020939093013593505050565b60008060408385031215612f6457600080fd5b50508035926020909101359150565b600080600060608486031215612f8857600080fd5b612f9184612f0b565b9250612f9f60208501612f0b565b9150604084013590509250925092565b60008060408385031215612fc257600080fd5b82359150612fd260208401612f0b565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561301a5761301a612fdb565b604052919050565b600067ffffffffffffffff83111561303c5761303c612fdb565b61304f601f8401601f1916602001612ff1565b905082815283838301111561306357600080fd5b828260208301376000602084830101529392505050565b600082601f83011261308b57600080fd5b61136083833560208501613022565b600080604083850312156130ad57600080fd5b823567ffffffffffffffff808211156130c557600080fd5b6130d18683870161307a565b93506020915081850135818111156130e857600080fd5b8501601f810187136130f957600080fd5b80358281111561310b5761310b612fdb565b8060051b61311a858201612ff1565b918252828101850191858101908a84111561313457600080fd5b86850192505b83831015613170578235868111156131525760008081fd5b6131608c898389010161307a565b835250918601919086019061313a565b809750505050505050509250929050565b60006020828403121561319357600080fd5b61136082612f0b565b6000602082840312156131ae57600080fd5b813567ffffffffffffffff8111156131c557600080fd5b6114b28482850161307a565b6000806000606084860312156131e657600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561321057600080fd5b61321983612f0b565b91506020830135801515811461322e57600080fd5b809150509250929050565b6000806000806080858703121561324f57600080fd5b61325885612f0b565b935061326660208601612f0b565b925060408501359150606085013567ffffffffffffffff81111561328957600080fd5b8501601f8101871361329a57600080fd5b6132a987823560208401613022565b91505092959194509250565b803560088110612f2257600080fd5b6000806000606084860312156132d957600080fd5b6132e2846132b5565b925060208401359150604084013567ffffffffffffffff81111561330557600080fd5b6133118682870161307a565b9150509250925092565b60006020828403121561332d57600080fd5b611360826132b5565b600081518084526020808501808196508360051b8101915082860160005b8581101561337e57828403895261336c848351612eb3565b98850198935090840190600101613354565b5091979650505050505050565b6020815260006113606020830184613336565b600080604083850312156133b157600080fd5b6133ba83612f0b565b9150612fd260208401612f0b565b600181811c908216806133dc57607f821691505b602082108114156133fd57634e487b7160e01b600052602260045260246000fd5b50919050565b6040815260006134166040830185612eb3565b82810360208401526134288185613336565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561345a5761345a613431565b500190565b600081600019048311821515161561347957613479613431565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826134a3576134a361347e565b500690565b600084516134ba818460208901612e87565b68113730b6b2911d101160b91b90830190815284516134e0816009840160208901612e87565b61202360f01b60099290910191820152835161350381600b840160208801612e87565b61088b60f21b600b9290910191820152600d0195945050505050565b8054600090600181811c908083168061353957607f831692505b602080841082141561355b57634e487b7160e01b600052602260045260246000fd5b81801561356f5760018114613580576135ad565b60ff198616895284890196506135ad565b60008881526020902060005b868110156135a55781548b82015290850190830161358c565b505084890196505b50505050505092915050565b600083516135cb818460208801612e87565b6f113232b9b1b934b83a34b7b7111d101160811b9083019081526135f2601082018561351f565b61088b60f21b815260020195945050505050565b60008351613618818460208801612e87565b691134b6b0b3b2911d101160b11b908301908152835161363f81600a840160208801612e87565b61088b60f21b600a9290910191820152600c01949350505050565b6000825161366c818460208701612e87565b6e2261747472696275746573223a205b60881b920191825250600f01919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b600084516136cb818460208901612e87565b6f3d913a3930b4ba2fba3cb832911d101160811b9083019081526136f2601082018661351f565b6c111610113b30b63ab2911d101160991b8152845190915061371b81600d840160208801612e87565b61227d60f01b600d9290910191820152600f0195945050505050565b60008451613749818460208901612e87565b70163d913a3930b4ba2fba3cb832911d101160791b9083019081526136f2601182018661351f565b600060001982141561378557613785613431565b5060010190565b6000845161379e818460208901612e87565b70163d913a3930b4ba2fba3cb832911d101160791b9083019081526137c6601182018661351f565b6c111610113b30b63ab2911d101160991b815290506137e8600d82018561351f565b61227d60f01b81526002019695505050505050565b6000825161380f818460208701612e87565b615d7d60f01b920191825250600201919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161385b81601d850160208701612e87565b91909101601d0192915050565b6000825161387a818460208701612e87565b9190910192915050565b60008282101561389657613896613431565b500390565b6000826138aa576138aa61347e565b500490565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906138e290830184612eb3565b9695505050505050565b6000602082840312156138fe57600080fd5b815161136081612e54565b6000611360828461351f565b60008351613927818460208801612e87565b83519083019061393b818360208801612e87565b602f60f81b9101908152600101949350505050565b60008451613962818460208901612e87565b845190830190613976818360208901612e87565b8451910190613989818360208801612e87565b0195945050505050565b600082516139a5818460208701612e87565b663ab735b737bbb760c91b920191825250600701919050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516139f6816017850160208801612e87565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613a27816028840160208801612e87565b01602801949350505050565b600081613a4257613a42613431565b506000190190565b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212209284bce1983f2dc0c8bae275dc450fcf3f4bcc032938edef8eccb798cd07f34a64736f6c63430008090033

Loading...
Loading
Loading...
Loading
[ 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.