ETH Price: $2,430.70 (-2.01%)

Token

The Crypto Cartel (TCC)
 

Overview

Max Total Supply

559 TCC

Holders

253

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 TCC
0xe88892012216c051f9220a61923015f547c8c99d
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:
TheCryptoCartel

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : TheCryptoCartel.sol
///////////////////////////////////////////////////////////////////////////////////////
//  _____ _            _____                  _          _____            _       _  //
// |_   _| |          /  __ \                | |        /  __ \          | |     | | //
//   | | | |__   ___  | /  \/_ __ _   _ _ __ | |_ ___   | /  \/ __ _ _ __| |_ ___| | //
//   | | | '_ \ / _ \ | |   | '__| | | | '_ \| __/ _ \  | |    / _` | '__| __/ _ \ | //
//   | | | | | |  __/ | \__/\ |  | |_| | |_) | || (_) | | \__/\ (_| | |  | ||  __/ | //
//   \_/ |_| |_|\___|  \____/_|   \__, | .__/ \__\___/   \____/\__,_|_|   \__\___|_| //
//                                 __/ | |                                           //
//                                |___/|_|                                           //
///////////////////////////////////////////////////////////////////////////////////////
// SPDX-License-Identifier: MIT
pragma solidity 0.8.2;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "./MerkleProof.sol";

contract TheCryptoCartel is ERC721Enumerable, ERC721URIStorage, ERC721Burnable, Pausable, AccessControl {
    using Counters for Counters.Counter;
    string public BASE_URI = "https://gateway.pinata.cloud/ipfs/QmcJYqxXyyB5obzkXbjTc7kZvfSTXJQCA8f2GgS6muutfQ/";
    string public BASE_URI_PRE_REVEAL = "https://gateway.pinata.cloud/ipfs/QmdxeCJAWouNFhXGow5d1T8VodgHCGcpDrdPcCCXs5yEgT";
    Counters.Counter private _tokenIdCounter;
    Counters.Counter private _whitelistCounter;
    bool private whitelistEnabled = true;
    bool private saleEnabled = false;
    bool private revealed = false;

    uint8 MINT_LIMIT = 6;
    uint8 WHITELIST_TRANSACTION_LIMIT = 3;

    uint16 SUPPLY_LIMIT = 7950;

    uint256 public constant PRICE_PER_TOKEN_PRE_SALE = 0.069 ether;
    uint256 public constant PRICE_PER_TOKEN = 0.08 ether;

    address t92 = 0xA665Af5AF9e485B6b496D43844e018fBE24DBe6d; // 92% withdrawal
    address t3 = 0x7Bf4209cF7C38Bad15C3531A9291A6345F1a7b3b; // 3% withdrawal
    address t5 = 0xC6521BAfD305FCa9205bC7c046634AA9f5B45303; // 5% withdrawal

    constructor() ERC721("The Crypto Cartel", "TCC") {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    function setWhitelistSaleStatus(bool _isWhitelistActive) public onlyRole(DEFAULT_ADMIN_ROLE) {
        whitelistEnabled = _isWhitelistActive;
    }

    function setSaleStatus(bool _isSaleActive, bool _whitelistStatus) public onlyRole(DEFAULT_ADMIN_ROLE) {
        saleEnabled = _isSaleActive;
        whitelistEnabled = _whitelistStatus;
    }

    function setRevealStatus(bool _revealed) public onlyRole(DEFAULT_ADMIN_ROLE) {
        revealed = _revealed;
    }

    // Implemented to change base URI in scenarios like revealing whitelisted tokens
    function setBaseUri(string memory _baseUri) public onlyRole(DEFAULT_ADMIN_ROLE) {
        BASE_URI = _baseUri;
    }

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

    function pause() public onlyRole(DEFAULT_ADMIN_ROLE) {
        _pause();
    }

    function unpause() public onlyRole(DEFAULT_ADMIN_ROLE) {
        _unpause();
    }

    function mint(uint256 numberOfTokens, bytes32[] calldata proof, bytes32 merkleRoot, string[] memory uris) public payable {
        uint256 ts = totalSupply();

        require(ts + numberOfTokens <= SUPPLY_LIMIT, "Reached max limit. No more minting possible!");
        require(numberOfTokens < MINT_LIMIT, "Cannot mint more than 5 cartels per transaction!");
        if(!saleEnabled && whitelistEnabled) {
            require(_verify(_leaf(msg.sender), proof, merkleRoot), "Not a whitelisted member!");
            require(PRICE_PER_TOKEN_PRE_SALE * numberOfTokens <= msg.value, "Ether amount sent is not correct");
        } else {
            require(PRICE_PER_TOKEN * numberOfTokens <= msg.value, "Ether amount sent is not correct");
        }
        
        for (uint256 i = 0; i < numberOfTokens; i++) {
            uint256 tokenId = _tokenIdCounter.current();
            _tokenIdCounter.increment();
            _safeMint(msg.sender, tokenId);
            _setTokenURI(tokenId, uris[i]);
        }
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId)
        internal
        whenNotPaused
        override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function withdraw() public onlyRole(DEFAULT_ADMIN_ROLE) {
        uint256 balance = address(this).balance;
        uint256 t_92 = balance * 87 /100;
        uint256 t_5 = balance * 10 /100;
        uint256 t_3 = balance * 3 /100;
        payable(t92).transfer(t_92);
        payable(t5).transfer(t_5);
        payable(t3).transfer(t_3);
    }

    // The following functions are overrides required by Solidity.

    function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
        super._burn(tokenId);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721, ERC721URIStorage)
        returns (string memory)
    {
        require(_exists(tokenId), "Token URI query for nonexistent token!");
        if(revealed == true) {
            // We can return BASE_URI + tokenId.json here but that would mean tokenId 1 should have
            // return super.tokenURI(tokenId);
            return super.tokenURI(tokenId); //string(abi.encodePacked(BASE_URI, "/", Strings.toString(tokenId), ".json"));
        } else {
            return BASE_URI_PRE_REVEAL;
        }
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    /** ---------------- Merkle tree whitelisting ---------------- */
    // Generate the leaf node (just the hash of tokenID concatenated with the account address)
    function _leaf(address account) internal pure returns (bytes32) {
            return keccak256(abi.encodePacked(account));
    }
    // Verify that a given leaf is in the tree.
    function _verify(bytes32 _leafNode, bytes32[] memory proof, bytes32 merkleRoot) internal view returns (bool) {
            return MerkleProof.verify(proof, merkleRoot, _leafNode);
    }
}

File 2 of 19 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

File 3 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 4 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 5 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

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 6 of 19 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 7 of 19 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 8 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

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 9 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)

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 10 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

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 11 of 19 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 12 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)

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 13 of 19 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 14 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

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 15 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)

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 16 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

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 {
        _setApprovalForAll(_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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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 17 of 19 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 18 of 19 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 19 of 19 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

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

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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BASE_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BASE_URI_PRE_REVEAL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PER_TOKEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PER_TOKEN_PRE_SALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"mint","outputs":[],"stateMutability":"payable","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealed","type":"bool"}],"name":"setRevealStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isSaleActive","type":"bool"},{"internalType":"bool","name":"_whitelistStatus","type":"bool"}],"name":"setSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isWhitelistActive","type":"bool"}],"name":"setWhitelistSaleStatus","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":"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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260405180608001604052806051815260200162005c4860519139600d90805190602001906200003592919062000458565b5060405180608001604052806050815260200162005c9960509139600e90805190602001906200006792919062000458565b506001601160006101000a81548160ff0219169083151502179055506000601160016101000a81548160ff0219169083151502179055506000601160026101000a81548160ff0219169083151502179055506006601160036101000a81548160ff021916908360ff1602179055506003601160046101000a81548160ff021916908360ff160217905550611f0e601160056101000a81548161ffff021916908361ffff16021790555073a665af5af9e485b6b496d43844e018fbe24dbe6d601160076101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550737bf4209cf7c38bad15c3531a9291a6345f1a7b3b601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073c6521bafd305fca9205bc7c046634aa9f5b45303601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200021c57600080fd5b506040518060400160405280601181526020017f5468652043727970746f2043617274656c0000000000000000000000000000008152506040518060400160405280600381526020017f54434300000000000000000000000000000000000000000000000000000000008152508160009080519060200190620002a192919062000458565b508060019080519060200190620002ba92919062000458565b5050506000600b60006101000a81548160ff021916908315150217905550620002ed6000801b33620002f360201b60201c565b6200056d565b620003058282620003e560201b60201c565b620003e1576001600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620003866200045060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b828054620004669062000508565b90600052602060002090601f0160209004810192826200048a5760008555620004d6565b82601f10620004a557805160ff1916838001178555620004d6565b82800160010185558215620004d6579182015b82811115620004d5578251825591602001919060010190620004b8565b5b509050620004e59190620004e9565b5090565b5b8082111562000504576000816000905550600101620004ea565b5090565b600060028204905060018216806200052157607f821691505b602082108114156200053857620005376200053e565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6156cb806200057d6000396000f3fe60806040526004361061020f5760003560e01c80636352211e11610118578063a217fddf116100a0578063c6f823311161006f578063c6f8233114610776578063c87b56dd146107a1578063d547741f146107de578063dbddb26a14610807578063e985e9c5146108325761020f565b8063a217fddf146106d0578063a22cb465146106fb578063b274e48e14610724578063b88d4fde1461074d5761020f565b806384c99fb4116100e757806384c99fb4146105eb57806384fd2dde1461061457806391d148541461063f57806395d89b411461067c578063a0bcfc7f146106a75761020f565b80636352211e1461052f57806370a082311461056c578063833b9499146105a95780638456cb59146105d45761020f565b806336568abe1161019b57806342966c681161016a57806342966c68146104595780634920b41e146104825780634f6ccce7146104ab57806356f4405d146104e85780635c975abb146105045761020f565b806336568abe146103d95780633ccfd60b146104025780633f4ba83a1461041957806342842e0e146104305761020f565b806318160ddd116101e257806318160ddd146102e257806323b872dd1461030d578063248a9ca3146103365780632f2ff15d146103735780632f745c591461039c5761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190613e08565b61086f565b604051610248919061458f565b60405180910390f35b34801561025d57600080fd5b50610266610881565b60405161027391906145c5565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190613e9b565b610913565b6040516102b09190614528565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190613d02565b610998565b005b3480156102ee57600080fd5b506102f7610ab0565b6040516103049190614967565b60405180910390f35b34801561031957600080fd5b50610334600480360381019061032f9190613bfc565b610abd565b005b34801561034257600080fd5b5061035d60048036038101906103589190613da3565b610b1d565b60405161036a91906145aa565b60405180910390f35b34801561037f57600080fd5b5061039a60048036038101906103959190613dcc565b610b3d565b005b3480156103a857600080fd5b506103c360048036038101906103be9190613d02565b610b66565b6040516103d09190614967565b60405180910390f35b3480156103e557600080fd5b5061040060048036038101906103fb9190613dcc565b610c0b565b005b34801561040e57600080fd5b50610417610c8e565b005b34801561042557600080fd5b5061042e610e41565b005b34801561043c57600080fd5b5061045760048036038101906104529190613bfc565b610e61565b005b34801561046557600080fd5b50610480600480360381019061047b9190613e9b565b610e81565b005b34801561048e57600080fd5b506104a960048036038101906104a49190613d3e565b610edd565b005b3480156104b757600080fd5b506104d260048036038101906104cd9190613e9b565b610f10565b6040516104df9190614967565b60405180910390f35b61050260048036038101906104fd9190613ec4565b610fa7565b005b34801561051057600080fd5b5061051961126f565b604051610526919061458f565b60405180910390f35b34801561053b57600080fd5b5061055660048036038101906105519190613e9b565b611286565b6040516105639190614528565b60405180910390f35b34801561057857600080fd5b50610593600480360381019061058e9190613b97565b611338565b6040516105a09190614967565b60405180910390f35b3480156105b557600080fd5b506105be6113f0565b6040516105cb9190614967565b60405180910390f35b3480156105e057600080fd5b506105e96113fc565b005b3480156105f757600080fd5b50610612600480360381019061060d9190613d3e565b61141c565b005b34801561062057600080fd5b5061062961144f565b6040516106369190614967565b60405180910390f35b34801561064b57600080fd5b5061066660048036038101906106619190613dcc565b61145a565b604051610673919061458f565b60405180910390f35b34801561068857600080fd5b506106916114c5565b60405161069e91906145c5565b60405180910390f35b3480156106b357600080fd5b506106ce60048036038101906106c99190613e5a565b611557565b005b3480156106dc57600080fd5b506106e5611587565b6040516106f291906145aa565b60405180910390f35b34801561070757600080fd5b50610722600480360381019061071d9190613cc6565b61158e565b005b34801561073057600080fd5b5061074b60048036038101906107469190613d67565b6115a4565b005b34801561075957600080fd5b50610774600480360381019061076f9190613c4b565b6115f2565b005b34801561078257600080fd5b5061078b611654565b60405161079891906145c5565b60405180910390f35b3480156107ad57600080fd5b506107c860048036038101906107c39190613e9b565b6116e2565b6040516107d591906145c5565b60405180910390f35b3480156107ea57600080fd5b5061080560048036038101906108009190613dcc565b6117eb565b005b34801561081357600080fd5b5061081c611814565b60405161082991906145c5565b60405180910390f35b34801561083e57600080fd5b5061085960048036038101906108549190613bc0565b6118a2565b604051610866919061458f565b60405180910390f35b600061087a82611936565b9050919050565b60606000805461089090614c77565b80601f01602080910402602001604051908101604052809291908181526020018280546108bc90614c77565b80156109095780601f106108de57610100808354040283529160200191610909565b820191906000526020600020905b8154815290600101906020018083116108ec57829003601f168201915b5050505050905090565b600061091e826119b0565b61095d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095490614847565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109a382611286565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0b906148a7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a33611a1c565b73ffffffffffffffffffffffffffffffffffffffff161480610a625750610a6181610a5c611a1c565b6118a2565b5b610aa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9890614767565b60405180910390fd5b610aab8383611a24565b505050565b6000600880549050905090565b610ace610ac8611a1c565b82611add565b610b0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b04906148c7565b60405180910390fd5b610b18838383611bbb565b505050565b6000600c6000838152602001908152602001600020600101549050919050565b610b4682610b1d565b610b5781610b52611a1c565b611e17565b610b618383611eb4565b505050565b6000610b7183611338565b8210610bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba990614647565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c13611a1c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7790614947565b60405180910390fd5b610c8a8282611f95565b5050565b6000801b610ca381610c9e611a1c565b611e17565b600047905060006064605783610cb99190614aff565b610cc39190614ace565b905060006064600a84610cd69190614aff565b610ce09190614ace565b905060006064600385610cf39190614aff565b610cfd9190614ace565b9050601160079054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f19350505050158015610d67573d6000803e3d6000fd5b50601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610dd0573d6000803e3d6000fd5b50601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610e39573d6000803e3d6000fd5b505050505050565b6000801b610e5681610e51611a1c565b611e17565b610e5e612077565b50565b610e7c838383604051806020016040528060008152506115f2565b505050565b610e92610e8c611a1c565b82611add565b610ed1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec890614927565b60405180910390fd5b610eda81612119565b50565b6000801b610ef281610eed611a1c565b611e17565b81601160006101000a81548160ff0219169083151502179055505050565b6000610f1a610ab0565b8210610f5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f52906148e7565b60405180910390fd5b60088281548110610f95577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000610fb1610ab0565b9050601160059054906101000a900461ffff1661ffff168682610fd49190614a78565b1115611015576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100c906147e7565b60405180910390fd5b601160039054906101000a900460ff1660ff168610611069576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106090614607565b60405180910390fd5b601160019054906101000a900460ff161580156110925750601160009054906101000a900460ff165b15611184576110eb6110a333612125565b868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505085612155565b61112a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112190614727565b60405180910390fd5b348666f523226980800061113e9190614aff565b111561117f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117690614907565b60405180910390fd5b6111db565b348667011c37937e0800006111999190614aff565b11156111da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d190614907565b60405180910390fd5b5b60005b868110156112665760006111f2600f61216b565b90506111fe600f612179565b611208338261218f565b61125281858481518110611245577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516121ad565b50808061125e90614cda565b9150506111de565b50505050505050565b6000600b60009054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561132f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611326906147a7565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a090614787565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b67011c37937e08000081565b6000801b6114118161140c611a1c565b611e17565b611419612221565b50565b6000801b6114318161142c611a1c565b611e17565b81601160026101000a81548160ff0219169083151502179055505050565b66f523226980800081565b6000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546114d490614c77565b80601f016020809104026020016040519081016040528092919081815260200182805461150090614c77565b801561154d5780601f106115225761010080835404028352916020019161154d565b820191906000526020600020905b81548152906001019060200180831161153057829003601f168201915b5050505050905090565b6000801b61156c81611567611a1c565b611e17565b81600d9080519060200190611582929190613895565b505050565b6000801b81565b6115a0611599611a1c565b83836122c4565b5050565b6000801b6115b9816115b4611a1c565b611e17565b82601160016101000a81548160ff02191690831515021790555081601160006101000a81548160ff021916908315150217905550505050565b6116036115fd611a1c565b83611add565b611642576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611639906148c7565b60405180910390fd5b61164e84848484612431565b50505050565b600e805461166190614c77565b80601f016020809104026020016040519081016040528092919081815260200182805461168d90614c77565b80156116da5780601f106116af576101008083540402835291602001916116da565b820191906000526020600020905b8154815290600101906020018083116116bd57829003601f168201915b505050505081565b60606116ed826119b0565b61172c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611723906146a7565b60405180910390fd5b60011515601160029054906101000a900460ff1615151415611758576117518261248d565b90506117e6565b600e805461176590614c77565b80601f016020809104026020016040519081016040528092919081815260200182805461179190614c77565b80156117de5780601f106117b3576101008083540402835291602001916117de565b820191906000526020600020905b8154815290600101906020018083116117c157829003601f168201915b505050505090505b919050565b6117f482610b1d565b61180581611800611a1c565b611e17565b61180f8383611f95565b505050565b600d805461182190614c77565b80601f016020809104026020016040519081016040528092919081815260200182805461184d90614c77565b801561189a5780601f1061186f5761010080835404028352916020019161189a565b820191906000526020600020905b81548152906001019060200180831161187d57829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806119a957506119a8826125df565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611a9783611286565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611ae8826119b0565b611b27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1e90614707565b60405180910390fd5b6000611b3283611286565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611ba157508373ffffffffffffffffffffffffffffffffffffffff16611b8984610913565b73ffffffffffffffffffffffffffffffffffffffff16145b80611bb25750611bb181856118a2565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611bdb82611286565b73ffffffffffffffffffffffffffffffffffffffff1614611c31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2890614867565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c98906146c7565b60405180910390fd5b611cac838383612659565b611cb7600082611a24565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d079190614b59565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d5e9190614a78565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b611e21828261145a565b611eb057611e468173ffffffffffffffffffffffffffffffffffffffff1660146126b1565b611e548360001c60206126b1565b604051602001611e659291906144ee565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea791906145c5565b60405180910390fd5b5050565b611ebe828261145a565b611f91576001600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611f36611a1c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611f9f828261145a565b15612073576000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612018611a1c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61207f61126f565b6120be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b590614627565b60405180910390fd5b6000600b60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612102611a1c565b60405161210f9190614528565b60405180910390a1565b612122816129ab565b50565b6000816040516020016121389190614483565b604051602081830303815290604052805190602001209050919050565b60006121628383866129fe565b90509392505050565b600081600001549050919050565b6001816000016000828254019250508190555050565b6121a9828260405180602001604052806000815250612a15565b5050565b6121b6826119b0565b6121f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ec906147c7565b60405180910390fd5b80600a6000848152602001908152602001600020908051906020019061221c929190613895565b505050565b61222961126f565b15612269576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226090614747565b60405180910390fd5b6001600b60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122ad611a1c565b6040516122ba9190614528565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612333576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232a906146e7565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612424919061458f565b60405180910390a3505050565b61243c848484611bbb565b61244884848484612a70565b612487576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247e90614667565b60405180910390fd5b50505050565b6060612498826119b0565b6124d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ce90614827565b60405180910390fd5b6000600a600084815260200190815260200160002080546124f790614c77565b80601f016020809104026020016040519081016040528092919081815260200182805461252390614c77565b80156125705780601f1061254557610100808354040283529160200191612570565b820191906000526020600020905b81548152906001019060200180831161255357829003601f168201915b505050505090506000612581612c07565b90506000815114156125975781925050506125da565b6000825111156125cc5780826040516020016125b49291906144ca565b604051602081830303815290604052925050506125da565b6125d584612c99565b925050505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612652575061265182612d40565b5b9050919050565b61266161126f565b156126a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269890614747565b60405180910390fd5b6126ac838383612e22565b505050565b6060600060028360026126c49190614aff565b6126ce9190614a78565b67ffffffffffffffff81111561270d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561273f5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061279d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612827577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026128679190614aff565b6128719190614a78565b90505b600181111561295d577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106128d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612916577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061295690614c4d565b9050612874565b50600084146129a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612998906145e7565b60405180910390fd5b8091505092915050565b6129b481612f36565b6000600a600083815260200190815260200160002080546129d490614c77565b9050146129fb57600a600082815260200190815260200160002060006129fa919061391b565b5b50565b600082612a0b8584613047565b1490509392505050565b612a1f8383613120565b612a2c6000848484612a70565b612a6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6290614667565b60405180910390fd5b505050565b6000612a918473ffffffffffffffffffffffffffffffffffffffff166132ee565b15612bfa578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612aba611a1c565b8786866040518563ffffffff1660e01b8152600401612adc9493929190614543565b602060405180830381600087803b158015612af657600080fd5b505af1925050508015612b2757506040513d601f19601f82011682018060405250810190612b249190613e31565b60015b612baa573d8060008114612b57576040519150601f19603f3d011682016040523d82523d6000602084013e612b5c565b606091505b50600081511415612ba2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9990614667565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612bff565b600190505b949350505050565b6060600d8054612c1690614c77565b80601f0160208091040260200160405190810160405280929190818152602001828054612c4290614c77565b8015612c8f5780601f10612c6457610100808354040283529160200191612c8f565b820191906000526020600020905b815481529060010190602001808311612c7257829003601f168201915b5050505050905090565b6060612ca4826119b0565b612ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cda90614887565b60405180910390fd5b6000612ced612c07565b90506000815111612d0d5760405180602001604052806000815250612d38565b80612d1784613301565b604051602001612d289291906144ca565b6040516020818303038152906040525b915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e0b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e1b5750612e1a826134ae565b5b9050919050565b612e2d838383613518565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e7057612e6b8161351d565b612eaf565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612eae57612ead8382613566565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ef257612eed816136d3565b612f31565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612f3057612f2f8282613816565b5b5b505050565b6000612f4182611286565b9050612f4f81600084612659565b612f5a600083611a24565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612faa9190614b59565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008082905060005b8451811015613115576000858281518110613094577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190508083116130d55782816040516020016130b892919061449e565b604051602081830303815290604052805190602001209250613101565b80836040516020016130e892919061449e565b6040516020818303038152906040528051906020012092505b50808061310d90614cda565b915050613050565b508091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613190576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161318790614807565b60405180910390fd5b613199816119b0565b156131d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131d090614687565b60405180910390fd5b6131e560008383612659565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546132359190614a78565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b60606000821415613349576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506134a9565b600082905060005b6000821461337b57808061336490614cda565b915050600a826133749190614ace565b9150613351565b60008167ffffffffffffffff8111156133bd577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133ef5781602001600182028036833780820191505090505b5090505b600085146134a2576001826134089190614b59565b9150600a856134179190614d51565b60306134239190614a78565b60f81b81838151811061345f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561349b9190614ace565b94506133f3565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161357384611338565b61357d9190614b59565b9050600060076000848152602001908152602001600020549050818114613662576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506136e79190614b59565b905060006009600084815260200190815260200160002054905060006008838154811061373d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613785577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806137fa577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061382183611338565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280546138a190614c77565b90600052602060002090601f0160209004810192826138c3576000855561390a565b82601f106138dc57805160ff191683800117855561390a565b8280016001018555821561390a579182015b828111156139095782518255916020019190600101906138ee565b5b509050613917919061395b565b5090565b50805461392790614c77565b6000825580601f106139395750613958565b601f016020900490600052602060002090810190613957919061395b565b5b50565b5b8082111561397457600081600090555060010161395c565b5090565b600061398b613986846149a7565b614982565b9050808382526020820190508260005b858110156139cb57813585016139b18882613b58565b84526020840193506020830192505060018101905061399b565b5050509392505050565b60006139e86139e3846149d3565b614982565b905082815260208101848484011115613a0057600080fd5b613a0b848285614c0b565b509392505050565b6000613a26613a2184614a04565b614982565b905082815260208101848484011115613a3e57600080fd5b613a49848285614c0b565b509392505050565b600081359050613a6081615622565b92915050565b60008083601f840112613a7857600080fd5b8235905067ffffffffffffffff811115613a9157600080fd5b602083019150836020820283011115613aa957600080fd5b9250929050565b600082601f830112613ac157600080fd5b8135613ad1848260208601613978565b91505092915050565b600081359050613ae981615639565b92915050565b600081359050613afe81615650565b92915050565b600081359050613b1381615667565b92915050565b600081519050613b2881615667565b92915050565b600082601f830112613b3f57600080fd5b8135613b4f8482602086016139d5565b91505092915050565b600082601f830112613b6957600080fd5b8135613b79848260208601613a13565b91505092915050565b600081359050613b918161567e565b92915050565b600060208284031215613ba957600080fd5b6000613bb784828501613a51565b91505092915050565b60008060408385031215613bd357600080fd5b6000613be185828601613a51565b9250506020613bf285828601613a51565b9150509250929050565b600080600060608486031215613c1157600080fd5b6000613c1f86828701613a51565b9350506020613c3086828701613a51565b9250506040613c4186828701613b82565b9150509250925092565b60008060008060808587031215613c6157600080fd5b6000613c6f87828801613a51565b9450506020613c8087828801613a51565b9350506040613c9187828801613b82565b925050606085013567ffffffffffffffff811115613cae57600080fd5b613cba87828801613b2e565b91505092959194509250565b60008060408385031215613cd957600080fd5b6000613ce785828601613a51565b9250506020613cf885828601613ada565b9150509250929050565b60008060408385031215613d1557600080fd5b6000613d2385828601613a51565b9250506020613d3485828601613b82565b9150509250929050565b600060208284031215613d5057600080fd5b6000613d5e84828501613ada565b91505092915050565b60008060408385031215613d7a57600080fd5b6000613d8885828601613ada565b9250506020613d9985828601613ada565b9150509250929050565b600060208284031215613db557600080fd5b6000613dc384828501613aef565b91505092915050565b60008060408385031215613ddf57600080fd5b6000613ded85828601613aef565b9250506020613dfe85828601613a51565b9150509250929050565b600060208284031215613e1a57600080fd5b6000613e2884828501613b04565b91505092915050565b600060208284031215613e4357600080fd5b6000613e5184828501613b19565b91505092915050565b600060208284031215613e6c57600080fd5b600082013567ffffffffffffffff811115613e8657600080fd5b613e9284828501613b58565b91505092915050565b600060208284031215613ead57600080fd5b6000613ebb84828501613b82565b91505092915050565b600080600080600060808688031215613edc57600080fd5b6000613eea88828901613b82565b955050602086013567ffffffffffffffff811115613f0757600080fd5b613f1388828901613a66565b94509450506040613f2688828901613aef565b925050606086013567ffffffffffffffff811115613f4357600080fd5b613f4f88828901613ab0565b9150509295509295909350565b613f6581614b8d565b82525050565b613f7c613f7782614b8d565b614d23565b82525050565b613f8b81614b9f565b82525050565b613f9a81614bab565b82525050565b613fb1613fac82614bab565b614d35565b82525050565b6000613fc282614a35565b613fcc8185614a4b565b9350613fdc818560208601614c1a565b613fe581614e3e565b840191505092915050565b6000613ffb82614a40565b6140058185614a5c565b9350614015818560208601614c1a565b61401e81614e3e565b840191505092915050565b600061403482614a40565b61403e8185614a6d565b935061404e818560208601614c1a565b80840191505092915050565b6000614067602083614a5c565b915061407282614e5c565b602082019050919050565b600061408a603083614a5c565b915061409582614e85565b604082019050919050565b60006140ad601483614a5c565b91506140b882614ed4565b602082019050919050565b60006140d0602b83614a5c565b91506140db82614efd565b604082019050919050565b60006140f3603283614a5c565b91506140fe82614f4c565b604082019050919050565b6000614116601c83614a5c565b915061412182614f9b565b602082019050919050565b6000614139602683614a5c565b915061414482614fc4565b604082019050919050565b600061415c602483614a5c565b915061416782615013565b604082019050919050565b600061417f601983614a5c565b915061418a82615062565b602082019050919050565b60006141a2602c83614a5c565b91506141ad8261508b565b604082019050919050565b60006141c5601983614a5c565b91506141d0826150da565b602082019050919050565b60006141e8601083614a5c565b91506141f382615103565b602082019050919050565b600061420b603883614a5c565b91506142168261512c565b604082019050919050565b600061422e602a83614a5c565b91506142398261517b565b604082019050919050565b6000614251602983614a5c565b915061425c826151ca565b604082019050919050565b6000614274602e83614a5c565b915061427f82615219565b604082019050919050565b6000614297602c83614a5c565b91506142a282615268565b604082019050919050565b60006142ba602083614a5c565b91506142c5826152b7565b602082019050919050565b60006142dd603183614a5c565b91506142e8826152e0565b604082019050919050565b6000614300602c83614a5c565b915061430b8261532f565b604082019050919050565b6000614323602983614a5c565b915061432e8261537e565b604082019050919050565b6000614346602f83614a5c565b9150614351826153cd565b604082019050919050565b6000614369602183614a5c565b91506143748261541c565b604082019050919050565b600061438c603183614a5c565b91506143978261546b565b604082019050919050565b60006143af602c83614a5c565b91506143ba826154ba565b604082019050919050565b60006143d2601783614a6d565b91506143dd82615509565b601782019050919050565b60006143f5602083614a5c565b915061440082615532565b602082019050919050565b6000614418603083614a5c565b91506144238261555b565b604082019050919050565b600061443b601183614a6d565b9150614446826155aa565b601182019050919050565b600061445e602f83614a5c565b9150614469826155d3565b604082019050919050565b61447d81614c01565b82525050565b600061448f8284613f6b565b60148201915081905092915050565b60006144aa8285613fa0565b6020820191506144ba8284613fa0565b6020820191508190509392505050565b60006144d68285614029565b91506144e28284614029565b91508190509392505050565b60006144f9826143c5565b91506145058285614029565b91506145108261442e565b915061451c8284614029565b91508190509392505050565b600060208201905061453d6000830184613f5c565b92915050565b60006080820190506145586000830187613f5c565b6145656020830186613f5c565b6145726040830185614474565b81810360608301526145848184613fb7565b905095945050505050565b60006020820190506145a46000830184613f82565b92915050565b60006020820190506145bf6000830184613f91565b92915050565b600060208201905081810360008301526145df8184613ff0565b905092915050565b600060208201905081810360008301526146008161405a565b9050919050565b600060208201905081810360008301526146208161407d565b9050919050565b60006020820190508181036000830152614640816140a0565b9050919050565b60006020820190508181036000830152614660816140c3565b9050919050565b60006020820190508181036000830152614680816140e6565b9050919050565b600060208201905081810360008301526146a081614109565b9050919050565b600060208201905081810360008301526146c08161412c565b9050919050565b600060208201905081810360008301526146e08161414f565b9050919050565b6000602082019050818103600083015261470081614172565b9050919050565b6000602082019050818103600083015261472081614195565b9050919050565b60006020820190508181036000830152614740816141b8565b9050919050565b60006020820190508181036000830152614760816141db565b9050919050565b60006020820190508181036000830152614780816141fe565b9050919050565b600060208201905081810360008301526147a081614221565b9050919050565b600060208201905081810360008301526147c081614244565b9050919050565b600060208201905081810360008301526147e081614267565b9050919050565b600060208201905081810360008301526148008161428a565b9050919050565b60006020820190508181036000830152614820816142ad565b9050919050565b60006020820190508181036000830152614840816142d0565b9050919050565b60006020820190508181036000830152614860816142f3565b9050919050565b6000602082019050818103600083015261488081614316565b9050919050565b600060208201905081810360008301526148a081614339565b9050919050565b600060208201905081810360008301526148c08161435c565b9050919050565b600060208201905081810360008301526148e08161437f565b9050919050565b60006020820190508181036000830152614900816143a2565b9050919050565b60006020820190508181036000830152614920816143e8565b9050919050565b600060208201905081810360008301526149408161440b565b9050919050565b6000602082019050818103600083015261496081614451565b9050919050565b600060208201905061497c6000830184614474565b92915050565b600061498c61499d565b90506149988282614ca9565b919050565b6000604051905090565b600067ffffffffffffffff8211156149c2576149c1614e0f565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156149ee576149ed614e0f565b5b6149f782614e3e565b9050602081019050919050565b600067ffffffffffffffff821115614a1f57614a1e614e0f565b5b614a2882614e3e565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614a8382614c01565b9150614a8e83614c01565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ac357614ac2614d82565b5b828201905092915050565b6000614ad982614c01565b9150614ae483614c01565b925082614af457614af3614db1565b5b828204905092915050565b6000614b0a82614c01565b9150614b1583614c01565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b4e57614b4d614d82565b5b828202905092915050565b6000614b6482614c01565b9150614b6f83614c01565b925082821015614b8257614b81614d82565b5b828203905092915050565b6000614b9882614be1565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614c38578082015181840152602081019050614c1d565b83811115614c47576000848401525b50505050565b6000614c5882614c01565b91506000821415614c6c57614c6b614d82565b5b600182039050919050565b60006002820490506001821680614c8f57607f821691505b60208210811415614ca357614ca2614de0565b5b50919050565b614cb282614e3e565b810181811067ffffffffffffffff82111715614cd157614cd0614e0f565b5b80604052505050565b6000614ce582614c01565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614d1857614d17614d82565b5b600182019050919050565b6000614d2e82614d3f565b9050919050565b6000819050919050565b6000614d4a82614e4f565b9050919050565b6000614d5c82614c01565b9150614d6783614c01565b925082614d7757614d76614db1565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f43616e6e6f74206d696e74206d6f7265207468616e20352063617274656c732060008201527f706572207472616e73616374696f6e2100000000000000000000000000000000602082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f546f6b656e2055524920717565727920666f72206e6f6e6578697374656e742060008201527f746f6b656e210000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4e6f7420612077686974656c6973746564206d656d6265722100000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f52656163686564206d6178206c696d69742e204e6f206d6f7265206d696e746960008201527f6e6720706f737369626c65210000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f457468657220616d6f756e742073656e74206973206e6f7420636f7272656374600082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61562b81614b8d565b811461563657600080fd5b50565b61564281614b9f565b811461564d57600080fd5b50565b61565981614bab565b811461566457600080fd5b50565b61567081614bb5565b811461567b57600080fd5b50565b61568781614c01565b811461569257600080fd5b5056fea26469706673582212208709794ff5409dbaf554f6c9bd91a02662b0dbed5aabc34f8ae11c6514a72b0164736f6c6343000802003368747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d634a59717858797942356f627a6b58626a5463376b5a76665354584a514341386632476753366d75757466512f68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d647865434a41576f754e466858476f773564315438566f646748434763704472645063434358733579456754

Deployed Bytecode

0x60806040526004361061020f5760003560e01c80636352211e11610118578063a217fddf116100a0578063c6f823311161006f578063c6f8233114610776578063c87b56dd146107a1578063d547741f146107de578063dbddb26a14610807578063e985e9c5146108325761020f565b8063a217fddf146106d0578063a22cb465146106fb578063b274e48e14610724578063b88d4fde1461074d5761020f565b806384c99fb4116100e757806384c99fb4146105eb57806384fd2dde1461061457806391d148541461063f57806395d89b411461067c578063a0bcfc7f146106a75761020f565b80636352211e1461052f57806370a082311461056c578063833b9499146105a95780638456cb59146105d45761020f565b806336568abe1161019b57806342966c681161016a57806342966c68146104595780634920b41e146104825780634f6ccce7146104ab57806356f4405d146104e85780635c975abb146105045761020f565b806336568abe146103d95780633ccfd60b146104025780633f4ba83a1461041957806342842e0e146104305761020f565b806318160ddd116101e257806318160ddd146102e257806323b872dd1461030d578063248a9ca3146103365780632f2ff15d146103735780632f745c591461039c5761020f565b806301ffc9a71461021457806306fdde0314610251578063081812fc1461027c578063095ea7b3146102b9575b600080fd5b34801561022057600080fd5b5061023b60048036038101906102369190613e08565b61086f565b604051610248919061458f565b60405180910390f35b34801561025d57600080fd5b50610266610881565b60405161027391906145c5565b60405180910390f35b34801561028857600080fd5b506102a3600480360381019061029e9190613e9b565b610913565b6040516102b09190614528565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190613d02565b610998565b005b3480156102ee57600080fd5b506102f7610ab0565b6040516103049190614967565b60405180910390f35b34801561031957600080fd5b50610334600480360381019061032f9190613bfc565b610abd565b005b34801561034257600080fd5b5061035d60048036038101906103589190613da3565b610b1d565b60405161036a91906145aa565b60405180910390f35b34801561037f57600080fd5b5061039a60048036038101906103959190613dcc565b610b3d565b005b3480156103a857600080fd5b506103c360048036038101906103be9190613d02565b610b66565b6040516103d09190614967565b60405180910390f35b3480156103e557600080fd5b5061040060048036038101906103fb9190613dcc565b610c0b565b005b34801561040e57600080fd5b50610417610c8e565b005b34801561042557600080fd5b5061042e610e41565b005b34801561043c57600080fd5b5061045760048036038101906104529190613bfc565b610e61565b005b34801561046557600080fd5b50610480600480360381019061047b9190613e9b565b610e81565b005b34801561048e57600080fd5b506104a960048036038101906104a49190613d3e565b610edd565b005b3480156104b757600080fd5b506104d260048036038101906104cd9190613e9b565b610f10565b6040516104df9190614967565b60405180910390f35b61050260048036038101906104fd9190613ec4565b610fa7565b005b34801561051057600080fd5b5061051961126f565b604051610526919061458f565b60405180910390f35b34801561053b57600080fd5b5061055660048036038101906105519190613e9b565b611286565b6040516105639190614528565b60405180910390f35b34801561057857600080fd5b50610593600480360381019061058e9190613b97565b611338565b6040516105a09190614967565b60405180910390f35b3480156105b557600080fd5b506105be6113f0565b6040516105cb9190614967565b60405180910390f35b3480156105e057600080fd5b506105e96113fc565b005b3480156105f757600080fd5b50610612600480360381019061060d9190613d3e565b61141c565b005b34801561062057600080fd5b5061062961144f565b6040516106369190614967565b60405180910390f35b34801561064b57600080fd5b5061066660048036038101906106619190613dcc565b61145a565b604051610673919061458f565b60405180910390f35b34801561068857600080fd5b506106916114c5565b60405161069e91906145c5565b60405180910390f35b3480156106b357600080fd5b506106ce60048036038101906106c99190613e5a565b611557565b005b3480156106dc57600080fd5b506106e5611587565b6040516106f291906145aa565b60405180910390f35b34801561070757600080fd5b50610722600480360381019061071d9190613cc6565b61158e565b005b34801561073057600080fd5b5061074b60048036038101906107469190613d67565b6115a4565b005b34801561075957600080fd5b50610774600480360381019061076f9190613c4b565b6115f2565b005b34801561078257600080fd5b5061078b611654565b60405161079891906145c5565b60405180910390f35b3480156107ad57600080fd5b506107c860048036038101906107c39190613e9b565b6116e2565b6040516107d591906145c5565b60405180910390f35b3480156107ea57600080fd5b5061080560048036038101906108009190613dcc565b6117eb565b005b34801561081357600080fd5b5061081c611814565b60405161082991906145c5565b60405180910390f35b34801561083e57600080fd5b5061085960048036038101906108549190613bc0565b6118a2565b604051610866919061458f565b60405180910390f35b600061087a82611936565b9050919050565b60606000805461089090614c77565b80601f01602080910402602001604051908101604052809291908181526020018280546108bc90614c77565b80156109095780601f106108de57610100808354040283529160200191610909565b820191906000526020600020905b8154815290600101906020018083116108ec57829003601f168201915b5050505050905090565b600061091e826119b0565b61095d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095490614847565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109a382611286565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0b906148a7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a33611a1c565b73ffffffffffffffffffffffffffffffffffffffff161480610a625750610a6181610a5c611a1c565b6118a2565b5b610aa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9890614767565b60405180910390fd5b610aab8383611a24565b505050565b6000600880549050905090565b610ace610ac8611a1c565b82611add565b610b0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b04906148c7565b60405180910390fd5b610b18838383611bbb565b505050565b6000600c6000838152602001908152602001600020600101549050919050565b610b4682610b1d565b610b5781610b52611a1c565b611e17565b610b618383611eb4565b505050565b6000610b7183611338565b8210610bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba990614647565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c13611a1c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7790614947565b60405180910390fd5b610c8a8282611f95565b5050565b6000801b610ca381610c9e611a1c565b611e17565b600047905060006064605783610cb99190614aff565b610cc39190614ace565b905060006064600a84610cd69190614aff565b610ce09190614ace565b905060006064600385610cf39190614aff565b610cfd9190614ace565b9050601160079054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f19350505050158015610d67573d6000803e3d6000fd5b50601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610dd0573d6000803e3d6000fd5b50601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610e39573d6000803e3d6000fd5b505050505050565b6000801b610e5681610e51611a1c565b611e17565b610e5e612077565b50565b610e7c838383604051806020016040528060008152506115f2565b505050565b610e92610e8c611a1c565b82611add565b610ed1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec890614927565b60405180910390fd5b610eda81612119565b50565b6000801b610ef281610eed611a1c565b611e17565b81601160006101000a81548160ff0219169083151502179055505050565b6000610f1a610ab0565b8210610f5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f52906148e7565b60405180910390fd5b60088281548110610f95577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000610fb1610ab0565b9050601160059054906101000a900461ffff1661ffff168682610fd49190614a78565b1115611015576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100c906147e7565b60405180910390fd5b601160039054906101000a900460ff1660ff168610611069576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106090614607565b60405180910390fd5b601160019054906101000a900460ff161580156110925750601160009054906101000a900460ff165b15611184576110eb6110a333612125565b868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505085612155565b61112a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112190614727565b60405180910390fd5b348666f523226980800061113e9190614aff565b111561117f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117690614907565b60405180910390fd5b6111db565b348667011c37937e0800006111999190614aff565b11156111da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d190614907565b60405180910390fd5b5b60005b868110156112665760006111f2600f61216b565b90506111fe600f612179565b611208338261218f565b61125281858481518110611245577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516121ad565b50808061125e90614cda565b9150506111de565b50505050505050565b6000600b60009054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561132f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611326906147a7565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a090614787565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b67011c37937e08000081565b6000801b6114118161140c611a1c565b611e17565b611419612221565b50565b6000801b6114318161142c611a1c565b611e17565b81601160026101000a81548160ff0219169083151502179055505050565b66f523226980800081565b6000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060600180546114d490614c77565b80601f016020809104026020016040519081016040528092919081815260200182805461150090614c77565b801561154d5780601f106115225761010080835404028352916020019161154d565b820191906000526020600020905b81548152906001019060200180831161153057829003601f168201915b5050505050905090565b6000801b61156c81611567611a1c565b611e17565b81600d9080519060200190611582929190613895565b505050565b6000801b81565b6115a0611599611a1c565b83836122c4565b5050565b6000801b6115b9816115b4611a1c565b611e17565b82601160016101000a81548160ff02191690831515021790555081601160006101000a81548160ff021916908315150217905550505050565b6116036115fd611a1c565b83611add565b611642576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611639906148c7565b60405180910390fd5b61164e84848484612431565b50505050565b600e805461166190614c77565b80601f016020809104026020016040519081016040528092919081815260200182805461168d90614c77565b80156116da5780601f106116af576101008083540402835291602001916116da565b820191906000526020600020905b8154815290600101906020018083116116bd57829003601f168201915b505050505081565b60606116ed826119b0565b61172c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611723906146a7565b60405180910390fd5b60011515601160029054906101000a900460ff1615151415611758576117518261248d565b90506117e6565b600e805461176590614c77565b80601f016020809104026020016040519081016040528092919081815260200182805461179190614c77565b80156117de5780601f106117b3576101008083540402835291602001916117de565b820191906000526020600020905b8154815290600101906020018083116117c157829003601f168201915b505050505090505b919050565b6117f482610b1d565b61180581611800611a1c565b611e17565b61180f8383611f95565b505050565b600d805461182190614c77565b80601f016020809104026020016040519081016040528092919081815260200182805461184d90614c77565b801561189a5780601f1061186f5761010080835404028352916020019161189a565b820191906000526020600020905b81548152906001019060200180831161187d57829003601f168201915b505050505081565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806119a957506119a8826125df565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611a9783611286565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611ae8826119b0565b611b27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1e90614707565b60405180910390fd5b6000611b3283611286565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611ba157508373ffffffffffffffffffffffffffffffffffffffff16611b8984610913565b73ffffffffffffffffffffffffffffffffffffffff16145b80611bb25750611bb181856118a2565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611bdb82611286565b73ffffffffffffffffffffffffffffffffffffffff1614611c31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2890614867565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c98906146c7565b60405180910390fd5b611cac838383612659565b611cb7600082611a24565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d079190614b59565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d5e9190614a78565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b611e21828261145a565b611eb057611e468173ffffffffffffffffffffffffffffffffffffffff1660146126b1565b611e548360001c60206126b1565b604051602001611e659291906144ee565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea791906145c5565b60405180910390fd5b5050565b611ebe828261145a565b611f91576001600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611f36611a1c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611f9f828261145a565b15612073576000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612018611a1c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61207f61126f565b6120be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b590614627565b60405180910390fd5b6000600b60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612102611a1c565b60405161210f9190614528565b60405180910390a1565b612122816129ab565b50565b6000816040516020016121389190614483565b604051602081830303815290604052805190602001209050919050565b60006121628383866129fe565b90509392505050565b600081600001549050919050565b6001816000016000828254019250508190555050565b6121a9828260405180602001604052806000815250612a15565b5050565b6121b6826119b0565b6121f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ec906147c7565b60405180910390fd5b80600a6000848152602001908152602001600020908051906020019061221c929190613895565b505050565b61222961126f565b15612269576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226090614747565b60405180910390fd5b6001600b60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122ad611a1c565b6040516122ba9190614528565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612333576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232a906146e7565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612424919061458f565b60405180910390a3505050565b61243c848484611bbb565b61244884848484612a70565b612487576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247e90614667565b60405180910390fd5b50505050565b6060612498826119b0565b6124d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ce90614827565b60405180910390fd5b6000600a600084815260200190815260200160002080546124f790614c77565b80601f016020809104026020016040519081016040528092919081815260200182805461252390614c77565b80156125705780601f1061254557610100808354040283529160200191612570565b820191906000526020600020905b81548152906001019060200180831161255357829003601f168201915b505050505090506000612581612c07565b90506000815114156125975781925050506125da565b6000825111156125cc5780826040516020016125b49291906144ca565b604051602081830303815290604052925050506125da565b6125d584612c99565b925050505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612652575061265182612d40565b5b9050919050565b61266161126f565b156126a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269890614747565b60405180910390fd5b6126ac838383612e22565b505050565b6060600060028360026126c49190614aff565b6126ce9190614a78565b67ffffffffffffffff81111561270d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561273f5781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061279d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612827577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026128679190614aff565b6128719190614a78565b90505b600181111561295d577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106128d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110612916577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061295690614c4d565b9050612874565b50600084146129a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612998906145e7565b60405180910390fd5b8091505092915050565b6129b481612f36565b6000600a600083815260200190815260200160002080546129d490614c77565b9050146129fb57600a600082815260200190815260200160002060006129fa919061391b565b5b50565b600082612a0b8584613047565b1490509392505050565b612a1f8383613120565b612a2c6000848484612a70565b612a6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6290614667565b60405180910390fd5b505050565b6000612a918473ffffffffffffffffffffffffffffffffffffffff166132ee565b15612bfa578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612aba611a1c565b8786866040518563ffffffff1660e01b8152600401612adc9493929190614543565b602060405180830381600087803b158015612af657600080fd5b505af1925050508015612b2757506040513d601f19601f82011682018060405250810190612b249190613e31565b60015b612baa573d8060008114612b57576040519150601f19603f3d011682016040523d82523d6000602084013e612b5c565b606091505b50600081511415612ba2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9990614667565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612bff565b600190505b949350505050565b6060600d8054612c1690614c77565b80601f0160208091040260200160405190810160405280929190818152602001828054612c4290614c77565b8015612c8f5780601f10612c6457610100808354040283529160200191612c8f565b820191906000526020600020905b815481529060010190602001808311612c7257829003601f168201915b5050505050905090565b6060612ca4826119b0565b612ce3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cda90614887565b60405180910390fd5b6000612ced612c07565b90506000815111612d0d5760405180602001604052806000815250612d38565b80612d1784613301565b604051602001612d289291906144ca565b6040516020818303038152906040525b915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e0b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e1b5750612e1a826134ae565b5b9050919050565b612e2d838383613518565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e7057612e6b8161351d565b612eaf565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612eae57612ead8382613566565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ef257612eed816136d3565b612f31565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612f3057612f2f8282613816565b5b5b505050565b6000612f4182611286565b9050612f4f81600084612659565b612f5a600083611a24565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612faa9190614b59565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008082905060005b8451811015613115576000858281518110613094577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190508083116130d55782816040516020016130b892919061449e565b604051602081830303815290604052805190602001209250613101565b80836040516020016130e892919061449e565b6040516020818303038152906040528051906020012092505b50808061310d90614cda565b915050613050565b508091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613190576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161318790614807565b60405180910390fd5b613199816119b0565b156131d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131d090614687565b60405180910390fd5b6131e560008383612659565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546132359190614a78565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b60606000821415613349576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506134a9565b600082905060005b6000821461337b57808061336490614cda565b915050600a826133749190614ace565b9150613351565b60008167ffffffffffffffff8111156133bd577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133ef5781602001600182028036833780820191505090505b5090505b600085146134a2576001826134089190614b59565b9150600a856134179190614d51565b60306134239190614a78565b60f81b81838151811061345f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561349b9190614ace565b94506133f3565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161357384611338565b61357d9190614b59565b9050600060076000848152602001908152602001600020549050818114613662576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506136e79190614b59565b905060006009600084815260200190815260200160002054905060006008838154811061373d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613785577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806137fa577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061382183611338565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280546138a190614c77565b90600052602060002090601f0160209004810192826138c3576000855561390a565b82601f106138dc57805160ff191683800117855561390a565b8280016001018555821561390a579182015b828111156139095782518255916020019190600101906138ee565b5b509050613917919061395b565b5090565b50805461392790614c77565b6000825580601f106139395750613958565b601f016020900490600052602060002090810190613957919061395b565b5b50565b5b8082111561397457600081600090555060010161395c565b5090565b600061398b613986846149a7565b614982565b9050808382526020820190508260005b858110156139cb57813585016139b18882613b58565b84526020840193506020830192505060018101905061399b565b5050509392505050565b60006139e86139e3846149d3565b614982565b905082815260208101848484011115613a0057600080fd5b613a0b848285614c0b565b509392505050565b6000613a26613a2184614a04565b614982565b905082815260208101848484011115613a3e57600080fd5b613a49848285614c0b565b509392505050565b600081359050613a6081615622565b92915050565b60008083601f840112613a7857600080fd5b8235905067ffffffffffffffff811115613a9157600080fd5b602083019150836020820283011115613aa957600080fd5b9250929050565b600082601f830112613ac157600080fd5b8135613ad1848260208601613978565b91505092915050565b600081359050613ae981615639565b92915050565b600081359050613afe81615650565b92915050565b600081359050613b1381615667565b92915050565b600081519050613b2881615667565b92915050565b600082601f830112613b3f57600080fd5b8135613b4f8482602086016139d5565b91505092915050565b600082601f830112613b6957600080fd5b8135613b79848260208601613a13565b91505092915050565b600081359050613b918161567e565b92915050565b600060208284031215613ba957600080fd5b6000613bb784828501613a51565b91505092915050565b60008060408385031215613bd357600080fd5b6000613be185828601613a51565b9250506020613bf285828601613a51565b9150509250929050565b600080600060608486031215613c1157600080fd5b6000613c1f86828701613a51565b9350506020613c3086828701613a51565b9250506040613c4186828701613b82565b9150509250925092565b60008060008060808587031215613c6157600080fd5b6000613c6f87828801613a51565b9450506020613c8087828801613a51565b9350506040613c9187828801613b82565b925050606085013567ffffffffffffffff811115613cae57600080fd5b613cba87828801613b2e565b91505092959194509250565b60008060408385031215613cd957600080fd5b6000613ce785828601613a51565b9250506020613cf885828601613ada565b9150509250929050565b60008060408385031215613d1557600080fd5b6000613d2385828601613a51565b9250506020613d3485828601613b82565b9150509250929050565b600060208284031215613d5057600080fd5b6000613d5e84828501613ada565b91505092915050565b60008060408385031215613d7a57600080fd5b6000613d8885828601613ada565b9250506020613d9985828601613ada565b9150509250929050565b600060208284031215613db557600080fd5b6000613dc384828501613aef565b91505092915050565b60008060408385031215613ddf57600080fd5b6000613ded85828601613aef565b9250506020613dfe85828601613a51565b9150509250929050565b600060208284031215613e1a57600080fd5b6000613e2884828501613b04565b91505092915050565b600060208284031215613e4357600080fd5b6000613e5184828501613b19565b91505092915050565b600060208284031215613e6c57600080fd5b600082013567ffffffffffffffff811115613e8657600080fd5b613e9284828501613b58565b91505092915050565b600060208284031215613ead57600080fd5b6000613ebb84828501613b82565b91505092915050565b600080600080600060808688031215613edc57600080fd5b6000613eea88828901613b82565b955050602086013567ffffffffffffffff811115613f0757600080fd5b613f1388828901613a66565b94509450506040613f2688828901613aef565b925050606086013567ffffffffffffffff811115613f4357600080fd5b613f4f88828901613ab0565b9150509295509295909350565b613f6581614b8d565b82525050565b613f7c613f7782614b8d565b614d23565b82525050565b613f8b81614b9f565b82525050565b613f9a81614bab565b82525050565b613fb1613fac82614bab565b614d35565b82525050565b6000613fc282614a35565b613fcc8185614a4b565b9350613fdc818560208601614c1a565b613fe581614e3e565b840191505092915050565b6000613ffb82614a40565b6140058185614a5c565b9350614015818560208601614c1a565b61401e81614e3e565b840191505092915050565b600061403482614a40565b61403e8185614a6d565b935061404e818560208601614c1a565b80840191505092915050565b6000614067602083614a5c565b915061407282614e5c565b602082019050919050565b600061408a603083614a5c565b915061409582614e85565b604082019050919050565b60006140ad601483614a5c565b91506140b882614ed4565b602082019050919050565b60006140d0602b83614a5c565b91506140db82614efd565b604082019050919050565b60006140f3603283614a5c565b91506140fe82614f4c565b604082019050919050565b6000614116601c83614a5c565b915061412182614f9b565b602082019050919050565b6000614139602683614a5c565b915061414482614fc4565b604082019050919050565b600061415c602483614a5c565b915061416782615013565b604082019050919050565b600061417f601983614a5c565b915061418a82615062565b602082019050919050565b60006141a2602c83614a5c565b91506141ad8261508b565b604082019050919050565b60006141c5601983614a5c565b91506141d0826150da565b602082019050919050565b60006141e8601083614a5c565b91506141f382615103565b602082019050919050565b600061420b603883614a5c565b91506142168261512c565b604082019050919050565b600061422e602a83614a5c565b91506142398261517b565b604082019050919050565b6000614251602983614a5c565b915061425c826151ca565b604082019050919050565b6000614274602e83614a5c565b915061427f82615219565b604082019050919050565b6000614297602c83614a5c565b91506142a282615268565b604082019050919050565b60006142ba602083614a5c565b91506142c5826152b7565b602082019050919050565b60006142dd603183614a5c565b91506142e8826152e0565b604082019050919050565b6000614300602c83614a5c565b915061430b8261532f565b604082019050919050565b6000614323602983614a5c565b915061432e8261537e565b604082019050919050565b6000614346602f83614a5c565b9150614351826153cd565b604082019050919050565b6000614369602183614a5c565b91506143748261541c565b604082019050919050565b600061438c603183614a5c565b91506143978261546b565b604082019050919050565b60006143af602c83614a5c565b91506143ba826154ba565b604082019050919050565b60006143d2601783614a6d565b91506143dd82615509565b601782019050919050565b60006143f5602083614a5c565b915061440082615532565b602082019050919050565b6000614418603083614a5c565b91506144238261555b565b604082019050919050565b600061443b601183614a6d565b9150614446826155aa565b601182019050919050565b600061445e602f83614a5c565b9150614469826155d3565b604082019050919050565b61447d81614c01565b82525050565b600061448f8284613f6b565b60148201915081905092915050565b60006144aa8285613fa0565b6020820191506144ba8284613fa0565b6020820191508190509392505050565b60006144d68285614029565b91506144e28284614029565b91508190509392505050565b60006144f9826143c5565b91506145058285614029565b91506145108261442e565b915061451c8284614029565b91508190509392505050565b600060208201905061453d6000830184613f5c565b92915050565b60006080820190506145586000830187613f5c565b6145656020830186613f5c565b6145726040830185614474565b81810360608301526145848184613fb7565b905095945050505050565b60006020820190506145a46000830184613f82565b92915050565b60006020820190506145bf6000830184613f91565b92915050565b600060208201905081810360008301526145df8184613ff0565b905092915050565b600060208201905081810360008301526146008161405a565b9050919050565b600060208201905081810360008301526146208161407d565b9050919050565b60006020820190508181036000830152614640816140a0565b9050919050565b60006020820190508181036000830152614660816140c3565b9050919050565b60006020820190508181036000830152614680816140e6565b9050919050565b600060208201905081810360008301526146a081614109565b9050919050565b600060208201905081810360008301526146c08161412c565b9050919050565b600060208201905081810360008301526146e08161414f565b9050919050565b6000602082019050818103600083015261470081614172565b9050919050565b6000602082019050818103600083015261472081614195565b9050919050565b60006020820190508181036000830152614740816141b8565b9050919050565b60006020820190508181036000830152614760816141db565b9050919050565b60006020820190508181036000830152614780816141fe565b9050919050565b600060208201905081810360008301526147a081614221565b9050919050565b600060208201905081810360008301526147c081614244565b9050919050565b600060208201905081810360008301526147e081614267565b9050919050565b600060208201905081810360008301526148008161428a565b9050919050565b60006020820190508181036000830152614820816142ad565b9050919050565b60006020820190508181036000830152614840816142d0565b9050919050565b60006020820190508181036000830152614860816142f3565b9050919050565b6000602082019050818103600083015261488081614316565b9050919050565b600060208201905081810360008301526148a081614339565b9050919050565b600060208201905081810360008301526148c08161435c565b9050919050565b600060208201905081810360008301526148e08161437f565b9050919050565b60006020820190508181036000830152614900816143a2565b9050919050565b60006020820190508181036000830152614920816143e8565b9050919050565b600060208201905081810360008301526149408161440b565b9050919050565b6000602082019050818103600083015261496081614451565b9050919050565b600060208201905061497c6000830184614474565b92915050565b600061498c61499d565b90506149988282614ca9565b919050565b6000604051905090565b600067ffffffffffffffff8211156149c2576149c1614e0f565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156149ee576149ed614e0f565b5b6149f782614e3e565b9050602081019050919050565b600067ffffffffffffffff821115614a1f57614a1e614e0f565b5b614a2882614e3e565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614a8382614c01565b9150614a8e83614c01565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ac357614ac2614d82565b5b828201905092915050565b6000614ad982614c01565b9150614ae483614c01565b925082614af457614af3614db1565b5b828204905092915050565b6000614b0a82614c01565b9150614b1583614c01565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b4e57614b4d614d82565b5b828202905092915050565b6000614b6482614c01565b9150614b6f83614c01565b925082821015614b8257614b81614d82565b5b828203905092915050565b6000614b9882614be1565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614c38578082015181840152602081019050614c1d565b83811115614c47576000848401525b50505050565b6000614c5882614c01565b91506000821415614c6c57614c6b614d82565b5b600182039050919050565b60006002820490506001821680614c8f57607f821691505b60208210811415614ca357614ca2614de0565b5b50919050565b614cb282614e3e565b810181811067ffffffffffffffff82111715614cd157614cd0614e0f565b5b80604052505050565b6000614ce582614c01565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614d1857614d17614d82565b5b600182019050919050565b6000614d2e82614d3f565b9050919050565b6000819050919050565b6000614d4a82614e4f565b9050919050565b6000614d5c82614c01565b9150614d6783614c01565b925082614d7757614d76614db1565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f43616e6e6f74206d696e74206d6f7265207468616e20352063617274656c732060008201527f706572207472616e73616374696f6e2100000000000000000000000000000000602082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f546f6b656e2055524920717565727920666f72206e6f6e6578697374656e742060008201527f746f6b656e210000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4e6f7420612077686974656c6973746564206d656d6265722100000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f52656163686564206d6178206c696d69742e204e6f206d6f7265206d696e746960008201527f6e6720706f737369626c65210000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f457468657220616d6f756e742073656e74206973206e6f7420636f7272656374600082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61562b81614b8d565b811461563657600080fd5b50565b61564281614b9f565b811461564d57600080fd5b50565b61565981614bab565b811461566457600080fd5b50565b61567081614bb5565b811461567b57600080fd5b50565b61568781614c01565b811461569257600080fd5b5056fea26469706673582212208709794ff5409dbaf554f6c9bd91a02662b0dbed5aabc34f8ae11c6514a72b0164736f6c63430008020033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.