ETH Price: $2,491.47 (-0.84%)

Zombiemice (Zmice)
 

Overview

TokenID

2464

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

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

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

Contract Source Code Verified (Exact Match)

Contract Name:
Zombiemice

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : Zombiemice.sol
// contracts/Zombiemice.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "./ZombiemiceUtils.sol";

contract Zombiemice is ERC721Enumerable {
    /*
     _______            _     _             _            
    (_______)          | |   (_)           (_)           
       __    ___  ____ | | _  _  ____ ____  _  ____ ____ 
      / /   / _ \|    \| || \| |/ _  )    \| |/ ___) _  )
     / /___| |_| | | | | |_) ) ( (/ /| | | | ( (__( (/ / 
    (_______)___/|_|_|_|____/|_|\____)_|_|_|_|\____)____)     

    */
    using ZombiemiceUtils for uint8;

    struct Trait {
        string traitName;
        string traitType;
        string pixels;
        uint256 pixelCount;
    }

    //Mappings
    mapping(uint256 => Trait[]) public traitTypes;
    mapping(string => bool) hashToMinted;
    mapping(uint256 => string) internal tokenIdToHash;

    //uint256s
    uint256 MAX_SUPPLY = 3287;
    uint256 SEED_NONCE = 0;
    uint256 public maxMintPerTx = 10;

    //string arrays
    string[26] LETTERS = [
        "a",
        "b",
        "c",
        "d",
        "e",
        "f",
        "g",
        "h",
        "i",
        "j",
        "k",
        "l",
        "m",
        "n",
        "o",
        "p",
        "q",
        "r",
        "s",
        "t",
        "u",
        "v",
        "w",
        "x",
        "y",
        "z"
    ];

    //strings
    string collectionDescription =
        "Zombiemice is fully onchain collection of zombie mice available in exchange for the offchain version only.";
    string svg_tail;

    //uint arrays
    uint16[][8] TIERS;

    //address
    address public gateAddress;
    address public secret = 0x5768617420686170706e7320696e204C61623739;
    address public _owner;

    constructor() ERC721("Zombiemice", "Zmice") {
        _owner = msg.sender;

        //Declare all the rarity tiers

        //Hat
        TIERS[0] = [17, 49, 66, 99, 131, 164, 197, 296, 394, 1874];
        //Whiskers
        TIERS[1] = [66, 263, 329, 986, 1643];
        //Neck
        TIERS[2] = [99, 263, 296, 329, 2300];
        //Earrings
        TIERS[3] = [16, 66, 99, 99, 3007];
        //Eyes
        TIERS[4] = [17, 34, 131, 148, 164, 230, 592, 657, 657, 657];
        //Mouth
        TIERS[5] = [469, 469, 469, 470, 470, 470, 470];
        //Nose
        TIERS[6] = [657, 658, 657, 658, 657];
        //Character
        TIERS[7] = [7, 23, 237, 329, 380, 394, 427, 471, 507, 512];
    }

    /*
     ______  _            
    |  ___ \(_)      _    
    | | _ | |_ ____ | |_  
    | || || | |  _ \|  _) 
    | || || | | | | | |__ 
    |_||_||_|_|_| |_|\___)       

   */

    /**
     * @dev Converts a digit from 0 - MAX_SUPPLY into its corresponding rarity based on the given rarity tier.
     * @param _randinput The input from 0 - MAX_SUPPLY to use for rarity gen.
     * @param _rarityTier The tier to use.
     */
    function rarityGen(
        uint256 _randinput, 
        uint8 _rarityTier
    )
        internal
        view
        returns (string memory)
    {
        uint16 currentLowerBound = 0;
        for (uint8 i = 0; i < TIERS[_rarityTier].length; i++) {
            uint16 thisPercentage = TIERS[_rarityTier][i];
            if (
                _randinput >= currentLowerBound &&
                _randinput < currentLowerBound + thisPercentage
            ) return i.toString();
            currentLowerBound = currentLowerBound + thisPercentage;
        }

        revert();
    }

    /**
     * @dev Generates a 9 digit hash from a tokenId, address, and random number.
     * @param _t The token id to be used within the hash.
     * @param _a The address to be used within the hash.
     * @param _c The custom nonce to be used within the hash.
     */
    function hash(
        uint256 _t,
        address _a,
        uint256 _c
    ) 
        internal 
        returns (string memory) 
    {
        require(_c < 10);

        // This will generate a 9 character string.
        // The last 8 digits are random, the first is always 0 for normal mice
        string memory currentHash = "0";

        for (uint8 i = 0; i < 8; i++) {
            SEED_NONCE++;
            uint16 _randinput = uint16(
                uint256(
                    keccak256(
                        abi.encodePacked(
                            block.timestamp,
                            block.difficulty,
                            _t,
                            _a,
                            _c,
                            SEED_NONCE
                        )
                    )
                ) % MAX_SUPPLY
            );

            currentHash = string(
                abi.encodePacked(currentHash, rarityGen(_randinput, i))
            );
        }

        if (hashToMinted[currentHash]) return hash(_t, _a, _c + 1);

        return currentHash;
    }

    /**
     * @dev Mints new tokens. Available from the Gate contract only.
     * @param _claimer The address claimed the offchain mouse
     * @param _num Amount to mint
     */

    function claimMice(address _claimer, uint _num) external onlyGate {
        uint256 _startMintId = totalSupply();
        require(
            _startMintId + _num <= MAX_SUPPLY,
            "The amount exceed max supply"
        );

        for (uint i = 0; i < _num; i++) {
            uint256 _mintId = _startMintId + i;

            tokenIdToHash[_mintId] = hash(_mintId, _claimer, 0);
            hashToMinted[tokenIdToHash[_mintId]] = true;

            _mint(_claimer, _mintId);
        }
    }

    /**
     * @dev Mints new token. Available from the Gate contract only.
     * @param _claimer The address claimed the offchain mouse
     */
    function claimMouse(
        address _claimer
    ) 
        external 
        onlyGate 
    {
        uint256 _mintId = totalSupply();
        require(_mintId < MAX_SUPPLY, "No more zombiemice to claim");

        tokenIdToHash[_mintId] = hash(_mintId, _claimer, 0);
        hashToMinted[tokenIdToHash[_mintId]] = true;

        _mint(_claimer, _mintId);
    }

    /*
     ______                 _     ___                        _                  
    (_____ \               | |   / __)                  _   (_)                 
     _____) ) ____ ____  _ | |  | |__ _   _ ____   ____| |_  _  ___  ____   ___ 
    (_____ ( / _  ) _  |/ || |  |  __) | | |  _ \ / ___)  _)| |/ _ \|  _ \ /___)
        | ( (/ ( ( | ( (_| |  | |  | |_| | | | ( (___| |__| | |_| | | | |___ |
        |_|\____)_||_|\____|  |_|   \____|_| |_|\____)\___)_|\___/|_| |_(___/    

    */

    /**
     * @dev Helper function to reduce pixel size within contract
     */
    function letterToNumber(
        string memory _inputLetter
    )
        internal
        view
        returns (uint8)
    {
        for (uint8 i = 0; i < LETTERS.length; i++) {
            if (
                keccak256(abi.encodePacked((LETTERS[i]))) ==
                keccak256(abi.encodePacked((_inputLetter)))
            ) return (i + 1);
        }
        revert();
    }

    /**
     * @dev Hash to SVG function
     */
    function hashToSVG(
        string memory _hash
    )
        public
        view
        returns (string memory)
    {
        string memory svgString;
        bool[24][24] memory placedPixels;

        for (uint8 i = 0; i < 9; i++) {
            if (traitTypes[i].length == 0) {
                continue;
            }
            uint8 thisTraitIndex = ZombiemiceUtils.parseInt(
                ZombiemiceUtils.substring(_hash, i, i + 1)
            );

            for (
                uint16 j = 0;
                j < traitTypes[i][thisTraitIndex].pixelCount;
                j++
            ) {
                string memory thisPixel = ZombiemiceUtils.substring(
                    traitTypes[i][thisTraitIndex].pixels,
                    j * 4,
                    j * 4 + 4
                );

                uint8 x = letterToNumber(
                    ZombiemiceUtils.substring(thisPixel, 0, 1)
                );
                uint8 y = letterToNumber(
                    ZombiemiceUtils.substring(thisPixel, 1, 2)
                );

                if (placedPixels[x][y]) continue;

                svgString = string(
                    abi.encodePacked(
                        svgString,
                        "<rect class='c",
                        ZombiemiceUtils.substring(thisPixel, 2, 4),
                        "' x='",
                        x.toString(),
                        "' y='",
                        y.toString(),
                        "'/>"
                    )
                );

                placedPixels[x][y] = true;
            }
        }

        svgString = string(
            abi.encodePacked(
                '<svg id="mouse-svg" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 24 24"> ',
                svgString,
                svg_tail
            )
        );

        return svgString;
    }

    /**
     * @dev Hash to metadata function
     */
    function hashToMetadata(
        string memory _hash
    )
        public
        view
        returns (string memory)
    {
        string memory metadataString;

        for (uint8 i = 0; i < 9; i++) {
            if (traitTypes[i].length == 0) {
                continue;
            }
            uint8 thisTraitIndex = ZombiemiceUtils.parseInt(
                ZombiemiceUtils.substring(_hash, i, i + 1)
            );

            metadataString = string(
                abi.encodePacked(
                    metadataString,
                    '{"trait_type":"',
                    traitTypes[i][thisTraitIndex].traitType,
                    '","value":"',
                    traitTypes[i][thisTraitIndex].traitName,
                    '"}'
                )
            );

            if (i != 8)
                metadataString = string(abi.encodePacked(metadataString, ","));
        }

        return string(abi.encodePacked("[", metadataString, "]"));
    }

    /**
     * @dev Returns the SVG and metadata for a token Id
     * @param _tokenId The tokenId to return the SVG and metadata for.
     */
    function tokenURI(
        uint256 _tokenId
    )
        public
        view
        override
        returns (string memory)
    {
        require(_exists(_tokenId));

        string memory tokenHash = _tokenIdToHash(_tokenId);

        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    ZombiemiceUtils.encode(
                        bytes(
                            string(
                                abi.encodePacked(
                                    '{"name": "Zombiemice #',
                                    ZombiemiceUtils.toString(_tokenId),
                                    '", "description":"',collectionDescription,'","image": "data:image/svg+xml;base64,',
                                    ZombiemiceUtils.encode(
                                        bytes(hashToSVG(tokenHash))
                                    ),
                                    '","attributes":',
                                    hashToMetadata(tokenHash),
                                    "}"
                                )
                            )
                        )
                    )
                )
            );
    }

    /**
     * @dev Returns a hash for a given tokenId
     * @param _tokenId The tokenId to return the hash for.
     */
    function _tokenIdToHash(
        uint256 _tokenId
    )
        public
        view
        returns (string memory)
    {
        return tokenIdToHash[_tokenId];
    }

    /**
     * @dev Returns the wallet of a given wallet. Mainly for ease for frontend devs.
     * @param _wallet The wallet to get the tokens of.
     */
    function walletOfOwner(
        address _wallet
    )
        external
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_wallet);

        uint256[] memory tokensId = new uint256[](tokenCount);
        for (uint256 i; i < tokenCount; i++) {
            tokensId[i] = tokenOfOwnerByIndex(_wallet, i);
        }
        return tokensId;
    }

    /*
      _____                                         _       
     / ___ \                                       | |      
    | |   | |_ _ _ ____   ____  ____     ___  ____ | |_   _ 
    | |   | | | | |  _ \ / _  )/ ___)   / _ \|  _ \| | | | |
    | |___| | | | | | | ( (/ /| |      | |_| | | | | | |_| |
     \_____/ \____|_| |_|\____)_|       \___/|_| |_|_|\__  |
                                                      (____/ 
    */

    /**
     * @dev Clears the traits.
     */
    function clearTraits() 
        external 
        onlyOwner 
    {
        for (uint256 i = 0; i < 9; i++) {
            delete traitTypes[i];
        }
    }

    /**
     * @dev Clears traits of specific type
     */
    function clearTraitType(
        uint _index
    ) 
        external 
        onlyOwner 
    {
        delete traitTypes[_index];
    }

    /**
     * @dev Add a trait type
     * @param _traitTypeIndex The trait type index
     * @param _traits Array of traits to add
     */

    function addTraitType(
        uint256 _traitTypeIndex,
        Trait[] memory _traits
    )
        external
        onlyOwner
    {
        for (uint256 i = 0; i < _traits.length; i++) {
            traitTypes[_traitTypeIndex].push(
                Trait(
                    _traits[i].traitName,
                    _traits[i].traitType,
                    _traits[i].pixels,
                    _traits[i].pixelCount
                )
            );
        }

        return;
    }

    /**
     * @dev Set the SVG classes description
     * @param _tail tail string
     */
    function setSVGTail(
        string memory _tail
    ) 
        external 
        onlyOwner 
    {
        svg_tail = _tail;
    }

    /**
     * @dev Set the Gate contract address
     * @param _gateAddress Gate contract address
     */
    function setGateAddress(
        address _gateAddress
    ) 
        external 
        onlyOwner 
    {
        gateAddress = _gateAddress;
    }

    /**
     * @dev Set the every item description
     * @param _collectionDescription The description string
     */
    function setCollectionDescription(
        string memory _collectionDescription
    ) 
        external 
        onlyOwner 
    {
        collectionDescription = _collectionDescription;
    }

    /**
     * @dev Transfers ownership
     * @param _newOwner The new owner
     */
    function transferOwnership(
        address _newOwner
    ) 
        public 
        onlyOwner 
    {
        _owner = _newOwner;
    }

    //Modifiers

    /**
     * @dev Modifier to only allow onchaingate contract to call mint functions
     */
    modifier onlyGate() {
        require(gateAddress == msg.sender);
        _;
    }

    /**
     * @dev Modifier to only allow owner to call functions
     */
    modifier onlyOwner() {
        require(_owner == msg.sender);
        _;
    }
}

File 2 of 13 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 3 of 13 : ZombiemiceUtils.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library ZombiemiceUtils {
    string internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

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

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

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

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

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

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

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

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

            // run over the input, 3 bytes at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                dataPtr := add(dataPtr, 3)

                // read 3 bytes
                let input := mload(dataPtr)

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

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

        return result;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        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);
    }

    function parseInt(string memory _a)
        internal
        pure
        returns (uint8 _parsedInt)
    {
        bytes memory bresult = bytes(_a);
        uint8 mint = 0;
        for (uint8 i = 0; i < bresult.length; i++) {
            if (
                (uint8(uint8(bresult[i])) >= 48) &&
                (uint8(uint8(bresult[i])) <= 57)
            ) {
                mint *= 10;
                mint += uint8(bresult[i]) - 48;
            }
        }
        return mint;
    }

    function substring(
        string memory str,
        uint256 startIndex,
        uint256 endIndex
    ) internal pure returns (string memory) {
        bytes memory strBytes = bytes(str);
        bytes memory result = new bytes(endIndex - startIndex);
        for (uint256 i = startIndex; i < endIndex; i++) {
            result[i - startIndex] = strBytes[i];
        }
        return string(result);
    }

    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

File 4 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @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, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @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 (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

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

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 5 of 13 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @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
    ) external;

    /**
     * @dev Transfers `tokenId` token 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;

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

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

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

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

File 7 of 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 8 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @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);
}

File 9 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 13 : Context.sol
// SPDX-License-Identifier: MIT

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 11 of 13 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 12 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT

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 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT

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": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"_tokenIdToHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitTypeIndex","type":"uint256"},{"components":[{"internalType":"string","name":"traitName","type":"string"},{"internalType":"string","name":"traitType","type":"string"},{"internalType":"string","name":"pixels","type":"string"},{"internalType":"uint256","name":"pixelCount","type":"uint256"}],"internalType":"struct Zombiemice.Trait[]","name":"_traits","type":"tuple[]"}],"name":"addTraitType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_claimer","type":"address"},{"internalType":"uint256","name":"_num","type":"uint256"}],"name":"claimMice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_claimer","type":"address"}],"name":"claimMouse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"clearTraitType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"clearTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gateAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"string","name":"_hash","type":"string"}],"name":"hashToMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"hashToSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"maxMintPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","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":"nonpayable","type":"function"},{"inputs":[],"name":"secret","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_collectionDescription","type":"string"}],"name":"setCollectionDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gateAddress","type":"address"}],"name":"setGateAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tail","type":"string"}],"name":"setSVGTail","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"traitTypes","outputs":[{"internalType":"string","name":"traitName","type":"string"},{"internalType":"string","name":"traitType","type":"string"},{"internalType":"string","name":"pixels","type":"string"},{"internalType":"uint256","name":"pixelCount","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]

6080604052610cd7600d556000600e55600a600f556040518061034001604052806040518060400160405280600181526020017f610000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f620000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f630000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f640000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f650000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f660000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f670000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f680000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f690000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f6a0000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f6b0000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f6c0000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f6d0000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f6e0000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f6f0000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f700000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f710000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f720000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f730000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f740000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f750000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f760000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f770000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f780000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f790000000000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600181526020017f7a00000000000000000000000000000000000000000000000000000000000000815250815250601090601a6200062e92919062000cfc565b506040518060a00160405280606a815260200162006be2606a9139602a90805190602001906200066092919062000d56565b50735768617420686170706e7320696e204c61623739603560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620006c357600080fd5b506040518060400160405280600a81526020017f5a6f6d6269656d696365000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f5a6d69636500000000000000000000000000000000000000000000000000000081525081600090805190602001906200074892919062000d56565b5080600190805190602001906200076192919062000d56565b50505033603660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604051806101400160405280601161ffff168152602001603161ffff168152602001604261ffff168152602001606361ffff168152602001608361ffff16815260200160a461ffff16815260200160c561ffff16815260200161012861ffff16815260200161018a61ffff16815260200161075261ffff16815250602c6000600881106200085c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0190600a6200086d92919062000de7565b506040518060a00160405280604261ffff16815260200161010761ffff16815260200161014961ffff1681526020016103da61ffff16815260200161066b61ffff16815250602c600160088110620008ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01906005620008ff92919062000e98565b506040518060a00160405280606361ffff16815260200161010761ffff16815260200161012861ffff16815260200161014961ffff1681526020016108fc61ffff16815250602c60026008811062000980577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b019060056200099192919062000e98565b506040518060a00160405280601061ffff168152602001604261ffff168152602001606361ffff168152602001606361ffff168152602001610bbf61ffff16815250602c60036008811062000a0f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0190600562000a2092919062000e98565b50604051806101400160405280601161ffff168152602001602261ffff168152602001608361ffff168152602001609461ffff16815260200160a461ffff16815260200160e661ffff16815260200161025061ffff16815260200161029161ffff16815260200161029161ffff16815260200161029161ffff16815250602c60046008811062000ad9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0190600a62000aea92919062000de7565b506040518060e001604052806101d561ffff1681526020016101d561ffff1681526020016101d561ffff1681526020016101d661ffff1681526020016101d661ffff1681526020016101d661ffff1681526020016101d661ffff16815250602c60056008811062000b84577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0190600762000b9592919062000f49565b506040518060a0016040528061029161ffff16815260200161029261ffff16815260200161029161ffff16815260200161029261ffff16815260200161029161ffff16815250602c60066008811062000c17577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0190600562000c2892919062000e98565b50604051806101400160405280600761ffff168152602001601761ffff16815260200160ed61ffff16815260200161014961ffff16815260200161017c61ffff16815260200161018a61ffff1681526020016101ab61ffff1681526020016101d761ffff1681526020016101fb61ffff16815260200161020061ffff16815250602c60076008811062000ce4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0190600a62000cf592919062000de7565b50620010ec565b82601a810192821562000d43579160200282015b8281111562000d4257825182908051906020019062000d3192919062000d56565b509160200191906001019062000d10565b5b50905062000d52919062000ffa565b5090565b82805462000d649062001087565b90600052602060002090601f01602090048101928262000d88576000855562000dd4565b82601f1062000da357805160ff191683800117855562000dd4565b8280016001018555821562000dd4579182015b8281111562000dd357825182559160200191906001019062000db6565b5b50905062000de3919062001022565b5090565b82805482825590600052602060002090600f0160109004810192821562000e855791602002820160005b8382111562000e5357835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030262000e11565b801562000e835782816101000a81549061ffff021916905560020160208160010104928301926001030262000e53565b505b50905062000e94919062001022565b5090565b82805482825590600052602060002090600f0160109004810192821562000f365791602002820160005b8382111562000f0457835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030262000ec2565b801562000f345782816101000a81549061ffff021916905560020160208160010104928301926001030262000f04565b505b50905062000f45919062001022565b5090565b82805482825590600052602060002090600f0160109004810192821562000fe75791602002820160005b8382111562000fb557835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030262000f73565b801562000fe55782816101000a81549061ffff021916905560020160208160010104928301926001030262000fb5565b505b50905062000ff6919062001022565b5090565b5b808211156200101e576000818162001014919062001041565b5060010162000ffb565b5090565b5b808211156200103d57600081600090555060010162001023565b5090565b5080546200104f9062001087565b6000825580601f1062001063575062001084565b601f01602090049060005260206000209081019062001083919062001022565b5b50565b60006002820490506001821680620010a057607f821691505b60208210811415620010b757620010b6620010bd565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b615ae680620010fc6000396000f3fe608060405234801561001057600080fd5b50600436106102055760003560e01c806370a082311161011a578063c60a426a116100ad578063de7fcb1d1161007c578063de7fcb1d14610623578063e985e9c514610641578063ebc358f214610671578063f2fde38b1461068d578063f50ae793146106a957610205565b8063c60a426a1461059d578063c87b56dd146105b9578063d1efd30d146105e9578063d93dfe881461060757610205565b8063a22cb465116100e9578063a22cb4651461052b578063b2bdfa7b14610547578063b88d4fde14610565578063c22ab20d1461058157610205565b806370a082311461049157806389ce3074146104c15780639471302e146104f157806395d89b411461050d57610205565b80632c3825461161019d578063438b63001161016c578063438b6300146103b35780634a5cfcc2146103e35780634f6ccce7146104015780636352211e1461043157806366e338701461046157610205565b80632c382546146103185780632f745c59146103345780632fb098d21461036457806342842e0e1461039757610205565b8063095ea7b3116101d9578063095ea7b3146102b8578063098afd4b146102d457806318160ddd146102de57806323b872dd146102fc57610205565b80625ea3071461020a57806301ffc9a71461023a57806306fdde031461026a578063081812fc14610288575b600080fd5b610224600480360381019061021f9190614034565b6106c5565b6040516102319190615106565b60405180910390f35b610254600480360381019061024f9190613fa1565b61076a565b60405161026191906150eb565b60405180910390f35b6102726107e4565b60405161027f9190615106565b60405180910390f35b6102a2600480360381019061029d9190614034565b610876565b6040516102af9190615062565b60405180910390f35b6102d260048036038101906102cd9190613f65565b6108fb565b005b6102dc610a13565b005b6102e6610aae565b6040516102f391906153a2565b60405180910390f35b61031660048036038101906103119190613e5f565b610abb565b005b610332600480360381019061032d9190613ff3565b610b1b565b005b61034e60048036038101906103499190613f65565b610b8f565b60405161035b91906153a2565b60405180910390f35b61037e600480360381019061037991906140b1565b610c34565b60405161038e9493929190615128565b60405180910390f35b6103b160048036038101906103ac9190613e5f565b610e19565b005b6103cd60048036038101906103c89190613dfa565b610e39565b6040516103da91906150c9565b60405180910390f35b6103eb610f33565b6040516103f89190615062565b60405180910390f35b61041b60048036038101906104169190614034565b610f59565b60405161042891906153a2565b60405180910390f35b61044b60048036038101906104469190614034565b610ff0565b6040516104589190615062565b60405180910390f35b61047b60048036038101906104769190613ff3565b6110a2565b6040516104889190615106565b60405180910390f35b6104ab60048036038101906104a69190613dfa565b611258565b6040516104b891906153a2565b60405180910390f35b6104db60048036038101906104d69190613ff3565b611310565b6040516104e89190615106565b60405180910390f35b61050b60048036038101906105069190613ff3565b611703565b005b610515611777565b6040516105229190615106565b60405180910390f35b61054560048036038101906105409190613f29565b611809565b005b61054f61198a565b60405161055c9190615062565b60405180910390f35b61057f600480360381019061057a9190613eae565b6119b0565b005b61059b60048036038101906105969190613dfa565b611a12565b005b6105b760048036038101906105b29190614034565b611ab0565b005b6105d360048036038101906105ce9190614034565b611b2c565b6040516105e09190615106565b60405180910390f35b6105f1611bc3565b6040516105fe9190615062565b60405180910390f35b610621600480360381019061061c919061405d565b611be9565b005b61062b611e37565b60405161063891906153a2565b60405180910390f35b61065b60048036038101906106569190613e23565b611e3d565b60405161066891906150eb565b60405180910390f35b61068b60048036038101906106869190613dfa565b611ed1565b005b6106a760048036038101906106a29190613dfa565b612005565b005b6106c360048036038101906106be9190613f65565b6120a3565b005b6060600c600083815260200190815260200160002080546106e59061580b565b80601f01602080910402602001604051908101604052809291908181526020018280546107119061580b565b801561075e5780601f106107335761010080835404028352916020019161075e565b820191906000526020600020905b81548152906001019060200180831161074157829003601f168201915b50505050509050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107dd57506107dc82612214565b5b9050919050565b6060600080546107f39061580b565b80601f016020809104026020016040519081016040528092919081815260200182805461081f9061580b565b801561086c5780601f106108415761010080835404028352916020019161086c565b820191906000526020600020905b81548152906001019060200180831161084f57829003601f168201915b5050505050905090565b6000610881826122f6565b6108c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b7906152c2565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061090682610ff0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096e90615302565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610996612362565b73ffffffffffffffffffffffffffffffffffffffff1614806109c557506109c4816109bf612362565b611e3d565b5b610a04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fb90615242565b60405180910390fd5b610a0e838361236a565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a6d57600080fd5b60005b6009811015610aab57600a60008281526020019081526020016000206000610a9891906139d7565b8080610aa390615868565b915050610a70565b50565b6000600880549050905090565b610acc610ac6612362565b82612423565b610b0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0290615342565b60405180910390fd5b610b16838383612501565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b7557600080fd5b80602b9080519060200190610b8b9291906139fb565b5050565b6000610b9a83611258565b8210610bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd290615182565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600a6020528160005260406000208181548110610c5057600080fd5b906000526020600020906004020160009150915050806000018054610c749061580b565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca09061580b565b8015610ced5780601f10610cc257610100808354040283529160200191610ced565b820191906000526020600020905b815481529060010190602001808311610cd057829003601f168201915b505050505090806001018054610d029061580b565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2e9061580b565b8015610d7b5780601f10610d5057610100808354040283529160200191610d7b565b820191906000526020600020905b815481529060010190602001808311610d5e57829003601f168201915b505050505090806002018054610d909061580b565b80601f0160208091040260200160405190810160405280929190818152602001828054610dbc9061580b565b8015610e095780601f10610dde57610100808354040283529160200191610e09565b820191906000526020600020905b815481529060010190602001808311610dec57829003601f168201915b5050505050908060030154905084565b610e34838383604051806020016040528060008152506119b0565b505050565b60606000610e4683611258565b905060008167ffffffffffffffff811115610e8a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610eb85781602001602082028036833780820191505090505b50905060005b82811015610f2857610ed08582610b8f565b828281518110610f09577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080610f2090615868565b915050610ebe565b508092505050919050565b603460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610f63610aae565b8210610fa4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9b90615362565b60405180910390fd5b60088281548110610fde577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611099576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109090615282565b60405180910390fd5b80915050919050565b60608060005b60098160ff16101561122f576000600a60008360ff1681526020019081526020016000208054905014156110db5761121c565b60006111026110fd868460ff166001866110f59190615599565b60ff1661275d565b6128cb565b905082600a60008460ff1681526020019081526020016000208260ff1681548110611156577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060040201600101600a60008560ff1681526020019081526020016000208360ff16815481106111b8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600402016000016040516020016111db93929190614e96565b604051602081830303815290604052925060088260ff161461121a57826040516020016112089190614e0a565b60405160208183030381529060405292505b505b8080611227906158b1565b9150506110a8565b50806040516020016112419190614fa3565b604051602081830303815290604052915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c090615262565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60608061131b613a81565b60005b60098160ff1610156116d3576000600a60008360ff168152602001908152602001600020805490501415611351576116c0565b6000611378611373878460ff1660018661136b9190615599565b60ff1661275d565b6128cb565b905060005b600a60008460ff1681526020019081526020016000208260ff16815481106113ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060040201600301548161ffff1610156116bd57600061150d600a60008660ff1681526020019081526020016000208460ff1681548110611441577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060040201600201805461145d9061580b565b80601f01602080910402602001604051908101604052809291908181526020018280546114899061580b565b80156114d65780601f106114ab576101008083540402835291602001916114d6565b820191906000526020600020905b8154815290600101906020018083116114b957829003601f168201915b50505050506004846114e89190615601565b61ffff16600480866114fa9190615601565b611504919061550b565b61ffff1661275d565b90506000611526611521836000600161275d565b612a21565b9050600061153f61153a846001600261275d565b612a21565b9050868260ff166018811061157d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201518160ff16601881106115bd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151156115cf575050506116aa565b876115dd846002600461275d565b6115e98460ff16612af9565b6115f58460ff16612af9565b6040516020016116089493929190614e2c565b60405160208183030381529060405297506001878360ff1660188110611657577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201518260ff1660188110611697577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020190151590811515815250505050505b80806116b59061583d565b91505061137d565b50505b80806116cb906158b1565b91505061131e565b5081602b6040516020016116e8929190614f74565b60405160208183030381529060405291508192505050919050565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461175d57600080fd5b80602a90805190602001906117739291906139fb565b5050565b6060600180546117869061580b565b80601f01602080910402602001604051908101604052809291908181526020018280546117b29061580b565b80156117ff5780601f106117d4576101008083540402835291602001916117ff565b820191906000526020600020905b8154815290600101906020018083116117e257829003601f168201915b5050505050905090565b611811612362565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561187f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187690615202565b60405180910390fd5b806005600061188c612362565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611939612362565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161197e91906150eb565b60405180910390a35050565b603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6119c16119bb612362565b83612423565b611a00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f790615342565b60405180910390fd5b611a0c84848484612ca6565b50505050565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a6c57600080fd5b80603460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b0a57600080fd5b600a60008281526020019081526020016000206000611b2991906139d7565b50565b6060611b37826122f6565b611b4057600080fd5b6000611b4b836106c5565b9050611b9c611b5984612af9565b602a611b6c611b6785611310565b612d02565b611b75856110a2565b604051602001611b889493929190614eff565b604051602081830303815290604052612d02565b604051602001611bac9190614fd0565b604051602081830303815290604052915050919050565b603560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c4357600080fd5b60005b8151811015611e3257600a60008481526020019081526020016000206040518060800160405280848481518110611ca6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600001518152602001848481518110611cf0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151602001518152602001848481518110611d3a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151604001518152602001848481518110611d84577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516060015181525090806001815401808255809150506001900390600052602060002090600402016000909190919091506000820151816000019080519060200190611dd89291906139fb565b506020820151816001019080519060200190611df59291906139fb565b506040820151816002019080519060200190611e129291906139fb565b506060820151816003015550508080611e2a90615868565b915050611c46565b505050565b600f5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16603460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f2b57600080fd5b6000611f35610aae565b9050600d548110611f7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7290615382565b60405180910390fd5b611f8781836000612ead565b600c60008381526020019081526020016000209080519060200190611fad9291906139fb565b506001600b600c6000848152602001908152602001600020604051611fd29190614ee8565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506120018282613006565b5050565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461205f57600080fd5b80603660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16603460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146120fd57600080fd5b6000612107610aae565b9050600d5482826121189190615543565b1115612159576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215090615322565b60405180910390fd5b60005b8281101561220e57600081836121729190615543565b905061218081866000612ead565b600c600083815260200190815260200160002090805190602001906121a69291906139fb565b506001600b600c60008481526020019081526020016000206040516121cb9190614ee8565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506121fa8582613006565b50808061220690615868565b91505061215c565b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806122df57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806122ef57506122ee826131d4565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166123dd83610ff0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061242e826122f6565b61246d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246490615222565b60405180910390fd5b600061247883610ff0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806124e757508373ffffffffffffffffffffffffffffffffffffffff166124cf84610876565b73ffffffffffffffffffffffffffffffffffffffff16145b806124f857506124f78185611e3d565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661252182610ff0565b73ffffffffffffffffffffffffffffffffffffffff1614612577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256e906152e2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125de906151e2565b60405180910390fd5b6125f283838361323e565b6125fd60008261236a565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461264d91906156d2565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126a49190615543565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b606060008490506000848461277291906156d2565b67ffffffffffffffff8111156127b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156127e35781602001600182028036833780820191505090505b50905060008590505b848110156128be5782818151811061282d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b82878361284591906156d2565b8151811061287c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806128b690615868565b9150506127ec565b5080925050509392505050565b6000808290506000805b82518160ff161015612a16576030838260ff168151811061291f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff161015801561298b57506039838260ff1681518110612977577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff1611155b15612a0357600a8261299d9190615697565b91506030838260ff16815181106129dd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c6129f59190615706565b82612a009190615599565b91505b8080612a0e906158b1565b9150506128d5565b508092505050919050565b600080600090505b601a8160ff161015612aee5782604051602001612a469190614dcf565b6040516020818303038152906040528051906020012060108260ff16601a8110612a99577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01604051602001612aaa9190614ee8565b604051602081830303815290604052805190602001201415612adb57600181612ad39190615599565b915050612af4565b8080612ae6906158b1565b915050612a29565b50600080fd5b919050565b60606000821415612b41576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ca1565b600082905060005b60008214612b73578080612b5c90615868565b915050600a82612b6c91906155d0565b9150612b49565b60008167ffffffffffffffff811115612bb5577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612be75781602001600182028036833780820191505090505b5090505b60008514612c9a57600182612c0091906156d2565b9150600a85612c0f9190615909565b6030612c1b9190615543565b60f81b818381518110612c57577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612c9391906155d0565b9450612beb565b8093505050505b919050565b612cb1848484612501565b612cbd84848484613352565b612cfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cf3906151a2565b60405180910390fd5b50505050565b6060600082511415612d2557604051806020016040528060008152509050612ea8565b6000604051806060016040528060408152602001615a716040913990506000600360028551612d549190615543565b612d5e91906155d0565b6004612d6a919061563d565b90506000602082612d7b9190615543565b67ffffffffffffffff811115612dba577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612dec5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015612e67576003830192508251603f8160121c1685015160f81b8252600182019150603f81600c1c1685015160f81b8252600182019150603f8160061c1685015160f81b8252600182019150603f811685015160f81b825260018201915050612e00565b600389510660018114612e815760028114612e9157612e9c565b613d3d60f01b6002830352612e9c565b603d60f81b60018303525b50505050508093505050505b919050565b6060600a8210612ebc57600080fd5b60006040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905060005b60088160ff161015612fa957600e6000815480929190612f1890615868565b91905055506000600d544244898989600e54604051602001612f3f96959493929190614ff2565b6040516020818303038152906040528051906020012060001c612f629190615909565b905082612f738261ffff16846134e9565b604051602001612f84929190614de6565b6040516020818303038152906040529250508080612fa1906158b1565b915050612ef9565b50600b81604051612fba9190614dcf565b908152602001604051809103902060009054906101000a900460ff1615612ffa57612ff28585600186612fed9190615543565b612ead565b915050612fff565b809150505b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613076576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161306d906152a2565b60405180910390fd5b61307f816122f6565b156130bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130b6906151c2565b60405180910390fd5b6130cb6000838361323e565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461311b9190615543565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613249838383613647565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561328c576132878161364c565b6132cb565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146132ca576132c98382613695565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561330e5761330981613802565b61334d565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461334c5761334b8282613945565b5b5b505050565b60006133738473ffffffffffffffffffffffffffffffffffffffff166139c4565b156134dc578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261339c612362565b8786866040518563ffffffff1660e01b81526004016133be949392919061507d565b602060405180830381600087803b1580156133d857600080fd5b505af192505050801561340957506040513d601f19601f820116820180604052508101906134069190613fca565b60015b61348c573d8060008114613439576040519150601f19603f3d011682016040523d82523d6000602084013e61343e565b606091505b50600081511415613484576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347b906151a2565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134e1565b600190505b949350505050565b60606000805b602c8460ff166008811061352c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01805490508160ff16101561363b576000602c8560ff166008811061357a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b018260ff16815481106135b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1690508261ffff1686101580156135fe575080836135f7919061550b565b61ffff1686105b156136195761360f8260ff16612af9565b9350505050613641565b8083613625919061550b565b9250508080613633906158b1565b9150506134ef565b50600080fd5b92915050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016136a284611258565b6136ac91906156d2565b9050600060076000848152602001908152602001600020549050818114613791576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061381691906156d2565b905060006009600084815260200190815260200160002054905060006008838154811061386c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106138b4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613929577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061395083611258565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b50805460008255600402906000526020600020908101906139f89190613aaf565b50565b828054613a079061580b565b90600052602060002090601f016020900481019282613a295760008555613a70565b82601f10613a4257805160ff1916838001178555613a70565b82800160010185558215613a70579182015b82811115613a6f578251825591602001919060010190613a54565b5b509050613a7d9190613afe565b5090565b6040518061030001604052806018905b613a99613b1b565b815260200190600190039081613a915790505090565b5b80821115613afa5760008082016000613ac99190613b3e565b600182016000613ad99190613b3e565b600282016000613ae99190613b3e565b600382016000905550600401613ab0565b5090565b5b80821115613b17576000816000905550600101613aff565b5090565b604051806103000160405280601890602082028036833780820191505090505090565b508054613b4a9061580b565b6000825580601f10613b5c5750613b7b565b601f016020900490600052602060002090810190613b7a9190613afe565b5b50565b6000613b91613b8c846153ee565b6153bd565b9050808382526020820190508260005b85811015613bd15781358501613bb78882613d29565b845260208401935060208301925050600181019050613ba1565b5050509392505050565b6000613bee613be98461541a565b6153bd565b905082815260208101848484011115613c0657600080fd5b613c118482856157c9565b509392505050565b6000613c2c613c278461544a565b6153bd565b905082815260208101848484011115613c4457600080fd5b613c4f8482856157c9565b509392505050565b600081359050613c6681615a14565b92915050565b600082601f830112613c7d57600080fd5b8135613c8d848260208601613b7e565b91505092915050565b600081359050613ca581615a2b565b92915050565b600081359050613cba81615a42565b92915050565b600081519050613ccf81615a42565b92915050565b600082601f830112613ce657600080fd5b8135613cf6848260208601613bdb565b91505092915050565b600082601f830112613d1057600080fd5b8135613d20848260208601613c19565b91505092915050565b600060808284031215613d3b57600080fd5b613d4560806153bd565b9050600082013567ffffffffffffffff811115613d6157600080fd5b613d6d84828501613cff565b600083015250602082013567ffffffffffffffff811115613d8d57600080fd5b613d9984828501613cff565b602083015250604082013567ffffffffffffffff811115613db957600080fd5b613dc584828501613cff565b6040830152506060613dd984828501613de5565b60608301525092915050565b600081359050613df481615a59565b92915050565b600060208284031215613e0c57600080fd5b6000613e1a84828501613c57565b91505092915050565b60008060408385031215613e3657600080fd5b6000613e4485828601613c57565b9250506020613e5585828601613c57565b9150509250929050565b600080600060608486031215613e7457600080fd5b6000613e8286828701613c57565b9350506020613e9386828701613c57565b9250506040613ea486828701613de5565b9150509250925092565b60008060008060808587031215613ec457600080fd5b6000613ed287828801613c57565b9450506020613ee387828801613c57565b9350506040613ef487828801613de5565b925050606085013567ffffffffffffffff811115613f1157600080fd5b613f1d87828801613cd5565b91505092959194509250565b60008060408385031215613f3c57600080fd5b6000613f4a85828601613c57565b9250506020613f5b85828601613c96565b9150509250929050565b60008060408385031215613f7857600080fd5b6000613f8685828601613c57565b9250506020613f9785828601613de5565b9150509250929050565b600060208284031215613fb357600080fd5b6000613fc184828501613cab565b91505092915050565b600060208284031215613fdc57600080fd5b6000613fea84828501613cc0565b91505092915050565b60006020828403121561400557600080fd5b600082013567ffffffffffffffff81111561401f57600080fd5b61402b84828501613cff565b91505092915050565b60006020828403121561404657600080fd5b600061405484828501613de5565b91505092915050565b6000806040838503121561407057600080fd5b600061407e85828601613de5565b925050602083013567ffffffffffffffff81111561409b57600080fd5b6140a785828601613c6c565b9150509250929050565b600080604083850312156140c457600080fd5b60006140d285828601613de5565b92505060206140e385828601613de5565b9150509250929050565b60006140f98383614d9a565b60208301905092915050565b61410e8161573a565b82525050565b6141256141208261573a565b6158db565b82525050565b60006141368261549f565b61414081856154cd565b935061414b8361547a565b8060005b8381101561417c57815161416388826140ed565b975061416e836154c0565b92505060018101905061414f565b5085935050505092915050565b6141928161574c565b82525050565b60006141a3826154aa565b6141ad81856154de565b93506141bd8185602086016157d8565b6141c6816159f6565b840191505092915050565b60006141dc826154b5565b6141e681856154ef565b93506141f68185602086016157d8565b6141ff816159f6565b840191505092915050565b6000614215826154b5565b61421f8185615500565b935061422f8185602086016157d8565b80840191505092915050565b600081546142488161580b565b6142528186615500565b9450600182166000811461426d576001811461427e576142b1565b60ff198316865281860193506142b1565b6142878561548a565b60005b838110156142a95781548189015260018201915060208101905061428a565b838801955050505b50505092915050565b60006142c7600583615500565b91507f2720793d270000000000000000000000000000000000000000000000000000006000830152600582019050919050565b6000614307602b836154ef565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061436d6032836154ef565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006143d3601c836154ef565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614413600583615500565b91507f2720783d270000000000000000000000000000000000000000000000000000006000830152600582019050919050565b6000614453600f83615500565b91507f222c2261747472696275746573223a00000000000000000000000000000000006000830152600f82019050919050565b6000614493601683615500565b91507f7b226e616d65223a20225a6f6d6269656d6963652023000000000000000000006000830152601682019050919050565b60006144d3600183615500565b91507f2c000000000000000000000000000000000000000000000000000000000000006000830152600182019050919050565b6000614513600e83615500565b91507f3c7265637420636c6173733d27630000000000000000000000000000000000006000830152600e82019050919050565b60006145536024836154ef565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145b96019836154ef565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b60006145f9602683615500565b91507f222c22696d616765223a2022646174613a696d6167652f7376672b786d6c3b6260008301527f61736536342c00000000000000000000000000000000000000000000000000006020830152602682019050919050565b600061465f600f83615500565b91507f7b2274726169745f74797065223a2200000000000000000000000000000000006000830152600f82019050919050565b600061469f602c836154ef565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614705600383615500565b91507f272f3e00000000000000000000000000000000000000000000000000000000006000830152600382019050919050565b60006147456038836154ef565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006147ab602a836154ef565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006148116029836154ef565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614877600283615500565b91507f227d0000000000000000000000000000000000000000000000000000000000006000830152600282019050919050565b60006148b7607083615500565b91507f3c7376672069643d226d6f7573652d7376672220786d6c6e733d22687474703a60008301527f2f2f7777772e77332e6f72672f323030302f737667222070726573657276654160208301527f7370656374526174696f3d22784d696e594d696e206d6565742220766965774260408301527f6f783d22302030203234203234223e20000000000000000000000000000000006060830152607082019050919050565b60006149696020836154ef565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b60006149a9600183615500565b91507f7d000000000000000000000000000000000000000000000000000000000000006000830152600182019050919050565b60006149e9602c836154ef565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614a4f601283615500565b91507f222c20226465736372697074696f6e223a2200000000000000000000000000006000830152601282019050919050565b6000614a8f600183615500565b91507f5b000000000000000000000000000000000000000000000000000000000000006000830152600182019050919050565b6000614acf6029836154ef565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b35600b83615500565b91507f222c2276616c7565223a220000000000000000000000000000000000000000006000830152600b82019050919050565b6000614b75600183615500565b91507f5d000000000000000000000000000000000000000000000000000000000000006000830152600182019050919050565b6000614bb56021836154ef565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614c1b601c836154ef565b91507f54686520616d6f756e7420657863656564206d617820737570706c79000000006000830152602082019050919050565b6000614c5b601d83615500565b91507f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000006000830152601d82019050919050565b6000614c9b6031836154ef565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614d01602c836154ef565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000614d67601b836154ef565b91507f4e6f206d6f7265207a6f6d6269656d69636520746f20636c61696d00000000006000830152602082019050919050565b614da3816157b2565b82525050565b614db2816157b2565b82525050565b614dc9614dc4826157b2565b6158ff565b82525050565b6000614ddb828461420a565b915081905092915050565b6000614df2828561420a565b9150614dfe828461420a565b91508190509392505050565b6000614e16828461420a565b9150614e21826144c6565b915081905092915050565b6000614e38828761420a565b9150614e4382614506565b9150614e4f828661420a565b9150614e5a82614406565b9150614e66828561420a565b9150614e71826142ba565b9150614e7d828461420a565b9150614e88826146f8565b915081905095945050505050565b6000614ea2828661420a565b9150614ead82614652565b9150614eb9828561423b565b9150614ec482614b28565b9150614ed0828461423b565b9150614edb8261486a565b9150819050949350505050565b6000614ef4828461423b565b915081905092915050565b6000614f0a82614486565b9150614f16828761420a565b9150614f2182614a42565b9150614f2d828661423b565b9150614f38826145ec565b9150614f44828561420a565b9150614f4f82614446565b9150614f5b828461420a565b9150614f668261499c565b915081905095945050505050565b6000614f7f826148aa565b9150614f8b828561420a565b9150614f97828461423b565b91508190509392505050565b6000614fae82614a82565b9150614fba828461420a565b9150614fc582614b68565b915081905092915050565b6000614fdb82614c4e565b9150614fe7828461420a565b915081905092915050565b6000614ffe8289614db8565b60208201915061500e8288614db8565b60208201915061501e8287614db8565b60208201915061502e8286614114565b60148201915061503e8285614db8565b60208201915061504e8284614db8565b602082019150819050979650505050505050565b60006020820190506150776000830184614105565b92915050565b60006080820190506150926000830187614105565b61509f6020830186614105565b6150ac6040830185614da9565b81810360608301526150be8184614198565b905095945050505050565b600060208201905081810360008301526150e3818461412b565b905092915050565b60006020820190506151006000830184614189565b92915050565b6000602082019050818103600083015261512081846141d1565b905092915050565b6000608082019050818103600083015261514281876141d1565b9050818103602083015261515681866141d1565b9050818103604083015261516a81856141d1565b90506151796060830184614da9565b95945050505050565b6000602082019050818103600083015261519b816142fa565b9050919050565b600060208201905081810360008301526151bb81614360565b9050919050565b600060208201905081810360008301526151db816143c6565b9050919050565b600060208201905081810360008301526151fb81614546565b9050919050565b6000602082019050818103600083015261521b816145ac565b9050919050565b6000602082019050818103600083015261523b81614692565b9050919050565b6000602082019050818103600083015261525b81614738565b9050919050565b6000602082019050818103600083015261527b8161479e565b9050919050565b6000602082019050818103600083015261529b81614804565b9050919050565b600060208201905081810360008301526152bb8161495c565b9050919050565b600060208201905081810360008301526152db816149dc565b9050919050565b600060208201905081810360008301526152fb81614ac2565b9050919050565b6000602082019050818103600083015261531b81614ba8565b9050919050565b6000602082019050818103600083015261533b81614c0e565b9050919050565b6000602082019050818103600083015261535b81614c8e565b9050919050565b6000602082019050818103600083015261537b81614cf4565b9050919050565b6000602082019050818103600083015261539b81614d5a565b9050919050565b60006020820190506153b76000830184614da9565b92915050565b6000604051905081810181811067ffffffffffffffff821117156153e4576153e36159c7565b5b8060405250919050565b600067ffffffffffffffff821115615409576154086159c7565b5b602082029050602081019050919050565b600067ffffffffffffffff821115615435576154346159c7565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115615465576154646159c7565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061551682615784565b915061552183615784565b92508261ffff038211156155385761553761593a565b5b828201905092915050565b600061554e826157b2565b9150615559836157b2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561558e5761558d61593a565b5b828201905092915050565b60006155a4826157bc565b91506155af836157bc565b92508260ff038211156155c5576155c461593a565b5b828201905092915050565b60006155db826157b2565b91506155e6836157b2565b9250826155f6576155f5615969565b5b828204905092915050565b600061560c82615784565b915061561783615784565b92508161ffff04831182151516156156325761563161593a565b5b828202905092915050565b6000615648826157b2565b9150615653836157b2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561568c5761568b61593a565b5b828202905092915050565b60006156a2826157bc565b91506156ad836157bc565b92508160ff04831182151516156156c7576156c661593a565b5b828202905092915050565b60006156dd826157b2565b91506156e8836157b2565b9250828210156156fb576156fa61593a565b5b828203905092915050565b6000615711826157bc565b915061571c836157bc565b92508282101561572f5761572e61593a565b5b828203905092915050565b600061574582615792565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156157f65780820151818401526020810190506157db565b83811115615805576000848401525b50505050565b6000600282049050600182168061582357607f821691505b6020821081141561583757615836615998565b5b50919050565b600061584882615784565b915061ffff82141561585d5761585c61593a565b5b600182019050919050565b6000615873826157b2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156158a6576158a561593a565b5b600182019050919050565b60006158bc826157bc565b915060ff8214156158d0576158cf61593a565b5b600182019050919050565b60006158e6826158ed565b9050919050565b60006158f882615a07565b9050919050565b6000819050919050565b6000615914826157b2565b915061591f836157b2565b92508261592f5761592e615969565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b615a1d8161573a565b8114615a2857600080fd5b50565b615a348161574c565b8114615a3f57600080fd5b50565b615a4b81615758565b8114615a5657600080fd5b50565b615a62816157b2565b8114615a6d57600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122077a2bb261f70a5e9ece862fd7dac5940fb527144cb5f89d879adfc7824644a2a64736f6c634300080000335a6f6d6269656d6963652069732066756c6c79206f6e636861696e20636f6c6c656374696f6e206f66207a6f6d626965206d69636520617661696c61626c6520696e2065786368616e676520666f7220746865206f6666636861696e2076657273696f6e206f6e6c792e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102055760003560e01c806370a082311161011a578063c60a426a116100ad578063de7fcb1d1161007c578063de7fcb1d14610623578063e985e9c514610641578063ebc358f214610671578063f2fde38b1461068d578063f50ae793146106a957610205565b8063c60a426a1461059d578063c87b56dd146105b9578063d1efd30d146105e9578063d93dfe881461060757610205565b8063a22cb465116100e9578063a22cb4651461052b578063b2bdfa7b14610547578063b88d4fde14610565578063c22ab20d1461058157610205565b806370a082311461049157806389ce3074146104c15780639471302e146104f157806395d89b411461050d57610205565b80632c3825461161019d578063438b63001161016c578063438b6300146103b35780634a5cfcc2146103e35780634f6ccce7146104015780636352211e1461043157806366e338701461046157610205565b80632c382546146103185780632f745c59146103345780632fb098d21461036457806342842e0e1461039757610205565b8063095ea7b3116101d9578063095ea7b3146102b8578063098afd4b146102d457806318160ddd146102de57806323b872dd146102fc57610205565b80625ea3071461020a57806301ffc9a71461023a57806306fdde031461026a578063081812fc14610288575b600080fd5b610224600480360381019061021f9190614034565b6106c5565b6040516102319190615106565b60405180910390f35b610254600480360381019061024f9190613fa1565b61076a565b60405161026191906150eb565b60405180910390f35b6102726107e4565b60405161027f9190615106565b60405180910390f35b6102a2600480360381019061029d9190614034565b610876565b6040516102af9190615062565b60405180910390f35b6102d260048036038101906102cd9190613f65565b6108fb565b005b6102dc610a13565b005b6102e6610aae565b6040516102f391906153a2565b60405180910390f35b61031660048036038101906103119190613e5f565b610abb565b005b610332600480360381019061032d9190613ff3565b610b1b565b005b61034e60048036038101906103499190613f65565b610b8f565b60405161035b91906153a2565b60405180910390f35b61037e600480360381019061037991906140b1565b610c34565b60405161038e9493929190615128565b60405180910390f35b6103b160048036038101906103ac9190613e5f565b610e19565b005b6103cd60048036038101906103c89190613dfa565b610e39565b6040516103da91906150c9565b60405180910390f35b6103eb610f33565b6040516103f89190615062565b60405180910390f35b61041b60048036038101906104169190614034565b610f59565b60405161042891906153a2565b60405180910390f35b61044b60048036038101906104469190614034565b610ff0565b6040516104589190615062565b60405180910390f35b61047b60048036038101906104769190613ff3565b6110a2565b6040516104889190615106565b60405180910390f35b6104ab60048036038101906104a69190613dfa565b611258565b6040516104b891906153a2565b60405180910390f35b6104db60048036038101906104d69190613ff3565b611310565b6040516104e89190615106565b60405180910390f35b61050b60048036038101906105069190613ff3565b611703565b005b610515611777565b6040516105229190615106565b60405180910390f35b61054560048036038101906105409190613f29565b611809565b005b61054f61198a565b60405161055c9190615062565b60405180910390f35b61057f600480360381019061057a9190613eae565b6119b0565b005b61059b60048036038101906105969190613dfa565b611a12565b005b6105b760048036038101906105b29190614034565b611ab0565b005b6105d360048036038101906105ce9190614034565b611b2c565b6040516105e09190615106565b60405180910390f35b6105f1611bc3565b6040516105fe9190615062565b60405180910390f35b610621600480360381019061061c919061405d565b611be9565b005b61062b611e37565b60405161063891906153a2565b60405180910390f35b61065b60048036038101906106569190613e23565b611e3d565b60405161066891906150eb565b60405180910390f35b61068b60048036038101906106869190613dfa565b611ed1565b005b6106a760048036038101906106a29190613dfa565b612005565b005b6106c360048036038101906106be9190613f65565b6120a3565b005b6060600c600083815260200190815260200160002080546106e59061580b565b80601f01602080910402602001604051908101604052809291908181526020018280546107119061580b565b801561075e5780601f106107335761010080835404028352916020019161075e565b820191906000526020600020905b81548152906001019060200180831161074157829003601f168201915b50505050509050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107dd57506107dc82612214565b5b9050919050565b6060600080546107f39061580b565b80601f016020809104026020016040519081016040528092919081815260200182805461081f9061580b565b801561086c5780601f106108415761010080835404028352916020019161086c565b820191906000526020600020905b81548152906001019060200180831161084f57829003601f168201915b5050505050905090565b6000610881826122f6565b6108c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b7906152c2565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061090682610ff0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610977576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096e90615302565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610996612362565b73ffffffffffffffffffffffffffffffffffffffff1614806109c557506109c4816109bf612362565b611e3d565b5b610a04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fb90615242565b60405180910390fd5b610a0e838361236a565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a6d57600080fd5b60005b6009811015610aab57600a60008281526020019081526020016000206000610a9891906139d7565b8080610aa390615868565b915050610a70565b50565b6000600880549050905090565b610acc610ac6612362565b82612423565b610b0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0290615342565b60405180910390fd5b610b16838383612501565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b7557600080fd5b80602b9080519060200190610b8b9291906139fb565b5050565b6000610b9a83611258565b8210610bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd290615182565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600a6020528160005260406000208181548110610c5057600080fd5b906000526020600020906004020160009150915050806000018054610c749061580b565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca09061580b565b8015610ced5780601f10610cc257610100808354040283529160200191610ced565b820191906000526020600020905b815481529060010190602001808311610cd057829003601f168201915b505050505090806001018054610d029061580b565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2e9061580b565b8015610d7b5780601f10610d5057610100808354040283529160200191610d7b565b820191906000526020600020905b815481529060010190602001808311610d5e57829003601f168201915b505050505090806002018054610d909061580b565b80601f0160208091040260200160405190810160405280929190818152602001828054610dbc9061580b565b8015610e095780601f10610dde57610100808354040283529160200191610e09565b820191906000526020600020905b815481529060010190602001808311610dec57829003601f168201915b5050505050908060030154905084565b610e34838383604051806020016040528060008152506119b0565b505050565b60606000610e4683611258565b905060008167ffffffffffffffff811115610e8a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610eb85781602001602082028036833780820191505090505b50905060005b82811015610f2857610ed08582610b8f565b828281518110610f09577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080610f2090615868565b915050610ebe565b508092505050919050565b603460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610f63610aae565b8210610fa4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9b90615362565b60405180910390fd5b60088281548110610fde577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611099576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109090615282565b60405180910390fd5b80915050919050565b60608060005b60098160ff16101561122f576000600a60008360ff1681526020019081526020016000208054905014156110db5761121c565b60006111026110fd868460ff166001866110f59190615599565b60ff1661275d565b6128cb565b905082600a60008460ff1681526020019081526020016000208260ff1681548110611156577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060040201600101600a60008560ff1681526020019081526020016000208360ff16815481106111b8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600402016000016040516020016111db93929190614e96565b604051602081830303815290604052925060088260ff161461121a57826040516020016112089190614e0a565b60405160208183030381529060405292505b505b8080611227906158b1565b9150506110a8565b50806040516020016112419190614fa3565b604051602081830303815290604052915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c090615262565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60608061131b613a81565b60005b60098160ff1610156116d3576000600a60008360ff168152602001908152602001600020805490501415611351576116c0565b6000611378611373878460ff1660018661136b9190615599565b60ff1661275d565b6128cb565b905060005b600a60008460ff1681526020019081526020016000208260ff16815481106113ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060040201600301548161ffff1610156116bd57600061150d600a60008660ff1681526020019081526020016000208460ff1681548110611441577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060040201600201805461145d9061580b565b80601f01602080910402602001604051908101604052809291908181526020018280546114899061580b565b80156114d65780601f106114ab576101008083540402835291602001916114d6565b820191906000526020600020905b8154815290600101906020018083116114b957829003601f168201915b50505050506004846114e89190615601565b61ffff16600480866114fa9190615601565b611504919061550b565b61ffff1661275d565b90506000611526611521836000600161275d565b612a21565b9050600061153f61153a846001600261275d565b612a21565b9050868260ff166018811061157d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201518160ff16601881106115bd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151156115cf575050506116aa565b876115dd846002600461275d565b6115e98460ff16612af9565b6115f58460ff16612af9565b6040516020016116089493929190614e2c565b60405160208183030381529060405297506001878360ff1660188110611657577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201518260ff1660188110611697577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020190151590811515815250505050505b80806116b59061583d565b91505061137d565b50505b80806116cb906158b1565b91505061131e565b5081602b6040516020016116e8929190614f74565b60405160208183030381529060405291508192505050919050565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461175d57600080fd5b80602a90805190602001906117739291906139fb565b5050565b6060600180546117869061580b565b80601f01602080910402602001604051908101604052809291908181526020018280546117b29061580b565b80156117ff5780601f106117d4576101008083540402835291602001916117ff565b820191906000526020600020905b8154815290600101906020018083116117e257829003601f168201915b5050505050905090565b611811612362565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561187f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187690615202565b60405180910390fd5b806005600061188c612362565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611939612362565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161197e91906150eb565b60405180910390a35050565b603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6119c16119bb612362565b83612423565b611a00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f790615342565b60405180910390fd5b611a0c84848484612ca6565b50505050565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a6c57600080fd5b80603460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b0a57600080fd5b600a60008281526020019081526020016000206000611b2991906139d7565b50565b6060611b37826122f6565b611b4057600080fd5b6000611b4b836106c5565b9050611b9c611b5984612af9565b602a611b6c611b6785611310565b612d02565b611b75856110a2565b604051602001611b889493929190614eff565b604051602081830303815290604052612d02565b604051602001611bac9190614fd0565b604051602081830303815290604052915050919050565b603560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c4357600080fd5b60005b8151811015611e3257600a60008481526020019081526020016000206040518060800160405280848481518110611ca6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600001518152602001848481518110611cf0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151602001518152602001848481518110611d3a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151604001518152602001848481518110611d84577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516060015181525090806001815401808255809150506001900390600052602060002090600402016000909190919091506000820151816000019080519060200190611dd89291906139fb565b506020820151816001019080519060200190611df59291906139fb565b506040820151816002019080519060200190611e129291906139fb565b506060820151816003015550508080611e2a90615868565b915050611c46565b505050565b600f5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b3373ffffffffffffffffffffffffffffffffffffffff16603460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f2b57600080fd5b6000611f35610aae565b9050600d548110611f7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7290615382565b60405180910390fd5b611f8781836000612ead565b600c60008381526020019081526020016000209080519060200190611fad9291906139fb565b506001600b600c6000848152602001908152602001600020604051611fd29190614ee8565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506120018282613006565b5050565b3373ffffffffffffffffffffffffffffffffffffffff16603660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461205f57600080fd5b80603660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b3373ffffffffffffffffffffffffffffffffffffffff16603460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146120fd57600080fd5b6000612107610aae565b9050600d5482826121189190615543565b1115612159576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215090615322565b60405180910390fd5b60005b8281101561220e57600081836121729190615543565b905061218081866000612ead565b600c600083815260200190815260200160002090805190602001906121a69291906139fb565b506001600b600c60008481526020019081526020016000206040516121cb9190614ee8565b908152602001604051809103902060006101000a81548160ff0219169083151502179055506121fa8582613006565b50808061220690615868565b91505061215c565b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806122df57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806122ef57506122ee826131d4565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166123dd83610ff0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061242e826122f6565b61246d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246490615222565b60405180910390fd5b600061247883610ff0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806124e757508373ffffffffffffffffffffffffffffffffffffffff166124cf84610876565b73ffffffffffffffffffffffffffffffffffffffff16145b806124f857506124f78185611e3d565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661252182610ff0565b73ffffffffffffffffffffffffffffffffffffffff1614612577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256e906152e2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125de906151e2565b60405180910390fd5b6125f283838361323e565b6125fd60008261236a565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461264d91906156d2565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126a49190615543565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b606060008490506000848461277291906156d2565b67ffffffffffffffff8111156127b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156127e35781602001600182028036833780820191505090505b50905060008590505b848110156128be5782818151811061282d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b82878361284591906156d2565b8151811061287c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806128b690615868565b9150506127ec565b5080925050509392505050565b6000808290506000805b82518160ff161015612a16576030838260ff168151811061291f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff161015801561298b57506039838260ff1681518110612977577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff1611155b15612a0357600a8261299d9190615697565b91506030838260ff16815181106129dd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c6129f59190615706565b82612a009190615599565b91505b8080612a0e906158b1565b9150506128d5565b508092505050919050565b600080600090505b601a8160ff161015612aee5782604051602001612a469190614dcf565b6040516020818303038152906040528051906020012060108260ff16601a8110612a99577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01604051602001612aaa9190614ee8565b604051602081830303815290604052805190602001201415612adb57600181612ad39190615599565b915050612af4565b8080612ae6906158b1565b915050612a29565b50600080fd5b919050565b60606000821415612b41576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ca1565b600082905060005b60008214612b73578080612b5c90615868565b915050600a82612b6c91906155d0565b9150612b49565b60008167ffffffffffffffff811115612bb5577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612be75781602001600182028036833780820191505090505b5090505b60008514612c9a57600182612c0091906156d2565b9150600a85612c0f9190615909565b6030612c1b9190615543565b60f81b818381518110612c57577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612c9391906155d0565b9450612beb565b8093505050505b919050565b612cb1848484612501565b612cbd84848484613352565b612cfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cf3906151a2565b60405180910390fd5b50505050565b6060600082511415612d2557604051806020016040528060008152509050612ea8565b6000604051806060016040528060408152602001615a716040913990506000600360028551612d549190615543565b612d5e91906155d0565b6004612d6a919061563d565b90506000602082612d7b9190615543565b67ffffffffffffffff811115612dba577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612dec5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015612e67576003830192508251603f8160121c1685015160f81b8252600182019150603f81600c1c1685015160f81b8252600182019150603f8160061c1685015160f81b8252600182019150603f811685015160f81b825260018201915050612e00565b600389510660018114612e815760028114612e9157612e9c565b613d3d60f01b6002830352612e9c565b603d60f81b60018303525b50505050508093505050505b919050565b6060600a8210612ebc57600080fd5b60006040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905060005b60088160ff161015612fa957600e6000815480929190612f1890615868565b91905055506000600d544244898989600e54604051602001612f3f96959493929190614ff2565b6040516020818303038152906040528051906020012060001c612f629190615909565b905082612f738261ffff16846134e9565b604051602001612f84929190614de6565b6040516020818303038152906040529250508080612fa1906158b1565b915050612ef9565b50600b81604051612fba9190614dcf565b908152602001604051809103902060009054906101000a900460ff1615612ffa57612ff28585600186612fed9190615543565b612ead565b915050612fff565b809150505b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613076576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161306d906152a2565b60405180910390fd5b61307f816122f6565b156130bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130b6906151c2565b60405180910390fd5b6130cb6000838361323e565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461311b9190615543565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613249838383613647565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561328c576132878161364c565b6132cb565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146132ca576132c98382613695565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561330e5761330981613802565b61334d565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461334c5761334b8282613945565b5b5b505050565b60006133738473ffffffffffffffffffffffffffffffffffffffff166139c4565b156134dc578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261339c612362565b8786866040518563ffffffff1660e01b81526004016133be949392919061507d565b602060405180830381600087803b1580156133d857600080fd5b505af192505050801561340957506040513d601f19601f820116820180604052508101906134069190613fca565b60015b61348c573d8060008114613439576040519150601f19603f3d011682016040523d82523d6000602084013e61343e565b606091505b50600081511415613484576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347b906151a2565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134e1565b600190505b949350505050565b60606000805b602c8460ff166008811061352c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01805490508160ff16101561363b576000602c8560ff166008811061357a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b018260ff16815481106135b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090601091828204019190066002029054906101000a900461ffff1690508261ffff1686101580156135fe575080836135f7919061550b565b61ffff1686105b156136195761360f8260ff16612af9565b9350505050613641565b8083613625919061550b565b9250508080613633906158b1565b9150506134ef565b50600080fd5b92915050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016136a284611258565b6136ac91906156d2565b9050600060076000848152602001908152602001600020549050818114613791576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061381691906156d2565b905060006009600084815260200190815260200160002054905060006008838154811061386c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106138b4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613929577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061395083611258565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b50805460008255600402906000526020600020908101906139f89190613aaf565b50565b828054613a079061580b565b90600052602060002090601f016020900481019282613a295760008555613a70565b82601f10613a4257805160ff1916838001178555613a70565b82800160010185558215613a70579182015b82811115613a6f578251825591602001919060010190613a54565b5b509050613a7d9190613afe565b5090565b6040518061030001604052806018905b613a99613b1b565b815260200190600190039081613a915790505090565b5b80821115613afa5760008082016000613ac99190613b3e565b600182016000613ad99190613b3e565b600282016000613ae99190613b3e565b600382016000905550600401613ab0565b5090565b5b80821115613b17576000816000905550600101613aff565b5090565b604051806103000160405280601890602082028036833780820191505090505090565b508054613b4a9061580b565b6000825580601f10613b5c5750613b7b565b601f016020900490600052602060002090810190613b7a9190613afe565b5b50565b6000613b91613b8c846153ee565b6153bd565b9050808382526020820190508260005b85811015613bd15781358501613bb78882613d29565b845260208401935060208301925050600181019050613ba1565b5050509392505050565b6000613bee613be98461541a565b6153bd565b905082815260208101848484011115613c0657600080fd5b613c118482856157c9565b509392505050565b6000613c2c613c278461544a565b6153bd565b905082815260208101848484011115613c4457600080fd5b613c4f8482856157c9565b509392505050565b600081359050613c6681615a14565b92915050565b600082601f830112613c7d57600080fd5b8135613c8d848260208601613b7e565b91505092915050565b600081359050613ca581615a2b565b92915050565b600081359050613cba81615a42565b92915050565b600081519050613ccf81615a42565b92915050565b600082601f830112613ce657600080fd5b8135613cf6848260208601613bdb565b91505092915050565b600082601f830112613d1057600080fd5b8135613d20848260208601613c19565b91505092915050565b600060808284031215613d3b57600080fd5b613d4560806153bd565b9050600082013567ffffffffffffffff811115613d6157600080fd5b613d6d84828501613cff565b600083015250602082013567ffffffffffffffff811115613d8d57600080fd5b613d9984828501613cff565b602083015250604082013567ffffffffffffffff811115613db957600080fd5b613dc584828501613cff565b6040830152506060613dd984828501613de5565b60608301525092915050565b600081359050613df481615a59565b92915050565b600060208284031215613e0c57600080fd5b6000613e1a84828501613c57565b91505092915050565b60008060408385031215613e3657600080fd5b6000613e4485828601613c57565b9250506020613e5585828601613c57565b9150509250929050565b600080600060608486031215613e7457600080fd5b6000613e8286828701613c57565b9350506020613e9386828701613c57565b9250506040613ea486828701613de5565b9150509250925092565b60008060008060808587031215613ec457600080fd5b6000613ed287828801613c57565b9450506020613ee387828801613c57565b9350506040613ef487828801613de5565b925050606085013567ffffffffffffffff811115613f1157600080fd5b613f1d87828801613cd5565b91505092959194509250565b60008060408385031215613f3c57600080fd5b6000613f4a85828601613c57565b9250506020613f5b85828601613c96565b9150509250929050565b60008060408385031215613f7857600080fd5b6000613f8685828601613c57565b9250506020613f9785828601613de5565b9150509250929050565b600060208284031215613fb357600080fd5b6000613fc184828501613cab565b91505092915050565b600060208284031215613fdc57600080fd5b6000613fea84828501613cc0565b91505092915050565b60006020828403121561400557600080fd5b600082013567ffffffffffffffff81111561401f57600080fd5b61402b84828501613cff565b91505092915050565b60006020828403121561404657600080fd5b600061405484828501613de5565b91505092915050565b6000806040838503121561407057600080fd5b600061407e85828601613de5565b925050602083013567ffffffffffffffff81111561409b57600080fd5b6140a785828601613c6c565b9150509250929050565b600080604083850312156140c457600080fd5b60006140d285828601613de5565b92505060206140e385828601613de5565b9150509250929050565b60006140f98383614d9a565b60208301905092915050565b61410e8161573a565b82525050565b6141256141208261573a565b6158db565b82525050565b60006141368261549f565b61414081856154cd565b935061414b8361547a565b8060005b8381101561417c57815161416388826140ed565b975061416e836154c0565b92505060018101905061414f565b5085935050505092915050565b6141928161574c565b82525050565b60006141a3826154aa565b6141ad81856154de565b93506141bd8185602086016157d8565b6141c6816159f6565b840191505092915050565b60006141dc826154b5565b6141e681856154ef565b93506141f68185602086016157d8565b6141ff816159f6565b840191505092915050565b6000614215826154b5565b61421f8185615500565b935061422f8185602086016157d8565b80840191505092915050565b600081546142488161580b565b6142528186615500565b9450600182166000811461426d576001811461427e576142b1565b60ff198316865281860193506142b1565b6142878561548a565b60005b838110156142a95781548189015260018201915060208101905061428a565b838801955050505b50505092915050565b60006142c7600583615500565b91507f2720793d270000000000000000000000000000000000000000000000000000006000830152600582019050919050565b6000614307602b836154ef565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061436d6032836154ef565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006143d3601c836154ef565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614413600583615500565b91507f2720783d270000000000000000000000000000000000000000000000000000006000830152600582019050919050565b6000614453600f83615500565b91507f222c2261747472696275746573223a00000000000000000000000000000000006000830152600f82019050919050565b6000614493601683615500565b91507f7b226e616d65223a20225a6f6d6269656d6963652023000000000000000000006000830152601682019050919050565b60006144d3600183615500565b91507f2c000000000000000000000000000000000000000000000000000000000000006000830152600182019050919050565b6000614513600e83615500565b91507f3c7265637420636c6173733d27630000000000000000000000000000000000006000830152600e82019050919050565b60006145536024836154ef565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145b96019836154ef565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b60006145f9602683615500565b91507f222c22696d616765223a2022646174613a696d6167652f7376672b786d6c3b6260008301527f61736536342c00000000000000000000000000000000000000000000000000006020830152602682019050919050565b600061465f600f83615500565b91507f7b2274726169745f74797065223a2200000000000000000000000000000000006000830152600f82019050919050565b600061469f602c836154ef565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614705600383615500565b91507f272f3e00000000000000000000000000000000000000000000000000000000006000830152600382019050919050565b60006147456038836154ef565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006147ab602a836154ef565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006148116029836154ef565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614877600283615500565b91507f227d0000000000000000000000000000000000000000000000000000000000006000830152600282019050919050565b60006148b7607083615500565b91507f3c7376672069643d226d6f7573652d7376672220786d6c6e733d22687474703a60008301527f2f2f7777772e77332e6f72672f323030302f737667222070726573657276654160208301527f7370656374526174696f3d22784d696e594d696e206d6565742220766965774260408301527f6f783d22302030203234203234223e20000000000000000000000000000000006060830152607082019050919050565b60006149696020836154ef565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b60006149a9600183615500565b91507f7d000000000000000000000000000000000000000000000000000000000000006000830152600182019050919050565b60006149e9602c836154ef565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614a4f601283615500565b91507f222c20226465736372697074696f6e223a2200000000000000000000000000006000830152601282019050919050565b6000614a8f600183615500565b91507f5b000000000000000000000000000000000000000000000000000000000000006000830152600182019050919050565b6000614acf6029836154ef565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b35600b83615500565b91507f222c2276616c7565223a220000000000000000000000000000000000000000006000830152600b82019050919050565b6000614b75600183615500565b91507f5d000000000000000000000000000000000000000000000000000000000000006000830152600182019050919050565b6000614bb56021836154ef565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614c1b601c836154ef565b91507f54686520616d6f756e7420657863656564206d617820737570706c79000000006000830152602082019050919050565b6000614c5b601d83615500565b91507f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000006000830152601d82019050919050565b6000614c9b6031836154ef565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614d01602c836154ef565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000614d67601b836154ef565b91507f4e6f206d6f7265207a6f6d6269656d69636520746f20636c61696d00000000006000830152602082019050919050565b614da3816157b2565b82525050565b614db2816157b2565b82525050565b614dc9614dc4826157b2565b6158ff565b82525050565b6000614ddb828461420a565b915081905092915050565b6000614df2828561420a565b9150614dfe828461420a565b91508190509392505050565b6000614e16828461420a565b9150614e21826144c6565b915081905092915050565b6000614e38828761420a565b9150614e4382614506565b9150614e4f828661420a565b9150614e5a82614406565b9150614e66828561420a565b9150614e71826142ba565b9150614e7d828461420a565b9150614e88826146f8565b915081905095945050505050565b6000614ea2828661420a565b9150614ead82614652565b9150614eb9828561423b565b9150614ec482614b28565b9150614ed0828461423b565b9150614edb8261486a565b9150819050949350505050565b6000614ef4828461423b565b915081905092915050565b6000614f0a82614486565b9150614f16828761420a565b9150614f2182614a42565b9150614f2d828661423b565b9150614f38826145ec565b9150614f44828561420a565b9150614f4f82614446565b9150614f5b828461420a565b9150614f668261499c565b915081905095945050505050565b6000614f7f826148aa565b9150614f8b828561420a565b9150614f97828461423b565b91508190509392505050565b6000614fae82614a82565b9150614fba828461420a565b9150614fc582614b68565b915081905092915050565b6000614fdb82614c4e565b9150614fe7828461420a565b915081905092915050565b6000614ffe8289614db8565b60208201915061500e8288614db8565b60208201915061501e8287614db8565b60208201915061502e8286614114565b60148201915061503e8285614db8565b60208201915061504e8284614db8565b602082019150819050979650505050505050565b60006020820190506150776000830184614105565b92915050565b60006080820190506150926000830187614105565b61509f6020830186614105565b6150ac6040830185614da9565b81810360608301526150be8184614198565b905095945050505050565b600060208201905081810360008301526150e3818461412b565b905092915050565b60006020820190506151006000830184614189565b92915050565b6000602082019050818103600083015261512081846141d1565b905092915050565b6000608082019050818103600083015261514281876141d1565b9050818103602083015261515681866141d1565b9050818103604083015261516a81856141d1565b90506151796060830184614da9565b95945050505050565b6000602082019050818103600083015261519b816142fa565b9050919050565b600060208201905081810360008301526151bb81614360565b9050919050565b600060208201905081810360008301526151db816143c6565b9050919050565b600060208201905081810360008301526151fb81614546565b9050919050565b6000602082019050818103600083015261521b816145ac565b9050919050565b6000602082019050818103600083015261523b81614692565b9050919050565b6000602082019050818103600083015261525b81614738565b9050919050565b6000602082019050818103600083015261527b8161479e565b9050919050565b6000602082019050818103600083015261529b81614804565b9050919050565b600060208201905081810360008301526152bb8161495c565b9050919050565b600060208201905081810360008301526152db816149dc565b9050919050565b600060208201905081810360008301526152fb81614ac2565b9050919050565b6000602082019050818103600083015261531b81614ba8565b9050919050565b6000602082019050818103600083015261533b81614c0e565b9050919050565b6000602082019050818103600083015261535b81614c8e565b9050919050565b6000602082019050818103600083015261537b81614cf4565b9050919050565b6000602082019050818103600083015261539b81614d5a565b9050919050565b60006020820190506153b76000830184614da9565b92915050565b6000604051905081810181811067ffffffffffffffff821117156153e4576153e36159c7565b5b8060405250919050565b600067ffffffffffffffff821115615409576154086159c7565b5b602082029050602081019050919050565b600067ffffffffffffffff821115615435576154346159c7565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115615465576154646159c7565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061551682615784565b915061552183615784565b92508261ffff038211156155385761553761593a565b5b828201905092915050565b600061554e826157b2565b9150615559836157b2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561558e5761558d61593a565b5b828201905092915050565b60006155a4826157bc565b91506155af836157bc565b92508260ff038211156155c5576155c461593a565b5b828201905092915050565b60006155db826157b2565b91506155e6836157b2565b9250826155f6576155f5615969565b5b828204905092915050565b600061560c82615784565b915061561783615784565b92508161ffff04831182151516156156325761563161593a565b5b828202905092915050565b6000615648826157b2565b9150615653836157b2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561568c5761568b61593a565b5b828202905092915050565b60006156a2826157bc565b91506156ad836157bc565b92508160ff04831182151516156156c7576156c661593a565b5b828202905092915050565b60006156dd826157b2565b91506156e8836157b2565b9250828210156156fb576156fa61593a565b5b828203905092915050565b6000615711826157bc565b915061571c836157bc565b92508282101561572f5761572e61593a565b5b828203905092915050565b600061574582615792565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156157f65780820151818401526020810190506157db565b83811115615805576000848401525b50505050565b6000600282049050600182168061582357607f821691505b6020821081141561583757615836615998565b5b50919050565b600061584882615784565b915061ffff82141561585d5761585c61593a565b5b600182019050919050565b6000615873826157b2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156158a6576158a561593a565b5b600182019050919050565b60006158bc826157bc565b915060ff8214156158d0576158cf61593a565b5b600182019050919050565b60006158e6826158ed565b9050919050565b60006158f882615a07565b9050919050565b6000819050919050565b6000615914826157b2565b915061591f836157b2565b92508261592f5761592e615969565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b615a1d8161573a565b8114615a2857600080fd5b50565b615a348161574c565b8114615a3f57600080fd5b50565b615a4b81615758565b8114615a5657600080fd5b50565b615a62816157b2565b8114615a6d57600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122077a2bb261f70a5e9ece862fd7dac5940fb527144cb5f89d879adfc7824644a2a64736f6c63430008000033

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.