ETH Price: $3,240.96 (+2.31%)
Gas: 2 Gwei

Token

CC0Fighters (cf)
 

Overview

Max Total Supply

6,969 cf

Holders

1,057

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
bimboslaygirlpussyboss.eth
Balance
5 cf
0x8ce3f2aa575b021da9965ef0c1f4ef81708e7c0d
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:
CC0Fighters

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : cc0.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

contract CC0Fighters is AccessControl, ERC721Enumerable, IERC721Receiver, ReentrancyGuard, EIP712 {
    using SafeMath for uint256;
    using Counters for Counters.Counter;
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

    bool private mintFlag = false;
    Counters.Counter private _tokenIdCounter;
    string private _URI = "";
    address private signer = address(0x030b7361eBC8889c30dFA82265165d0f00b19666);
    bytes32 private constant FREE_MINT_HASH_TYPE = keccak256("freemint(address wallet)");
    mapping(address => bool) private freeMintLog;

    // max token supply
    uint256 public _maxSupply;
    uint256 public _maxMintSupply;
    uint256 public _devReserved;
    uint256 public _devMintCounter;
    uint256 public _pubMintCounter;
    // base mint price
    uint256 public _preMintAmount;
    uint256 public _pubMintAmount;

    uint256 public _startMintTime;
    uint256 public _freeMintEndTime;
    uint256 public _preMintEndTime;

    constructor() ERC721("CC0Fighters", "cf") EIP712("CC0Fighters", "1") {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(MINTER_ROLE, msg.sender);

        _maxSupply = 6969;
        _devReserved = 690;
        _maxMintSupply = _maxSupply - _devReserved;
        _devMintCounter = 0;
        _pubMintCounter = 0;

        _preMintAmount = 0.0069 ether;
        _pubMintAmount = 0.012 ether;
    }

    modifier canMint() {
        require(mintFlag == true, "mint not started or already stopped.");
        _;
    }

    function setMintPrice(uint256 pre, uint256 pub) public onlyRole(DEFAULT_ADMIN_ROLE) {
        _preMintAmount = pre;
        _pubMintAmount = pub;
    }

    function startMint(uint256 startTime) public onlyRole(DEFAULT_ADMIN_ROLE) {
        mintFlag = true;

        _startMintTime = startTime;
        _freeMintEndTime = _startMintTime + 2 hours;
        _preMintEndTime = _freeMintEndTime + 2 hours;
    }

    function stopMint() public onlyRole(DEFAULT_ADMIN_ROLE) {
        mintFlag = false;
    }

    function pubmint(uint256 amount) public payable canMint nonReentrant {
        require(amount > 0 && amount <= 20, "invalid amount");
        require(block.timestamp > _preMintEndTime, "pub mint not start.");
        require(this.balanceOf(msg.sender) + amount <= 20, "too many already minted.");
        require(_pubMintCounter + amount <= _maxMintSupply, "insufficient mint.");
        uint256 weiAmount = msg.value;
        require(weiAmount == _pubMintAmount.mul(amount), "invalid price");

        _pubMintCounter += amount;
        for (uint256 i = 0; i < amount; i++) {
            uint256 tokenId = _tokenIdCounter.current();
            _tokenIdCounter.increment();
            _safeMint(msg.sender, tokenId);
        }
    }

    function premint(uint256 amount) public payable canMint nonReentrant {
        require(amount > 0 && amount <= 3, "invalid amount");
        require(block.timestamp >= _freeMintEndTime, "pre mint not started.");
        require(block.timestamp <= _preMintEndTime, "pre mint end.");
        require(this.balanceOf(msg.sender) + amount <= 3, "too many already minted.");
        require(_pubMintCounter + amount <= _maxMintSupply, "insufficient mint.");
        uint256 weiAmount = msg.value;
        require(weiAmount == _preMintAmount.mul(amount), "invalid price");
        
        _pubMintCounter += amount;
        for (uint256 i = 0; i < amount; i++) {
            uint256 tokenId = _tokenIdCounter.current();
            _tokenIdCounter.increment();
            _safeMint(msg.sender, tokenId);
        }
    }

    function freemint(uint8 v, bytes32 r, bytes32 s) public payable canMint nonReentrant {
        require(block.timestamp <= _freeMintEndTime, "free mint end.");
        require(!freeMintLog[msg.sender], "already mint");
        require(_pubMintCounter + 1 <= _maxMintSupply, "insufficient mint.");

        bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(FREE_MINT_HASH_TYPE, msg.sender)));
        require(ECDSA.recover(digest, v, r, s) == signer, "invalid signer");
        
        _pubMintCounter += 1;
        freeMintLog[msg.sender] = true;
        uint256 tokenId = _tokenIdCounter.current();
        _tokenIdCounter.increment();
        _safeMint(msg.sender, tokenId);
    }

    function devmint(uint256 amount) public payable canMint nonReentrant onlyRole(MINTER_ROLE) {
        require(_devMintCounter + amount <= _devReserved, "too many already minted.");

        _devMintCounter += amount;
        for (uint256 i = 0; i < amount; i++) {
            uint256 tokenId = _tokenIdCounter.current();
            _tokenIdCounter.increment();
            _safeMint(msg.sender, tokenId);
        }
    }

    function withdraw(address to) public onlyRole(DEFAULT_ADMIN_ROLE) {
        payable(to).transfer(address(this).balance);
    }

    function changeSigner(address _signer) public onlyRole(DEFAULT_ADMIN_ROLE) {
        signer = _signer;
    }

    function _baseURI() internal view override returns (string memory) {
        return _URI;
    }
    
    function setBaseURI(string memory uri) public onlyRole(DEFAULT_ADMIN_ROLE) {
        _URI = uri;
    }

    function onERC721Received(
        address /*operator*/,
        address /*from*/,
        uint256 /*tokenId*/,
        bytes calldata /*data*/
    ) public pure returns (bytes4) {
        return IERC721Receiver.onERC721Received.selector;
    }

    // The following functions are overrides required by Solidity.
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721Enumerable, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 3 of 19 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 4 of 19 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 5 of 19 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 6 of 19 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 7 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 8 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 9 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 12 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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);

    /**
     * @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 13 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

File 15 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 16 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 17 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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`.
     *
     * 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;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "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":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_devMintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_devReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_freeMintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_preMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_preMintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_pubMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_pubMintCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_startMintTime","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":"address","name":"_signer","type":"address"}],"name":"changeSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"devmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"freemint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"premint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"pubmint","outputs":[],"stateMutability":"payable","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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pre","type":"uint256"},{"internalType":"uint256","name":"pub","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"startMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopMint","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":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040526000600c60006101000a81548160ff02191690831515021790555060405180602001604052806000815250600e908162000040919062000718565b5073030b7361ebc8889c30dfa82265165d0f00b19666600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000a357600080fd5b506040518060400160405280600b81526020017f43433046696768746572730000000000000000000000000000000000000000008152506040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152506040518060400160405280600b81526020017f43433046696768746572730000000000000000000000000000000000000000008152506040518060400160405280600281526020017f636600000000000000000000000000000000000000000000000000000000000081525081600190816200018d919062000718565b5080600290816200019f919062000718565b5050506001600b8190555060008280519060200120905060008280519060200120905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f90508260e081815250508161010081815250504660a0818152505062000213818484620002ff60201b60201c565b608081815250503073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff16815250508061012081815250505050505050620002716000801b336200033b60201b60201c565b620002a37f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336200033b60201b60201c565b611b396011819055506102b2601381905550601354601154620002c791906200082e565b601281905550600060148190555060006015819055506618838370f34000601681905550662aa1efb94e000060178190555062000937565b600083838346306040516020016200031c959493929190620008da565b6040516020818303038152906040528051906020012090509392505050565b6200034d82826200042c60201b60201c565b6200042857600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620003cd6200049660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200052057607f821691505b602082108103620005365762000535620004d8565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005a07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000561565b620005ac868362000561565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620005f9620005f3620005ed84620005c4565b620005ce565b620005c4565b9050919050565b6000819050919050565b6200061583620005d8565b6200062d620006248262000600565b8484546200056e565b825550505050565b600090565b6200064462000635565b620006518184846200060a565b505050565b5b8181101562000679576200066d6000826200063a565b60018101905062000657565b5050565b601f821115620006c85762000692816200053c565b6200069d8462000551565b81016020851015620006ad578190505b620006c5620006bc8562000551565b83018262000656565b50505b505050565b600082821c905092915050565b6000620006ed60001984600802620006cd565b1980831691505092915050565b6000620007088383620006da565b9150826002028217905092915050565b62000723826200049e565b67ffffffffffffffff8111156200073f576200073e620004a9565b5b6200074b825462000507565b620007588282856200067d565b600060209050601f8311600181146200079057600084156200077b578287015190505b620007878582620006fa565b865550620007f7565b601f198416620007a0866200053c565b60005b82811015620007ca57848901518255600182019150602085019450602081019050620007a3565b86831015620007ea5784890151620007e6601f891682620006da565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200083b82620005c4565b91506200084883620005c4565b9250828203905081811115620008635762000862620007ff565b5b92915050565b6000819050919050565b6200087e8162000869565b82525050565b6200088f81620005c4565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620008c28262000895565b9050919050565b620008d481620008b5565b82525050565b600060a082019050620008f1600083018862000873565b62000900602083018762000873565b6200090f604083018662000873565b6200091e606083018562000884565b6200092d6080830184620008c9565b9695505050505050565b60805160a05160c05160e0516101005161012051615d916200098760003960006130090152600061304b0152600061302a01526000612f5f01526000612fb501526000612fde0152615d916000f3fe6080604052600436106102675760003560e01c8063670b549411610144578063a2a7c786116100b6578063d547741f1161007a578063d547741f1461094e578063d558296514610977578063e1dffd371461098e578063e985e9c5146109aa578063ef084f5d146109e7578063f1bf9a3714610a0357610267565b8063a2a7c78614610869578063aad2b72314610894578063b88d4fde146108bd578063c87b56dd146108e6578063d53913931461092357610267565b806392ad963c1161010857806392ad963c1461077857806395d89b41146107a357806396622497146107ce5780639d5aef30146107f9578063a217fddf14610815578063a22cb4651461084057610267565b8063670b54941461067d57806368730745146106a857806370a08231146106d35780638f12b4281461071057806391d148541461073b57610267565b8063248a9ca3116101dd57806342842e0e116101a157806342842e0e1461055d5780634f6ccce71461058657806351cff8d9146105c357806355f804b3146105ec5780635bd6affd146106155780636352211e1461064057610267565b8063248a9ca3146104665780632f2ff15d146104a35780632f745c59146104cc57806336568abe1461050957806340a567b91461053257610267565b8063095ea7b31161022f578063095ea7b314610356578063131713751461037f578063150b7a02146103aa57806318160ddd146103e757806322f4596f1461041257806323b872dd1461043d57610267565b806301ffc9a71461026c57806302fb4791146102a95780630442bfa8146102c557806306fdde03146102ee578063081812fc14610319575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613c4d565b610a2c565b6040516102a09190613c95565b60405180910390f35b6102c360048036038101906102be9190613ce6565b610a3e565b005b3480156102d157600080fd5b506102ec60048036038101906102e79190613d13565b610bc4565b005b3480156102fa57600080fd5b50610303610be4565b6040516103109190613de3565b60405180910390f35b34801561032557600080fd5b50610340600480360381019061033b9190613ce6565b610c76565b60405161034d9190613e46565b60405180910390f35b34801561036257600080fd5b5061037d60048036038101906103789190613e8d565b610cbc565b005b34801561038b57600080fd5b50610394610dd3565b6040516103a19190613edc565b60405180910390f35b3480156103b657600080fd5b506103d160048036038101906103cc9190613f5c565b610dd9565b6040516103de9190613ff3565b60405180910390f35b3480156103f357600080fd5b506103fc610dee565b6040516104099190613edc565b60405180910390f35b34801561041e57600080fd5b50610427610dfb565b6040516104349190613edc565b60405180910390f35b34801561044957600080fd5b50610464600480360381019061045f919061400e565b610e01565b005b34801561047257600080fd5b5061048d60048036038101906104889190614097565b610e61565b60405161049a91906140d3565b60405180910390f35b3480156104af57600080fd5b506104ca60048036038101906104c591906140ee565b610e80565b005b3480156104d857600080fd5b506104f360048036038101906104ee9190613e8d565b610ea1565b6040516105009190613edc565b60405180910390f35b34801561051557600080fd5b50610530600480360381019061052b91906140ee565b610f46565b005b34801561053e57600080fd5b50610547610fc9565b6040516105549190613edc565b60405180910390f35b34801561056957600080fd5b50610584600480360381019061057f919061400e565b610fcf565b005b34801561059257600080fd5b506105ad60048036038101906105a89190613ce6565b610fef565b6040516105ba9190613edc565b60405180910390f35b3480156105cf57600080fd5b506105ea60048036038101906105e5919061412e565b611060565b005b3480156105f857600080fd5b50610613600480360381019061060e919061428b565b6110b8565b005b34801561062157600080fd5b5061062a6110d9565b6040516106379190613edc565b60405180910390f35b34801561064c57600080fd5b5061066760048036038101906106629190613ce6565b6110df565b6040516106749190613e46565b60405180910390f35b34801561068957600080fd5b50610692611190565b60405161069f9190613edc565b60405180910390f35b3480156106b457600080fd5b506106bd611196565b6040516106ca9190613edc565b60405180910390f35b3480156106df57600080fd5b506106fa60048036038101906106f5919061412e565b61119c565b6040516107079190613edc565b60405180910390f35b34801561071c57600080fd5b50610725611253565b6040516107329190613edc565b60405180910390f35b34801561074757600080fd5b50610762600480360381019061075d91906140ee565b611259565b60405161076f9190613c95565b60405180910390f35b34801561078457600080fd5b5061078d6112c3565b60405161079a9190613edc565b60405180910390f35b3480156107af57600080fd5b506107b86112c9565b6040516107c59190613de3565b60405180910390f35b3480156107da57600080fd5b506107e361135b565b6040516107f09190613edc565b60405180910390f35b610813600480360381019061080e9190613ce6565b611361565b005b34801561082157600080fd5b5061082a6116ba565b60405161083791906140d3565b60405180910390f35b34801561084c57600080fd5b5061086760048036038101906108629190614300565b6116c1565b005b34801561087557600080fd5b5061087e6116d7565b60405161088b9190613edc565b60405180910390f35b3480156108a057600080fd5b506108bb60048036038101906108b6919061412e565b6116dd565b005b3480156108c957600080fd5b506108e460048036038101906108df91906143e1565b61172f565b005b3480156108f257600080fd5b5061090d60048036038101906109089190613ce6565b611791565b60405161091a9190613de3565b60405180910390f35b34801561092f57600080fd5b506109386117f9565b60405161094591906140d3565b60405180910390f35b34801561095a57600080fd5b50610975600480360381019061097091906140ee565b61181d565b005b34801561098357600080fd5b5061098c61183e565b005b6109a860048036038101906109a39190613ce6565b611869565b005b3480156109b657600080fd5b506109d160048036038101906109cc9190614464565b611b7c565b6040516109de9190613c95565b60405180910390f35b610a0160048036038101906109fc91906144dd565b611c10565b005b348015610a0f57600080fd5b50610a2a6004803603810190610a259190613ce6565b611f6b565b005b6000610a3782611fca565b9050919050565b60011515600c60009054906101000a900460ff16151514610a94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8b906145a2565b60405180910390fd5b6002600b5403610ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad09061460e565b60405180910390fd5b6002600b819055507f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610b0b81612044565b60135482601454610b1c919061465d565b1115610b5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b54906146dd565b60405180910390fd5b8160146000828254610b6f919061465d565b9250508190555060005b82811015610bb7576000610b8d600d612058565b9050610b99600d612066565b610ba3338261207c565b508080610baf906146fd565b915050610b79565b50506001600b8190555050565b6000801b610bd181612044565b8260168190555081601781905550505050565b606060018054610bf390614774565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1f90614774565b8015610c6c5780601f10610c4157610100808354040283529160200191610c6c565b820191906000526020600020905b815481529060010190602001808311610c4f57829003601f168201915b5050505050905090565b6000610c818261209a565b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cc7826110df565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2e90614817565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d566120e5565b73ffffffffffffffffffffffffffffffffffffffff161480610d855750610d8481610d7f6120e5565b611b7c565b5b610dc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbb906148a9565b60405180910390fd5b610dce83836120ed565b505050565b60135481565b600063150b7a0260e01b905095945050505050565b6000600980549050905090565b60115481565b610e12610e0c6120e5565b826121a6565b610e51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e489061493b565b60405180910390fd5b610e5c83838361223b565b505050565b6000806000838152602001908152602001600020600101549050919050565b610e8982610e61565b610e9281612044565b610e9c83836124a1565b505050565b6000610eac8361119c565b8210610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee4906149cd565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610f4e6120e5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb290614a5f565b60405180910390fd5b610fc58282612581565b5050565b60155481565b610fea8383836040518060200160405280600081525061172f565b505050565b6000610ff9610dee565b821061103a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103190614af1565b60405180910390fd5b6009828154811061104e5761104d614b11565b5b90600052602060002001549050919050565b6000801b61106d81612044565b8173ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156110b3573d6000803e3d6000fd5b505050565b6000801b6110c581612044565b81600e90816110d49190614cec565b505050565b60175481565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611187576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117e90614e0a565b60405180910390fd5b80915050919050565b60145481565b601a5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361120c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120390614e9c565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60195481565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60125481565b6060600280546112d890614774565b80601f016020809104026020016040519081016040528092919081815260200182805461130490614774565b80156113515780601f1061132657610100808354040283529160200191611351565b820191906000526020600020905b81548152906001019060200180831161133457829003601f168201915b5050505050905090565b60165481565b60011515600c60009054906101000a900460ff161515146113b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ae906145a2565b60405180910390fd5b6002600b54036113fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f39061460e565b60405180910390fd5b6002600b81905550600081118015611415575060038111155b611454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144b90614f08565b60405180910390fd5b601954421015611499576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149090614f74565b60405180910390fd5b601a544211156114de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d590614fe0565b60405180910390fd5b6003813073ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161151a9190613e46565b602060405180830381865afa158015611537573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155b9190615015565b611565919061465d565b11156115a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159d906146dd565b60405180910390fd5b601254816015546115b7919061465d565b11156115f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ef9061508e565b60405180910390fd5b60003490506116128260165461266290919063ffffffff16565b8114611653576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164a906150fa565b60405180910390fd5b8160156000828254611665919061465d565b9250508190555060005b828110156116ad576000611683600d612058565b905061168f600d612066565b611699338261207c565b5080806116a5906146fd565b91505061166f565b50506001600b8190555050565b6000801b81565b6116d36116cc6120e5565b8383612678565b5050565b60185481565b6000801b6116ea81612044565b81600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b61174061173a6120e5565b836121a6565b61177f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117769061493b565b60405180910390fd5b61178b848484846127e4565b50505050565b606061179c8261209a565b60006117a6612840565b905060008151116117c657604051806020016040528060008152506117f1565b806117d0846128d2565b6040516020016117e1929190615156565b6040516020818303038152906040525b915050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61182682610e61565b61182f81612044565b6118398383612581565b505050565b6000801b61184b81612044565b6000600c60006101000a81548160ff02191690831515021790555050565b60011515600c60009054906101000a900460ff161515146118bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b6906145a2565b60405180910390fd5b6002600b5403611904576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fb9061460e565b60405180910390fd5b6002600b8190555060008111801561191d575060148111155b61195c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195390614f08565b60405180910390fd5b601a5442116119a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611997906151c6565b60405180910390fd5b6014813073ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016119dc9190613e46565b602060405180830381865afa1580156119f9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1d9190615015565b611a27919061465d565b1115611a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5f906146dd565b60405180910390fd5b60125481601554611a79919061465d565b1115611aba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab19061508e565b60405180910390fd5b6000349050611ad48260175461266290919063ffffffff16565b8114611b15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0c906150fa565b60405180910390fd5b8160156000828254611b27919061465d565b9250508190555060005b82811015611b6f576000611b45600d612058565b9050611b51600d612066565b611b5b338261207c565b508080611b67906146fd565b915050611b31565b50506001600b8190555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60011515600c60009054906101000a900460ff16151514611c66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5d906145a2565b60405180910390fd5b6002600b5403611cab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca29061460e565b60405180910390fd5b6002600b81905550601954421115611cf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cef90615232565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611d85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7c9061529e565b60405180910390fd5b6012546001601554611d97919061465d565b1115611dd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dcf9061508e565b60405180910390fd5b6000611e2b7f1bd15173d080c69ce394c4ba6c3767f65a1d14a5305263efd57923c4e58b033f33604051602001611e109291906152be565b60405160208183030381529060405280519060200120612a32565b9050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611e7282868686612a4c565b73ffffffffffffffffffffffffffffffffffffffff1614611ec8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebf90615333565b60405180910390fd5b600160156000828254611edb919061465d565b925050819055506001601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506000611f46600d612058565b9050611f52600d612066565b611f5c338261207c565b50506001600b81905550505050565b6000801b611f7881612044565b6001600c60006101000a81548160ff02191690831515021790555081601881905550611c20601854611faa919061465d565b601981905550611c20601954611fc0919061465d565b601a819055505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061203d575061203c82612a77565b5b9050919050565b612055816120506120e5565b612b59565b50565b600081600001549050919050565b6001816000016000828254019250508190555050565b612096828260405180602001604052806000815250612bf6565b5050565b6120a381612c51565b6120e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d990614e0a565b60405180910390fd5b50565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612160836110df565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806121b2836110df565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806121f457506121f38185611b7c565b5b8061223257508373ffffffffffffffffffffffffffffffffffffffff1661221a84610c76565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661225b826110df565b73ffffffffffffffffffffffffffffffffffffffff16146122b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a8906153c5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612320576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231790615457565b60405180910390fd5b61232b838383612cbd565b6123366000826120ed565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123869190615477565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123dd919061465d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461249c838383612dcf565b505050565b6124ab8282611259565b61257d57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506125226120e5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61258b8282611259565b1561265e57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506126036120e5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000818361267091906154ab565b905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036126e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126dd90615551565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127d79190613c95565b60405180910390a3505050565b6127ef84848461223b565b6127fb84848484612dd4565b61283a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612831906155e3565b60405180910390fd5b50505050565b6060600e805461284f90614774565b80601f016020809104026020016040519081016040528092919081815260200182805461287b90614774565b80156128c85780601f1061289d576101008083540402835291602001916128c8565b820191906000526020600020905b8154815290600101906020018083116128ab57829003601f168201915b5050505050905090565b606060008203612919576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a2d565b600082905060005b6000821461294b578080612934906146fd565b915050600a826129449190615632565b9150612921565b60008167ffffffffffffffff81111561296757612966614160565b5b6040519080825280601f01601f1916602001820160405280156129995781602001600182028036833780820191505090505b5090505b60008514612a26576001826129b29190615477565b9150600a856129c19190615663565b60306129cd919061465d565b60f81b8183815181106129e3576129e2614b11565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a1f9190615632565b945061299d565b8093505050505b919050565b6000612a45612a3f612f5b565b83613075565b9050919050565b6000806000612a5d878787876130a8565b91509150612a6a816131b4565b8192505050949350505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612b4257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612b525750612b5182613380565b5b9050919050565b612b638282611259565b612bf257612b888173ffffffffffffffffffffffffffffffffffffffff1660146133fa565b612b968360001c60206133fa565b604051602001612ba792919061572c565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be99190613de3565b60405180910390fd5b5050565b612c008383613636565b612c0d6000848484612dd4565b612c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c43906155e3565b60405180910390fd5b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612cc883838361380f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d0a57612d0581613814565b612d49565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612d4857612d47838261385d565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612d8b57612d86816139ca565b612dca565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612dc957612dc88282613a9b565b5b5b505050565b505050565b6000612df58473ffffffffffffffffffffffffffffffffffffffff16613b1a565b15612f4e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e1e6120e5565b8786866040518563ffffffff1660e01b8152600401612e4094939291906157bb565b6020604051808303816000875af1925050508015612e7c57506040513d601f19601f82011682018060405250810190612e79919061581c565b60015b612efe573d8060008114612eac576040519150601f19603f3d011682016040523d82523d6000602084013e612eb1565b606091505b506000815103612ef6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eed906155e3565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612f53565b600190505b949350505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148015612fd757507f000000000000000000000000000000000000000000000000000000000000000046145b15613004577f00000000000000000000000000000000000000000000000000000000000000009050613072565b61306f7f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000613b3d565b90505b90565b6000828260405160200161308a9291906158b6565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156130e35760006003915091506131ab565b601b8560ff16141580156130fb5750601c8560ff1614155b1561310d5760006004915091506131ab565b60006001878787876040516000815260200160405260405161313294939291906158fc565b6020604051602081039080840390855afa158015613154573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036131a2576000600192509250506131ab565b80600092509250505b94509492505050565b600060048111156131c8576131c7615941565b5b8160048111156131db576131da615941565b5b031561337d57600160048111156131f5576131f4615941565b5b81600481111561320857613207615941565b5b03613248576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161323f906159bc565b60405180910390fd5b6002600481111561325c5761325b615941565b5b81600481111561326f5761326e615941565b5b036132af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132a690615a28565b60405180910390fd5b600360048111156132c3576132c2615941565b5b8160048111156132d6576132d5615941565b5b03613316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161330d90615aba565b60405180910390fd5b60048081111561332957613328615941565b5b81600481111561333c5761333b615941565b5b0361337c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161337390615b4c565b60405180910390fd5b5b50565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806133f357506133f282613b77565b5b9050919050565b60606000600283600261340d91906154ab565b613417919061465d565b67ffffffffffffffff8111156134305761342f614160565b5b6040519080825280601f01601f1916602001820160405280156134625781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061349a57613499614b11565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134fe576134fd614b11565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261353e91906154ab565b613548919061465d565b90505b60018111156135e8577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061358a57613589614b11565b5b1a60f81b8282815181106135a1576135a0614b11565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806135e190615b6c565b905061354b565b506000841461362c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161362390615be1565b60405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036136a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161369c90615c4d565b60405180910390fd5b6136ae81612c51565b156136ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136e590615cb9565b60405180910390fd5b6136fa60008383612cbd565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461374a919061465d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461380b60008383612dcf565b5050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161386a8461119c565b6138749190615477565b9050600060086000848152602001908152602001600020549050818114613959576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016009805490506139de9190615477565b90506000600a6000848152602001908152602001600020549050600060098381548110613a0e57613a0d614b11565b5b906000526020600020015490508060098381548110613a3057613a2f614b11565b5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613a7f57613a7e615cd9565b5b6001900381819060005260206000200160009055905550505050565b6000613aa68361119c565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008383834630604051602001613b58959493929190615d08565b6040516020818303038152906040528051906020012090509392505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613c2a81613bf5565b8114613c3557600080fd5b50565b600081359050613c4781613c21565b92915050565b600060208284031215613c6357613c62613beb565b5b6000613c7184828501613c38565b91505092915050565b60008115159050919050565b613c8f81613c7a565b82525050565b6000602082019050613caa6000830184613c86565b92915050565b6000819050919050565b613cc381613cb0565b8114613cce57600080fd5b50565b600081359050613ce081613cba565b92915050565b600060208284031215613cfc57613cfb613beb565b5b6000613d0a84828501613cd1565b91505092915050565b60008060408385031215613d2a57613d29613beb565b5b6000613d3885828601613cd1565b9250506020613d4985828601613cd1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613d8d578082015181840152602081019050613d72565b60008484015250505050565b6000601f19601f8301169050919050565b6000613db582613d53565b613dbf8185613d5e565b9350613dcf818560208601613d6f565b613dd881613d99565b840191505092915050565b60006020820190508181036000830152613dfd8184613daa565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e3082613e05565b9050919050565b613e4081613e25565b82525050565b6000602082019050613e5b6000830184613e37565b92915050565b613e6a81613e25565b8114613e7557600080fd5b50565b600081359050613e8781613e61565b92915050565b60008060408385031215613ea457613ea3613beb565b5b6000613eb285828601613e78565b9250506020613ec385828601613cd1565b9150509250929050565b613ed681613cb0565b82525050565b6000602082019050613ef16000830184613ecd565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613f1c57613f1b613ef7565b5b8235905067ffffffffffffffff811115613f3957613f38613efc565b5b602083019150836001820283011115613f5557613f54613f01565b5b9250929050565b600080600080600060808688031215613f7857613f77613beb565b5b6000613f8688828901613e78565b9550506020613f9788828901613e78565b9450506040613fa888828901613cd1565b935050606086013567ffffffffffffffff811115613fc957613fc8613bf0565b5b613fd588828901613f06565b92509250509295509295909350565b613fed81613bf5565b82525050565b60006020820190506140086000830184613fe4565b92915050565b60008060006060848603121561402757614026613beb565b5b600061403586828701613e78565b935050602061404686828701613e78565b925050604061405786828701613cd1565b9150509250925092565b6000819050919050565b61407481614061565b811461407f57600080fd5b50565b6000813590506140918161406b565b92915050565b6000602082840312156140ad576140ac613beb565b5b60006140bb84828501614082565b91505092915050565b6140cd81614061565b82525050565b60006020820190506140e860008301846140c4565b92915050565b6000806040838503121561410557614104613beb565b5b600061411385828601614082565b925050602061412485828601613e78565b9150509250929050565b60006020828403121561414457614143613beb565b5b600061415284828501613e78565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61419882613d99565b810181811067ffffffffffffffff821117156141b7576141b6614160565b5b80604052505050565b60006141ca613be1565b90506141d6828261418f565b919050565b600067ffffffffffffffff8211156141f6576141f5614160565b5b6141ff82613d99565b9050602081019050919050565b82818337600083830152505050565b600061422e614229846141db565b6141c0565b90508281526020810184848401111561424a5761424961415b565b5b61425584828561420c565b509392505050565b600082601f83011261427257614271613ef7565b5b813561428284826020860161421b565b91505092915050565b6000602082840312156142a1576142a0613beb565b5b600082013567ffffffffffffffff8111156142bf576142be613bf0565b5b6142cb8482850161425d565b91505092915050565b6142dd81613c7a565b81146142e857600080fd5b50565b6000813590506142fa816142d4565b92915050565b6000806040838503121561431757614316613beb565b5b600061432585828601613e78565b9250506020614336858286016142eb565b9150509250929050565b600067ffffffffffffffff82111561435b5761435a614160565b5b61436482613d99565b9050602081019050919050565b600061438461437f84614340565b6141c0565b9050828152602081018484840111156143a05761439f61415b565b5b6143ab84828561420c565b509392505050565b600082601f8301126143c8576143c7613ef7565b5b81356143d8848260208601614371565b91505092915050565b600080600080608085870312156143fb576143fa613beb565b5b600061440987828801613e78565b945050602061441a87828801613e78565b935050604061442b87828801613cd1565b925050606085013567ffffffffffffffff81111561444c5761444b613bf0565b5b614458878288016143b3565b91505092959194509250565b6000806040838503121561447b5761447a613beb565b5b600061448985828601613e78565b925050602061449a85828601613e78565b9150509250929050565b600060ff82169050919050565b6144ba816144a4565b81146144c557600080fd5b50565b6000813590506144d7816144b1565b92915050565b6000806000606084860312156144f6576144f5613beb565b5b6000614504868287016144c8565b935050602061451586828701614082565b925050604061452686828701614082565b9150509250925092565b7f6d696e74206e6f742073746172746564206f7220616c72656164792073746f7060008201527f7065642e00000000000000000000000000000000000000000000000000000000602082015250565b600061458c602483613d5e565b915061459782614530565b604082019050919050565b600060208201905081810360008301526145bb8161457f565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006145f8601f83613d5e565b9150614603826145c2565b602082019050919050565b60006020820190508181036000830152614627816145eb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061466882613cb0565b915061467383613cb0565b925082820190508082111561468b5761468a61462e565b5b92915050565b7f746f6f206d616e7920616c7265616479206d696e7465642e0000000000000000600082015250565b60006146c7601883613d5e565b91506146d282614691565b602082019050919050565b600060208201905081810360008301526146f6816146ba565b9050919050565b600061470882613cb0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361473a5761473961462e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061478c57607f821691505b60208210810361479f5761479e614745565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614801602183613d5e565b915061480c826147a5565b604082019050919050565b60006020820190508181036000830152614830816147f4565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000614893603e83613d5e565b915061489e82614837565b604082019050919050565b600060208201905081810360008301526148c281614886565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614925602e83613d5e565b9150614930826148c9565b604082019050919050565b6000602082019050818103600083015261495481614918565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b60006149b7602b83613d5e565b91506149c28261495b565b604082019050919050565b600060208201905081810360008301526149e6816149aa565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614a49602f83613d5e565b9150614a54826149ed565b604082019050919050565b60006020820190508181036000830152614a7881614a3c565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614adb602c83613d5e565b9150614ae682614a7f565b604082019050919050565b60006020820190508181036000830152614b0a81614ace565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614ba27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b65565b614bac8683614b65565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614be9614be4614bdf84613cb0565b614bc4565b613cb0565b9050919050565b6000819050919050565b614c0383614bce565b614c17614c0f82614bf0565b848454614b72565b825550505050565b600090565b614c2c614c1f565b614c37818484614bfa565b505050565b5b81811015614c5b57614c50600082614c24565b600181019050614c3d565b5050565b601f821115614ca057614c7181614b40565b614c7a84614b55565b81016020851015614c89578190505b614c9d614c9585614b55565b830182614c3c565b50505b505050565b600082821c905092915050565b6000614cc360001984600802614ca5565b1980831691505092915050565b6000614cdc8383614cb2565b9150826002028217905092915050565b614cf582613d53565b67ffffffffffffffff811115614d0e57614d0d614160565b5b614d188254614774565b614d23828285614c5f565b600060209050601f831160018114614d565760008415614d44578287015190505b614d4e8582614cd0565b865550614db6565b601f198416614d6486614b40565b60005b82811015614d8c57848901518255600182019150602085019450602081019050614d67565b86831015614da95784890151614da5601f891682614cb2565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614df4601883613d5e565b9150614dff82614dbe565b602082019050919050565b60006020820190508181036000830152614e2381614de7565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614e86602983613d5e565b9150614e9182614e2a565b604082019050919050565b60006020820190508181036000830152614eb581614e79565b9050919050565b7f696e76616c696420616d6f756e74000000000000000000000000000000000000600082015250565b6000614ef2600e83613d5e565b9150614efd82614ebc565b602082019050919050565b60006020820190508181036000830152614f2181614ee5565b9050919050565b7f707265206d696e74206e6f7420737461727465642e0000000000000000000000600082015250565b6000614f5e601583613d5e565b9150614f6982614f28565b602082019050919050565b60006020820190508181036000830152614f8d81614f51565b9050919050565b7f707265206d696e7420656e642e00000000000000000000000000000000000000600082015250565b6000614fca600d83613d5e565b9150614fd582614f94565b602082019050919050565b60006020820190508181036000830152614ff981614fbd565b9050919050565b60008151905061500f81613cba565b92915050565b60006020828403121561502b5761502a613beb565b5b600061503984828501615000565b91505092915050565b7f696e73756666696369656e74206d696e742e0000000000000000000000000000600082015250565b6000615078601283613d5e565b915061508382615042565b602082019050919050565b600060208201905081810360008301526150a78161506b565b9050919050565b7f696e76616c696420707269636500000000000000000000000000000000000000600082015250565b60006150e4600d83613d5e565b91506150ef826150ae565b602082019050919050565b60006020820190508181036000830152615113816150d7565b9050919050565b600081905092915050565b600061513082613d53565b61513a818561511a565b935061514a818560208601613d6f565b80840191505092915050565b60006151628285615125565b915061516e8284615125565b91508190509392505050565b7f707562206d696e74206e6f742073746172742e00000000000000000000000000600082015250565b60006151b0601383613d5e565b91506151bb8261517a565b602082019050919050565b600060208201905081810360008301526151df816151a3565b9050919050565b7f66726565206d696e7420656e642e000000000000000000000000000000000000600082015250565b600061521c600e83613d5e565b9150615227826151e6565b602082019050919050565b6000602082019050818103600083015261524b8161520f565b9050919050565b7f616c7265616479206d696e740000000000000000000000000000000000000000600082015250565b6000615288600c83613d5e565b915061529382615252565b602082019050919050565b600060208201905081810360008301526152b78161527b565b9050919050565b60006040820190506152d360008301856140c4565b6152e06020830184613e37565b9392505050565b7f696e76616c6964207369676e6572000000000000000000000000000000000000600082015250565b600061531d600e83613d5e565b9150615328826152e7565b602082019050919050565b6000602082019050818103600083015261534c81615310565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006153af602583613d5e565b91506153ba82615353565b604082019050919050565b600060208201905081810360008301526153de816153a2565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615441602483613d5e565b915061544c826153e5565b604082019050919050565b6000602082019050818103600083015261547081615434565b9050919050565b600061548282613cb0565b915061548d83613cb0565b92508282039050818111156154a5576154a461462e565b5b92915050565b60006154b682613cb0565b91506154c183613cb0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156154fa576154f961462e565b5b828202905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061553b601983613d5e565b915061554682615505565b602082019050919050565b6000602082019050818103600083015261556a8161552e565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006155cd603283613d5e565b91506155d882615571565b604082019050919050565b600060208201905081810360008301526155fc816155c0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061563d82613cb0565b915061564883613cb0565b92508261565857615657615603565b5b828204905092915050565b600061566e82613cb0565b915061567983613cb0565b92508261568957615688615603565b5b828206905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006156ca60178361511a565b91506156d582615694565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600061571660118361511a565b9150615721826156e0565b601182019050919050565b6000615737826156bd565b91506157438285615125565b915061574e82615709565b915061575a8284615125565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b600061578d82615766565b6157978185615771565b93506157a7818560208601613d6f565b6157b081613d99565b840191505092915050565b60006080820190506157d06000830187613e37565b6157dd6020830186613e37565b6157ea6040830185613ecd565b81810360608301526157fc8184615782565b905095945050505050565b60008151905061581681613c21565b92915050565b60006020828403121561583257615831613beb565b5b600061584084828501615807565b91505092915050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b600061587f60028361511a565b915061588a82615849565b600282019050919050565b6000819050919050565b6158b06158ab82614061565b615895565b82525050565b60006158c182615872565b91506158cd828561589f565b6020820191506158dd828461589f565b6020820191508190509392505050565b6158f6816144a4565b82525050565b600060808201905061591160008301876140c4565b61591e60208301866158ed565b61592b60408301856140c4565b61593860608301846140c4565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006159a6601883613d5e565b91506159b182615970565b602082019050919050565b600060208201905081810360008301526159d581615999565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615a12601f83613d5e565b9150615a1d826159dc565b602082019050919050565b60006020820190508181036000830152615a4181615a05565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615aa4602283613d5e565b9150615aaf82615a48565b604082019050919050565b60006020820190508181036000830152615ad381615a97565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615b36602283613d5e565b9150615b4182615ada565b604082019050919050565b60006020820190508181036000830152615b6581615b29565b9050919050565b6000615b7782613cb0565b915060008203615b8a57615b8961462e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615bcb602083613d5e565b9150615bd682615b95565b602082019050919050565b60006020820190508181036000830152615bfa81615bbe565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615c37602083613d5e565b9150615c4282615c01565b602082019050919050565b60006020820190508181036000830152615c6681615c2a565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615ca3601c83613d5e565b9150615cae82615c6d565b602082019050919050565b60006020820190508181036000830152615cd281615c96565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060a082019050615d1d60008301886140c4565b615d2a60208301876140c4565b615d3760408301866140c4565b615d446060830185613ecd565b615d516080830184613e37565b969550505050505056fea2646970667358221220e720c27a8ecef34130d2a61364d539dbd6848104fcab35f1e397519f5a173d7564736f6c63430008100033

Deployed Bytecode

0x6080604052600436106102675760003560e01c8063670b549411610144578063a2a7c786116100b6578063d547741f1161007a578063d547741f1461094e578063d558296514610977578063e1dffd371461098e578063e985e9c5146109aa578063ef084f5d146109e7578063f1bf9a3714610a0357610267565b8063a2a7c78614610869578063aad2b72314610894578063b88d4fde146108bd578063c87b56dd146108e6578063d53913931461092357610267565b806392ad963c1161010857806392ad963c1461077857806395d89b41146107a357806396622497146107ce5780639d5aef30146107f9578063a217fddf14610815578063a22cb4651461084057610267565b8063670b54941461067d57806368730745146106a857806370a08231146106d35780638f12b4281461071057806391d148541461073b57610267565b8063248a9ca3116101dd57806342842e0e116101a157806342842e0e1461055d5780634f6ccce71461058657806351cff8d9146105c357806355f804b3146105ec5780635bd6affd146106155780636352211e1461064057610267565b8063248a9ca3146104665780632f2ff15d146104a35780632f745c59146104cc57806336568abe1461050957806340a567b91461053257610267565b8063095ea7b31161022f578063095ea7b314610356578063131713751461037f578063150b7a02146103aa57806318160ddd146103e757806322f4596f1461041257806323b872dd1461043d57610267565b806301ffc9a71461026c57806302fb4791146102a95780630442bfa8146102c557806306fdde03146102ee578063081812fc14610319575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613c4d565b610a2c565b6040516102a09190613c95565b60405180910390f35b6102c360048036038101906102be9190613ce6565b610a3e565b005b3480156102d157600080fd5b506102ec60048036038101906102e79190613d13565b610bc4565b005b3480156102fa57600080fd5b50610303610be4565b6040516103109190613de3565b60405180910390f35b34801561032557600080fd5b50610340600480360381019061033b9190613ce6565b610c76565b60405161034d9190613e46565b60405180910390f35b34801561036257600080fd5b5061037d60048036038101906103789190613e8d565b610cbc565b005b34801561038b57600080fd5b50610394610dd3565b6040516103a19190613edc565b60405180910390f35b3480156103b657600080fd5b506103d160048036038101906103cc9190613f5c565b610dd9565b6040516103de9190613ff3565b60405180910390f35b3480156103f357600080fd5b506103fc610dee565b6040516104099190613edc565b60405180910390f35b34801561041e57600080fd5b50610427610dfb565b6040516104349190613edc565b60405180910390f35b34801561044957600080fd5b50610464600480360381019061045f919061400e565b610e01565b005b34801561047257600080fd5b5061048d60048036038101906104889190614097565b610e61565b60405161049a91906140d3565b60405180910390f35b3480156104af57600080fd5b506104ca60048036038101906104c591906140ee565b610e80565b005b3480156104d857600080fd5b506104f360048036038101906104ee9190613e8d565b610ea1565b6040516105009190613edc565b60405180910390f35b34801561051557600080fd5b50610530600480360381019061052b91906140ee565b610f46565b005b34801561053e57600080fd5b50610547610fc9565b6040516105549190613edc565b60405180910390f35b34801561056957600080fd5b50610584600480360381019061057f919061400e565b610fcf565b005b34801561059257600080fd5b506105ad60048036038101906105a89190613ce6565b610fef565b6040516105ba9190613edc565b60405180910390f35b3480156105cf57600080fd5b506105ea60048036038101906105e5919061412e565b611060565b005b3480156105f857600080fd5b50610613600480360381019061060e919061428b565b6110b8565b005b34801561062157600080fd5b5061062a6110d9565b6040516106379190613edc565b60405180910390f35b34801561064c57600080fd5b5061066760048036038101906106629190613ce6565b6110df565b6040516106749190613e46565b60405180910390f35b34801561068957600080fd5b50610692611190565b60405161069f9190613edc565b60405180910390f35b3480156106b457600080fd5b506106bd611196565b6040516106ca9190613edc565b60405180910390f35b3480156106df57600080fd5b506106fa60048036038101906106f5919061412e565b61119c565b6040516107079190613edc565b60405180910390f35b34801561071c57600080fd5b50610725611253565b6040516107329190613edc565b60405180910390f35b34801561074757600080fd5b50610762600480360381019061075d91906140ee565b611259565b60405161076f9190613c95565b60405180910390f35b34801561078457600080fd5b5061078d6112c3565b60405161079a9190613edc565b60405180910390f35b3480156107af57600080fd5b506107b86112c9565b6040516107c59190613de3565b60405180910390f35b3480156107da57600080fd5b506107e361135b565b6040516107f09190613edc565b60405180910390f35b610813600480360381019061080e9190613ce6565b611361565b005b34801561082157600080fd5b5061082a6116ba565b60405161083791906140d3565b60405180910390f35b34801561084c57600080fd5b5061086760048036038101906108629190614300565b6116c1565b005b34801561087557600080fd5b5061087e6116d7565b60405161088b9190613edc565b60405180910390f35b3480156108a057600080fd5b506108bb60048036038101906108b6919061412e565b6116dd565b005b3480156108c957600080fd5b506108e460048036038101906108df91906143e1565b61172f565b005b3480156108f257600080fd5b5061090d60048036038101906109089190613ce6565b611791565b60405161091a9190613de3565b60405180910390f35b34801561092f57600080fd5b506109386117f9565b60405161094591906140d3565b60405180910390f35b34801561095a57600080fd5b50610975600480360381019061097091906140ee565b61181d565b005b34801561098357600080fd5b5061098c61183e565b005b6109a860048036038101906109a39190613ce6565b611869565b005b3480156109b657600080fd5b506109d160048036038101906109cc9190614464565b611b7c565b6040516109de9190613c95565b60405180910390f35b610a0160048036038101906109fc91906144dd565b611c10565b005b348015610a0f57600080fd5b50610a2a6004803603810190610a259190613ce6565b611f6b565b005b6000610a3782611fca565b9050919050565b60011515600c60009054906101000a900460ff16151514610a94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8b906145a2565b60405180910390fd5b6002600b5403610ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad09061460e565b60405180910390fd5b6002600b819055507f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610b0b81612044565b60135482601454610b1c919061465d565b1115610b5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b54906146dd565b60405180910390fd5b8160146000828254610b6f919061465d565b9250508190555060005b82811015610bb7576000610b8d600d612058565b9050610b99600d612066565b610ba3338261207c565b508080610baf906146fd565b915050610b79565b50506001600b8190555050565b6000801b610bd181612044565b8260168190555081601781905550505050565b606060018054610bf390614774565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1f90614774565b8015610c6c5780601f10610c4157610100808354040283529160200191610c6c565b820191906000526020600020905b815481529060010190602001808311610c4f57829003601f168201915b5050505050905090565b6000610c818261209a565b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cc7826110df565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2e90614817565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d566120e5565b73ffffffffffffffffffffffffffffffffffffffff161480610d855750610d8481610d7f6120e5565b611b7c565b5b610dc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbb906148a9565b60405180910390fd5b610dce83836120ed565b505050565b60135481565b600063150b7a0260e01b905095945050505050565b6000600980549050905090565b60115481565b610e12610e0c6120e5565b826121a6565b610e51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e489061493b565b60405180910390fd5b610e5c83838361223b565b505050565b6000806000838152602001908152602001600020600101549050919050565b610e8982610e61565b610e9281612044565b610e9c83836124a1565b505050565b6000610eac8361119c565b8210610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee4906149cd565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610f4e6120e5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb290614a5f565b60405180910390fd5b610fc58282612581565b5050565b60155481565b610fea8383836040518060200160405280600081525061172f565b505050565b6000610ff9610dee565b821061103a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103190614af1565b60405180910390fd5b6009828154811061104e5761104d614b11565b5b90600052602060002001549050919050565b6000801b61106d81612044565b8173ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156110b3573d6000803e3d6000fd5b505050565b6000801b6110c581612044565b81600e90816110d49190614cec565b505050565b60175481565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611187576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117e90614e0a565b60405180910390fd5b80915050919050565b60145481565b601a5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361120c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120390614e9c565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60195481565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60125481565b6060600280546112d890614774565b80601f016020809104026020016040519081016040528092919081815260200182805461130490614774565b80156113515780601f1061132657610100808354040283529160200191611351565b820191906000526020600020905b81548152906001019060200180831161133457829003601f168201915b5050505050905090565b60165481565b60011515600c60009054906101000a900460ff161515146113b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ae906145a2565b60405180910390fd5b6002600b54036113fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f39061460e565b60405180910390fd5b6002600b81905550600081118015611415575060038111155b611454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144b90614f08565b60405180910390fd5b601954421015611499576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149090614f74565b60405180910390fd5b601a544211156114de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d590614fe0565b60405180910390fd5b6003813073ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161151a9190613e46565b602060405180830381865afa158015611537573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155b9190615015565b611565919061465d565b11156115a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159d906146dd565b60405180910390fd5b601254816015546115b7919061465d565b11156115f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ef9061508e565b60405180910390fd5b60003490506116128260165461266290919063ffffffff16565b8114611653576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164a906150fa565b60405180910390fd5b8160156000828254611665919061465d565b9250508190555060005b828110156116ad576000611683600d612058565b905061168f600d612066565b611699338261207c565b5080806116a5906146fd565b91505061166f565b50506001600b8190555050565b6000801b81565b6116d36116cc6120e5565b8383612678565b5050565b60185481565b6000801b6116ea81612044565b81600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b61174061173a6120e5565b836121a6565b61177f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117769061493b565b60405180910390fd5b61178b848484846127e4565b50505050565b606061179c8261209a565b60006117a6612840565b905060008151116117c657604051806020016040528060008152506117f1565b806117d0846128d2565b6040516020016117e1929190615156565b6040516020818303038152906040525b915050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61182682610e61565b61182f81612044565b6118398383612581565b505050565b6000801b61184b81612044565b6000600c60006101000a81548160ff02191690831515021790555050565b60011515600c60009054906101000a900460ff161515146118bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b6906145a2565b60405180910390fd5b6002600b5403611904576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fb9061460e565b60405180910390fd5b6002600b8190555060008111801561191d575060148111155b61195c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195390614f08565b60405180910390fd5b601a5442116119a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611997906151c6565b60405180910390fd5b6014813073ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016119dc9190613e46565b602060405180830381865afa1580156119f9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1d9190615015565b611a27919061465d565b1115611a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5f906146dd565b60405180910390fd5b60125481601554611a79919061465d565b1115611aba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab19061508e565b60405180910390fd5b6000349050611ad48260175461266290919063ffffffff16565b8114611b15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0c906150fa565b60405180910390fd5b8160156000828254611b27919061465d565b9250508190555060005b82811015611b6f576000611b45600d612058565b9050611b51600d612066565b611b5b338261207c565b508080611b67906146fd565b915050611b31565b50506001600b8190555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60011515600c60009054906101000a900460ff16151514611c66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5d906145a2565b60405180910390fd5b6002600b5403611cab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca29061460e565b60405180910390fd5b6002600b81905550601954421115611cf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cef90615232565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611d85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7c9061529e565b60405180910390fd5b6012546001601554611d97919061465d565b1115611dd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dcf9061508e565b60405180910390fd5b6000611e2b7f1bd15173d080c69ce394c4ba6c3767f65a1d14a5305263efd57923c4e58b033f33604051602001611e109291906152be565b60405160208183030381529060405280519060200120612a32565b9050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611e7282868686612a4c565b73ffffffffffffffffffffffffffffffffffffffff1614611ec8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebf90615333565b60405180910390fd5b600160156000828254611edb919061465d565b925050819055506001601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506000611f46600d612058565b9050611f52600d612066565b611f5c338261207c565b50506001600b81905550505050565b6000801b611f7881612044565b6001600c60006101000a81548160ff02191690831515021790555081601881905550611c20601854611faa919061465d565b601981905550611c20601954611fc0919061465d565b601a819055505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061203d575061203c82612a77565b5b9050919050565b612055816120506120e5565b612b59565b50565b600081600001549050919050565b6001816000016000828254019250508190555050565b612096828260405180602001604052806000815250612bf6565b5050565b6120a381612c51565b6120e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d990614e0a565b60405180910390fd5b50565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612160836110df565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806121b2836110df565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806121f457506121f38185611b7c565b5b8061223257508373ffffffffffffffffffffffffffffffffffffffff1661221a84610c76565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661225b826110df565b73ffffffffffffffffffffffffffffffffffffffff16146122b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a8906153c5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612320576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231790615457565b60405180910390fd5b61232b838383612cbd565b6123366000826120ed565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123869190615477565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123dd919061465d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461249c838383612dcf565b505050565b6124ab8282611259565b61257d57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506125226120e5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61258b8282611259565b1561265e57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506126036120e5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000818361267091906154ab565b905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036126e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126dd90615551565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127d79190613c95565b60405180910390a3505050565b6127ef84848461223b565b6127fb84848484612dd4565b61283a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612831906155e3565b60405180910390fd5b50505050565b6060600e805461284f90614774565b80601f016020809104026020016040519081016040528092919081815260200182805461287b90614774565b80156128c85780601f1061289d576101008083540402835291602001916128c8565b820191906000526020600020905b8154815290600101906020018083116128ab57829003601f168201915b5050505050905090565b606060008203612919576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a2d565b600082905060005b6000821461294b578080612934906146fd565b915050600a826129449190615632565b9150612921565b60008167ffffffffffffffff81111561296757612966614160565b5b6040519080825280601f01601f1916602001820160405280156129995781602001600182028036833780820191505090505b5090505b60008514612a26576001826129b29190615477565b9150600a856129c19190615663565b60306129cd919061465d565b60f81b8183815181106129e3576129e2614b11565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a1f9190615632565b945061299d565b8093505050505b919050565b6000612a45612a3f612f5b565b83613075565b9050919050565b6000806000612a5d878787876130a8565b91509150612a6a816131b4565b8192505050949350505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612b4257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612b525750612b5182613380565b5b9050919050565b612b638282611259565b612bf257612b888173ffffffffffffffffffffffffffffffffffffffff1660146133fa565b612b968360001c60206133fa565b604051602001612ba792919061572c565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be99190613de3565b60405180910390fd5b5050565b612c008383613636565b612c0d6000848484612dd4565b612c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c43906155e3565b60405180910390fd5b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612cc883838361380f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d0a57612d0581613814565b612d49565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612d4857612d47838261385d565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612d8b57612d86816139ca565b612dca565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612dc957612dc88282613a9b565b5b5b505050565b505050565b6000612df58473ffffffffffffffffffffffffffffffffffffffff16613b1a565b15612f4e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e1e6120e5565b8786866040518563ffffffff1660e01b8152600401612e4094939291906157bb565b6020604051808303816000875af1925050508015612e7c57506040513d601f19601f82011682018060405250810190612e79919061581c565b60015b612efe573d8060008114612eac576040519150601f19603f3d011682016040523d82523d6000602084013e612eb1565b606091505b506000815103612ef6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eed906155e3565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612f53565b600190505b949350505050565b60007f000000000000000000000000db33e01e8e04bbddef63981579f3e19a9aa3b76573ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148015612fd757507f000000000000000000000000000000000000000000000000000000000000000146145b15613004577f9a7c624d889d7c203cefa18af6904499c538ceaec202d6c51045e6508d657f3f9050613072565b61306f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7ff070bf3583467dc7dd57fc6040b487e6c0635c92d9d2eef0742d4cbff45bff3a7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6613b3d565b90505b90565b6000828260405160200161308a9291906158b6565b60405160208183030381529060405280519060200120905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156130e35760006003915091506131ab565b601b8560ff16141580156130fb5750601c8560ff1614155b1561310d5760006004915091506131ab565b60006001878787876040516000815260200160405260405161313294939291906158fc565b6020604051602081039080840390855afa158015613154573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036131a2576000600192509250506131ab565b80600092509250505b94509492505050565b600060048111156131c8576131c7615941565b5b8160048111156131db576131da615941565b5b031561337d57600160048111156131f5576131f4615941565b5b81600481111561320857613207615941565b5b03613248576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161323f906159bc565b60405180910390fd5b6002600481111561325c5761325b615941565b5b81600481111561326f5761326e615941565b5b036132af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132a690615a28565b60405180910390fd5b600360048111156132c3576132c2615941565b5b8160048111156132d6576132d5615941565b5b03613316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161330d90615aba565b60405180910390fd5b60048081111561332957613328615941565b5b81600481111561333c5761333b615941565b5b0361337c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161337390615b4c565b60405180910390fd5b5b50565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806133f357506133f282613b77565b5b9050919050565b60606000600283600261340d91906154ab565b613417919061465d565b67ffffffffffffffff8111156134305761342f614160565b5b6040519080825280601f01601f1916602001820160405280156134625781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061349a57613499614b11565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134fe576134fd614b11565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261353e91906154ab565b613548919061465d565b90505b60018111156135e8577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061358a57613589614b11565b5b1a60f81b8282815181106135a1576135a0614b11565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806135e190615b6c565b905061354b565b506000841461362c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161362390615be1565b60405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036136a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161369c90615c4d565b60405180910390fd5b6136ae81612c51565b156136ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136e590615cb9565b60405180910390fd5b6136fa60008383612cbd565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461374a919061465d565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461380b60008383612dcf565b5050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161386a8461119c565b6138749190615477565b9050600060086000848152602001908152602001600020549050818114613959576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016009805490506139de9190615477565b90506000600a6000848152602001908152602001600020549050600060098381548110613a0e57613a0d614b11565b5b906000526020600020015490508060098381548110613a3057613a2f614b11565b5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613a7f57613a7e615cd9565b5b6001900381819060005260206000200160009055905550505050565b6000613aa68361119c565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008383834630604051602001613b58959493929190615d08565b6040516020818303038152906040528051906020012090509392505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613c2a81613bf5565b8114613c3557600080fd5b50565b600081359050613c4781613c21565b92915050565b600060208284031215613c6357613c62613beb565b5b6000613c7184828501613c38565b91505092915050565b60008115159050919050565b613c8f81613c7a565b82525050565b6000602082019050613caa6000830184613c86565b92915050565b6000819050919050565b613cc381613cb0565b8114613cce57600080fd5b50565b600081359050613ce081613cba565b92915050565b600060208284031215613cfc57613cfb613beb565b5b6000613d0a84828501613cd1565b91505092915050565b60008060408385031215613d2a57613d29613beb565b5b6000613d3885828601613cd1565b9250506020613d4985828601613cd1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613d8d578082015181840152602081019050613d72565b60008484015250505050565b6000601f19601f8301169050919050565b6000613db582613d53565b613dbf8185613d5e565b9350613dcf818560208601613d6f565b613dd881613d99565b840191505092915050565b60006020820190508181036000830152613dfd8184613daa565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e3082613e05565b9050919050565b613e4081613e25565b82525050565b6000602082019050613e5b6000830184613e37565b92915050565b613e6a81613e25565b8114613e7557600080fd5b50565b600081359050613e8781613e61565b92915050565b60008060408385031215613ea457613ea3613beb565b5b6000613eb285828601613e78565b9250506020613ec385828601613cd1565b9150509250929050565b613ed681613cb0565b82525050565b6000602082019050613ef16000830184613ecd565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613f1c57613f1b613ef7565b5b8235905067ffffffffffffffff811115613f3957613f38613efc565b5b602083019150836001820283011115613f5557613f54613f01565b5b9250929050565b600080600080600060808688031215613f7857613f77613beb565b5b6000613f8688828901613e78565b9550506020613f9788828901613e78565b9450506040613fa888828901613cd1565b935050606086013567ffffffffffffffff811115613fc957613fc8613bf0565b5b613fd588828901613f06565b92509250509295509295909350565b613fed81613bf5565b82525050565b60006020820190506140086000830184613fe4565b92915050565b60008060006060848603121561402757614026613beb565b5b600061403586828701613e78565b935050602061404686828701613e78565b925050604061405786828701613cd1565b9150509250925092565b6000819050919050565b61407481614061565b811461407f57600080fd5b50565b6000813590506140918161406b565b92915050565b6000602082840312156140ad576140ac613beb565b5b60006140bb84828501614082565b91505092915050565b6140cd81614061565b82525050565b60006020820190506140e860008301846140c4565b92915050565b6000806040838503121561410557614104613beb565b5b600061411385828601614082565b925050602061412485828601613e78565b9150509250929050565b60006020828403121561414457614143613beb565b5b600061415284828501613e78565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61419882613d99565b810181811067ffffffffffffffff821117156141b7576141b6614160565b5b80604052505050565b60006141ca613be1565b90506141d6828261418f565b919050565b600067ffffffffffffffff8211156141f6576141f5614160565b5b6141ff82613d99565b9050602081019050919050565b82818337600083830152505050565b600061422e614229846141db565b6141c0565b90508281526020810184848401111561424a5761424961415b565b5b61425584828561420c565b509392505050565b600082601f83011261427257614271613ef7565b5b813561428284826020860161421b565b91505092915050565b6000602082840312156142a1576142a0613beb565b5b600082013567ffffffffffffffff8111156142bf576142be613bf0565b5b6142cb8482850161425d565b91505092915050565b6142dd81613c7a565b81146142e857600080fd5b50565b6000813590506142fa816142d4565b92915050565b6000806040838503121561431757614316613beb565b5b600061432585828601613e78565b9250506020614336858286016142eb565b9150509250929050565b600067ffffffffffffffff82111561435b5761435a614160565b5b61436482613d99565b9050602081019050919050565b600061438461437f84614340565b6141c0565b9050828152602081018484840111156143a05761439f61415b565b5b6143ab84828561420c565b509392505050565b600082601f8301126143c8576143c7613ef7565b5b81356143d8848260208601614371565b91505092915050565b600080600080608085870312156143fb576143fa613beb565b5b600061440987828801613e78565b945050602061441a87828801613e78565b935050604061442b87828801613cd1565b925050606085013567ffffffffffffffff81111561444c5761444b613bf0565b5b614458878288016143b3565b91505092959194509250565b6000806040838503121561447b5761447a613beb565b5b600061448985828601613e78565b925050602061449a85828601613e78565b9150509250929050565b600060ff82169050919050565b6144ba816144a4565b81146144c557600080fd5b50565b6000813590506144d7816144b1565b92915050565b6000806000606084860312156144f6576144f5613beb565b5b6000614504868287016144c8565b935050602061451586828701614082565b925050604061452686828701614082565b9150509250925092565b7f6d696e74206e6f742073746172746564206f7220616c72656164792073746f7060008201527f7065642e00000000000000000000000000000000000000000000000000000000602082015250565b600061458c602483613d5e565b915061459782614530565b604082019050919050565b600060208201905081810360008301526145bb8161457f565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006145f8601f83613d5e565b9150614603826145c2565b602082019050919050565b60006020820190508181036000830152614627816145eb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061466882613cb0565b915061467383613cb0565b925082820190508082111561468b5761468a61462e565b5b92915050565b7f746f6f206d616e7920616c7265616479206d696e7465642e0000000000000000600082015250565b60006146c7601883613d5e565b91506146d282614691565b602082019050919050565b600060208201905081810360008301526146f6816146ba565b9050919050565b600061470882613cb0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361473a5761473961462e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061478c57607f821691505b60208210810361479f5761479e614745565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614801602183613d5e565b915061480c826147a5565b604082019050919050565b60006020820190508181036000830152614830816147f4565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000614893603e83613d5e565b915061489e82614837565b604082019050919050565b600060208201905081810360008301526148c281614886565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614925602e83613d5e565b9150614930826148c9565b604082019050919050565b6000602082019050818103600083015261495481614918565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b60006149b7602b83613d5e565b91506149c28261495b565b604082019050919050565b600060208201905081810360008301526149e6816149aa565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000614a49602f83613d5e565b9150614a54826149ed565b604082019050919050565b60006020820190508181036000830152614a7881614a3c565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614adb602c83613d5e565b9150614ae682614a7f565b604082019050919050565b60006020820190508181036000830152614b0a81614ace565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614ba27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614b65565b614bac8683614b65565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614be9614be4614bdf84613cb0565b614bc4565b613cb0565b9050919050565b6000819050919050565b614c0383614bce565b614c17614c0f82614bf0565b848454614b72565b825550505050565b600090565b614c2c614c1f565b614c37818484614bfa565b505050565b5b81811015614c5b57614c50600082614c24565b600181019050614c3d565b5050565b601f821115614ca057614c7181614b40565b614c7a84614b55565b81016020851015614c89578190505b614c9d614c9585614b55565b830182614c3c565b50505b505050565b600082821c905092915050565b6000614cc360001984600802614ca5565b1980831691505092915050565b6000614cdc8383614cb2565b9150826002028217905092915050565b614cf582613d53565b67ffffffffffffffff811115614d0e57614d0d614160565b5b614d188254614774565b614d23828285614c5f565b600060209050601f831160018114614d565760008415614d44578287015190505b614d4e8582614cd0565b865550614db6565b601f198416614d6486614b40565b60005b82811015614d8c57848901518255600182019150602085019450602081019050614d67565b86831015614da95784890151614da5601f891682614cb2565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614df4601883613d5e565b9150614dff82614dbe565b602082019050919050565b60006020820190508181036000830152614e2381614de7565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614e86602983613d5e565b9150614e9182614e2a565b604082019050919050565b60006020820190508181036000830152614eb581614e79565b9050919050565b7f696e76616c696420616d6f756e74000000000000000000000000000000000000600082015250565b6000614ef2600e83613d5e565b9150614efd82614ebc565b602082019050919050565b60006020820190508181036000830152614f2181614ee5565b9050919050565b7f707265206d696e74206e6f7420737461727465642e0000000000000000000000600082015250565b6000614f5e601583613d5e565b9150614f6982614f28565b602082019050919050565b60006020820190508181036000830152614f8d81614f51565b9050919050565b7f707265206d696e7420656e642e00000000000000000000000000000000000000600082015250565b6000614fca600d83613d5e565b9150614fd582614f94565b602082019050919050565b60006020820190508181036000830152614ff981614fbd565b9050919050565b60008151905061500f81613cba565b92915050565b60006020828403121561502b5761502a613beb565b5b600061503984828501615000565b91505092915050565b7f696e73756666696369656e74206d696e742e0000000000000000000000000000600082015250565b6000615078601283613d5e565b915061508382615042565b602082019050919050565b600060208201905081810360008301526150a78161506b565b9050919050565b7f696e76616c696420707269636500000000000000000000000000000000000000600082015250565b60006150e4600d83613d5e565b91506150ef826150ae565b602082019050919050565b60006020820190508181036000830152615113816150d7565b9050919050565b600081905092915050565b600061513082613d53565b61513a818561511a565b935061514a818560208601613d6f565b80840191505092915050565b60006151628285615125565b915061516e8284615125565b91508190509392505050565b7f707562206d696e74206e6f742073746172742e00000000000000000000000000600082015250565b60006151b0601383613d5e565b91506151bb8261517a565b602082019050919050565b600060208201905081810360008301526151df816151a3565b9050919050565b7f66726565206d696e7420656e642e000000000000000000000000000000000000600082015250565b600061521c600e83613d5e565b9150615227826151e6565b602082019050919050565b6000602082019050818103600083015261524b8161520f565b9050919050565b7f616c7265616479206d696e740000000000000000000000000000000000000000600082015250565b6000615288600c83613d5e565b915061529382615252565b602082019050919050565b600060208201905081810360008301526152b78161527b565b9050919050565b60006040820190506152d360008301856140c4565b6152e06020830184613e37565b9392505050565b7f696e76616c6964207369676e6572000000000000000000000000000000000000600082015250565b600061531d600e83613d5e565b9150615328826152e7565b602082019050919050565b6000602082019050818103600083015261534c81615310565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006153af602583613d5e565b91506153ba82615353565b604082019050919050565b600060208201905081810360008301526153de816153a2565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615441602483613d5e565b915061544c826153e5565b604082019050919050565b6000602082019050818103600083015261547081615434565b9050919050565b600061548282613cb0565b915061548d83613cb0565b92508282039050818111156154a5576154a461462e565b5b92915050565b60006154b682613cb0565b91506154c183613cb0565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156154fa576154f961462e565b5b828202905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061553b601983613d5e565b915061554682615505565b602082019050919050565b6000602082019050818103600083015261556a8161552e565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006155cd603283613d5e565b91506155d882615571565b604082019050919050565b600060208201905081810360008301526155fc816155c0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061563d82613cb0565b915061564883613cb0565b92508261565857615657615603565b5b828204905092915050565b600061566e82613cb0565b915061567983613cb0565b92508261568957615688615603565b5b828206905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b60006156ca60178361511a565b91506156d582615694565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600061571660118361511a565b9150615721826156e0565b601182019050919050565b6000615737826156bd565b91506157438285615125565b915061574e82615709565b915061575a8284615125565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b600061578d82615766565b6157978185615771565b93506157a7818560208601613d6f565b6157b081613d99565b840191505092915050565b60006080820190506157d06000830187613e37565b6157dd6020830186613e37565b6157ea6040830185613ecd565b81810360608301526157fc8184615782565b905095945050505050565b60008151905061581681613c21565b92915050565b60006020828403121561583257615831613beb565b5b600061584084828501615807565b91505092915050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b600061587f60028361511a565b915061588a82615849565b600282019050919050565b6000819050919050565b6158b06158ab82614061565b615895565b82525050565b60006158c182615872565b91506158cd828561589f565b6020820191506158dd828461589f565b6020820191508190509392505050565b6158f6816144a4565b82525050565b600060808201905061591160008301876140c4565b61591e60208301866158ed565b61592b60408301856140c4565b61593860608301846140c4565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006159a6601883613d5e565b91506159b182615970565b602082019050919050565b600060208201905081810360008301526159d581615999565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615a12601f83613d5e565b9150615a1d826159dc565b602082019050919050565b60006020820190508181036000830152615a4181615a05565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615aa4602283613d5e565b9150615aaf82615a48565b604082019050919050565b60006020820190508181036000830152615ad381615a97565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615b36602283613d5e565b9150615b4182615ada565b604082019050919050565b60006020820190508181036000830152615b6581615b29565b9050919050565b6000615b7782613cb0565b915060008203615b8a57615b8961462e565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615bcb602083613d5e565b9150615bd682615b95565b602082019050919050565b60006020820190508181036000830152615bfa81615bbe565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615c37602083613d5e565b9150615c4282615c01565b602082019050919050565b60006020820190508181036000830152615c6681615c2a565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615ca3601c83613d5e565b9150615cae82615c6d565b602082019050919050565b60006020820190508181036000830152615cd281615c96565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060a082019050615d1d60008301886140c4565b615d2a60208301876140c4565b615d3760408301866140c4565b615d446060830185613ecd565b615d516080830184613e37565b969550505050505056fea2646970667358221220e720c27a8ecef34130d2a61364d539dbd6848104fcab35f1e397519f5a173d7564736f6c63430008100033

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.