ETH Price: $3,302.66 (-3.59%)
Gas: 7 Gwei

Token

Survive NFT Winter (SNW)
 

Overview

Max Total Supply

555 SNW

Holders

90

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
5 SNW
0x5b7A8E47C0d12D7bB4c93db5eA005917bd6d281f
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:
Emperor

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : emperor.sol
// SPDX-License-Identifier: MIT

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "erc721a/contracts/ERC721A.sol";

pragma solidity ^0.8.0;

contract Emperor is ERC721A, Ownable, ReentrancyGuard {
    // declares the maximum amount of tokens that can be minted
    uint256 public constant MAX_TOTAL_TOKENS = 5555;

    // max number of mints per transaction
    uint256 public free_mint_max = 1;
    uint256 public allowlist_mint_max = 5;
    uint256 public pub_mint_max_per_tx = 10;

    // price of mints depending on state of sale
    uint256 public item_price_al = 0.025 ether;
    uint256 public item_price_public = 0.04 ether;

    // merkle roots
    bytes32 public root_al;
    bytes32 public root_free;

    // metadata
    string private baseURI = "";
    string private unrevealedURI = "ipfs://QmUb4UQynrHMMkM8xXfByLEqeQagDj5LnVUEMEumXEvmUg";

    // status
    bool public is_free_active;
    bool public is_allowlist_active;
    bool public is_public_mint_active;
    bool public is_revealed;

    // reserved mints for the team
    mapping (address => uint256) reserved_mints;
    uint256 public total_reserved = 250;

    // staking
    mapping(uint256 => uint256) private stakingStarted; // staking start time, if 0 token is currently unstaked
    mapping(uint256 => uint256) private stakingTotal; // cumulative staking total per token
    uint256 private stakingTransfer = 1; // control for transfers while staking, if set to 2 then transfers are enabled
    bool public stakingOpen = false;

    // errors
    error OnlyOwnerCanTransferWhileStaking();
    error StakingClosed();

    // token staked/unstaked events
    event Staked(uint256 indexed tokenId);
    event Unstaked(uint256 indexed tokenId);

    using Strings for uint256;

    constructor (bytes32 _root_al, bytes32 _root_free) ERC721A("Survive NFT Winter", "SNW") {
        root_al = _root_al;
        root_free = _root_free;

        // don't forget to update total_reserved
        reserved_mints[0xefc41a7A7b75b0cDC9F78471A4BdaDf8796D963c] = 250; // company wallet
    }

    function internalMint(uint256 _amt) external nonReentrant {
        uint256 amt_reserved = reserved_mints[msg.sender];

        require(totalSupply() + _amt <= MAX_TOTAL_TOKENS, "Not enough NFTs left to mint");
        require(amt_reserved >= _amt, "Invalid reservation amount");
        require(amt_reserved <= total_reserved, "Amount exceeds total reserved");

        reserved_mints[msg.sender] -= _amt;
        total_reserved -= _amt;

        _safeMint(msg.sender, _amt);
    }

    function freeMint(bytes32[] calldata _proof, uint256 _amt) external payable nonReentrant {
        require(totalSupply() + _amt <= MAX_TOTAL_TOKENS - total_reserved, "Not enough NFTs left to mint");
        require(msg.sender == tx.origin, "Minting from contract not allowed");
        require(is_free_active, "Free mint not active");

        uint64 new_claim_total = _getAux(msg.sender) + uint64(_amt);
        require(new_claim_total <= free_mint_max, "Requested mint amount invalid");

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_proof, root_free, leaf), "Invalid proof");

        _setAux(msg.sender, new_claim_total);
        _safeMint(msg.sender, _amt);
    }

    function allowlistMint(bytes32[] calldata _proof, uint256 _amt) external payable nonReentrant {
        require(totalSupply() + _amt <= MAX_TOTAL_TOKENS - total_reserved, "Not enough NFTs left to mint");
        require(msg.sender == tx.origin, "Minting from contract not allowed");
        require(item_price_al * _amt == msg.value,  "Not enough ETH to mint this number of NFTs");
        require(is_allowlist_active, "Allowlist mint not active");

        uint64 new_claim_total = _getAux(msg.sender) + uint64(_amt);
        require(new_claim_total <= allowlist_mint_max, "Requested mint amount invalid");

        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(MerkleProof.verify(_proof, root_al, leaf), "Invalid proof");

        _setAux(msg.sender, new_claim_total);
        _safeMint(msg.sender, _amt);
    }

    function publicMint(uint256 _amt) external payable nonReentrant {
        require(totalSupply() + _amt <= MAX_TOTAL_TOKENS - total_reserved, "Not enough NFTs left to mint");
        require(msg.sender == tx.origin, "Minting from contract not allowed");
        require(item_price_public * _amt == msg.value, "Not enough ETH to mint this number of NFTs");
        require(is_public_mint_active, "Public mint not active");
        require(_amt <= pub_mint_max_per_tx, "Too many NFTs in single transaction");

        _safeMint(msg.sender, _amt);
    }

    function setFreeMintActive(bool _val) external onlyOwner {
        is_free_active = _val;
    }

    function setAllowlistMintActive(bool _val) external onlyOwner {
        is_allowlist_active = _val;
    }

    function setPublicMintActive(bool _val) external onlyOwner {
        is_public_mint_active = _val;
    }

    function setIsRevealed(bool _val) external onlyOwner {
        is_revealed = _val;
    }

    function setNewFreeRoot(bytes32 _root) external onlyOwner {
        root_free = _root;
    }

    function setNewALRoot(bytes32 _root) external onlyOwner {
        root_al = _root;
    }

    function setFreeMintAmount(uint256 _amt) external onlyOwner {
        free_mint_max = _amt;
    }

    function setAllowlistMintAmount(uint256 _amt) external onlyOwner {
        allowlist_mint_max = _amt;
    }

    function setItemPricePublic(uint256 _price) external onlyOwner {
        item_price_public = _price;
    }

    function setItemPriceAL(uint256 _price) external onlyOwner {
        item_price_al = _price;
    }

    function setMaxMintPerTx(uint256 _amt) external onlyOwner {
        pub_mint_max_per_tx = _amt;
    }

    function setBaseURI(string memory _uri) external onlyOwner {
        baseURI = _uri;
    }

    function setUnrevealedURI(string memory _uri) external onlyOwner {
        unrevealedURI = _uri;
    }

    function isOnAllowList(bytes32[] calldata _proof, address _user) public view returns (uint256) {
        bytes32 leaf = keccak256(abi.encodePacked(_user));
        bytes32 root = is_free_active ? root_free : root_al;

        return MerkleProof.verify(_proof, root, leaf) ? 1 : 0;
    }

    function getSaleStatus() public view returns (string memory) {
        if(is_free_active) {
            return "free";
        }
        else if(is_public_mint_active) {
            return "public";
        }
        else if(is_allowlist_active) {
            return "allowlist";
        }
        else {
            return "closed";
        }
    }

    function tokenURI(uint256 _tokenID) public view virtual override returns (string memory) {
        require(_exists(_tokenID), "ERC721Metadata: URI query for nonexistent token");

        if(is_revealed) {
            return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, _tokenID.toString(), ".json")) : "";
        }
        else {
            return unrevealedURI;
        }
    }

    function _beforeTokenTransfers(address, address, uint256 startTokenId, uint256 quantity) internal view override {
        uint256 tokenId = startTokenId;
        for (uint256 end = tokenId + quantity; tokenId < end; ++tokenId) {
            require(stakingStarted[tokenId] == 0 || stakingTransfer == 2, "Staking Active");
        }
    }

    // returning staking period data
    function stakingPeriod(uint256 tokenId) external view returns (
        bool staking, // whether or not nft is staking
        uint256 current, // current stake period if so
        uint256 total // lifetime stake period
    ) {
        uint256 start = stakingStarted[tokenId];
        if (start != 0) {
            staking = true;
            current = block.timestamp - start;
        }
        total = current + stakingTotal[tokenId];
    }

    // transfer while staking
    function safeTransferWhileStaking(address from, address to, uint256 tokenId
    ) external {
        if (ownerOf(tokenId) != _msgSender()) revert OnlyOwnerCanTransferWhileStaking();
        stakingTransfer = 2;
        safeTransferFrom(from, to, tokenId);
        stakingTransfer = 1;
    }

    // open/close staking globally
    function setStakingOpen(bool open) external onlyOwner {
        stakingOpen = open;
    }

    // toggle staking
    function toggleStaking(uint256 tokenId) internal onlyApprovedOrOwner(tokenId) {
        uint256 start = stakingStarted[tokenId];
        if(start == 0) {
            if (!stakingOpen) revert StakingClosed();
            stakingStarted[tokenId] = block.timestamp;
            emit Staked(tokenId);
        }else {
            stakingTotal[tokenId] += block.timestamp - start;
            stakingStarted[tokenId] = 0;
            emit Unstaked(tokenId);
        }
    }

    // toggle staking, callable from frontend w support for multiple tokens
    function toggleStaking(uint256[] calldata tokenIds) external {
        uint256 n = tokenIds.length;
        for (uint256 i = 0; i < n; i++) {
            toggleStaking(tokenIds[i]);
        }
    }

    function withdrawEth() public onlyOwner nonReentrant {
        uint256 total = address(this).balance;

        require(payable(0x452A89F1316798fDdC9D03f9af38b0586F8142e5).send((total * 10) / 100)); // PT
        require(payable(0xefc41a7A7b75b0cDC9F78471A4BdaDf8796D963c).send((total * 90) / 100)); // company
    }

    receive() payable external {
        revert("Contract does not allow receipt of ETH or ERC-20 tokens");
    }

    fallback() payable external {
        revert("An incorrect function was called");
    }

    modifier onlyApprovedOrOwner(uint256 tokenId) {
        require(
            _ownershipOf(tokenId).addr == _msgSender() ||
            getApproved(tokenId) == _msgSender(),
            "ERC721ACommon: Not approved nor owner"
        );
        _;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

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

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 make 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 5 of 13 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

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

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

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

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

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

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

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSender()) revert ApproveToCaller();

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 11 of 13 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes32","name":"_root_al","type":"bytes32"},{"internalType":"bytes32","name":"_root_free","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OnlyOwnerCanTransferWhileStaking","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"StakingClosed","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Unstaked","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_TOTAL_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"allowlist_mint_max","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":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"free_mint_max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleStatus","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"internalMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"address","name":"_user","type":"address"}],"name":"isOnAllowList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"is_allowlist_active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"is_free_active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"is_public_mint_active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"is_revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"item_price_al","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"item_price_public","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pub_mint_max_per_tx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root_al","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"root_free","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferWhileStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setAllowlistMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"setAllowlistMintAmount","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":"bool","name":"_val","type":"bool"}],"name":"setFreeMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"setFreeMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setIsRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setItemPriceAL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setItemPricePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"setMaxMintPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setNewALRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setNewFreeRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setPublicMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"open","type":"bool"}],"name":"setStakingOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stakingPeriod","outputs":[{"internalType":"bool","name":"staking","type":"bool"},{"internalType":"uint256","name":"current","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","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":"tokenIds","type":"uint256[]"}],"name":"toggleStaking","outputs":[],"stateMutability":"nonpayable","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":[],"name":"total_reserved","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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526001600a556005600b55600a600c556658d15e17628000600d55668e1bc9bf040000600e55604051806020016040528060008152506011908051906020019062000050929190620002fb565b50604051806060016040528060358152602001620060a9603591396012908051906020019062000082929190620002fb565b5060fa60155560016018556000601960006101000a81548160ff021916908315150217905550348015620000b557600080fd5b50604051620060de380380620060de8339818101604052810190620000db9190620003eb565b6040518060400160405280601281526020017f53757276697665204e46542057696e74657200000000000000000000000000008152506040518060400160405280600381526020017f534e57000000000000000000000000000000000000000000000000000000000081525081600290805190602001906200015f929190620002fb565b50806003908051906020019062000178929190620002fb565b50620001896200022860201b60201c565b6000819055505050620001b1620001a56200022d60201b60201c565b6200023560201b60201c565b600160098190555081600f819055508060108190555060fa6014600073efc41a7a7b75b0cdc9f78471a4bdadf8796d963c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505062000497565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003099062000461565b90600052602060002090601f0160209004810192826200032d576000855562000379565b82601f106200034857805160ff191683800117855562000379565b8280016001018555821562000379579182015b82811115620003785782518255916020019190600101906200035b565b5b5090506200038891906200038c565b5090565b5b80821115620003a75760008160009055506001016200038d565b5090565b600080fd5b6000819050919050565b620003c581620003b0565b8114620003d157600080fd5b50565b600081519050620003e581620003ba565b92915050565b60008060408385031215620004055762000404620003ab565b5b60006200041585828601620003d4565b92505060206200042885828601620003d4565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200047a57607f821691505b6020821081141562000491576200049062000432565b5b50919050565b615c0280620004a76000396000f3fe6080604052600436106103545760003560e01c80636ef4f9b5116101c6578063a22cb465116100f7578063da9044c811610095578063f2fde38b1161006f578063f2fde38b14610c73578063f6f665f014610c9c578063f9621b7a14610cc7578063fe2c7fee14610cf257610394565b8063da9044c814610be2578063dc738ffb14610c0b578063e985e9c514610c3657610394565b8063b9626d9c116100d1578063b9626d9c14610b10578063bdeadcb014610b3b578063c1027c9814610b66578063c87b56dd14610ba557610394565b8063a22cb46514610a95578063acd0d9a614610abe578063b88d4fde14610ae757610394565b806388d8eb1d116101645780639293b7271161013e5780639293b727146109eb5780639360ec9a14610a1657806395d89b4114610a53578063a0ef91df14610a7e57610394565b806388d8eb1d1461096a5780638c3c4b34146109955780638da5cb5b146109c057610394565b806378765500116101a057806378765500146108c257806379aef52d146108ed5780637f953a221461091657806384cb284b1461093f57610394565b80636ef4f9b51461084557806370a082311461086e578063715018a6146108ab57610394565b80632db11544116102a057806349a5980a1161023e578063564892dc11610218578063564892dc1461078b5780635b2859ff146107b4578063616cdb1e146107df5780636352211e1461080857610394565b806349a5980a146107105780634f9b563c1461073957806355f804b31461076257610394565b8063387602981161027a578063387602981461066a57806338da2f691461069557806342842e0e146106be57806342c0f037146106e757610394565b80632db11544146106075780632eac6f45146106235780633615ab451461064e57610394565b80631338a83f1161030d578063192a319f116102e7578063192a319f1461056357806323b872dd1461058c57806326fb302b146105b55780632b707c71146105de57610394565b80631338a83f146104f1578063179df6041461050d57806318160ddd1461053857610394565b806301ffc9a7146103cf57806306fdde031461040c578063081812fc14610437578063095ea7b31461047457806309729f6d1461049d57806309b053ac146104c857610394565b36610394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161038b90614433565b60405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103c69061449f565b60405180910390fd5b3480156103db57600080fd5b506103f660048036038101906103f1919061452b565b610d1b565b6040516104039190614573565b60405180910390f35b34801561041857600080fd5b50610421610dfd565b60405161042e9190614616565b60405180910390f35b34801561044357600080fd5b5061045e6004803603810190610459919061466e565b610e8f565b60405161046b91906146dc565b60405180910390f35b34801561048057600080fd5b5061049b60048036038101906104969190614723565b610f0b565b005b3480156104a957600080fd5b506104b2611016565b6040516104bf9190614772565b60405180910390f35b3480156104d457600080fd5b506104ef60048036038101906104ea919061466e565b61101c565b005b61050b600480360381019061050691906147f2565b6110a2565b005b34801561051957600080fd5b506105226113a2565b60405161052f9190614573565b60405180910390f35b34801561054457600080fd5b5061054d6113b5565b60405161055a9190614772565b60405180910390f35b34801561056f57600080fd5b5061058a60048036038101906105859190614888565b6113cc565b005b34801561059857600080fd5b506105b360048036038101906105ae91906148b5565b611452565b005b3480156105c157600080fd5b506105dc60048036038101906105d7919061466e565b611462565b005b3480156105ea57600080fd5b5061060560048036038101906106009190614934565b6114e8565b005b610621600480360381019061061c919061466e565b611581565b005b34801561062f57600080fd5b50610638611799565b6040516106459190614772565b60405180910390f35b610668600480360381019061066391906147f2565b61179f565b005b34801561067657600080fd5b5061067f611a50565b60405161068c9190614573565b60405180910390f35b3480156106a157600080fd5b506106bc60048036038101906106b79190614934565b611a63565b005b3480156106ca57600080fd5b506106e560048036038101906106e091906148b5565b611afc565b005b3480156106f357600080fd5b5061070e60048036038101906107099190614888565b611b1c565b005b34801561071c57600080fd5b5061073760048036038101906107329190614934565b611ba2565b005b34801561074557600080fd5b50610760600480360381019061075b9190614934565b611c3b565b005b34801561076e57600080fd5b5061078960048036038101906107849190614a91565b611cd4565b005b34801561079757600080fd5b506107b260048036038101906107ad9190614934565b611d6a565b005b3480156107c057600080fd5b506107c9611e03565b6040516107d69190614772565b60405180910390f35b3480156107eb57600080fd5b506108066004803603810190610801919061466e565b611e09565b005b34801561081457600080fd5b5061082f600480360381019061082a919061466e565b611e8f565b60405161083c91906146dc565b60405180910390f35b34801561085157600080fd5b5061086c60048036038101906108679190614b30565b611ea5565b005b34801561087a57600080fd5b5061089560048036038101906108909190614b7d565b611ef3565b6040516108a29190614772565b60405180910390f35b3480156108b757600080fd5b506108c0611fc3565b005b3480156108ce57600080fd5b506108d761204b565b6040516108e49190614bb9565b60405180910390f35b3480156108f957600080fd5b50610914600480360381019061090f91906148b5565b612051565b005b34801561092257600080fd5b5061093d6004803603810190610938919061466e565b6120e5565b005b34801561094b57600080fd5b5061095461216b565b6040516109619190614772565b60405180910390f35b34801561097657600080fd5b5061097f612171565b60405161098c9190614bb9565b60405180910390f35b3480156109a157600080fd5b506109aa612177565b6040516109b79190614616565b60405180910390f35b3480156109cc57600080fd5b506109d56122ab565b6040516109e291906146dc565b60405180910390f35b3480156109f757600080fd5b50610a006122d5565b604051610a0d9190614573565b60405180910390f35b348015610a2257600080fd5b50610a3d6004803603810190610a389190614bd4565b6122e8565b604051610a4a9190614772565b60405180910390f35b348015610a5f57600080fd5b50610a686123a0565b604051610a759190614616565b60405180910390f35b348015610a8a57600080fd5b50610a93612432565b005b348015610aa157600080fd5b50610abc6004803603810190610ab79190614c34565b6125e0565b005b348015610aca57600080fd5b50610ae56004803603810190610ae0919061466e565b612758565b005b348015610af357600080fd5b50610b0e6004803603810190610b099190614d15565b61294e565b005b348015610b1c57600080fd5b50610b256129ca565b604051610b329190614573565b60405180910390f35b348015610b4757600080fd5b50610b506129dd565b604051610b5d9190614772565b60405180910390f35b348015610b7257600080fd5b50610b8d6004803603810190610b88919061466e565b6129e3565b604051610b9c93929190614d98565b60405180910390f35b348015610bb157600080fd5b50610bcc6004803603810190610bc7919061466e565b612a43565b604051610bd99190614616565b60405180910390f35b348015610bee57600080fd5b50610c096004803603810190610c04919061466e565b612b93565b005b348015610c1757600080fd5b50610c20612c19565b604051610c2d9190614772565b60405180910390f35b348015610c4257600080fd5b50610c5d6004803603810190610c589190614dcf565b612c1f565b604051610c6a9190614573565b60405180910390f35b348015610c7f57600080fd5b50610c9a6004803603810190610c959190614b7d565b612cb3565b005b348015610ca857600080fd5b50610cb1612dab565b604051610cbe9190614573565b60405180910390f35b348015610cd357600080fd5b50610cdc612dbe565b604051610ce99190614772565b60405180910390f35b348015610cfe57600080fd5b50610d196004803603810190610d149190614a91565b612dc4565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610de657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610df65750610df582612e5a565b5b9050919050565b606060028054610e0c90614e3e565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3890614e3e565b8015610e855780601f10610e5a57610100808354040283529160200191610e85565b820191906000526020600020905b815481529060010190602001808311610e6857829003601f168201915b5050505050905090565b6000610e9a82612ec4565b610ed0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610f1682611e8f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f7e576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f9d612f12565b73ffffffffffffffffffffffffffffffffffffffff1614158015610fcf5750610fcd81610fc8612f12565b612c1f565b155b15611006576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611011838383612f1a565b505050565b60155481565b611024612f12565b73ffffffffffffffffffffffffffffffffffffffff166110426122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611098576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108f90614ebc565b60405180910390fd5b80600e8190555050565b600260095414156110e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110df90614f28565b60405180910390fd5b60026009819055506015546115b36111009190614f77565b816111096113b5565b6111139190614fab565b1115611154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114b9061504d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b9906150df565b60405180910390fd5b3481600d546111d191906150ff565b14611211576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611208906151cb565b60405180910390fd5b601360019054906101000a900460ff16611260576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125790615237565b60405180910390fd5b60008161126c33612fcc565b611276919061526b565b9050600b548167ffffffffffffffff1611156112c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112be906152f5565b60405180910390fd5b6000336040516020016112da919061535d565b604051602081830303815290604052805190602001209050611340858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f548361302c565b61137f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611376906153c4565b60405180910390fd5b61138933836130e2565b611393338461314f565b50506001600981905550505050565b601360029054906101000a900460ff1681565b60006113bf61316d565b6001546000540303905090565b6113d4612f12565b73ffffffffffffffffffffffffffffffffffffffff166113f26122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611448576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143f90614ebc565b60405180910390fd5b80600f8190555050565b61145d838383613172565b505050565b61146a612f12565b73ffffffffffffffffffffffffffffffffffffffff166114886122ab565b73ffffffffffffffffffffffffffffffffffffffff16146114de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d590614ebc565b60405180910390fd5b80600d8190555050565b6114f0612f12565b73ffffffffffffffffffffffffffffffffffffffff1661150e6122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611564576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155b90614ebc565b60405180910390fd5b80601360026101000a81548160ff02191690831515021790555050565b600260095414156115c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115be90614f28565b60405180910390fd5b60026009819055506015546115b36115df9190614f77565b816115e86113b5565b6115f29190614fab565b1115611633576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162a9061504d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611698906150df565b60405180910390fd5b3481600e546116b091906150ff565b146116f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e7906151cb565b60405180910390fd5b601360029054906101000a900460ff1661173f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173690615430565b60405180910390fd5b600c54811115611784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177b906154c2565b60405180910390fd5b61178e338261314f565b600160098190555050565b600d5481565b600260095414156117e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117dc90614f28565b60405180910390fd5b60026009819055506015546115b36117fd9190614f77565b816118066113b5565b6118109190614fab565b1115611851576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118489061504d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146118bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b6906150df565b60405180910390fd5b601360009054906101000a900460ff1661190e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119059061552e565b60405180910390fd5b60008161191a33612fcc565b611924919061526b565b9050600a548167ffffffffffffffff161115611975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196c906152f5565b60405180910390fd5b600033604051602001611988919061535d565b6040516020818303038152906040528051906020012090506119ee858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506010548361302c565b611a2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a24906153c4565b60405180910390fd5b611a3733836130e2565b611a41338461314f565b50506001600981905550505050565b601960009054906101000a900460ff1681565b611a6b612f12565b73ffffffffffffffffffffffffffffffffffffffff16611a896122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad690614ebc565b60405180910390fd5b80601360016101000a81548160ff02191690831515021790555050565b611b178383836040518060200160405280600081525061294e565b505050565b611b24612f12565b73ffffffffffffffffffffffffffffffffffffffff16611b426122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611b98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8f90614ebc565b60405180910390fd5b8060108190555050565b611baa612f12565b73ffffffffffffffffffffffffffffffffffffffff16611bc86122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611c1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1590614ebc565b60405180910390fd5b80601360036101000a81548160ff02191690831515021790555050565b611c43612f12565b73ffffffffffffffffffffffffffffffffffffffff16611c616122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611cb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cae90614ebc565b60405180910390fd5b80601360006101000a81548160ff02191690831515021790555050565b611cdc612f12565b73ffffffffffffffffffffffffffffffffffffffff16611cfa6122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611d50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4790614ebc565b60405180910390fd5b8060119080519060200190611d669291906142ca565b5050565b611d72612f12565b73ffffffffffffffffffffffffffffffffffffffff16611d906122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611de6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddd90614ebc565b60405180910390fd5b80601960006101000a81548160ff02191690831515021790555050565b600a5481565b611e11612f12565b73ffffffffffffffffffffffffffffffffffffffff16611e2f6122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7c90614ebc565b60405180910390fd5b80600c8190555050565b6000611e9a82613628565b600001519050919050565b600082829050905060005b81811015611eed57611eda848483818110611ece57611ecd61554e565b5b905060200201356138b7565b8080611ee59061557d565b915050611eb0565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f5b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611fcb612f12565b73ffffffffffffffffffffffffffffffffffffffff16611fe96122ab565b73ffffffffffffffffffffffffffffffffffffffff161461203f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203690614ebc565b60405180910390fd5b6120496000613ab0565b565b60105481565b612059612f12565b73ffffffffffffffffffffffffffffffffffffffff1661207882611e8f565b73ffffffffffffffffffffffffffffffffffffffff16146120c5576040517f82ca607100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60026018819055506120d8838383611afc565b6001601881905550505050565b6120ed612f12565b73ffffffffffffffffffffffffffffffffffffffff1661210b6122ab565b73ffffffffffffffffffffffffffffffffffffffff1614612161576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215890614ebc565b60405180910390fd5b80600a8190555050565b600b5481565b600f5481565b6060601360009054906101000a900460ff16156121cb576040518060400160405280600481526020017f667265650000000000000000000000000000000000000000000000000000000081525090506122a8565b601360029054906101000a900460ff161561221d576040518060400160405280600681526020017f7075626c6963000000000000000000000000000000000000000000000000000081525090506122a8565b601360019054906101000a900460ff161561226f576040518060400160405280600981526020017f616c6c6f776c697374000000000000000000000000000000000000000000000081525090506122a8565b6040518060400160405280600681526020017f636c6f736564000000000000000000000000000000000000000000000000000081525090505b90565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601360009054906101000a900460ff1681565b600080826040516020016122fc919061535d565b6040516020818303038152906040528051906020012090506000601360009054906101000a900460ff1661233257600f54612336565b6010545b9050612384868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050828461302c565b61238f576000612392565b60015b60ff16925050509392505050565b6060600380546123af90614e3e565b80601f01602080910402602001604051908101604052809291908181526020018280546123db90614e3e565b80156124285780601f106123fd57610100808354040283529160200191612428565b820191906000526020600020905b81548152906001019060200180831161240b57829003601f168201915b5050505050905090565b61243a612f12565b73ffffffffffffffffffffffffffffffffffffffff166124586122ab565b73ffffffffffffffffffffffffffffffffffffffff16146124ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a590614ebc565b60405180910390fd5b600260095414156124f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124eb90614f28565b60405180910390fd5b6002600981905550600047905073452a89f1316798fddc9d03f9af38b0586f8142e573ffffffffffffffffffffffffffffffffffffffff166108fc6064600a8461253e91906150ff565b61254891906155f5565b9081150290604051600060405180830381858888f1935050505061256b57600080fd5b73efc41a7a7b75b0cdc9f78471a4bdadf8796d963c73ffffffffffffffffffffffffffffffffffffffff166108fc6064605a846125a891906150ff565b6125b291906155f5565b9081150290604051600060405180830381858888f193505050506125d557600080fd5b506001600981905550565b6125e8612f12565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561264d576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061265a612f12565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612707612f12565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161274c9190614573565b60405180910390a35050565b6002600954141561279e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279590614f28565b60405180910390fd5b60026009819055506000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506115b3826127f66113b5565b6128009190614fab565b1115612841576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128389061504d565b60405180910390fd5b81811015612884576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287b90615672565b60405180910390fd5b6015548111156128c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c0906156de565b60405180910390fd5b81601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129189190614f77565b9250508190555081601560008282546129319190614f77565b92505081905550612942338361314f565b50600160098190555050565b612959848484613172565b6129788373ffffffffffffffffffffffffffffffffffffffff16613b76565b801561298d575061298b84848484613b89565b155b156129c4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b601360039054906101000a900460ff1681565b6115b381565b6000806000806016600086815260200190815260200160002054905060008114612a1a57600193508042612a179190614f77565b92505b601760008681526020019081526020016000205483612a399190614fab565b9150509193909250565b6060612a4e82612ec4565b612a8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8490615770565b60405180910390fd5b601360039054906101000a900460ff1615612b0057600060118054612ab190614e3e565b905011612acd5760405180602001604052806000815250612af9565b6011612ad883613ce9565b604051602001612ae99291906158ac565b6040516020818303038152906040525b9050612b8e565b60128054612b0d90614e3e565b80601f0160208091040260200160405190810160405280929190818152602001828054612b3990614e3e565b8015612b865780601f10612b5b57610100808354040283529160200191612b86565b820191906000526020600020905b815481529060010190602001808311612b6957829003601f168201915b505050505090505b919050565b612b9b612f12565b73ffffffffffffffffffffffffffffffffffffffff16612bb96122ab565b73ffffffffffffffffffffffffffffffffffffffff1614612c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0690614ebc565b60405180910390fd5b80600b8190555050565b600c5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612cbb612f12565b73ffffffffffffffffffffffffffffffffffffffff16612cd96122ab565b73ffffffffffffffffffffffffffffffffffffffff1614612d2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2690614ebc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612d9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d969061594d565b60405180910390fd5b612da881613ab0565b50565b601360019054906101000a900460ff1681565b600e5481565b612dcc612f12565b73ffffffffffffffffffffffffffffffffffffffff16612dea6122ab565b73ffffffffffffffffffffffffffffffffffffffff1614612e40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3790614ebc565b60405180910390fd5b8060129080519060200190612e569291906142ca565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081612ecf61316d565b11158015612ede575060005482105b8015612f0b575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160189054906101000a900467ffffffffffffffff169050919050565b60008082905060005b85518110156130d45760008682815181106130535761305261554e565b5b6020026020010151905080831161309457828160405160200161307792919061598e565b6040516020818303038152906040528051906020012092506130c0565b80836040516020016130a792919061598e565b6040516020818303038152906040528051906020012092505b5080806130cc9061557d565b915050613035565b508381149150509392505050565b80600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b613169828260405180602001604052806000815250613e4a565b5050565b600090565b600061317d82613628565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146131e8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16613209612f12565b73ffffffffffffffffffffffffffffffffffffffff161480613238575061323785613232612f12565b612c1f565b5b8061327d5750613246612f12565b73ffffffffffffffffffffffffffffffffffffffff1661326584610e8f565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806132b6576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561331d576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61332a8585856001613e5c565b61333660008487612f1a565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156135b65760005482146135b557878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46136218585856001613ef6565b5050505050565b613630614350565b60008290508061363e61316d565b1115801561364d575060005481105b15613880576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161387e57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146137625780925050506138b2565b5b60011561387d57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146138785780925050506138b2565b613763565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b806138c0612f12565b73ffffffffffffffffffffffffffffffffffffffff166138df82613628565b6000015173ffffffffffffffffffffffffffffffffffffffff16148061393f5750613908612f12565b73ffffffffffffffffffffffffffffffffffffffff1661392782610e8f565b73ffffffffffffffffffffffffffffffffffffffff16145b61397e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161397590615a2c565b60405180910390fd5b6000601660008481526020019081526020016000205490506000811415613a2f57601960009054906101000a900460ff166139e5576040517f5e0ff49500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b426016600085815260200190815260200160002081905550827feebbaa86c348cb664e392b180fd0ff2e1998af9fa833ef69a778cb0b42d3ca2760405160405180910390a2613aab565b8042613a3b9190614f77565b601760008581526020019081526020016000206000828254613a5d9190614fab565b9250508190555060006016600085815260200190815260200160002081905550827f11725367022c3ff288940f4b5473aa61c2da6a24af7363a1128ee2401e8983b260405160405180910390a25b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080823b905060008111915050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613baf612f12565b8786866040518563ffffffff1660e01b8152600401613bd19493929190615aa1565b602060405180830381600087803b158015613beb57600080fd5b505af1925050508015613c1c57506040513d601f19601f82011682018060405250810190613c199190615b02565b60015b613c96573d8060008114613c4c576040519150601f19603f3d011682016040523d82523d6000602084013e613c51565b606091505b50600081511415613c8e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415613d31576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613e45565b600082905060005b60008214613d63578080613d4c9061557d565b915050600a82613d5c91906155f5565b9150613d39565b60008167ffffffffffffffff811115613d7f57613d7e614966565b5b6040519080825280601f01601f191660200182016040528015613db15781602001600182028036833780820191505090505b5090505b60008514613e3e57600182613dca9190614f77565b9150600a85613dd99190615b2f565b6030613de59190614fab565b60f81b818381518110613dfb57613dfa61554e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613e3791906155f5565b9450613db5565b8093505050505b919050565b613e578383836001613efc565b505050565b600082905060008282613e6f9190614fab565b90505b80821015613eee57600060166000848152602001908152602001600020541480613e9e57506002601854145b613edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ed490615bac565b60405180910390fd5b81613ee79061557d565b9150613e72565b505050505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613f69576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613fa4576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613fb16000868387613e5c565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561417b575061417a8773ffffffffffffffffffffffffffffffffffffffff16613b76565b5b15614241575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46141f06000888480600101955088613b89565b614226576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082141561418157826000541461423c57600080fd5b6142ad565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415614242575b8160008190555050506142c36000868387613ef6565b5050505050565b8280546142d690614e3e565b90600052602060002090601f0160209004810192826142f8576000855561433f565b82601f1061431157805160ff191683800117855561433f565b8280016001018555821561433f579182015b8281111561433e578251825591602001919060010190614323565b5b50905061434c9190614393565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156143ac576000816000905550600101614394565b5090565b600082825260208201905092915050565b7f436f6e747261637420646f6573206e6f7420616c6c6f7720726563656970742060008201527f6f6620455448206f72204552432d323020746f6b656e73000000000000000000602082015250565b600061441d6037836143b0565b9150614428826143c1565b604082019050919050565b6000602082019050818103600083015261444c81614410565b9050919050565b7f416e20696e636f72726563742066756e6374696f6e207761732063616c6c6564600082015250565b60006144896020836143b0565b915061449482614453565b602082019050919050565b600060208201905081810360008301526144b88161447c565b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b614508816144d3565b811461451357600080fd5b50565b600081359050614525816144ff565b92915050565b600060208284031215614541576145406144c9565b5b600061454f84828501614516565b91505092915050565b60008115159050919050565b61456d81614558565b82525050565b60006020820190506145886000830184614564565b92915050565b600081519050919050565b60005b838110156145b757808201518184015260208101905061459c565b838111156145c6576000848401525b50505050565b6000601f19601f8301169050919050565b60006145e88261458e565b6145f281856143b0565b9350614602818560208601614599565b61460b816145cc565b840191505092915050565b6000602082019050818103600083015261463081846145dd565b905092915050565b6000819050919050565b61464b81614638565b811461465657600080fd5b50565b60008135905061466881614642565b92915050565b600060208284031215614684576146836144c9565b5b600061469284828501614659565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006146c68261469b565b9050919050565b6146d6816146bb565b82525050565b60006020820190506146f160008301846146cd565b92915050565b614700816146bb565b811461470b57600080fd5b50565b60008135905061471d816146f7565b92915050565b6000806040838503121561473a576147396144c9565b5b60006147488582860161470e565b925050602061475985828601614659565b9150509250929050565b61476c81614638565b82525050565b60006020820190506147876000830184614763565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126147b2576147b161478d565b5b8235905067ffffffffffffffff8111156147cf576147ce614792565b5b6020830191508360208202830111156147eb576147ea614797565b5b9250929050565b60008060006040848603121561480b5761480a6144c9565b5b600084013567ffffffffffffffff811115614829576148286144ce565b5b6148358682870161479c565b9350935050602061484886828701614659565b9150509250925092565b6000819050919050565b61486581614852565b811461487057600080fd5b50565b6000813590506148828161485c565b92915050565b60006020828403121561489e5761489d6144c9565b5b60006148ac84828501614873565b91505092915050565b6000806000606084860312156148ce576148cd6144c9565b5b60006148dc8682870161470e565b93505060206148ed8682870161470e565b92505060406148fe86828701614659565b9150509250925092565b61491181614558565b811461491c57600080fd5b50565b60008135905061492e81614908565b92915050565b60006020828403121561494a576149496144c9565b5b60006149588482850161491f565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61499e826145cc565b810181811067ffffffffffffffff821117156149bd576149bc614966565b5b80604052505050565b60006149d06144bf565b90506149dc8282614995565b919050565b600067ffffffffffffffff8211156149fc576149fb614966565b5b614a05826145cc565b9050602081019050919050565b82818337600083830152505050565b6000614a34614a2f846149e1565b6149c6565b905082815260208101848484011115614a5057614a4f614961565b5b614a5b848285614a12565b509392505050565b600082601f830112614a7857614a7761478d565b5b8135614a88848260208601614a21565b91505092915050565b600060208284031215614aa757614aa66144c9565b5b600082013567ffffffffffffffff811115614ac557614ac46144ce565b5b614ad184828501614a63565b91505092915050565b60008083601f840112614af057614aef61478d565b5b8235905067ffffffffffffffff811115614b0d57614b0c614792565b5b602083019150836020820283011115614b2957614b28614797565b5b9250929050565b60008060208385031215614b4757614b466144c9565b5b600083013567ffffffffffffffff811115614b6557614b646144ce565b5b614b7185828601614ada565b92509250509250929050565b600060208284031215614b9357614b926144c9565b5b6000614ba18482850161470e565b91505092915050565b614bb381614852565b82525050565b6000602082019050614bce6000830184614baa565b92915050565b600080600060408486031215614bed57614bec6144c9565b5b600084013567ffffffffffffffff811115614c0b57614c0a6144ce565b5b614c178682870161479c565b93509350506020614c2a8682870161470e565b9150509250925092565b60008060408385031215614c4b57614c4a6144c9565b5b6000614c598582860161470e565b9250506020614c6a8582860161491f565b9150509250929050565b600067ffffffffffffffff821115614c8f57614c8e614966565b5b614c98826145cc565b9050602081019050919050565b6000614cb8614cb384614c74565b6149c6565b905082815260208101848484011115614cd457614cd3614961565b5b614cdf848285614a12565b509392505050565b600082601f830112614cfc57614cfb61478d565b5b8135614d0c848260208601614ca5565b91505092915050565b60008060008060808587031215614d2f57614d2e6144c9565b5b6000614d3d8782880161470e565b9450506020614d4e8782880161470e565b9350506040614d5f87828801614659565b925050606085013567ffffffffffffffff811115614d8057614d7f6144ce565b5b614d8c87828801614ce7565b91505092959194509250565b6000606082019050614dad6000830186614564565b614dba6020830185614763565b614dc76040830184614763565b949350505050565b60008060408385031215614de657614de56144c9565b5b6000614df48582860161470e565b9250506020614e058582860161470e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614e5657607f821691505b60208210811415614e6a57614e69614e0f565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614ea66020836143b0565b9150614eb182614e70565b602082019050919050565b60006020820190508181036000830152614ed581614e99565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614f12601f836143b0565b9150614f1d82614edc565b602082019050919050565b60006020820190508181036000830152614f4181614f05565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614f8282614638565b9150614f8d83614638565b925082821015614fa057614f9f614f48565b5b828203905092915050565b6000614fb682614638565b9150614fc183614638565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ff657614ff5614f48565b5b828201905092915050565b7f4e6f7420656e6f756768204e465473206c65667420746f206d696e7400000000600082015250565b6000615037601c836143b0565b915061504282615001565b602082019050919050565b600060208201905081810360008301526150668161502a565b9050919050565b7f4d696e74696e672066726f6d20636f6e7472616374206e6f7420616c6c6f776560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b60006150c96021836143b0565b91506150d48261506d565b604082019050919050565b600060208201905081810360008301526150f8816150bc565b9050919050565b600061510a82614638565b915061511583614638565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561514e5761514d614f48565b5b828202905092915050565b7f4e6f7420656e6f7567682045544820746f206d696e742074686973206e756d6260008201527f6572206f66204e46547300000000000000000000000000000000000000000000602082015250565b60006151b5602a836143b0565b91506151c082615159565b604082019050919050565b600060208201905081810360008301526151e4816151a8565b9050919050565b7f416c6c6f776c697374206d696e74206e6f742061637469766500000000000000600082015250565b60006152216019836143b0565b915061522c826151eb565b602082019050919050565b6000602082019050818103600083015261525081615214565b9050919050565b600067ffffffffffffffff82169050919050565b600061527682615257565b915061528183615257565b92508267ffffffffffffffff0382111561529e5761529d614f48565b5b828201905092915050565b7f526571756573746564206d696e7420616d6f756e7420696e76616c6964000000600082015250565b60006152df601d836143b0565b91506152ea826152a9565b602082019050919050565b6000602082019050818103600083015261530e816152d2565b9050919050565b60008160601b9050919050565b600061532d82615315565b9050919050565b600061533f82615322565b9050919050565b615357615352826146bb565b615334565b82525050565b60006153698284615346565b60148201915081905092915050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b60006153ae600d836143b0565b91506153b982615378565b602082019050919050565b600060208201905081810360008301526153dd816153a1565b9050919050565b7f5075626c6963206d696e74206e6f742061637469766500000000000000000000600082015250565b600061541a6016836143b0565b9150615425826153e4565b602082019050919050565b600060208201905081810360008301526154498161540d565b9050919050565b7f546f6f206d616e79204e46547320696e2073696e676c65207472616e7361637460008201527f696f6e0000000000000000000000000000000000000000000000000000000000602082015250565b60006154ac6023836143b0565b91506154b782615450565b604082019050919050565b600060208201905081810360008301526154db8161549f565b9050919050565b7f46726565206d696e74206e6f7420616374697665000000000000000000000000600082015250565b60006155186014836143b0565b9150615523826154e2565b602082019050919050565b600060208201905081810360008301526155478161550b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061558882614638565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156155bb576155ba614f48565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061560082614638565b915061560b83614638565b92508261561b5761561a6155c6565b5b828204905092915050565b7f496e76616c6964207265736572766174696f6e20616d6f756e74000000000000600082015250565b600061565c601a836143b0565b915061566782615626565b602082019050919050565b6000602082019050818103600083015261568b8161564f565b9050919050565b7f416d6f756e74206578636565647320746f74616c207265736572766564000000600082015250565b60006156c8601d836143b0565b91506156d382615692565b602082019050919050565b600060208201905081810360008301526156f7816156bb565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061575a602f836143b0565b9150615765826156fe565b604082019050919050565b600060208201905081810360008301526157898161574d565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546157bd81614e3e565b6157c78186615790565b945060018216600081146157e257600181146157f357615826565b60ff19831686528186019350615826565b6157fc8561579b565b60005b8381101561581e578154818901526001820191506020810190506157ff565b838801955050505b50505092915050565b600061583a8261458e565b6158448185615790565b9350615854818560208601614599565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000615896600583615790565b91506158a182615860565b600582019050919050565b60006158b882856157b0565b91506158c4828461582f565b91506158cf82615889565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006159376026836143b0565b9150615942826158db565b604082019050919050565b600060208201905081810360008301526159668161592a565b9050919050565b6000819050919050565b61598861598382614852565b61596d565b82525050565b600061599a8285615977565b6020820191506159aa8284615977565b6020820191508190509392505050565b7f45524337323141436f6d6d6f6e3a204e6f7420617070726f766564206e6f722060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615a166025836143b0565b9150615a21826159ba565b604082019050919050565b60006020820190508181036000830152615a4581615a09565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615a7382615a4c565b615a7d8185615a57565b9350615a8d818560208601614599565b615a96816145cc565b840191505092915050565b6000608082019050615ab660008301876146cd565b615ac360208301866146cd565b615ad06040830185614763565b8181036060830152615ae28184615a68565b905095945050505050565b600081519050615afc816144ff565b92915050565b600060208284031215615b1857615b176144c9565b5b6000615b2684828501615aed565b91505092915050565b6000615b3a82614638565b9150615b4583614638565b925082615b5557615b546155c6565b5b828206905092915050565b7f5374616b696e6720416374697665000000000000000000000000000000000000600082015250565b6000615b96600e836143b0565b9150615ba182615b60565b602082019050919050565b60006020820190508181036000830152615bc581615b89565b905091905056fea264697066735822122029f281cc8bf5e90cd90d69f2f4eac92a5ca7e092cc5d628708c76ae3ddb23ae164736f6c63430008090033697066733a2f2f516d5562345551796e72484d4d6b4d3878586642794c457165516167446a354c6e5655454d45756d5845766d55674e4d9a90688978f72b9f61ee476f553e3607d6766cee0d20461a6c301332d9a90555c8a094f90119b8f8667a3f274957ad66bd939b8a7aaa834d4f9523a2322c

Deployed Bytecode

0x6080604052600436106103545760003560e01c80636ef4f9b5116101c6578063a22cb465116100f7578063da9044c811610095578063f2fde38b1161006f578063f2fde38b14610c73578063f6f665f014610c9c578063f9621b7a14610cc7578063fe2c7fee14610cf257610394565b8063da9044c814610be2578063dc738ffb14610c0b578063e985e9c514610c3657610394565b8063b9626d9c116100d1578063b9626d9c14610b10578063bdeadcb014610b3b578063c1027c9814610b66578063c87b56dd14610ba557610394565b8063a22cb46514610a95578063acd0d9a614610abe578063b88d4fde14610ae757610394565b806388d8eb1d116101645780639293b7271161013e5780639293b727146109eb5780639360ec9a14610a1657806395d89b4114610a53578063a0ef91df14610a7e57610394565b806388d8eb1d1461096a5780638c3c4b34146109955780638da5cb5b146109c057610394565b806378765500116101a057806378765500146108c257806379aef52d146108ed5780637f953a221461091657806384cb284b1461093f57610394565b80636ef4f9b51461084557806370a082311461086e578063715018a6146108ab57610394565b80632db11544116102a057806349a5980a1161023e578063564892dc11610218578063564892dc1461078b5780635b2859ff146107b4578063616cdb1e146107df5780636352211e1461080857610394565b806349a5980a146107105780634f9b563c1461073957806355f804b31461076257610394565b8063387602981161027a578063387602981461066a57806338da2f691461069557806342842e0e146106be57806342c0f037146106e757610394565b80632db11544146106075780632eac6f45146106235780633615ab451461064e57610394565b80631338a83f1161030d578063192a319f116102e7578063192a319f1461056357806323b872dd1461058c57806326fb302b146105b55780632b707c71146105de57610394565b80631338a83f146104f1578063179df6041461050d57806318160ddd1461053857610394565b806301ffc9a7146103cf57806306fdde031461040c578063081812fc14610437578063095ea7b31461047457806309729f6d1461049d57806309b053ac146104c857610394565b36610394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161038b90614433565b60405180910390fd5b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103c69061449f565b60405180910390fd5b3480156103db57600080fd5b506103f660048036038101906103f1919061452b565b610d1b565b6040516104039190614573565b60405180910390f35b34801561041857600080fd5b50610421610dfd565b60405161042e9190614616565b60405180910390f35b34801561044357600080fd5b5061045e6004803603810190610459919061466e565b610e8f565b60405161046b91906146dc565b60405180910390f35b34801561048057600080fd5b5061049b60048036038101906104969190614723565b610f0b565b005b3480156104a957600080fd5b506104b2611016565b6040516104bf9190614772565b60405180910390f35b3480156104d457600080fd5b506104ef60048036038101906104ea919061466e565b61101c565b005b61050b600480360381019061050691906147f2565b6110a2565b005b34801561051957600080fd5b506105226113a2565b60405161052f9190614573565b60405180910390f35b34801561054457600080fd5b5061054d6113b5565b60405161055a9190614772565b60405180910390f35b34801561056f57600080fd5b5061058a60048036038101906105859190614888565b6113cc565b005b34801561059857600080fd5b506105b360048036038101906105ae91906148b5565b611452565b005b3480156105c157600080fd5b506105dc60048036038101906105d7919061466e565b611462565b005b3480156105ea57600080fd5b5061060560048036038101906106009190614934565b6114e8565b005b610621600480360381019061061c919061466e565b611581565b005b34801561062f57600080fd5b50610638611799565b6040516106459190614772565b60405180910390f35b610668600480360381019061066391906147f2565b61179f565b005b34801561067657600080fd5b5061067f611a50565b60405161068c9190614573565b60405180910390f35b3480156106a157600080fd5b506106bc60048036038101906106b79190614934565b611a63565b005b3480156106ca57600080fd5b506106e560048036038101906106e091906148b5565b611afc565b005b3480156106f357600080fd5b5061070e60048036038101906107099190614888565b611b1c565b005b34801561071c57600080fd5b5061073760048036038101906107329190614934565b611ba2565b005b34801561074557600080fd5b50610760600480360381019061075b9190614934565b611c3b565b005b34801561076e57600080fd5b5061078960048036038101906107849190614a91565b611cd4565b005b34801561079757600080fd5b506107b260048036038101906107ad9190614934565b611d6a565b005b3480156107c057600080fd5b506107c9611e03565b6040516107d69190614772565b60405180910390f35b3480156107eb57600080fd5b506108066004803603810190610801919061466e565b611e09565b005b34801561081457600080fd5b5061082f600480360381019061082a919061466e565b611e8f565b60405161083c91906146dc565b60405180910390f35b34801561085157600080fd5b5061086c60048036038101906108679190614b30565b611ea5565b005b34801561087a57600080fd5b5061089560048036038101906108909190614b7d565b611ef3565b6040516108a29190614772565b60405180910390f35b3480156108b757600080fd5b506108c0611fc3565b005b3480156108ce57600080fd5b506108d761204b565b6040516108e49190614bb9565b60405180910390f35b3480156108f957600080fd5b50610914600480360381019061090f91906148b5565b612051565b005b34801561092257600080fd5b5061093d6004803603810190610938919061466e565b6120e5565b005b34801561094b57600080fd5b5061095461216b565b6040516109619190614772565b60405180910390f35b34801561097657600080fd5b5061097f612171565b60405161098c9190614bb9565b60405180910390f35b3480156109a157600080fd5b506109aa612177565b6040516109b79190614616565b60405180910390f35b3480156109cc57600080fd5b506109d56122ab565b6040516109e291906146dc565b60405180910390f35b3480156109f757600080fd5b50610a006122d5565b604051610a0d9190614573565b60405180910390f35b348015610a2257600080fd5b50610a3d6004803603810190610a389190614bd4565b6122e8565b604051610a4a9190614772565b60405180910390f35b348015610a5f57600080fd5b50610a686123a0565b604051610a759190614616565b60405180910390f35b348015610a8a57600080fd5b50610a93612432565b005b348015610aa157600080fd5b50610abc6004803603810190610ab79190614c34565b6125e0565b005b348015610aca57600080fd5b50610ae56004803603810190610ae0919061466e565b612758565b005b348015610af357600080fd5b50610b0e6004803603810190610b099190614d15565b61294e565b005b348015610b1c57600080fd5b50610b256129ca565b604051610b329190614573565b60405180910390f35b348015610b4757600080fd5b50610b506129dd565b604051610b5d9190614772565b60405180910390f35b348015610b7257600080fd5b50610b8d6004803603810190610b88919061466e565b6129e3565b604051610b9c93929190614d98565b60405180910390f35b348015610bb157600080fd5b50610bcc6004803603810190610bc7919061466e565b612a43565b604051610bd99190614616565b60405180910390f35b348015610bee57600080fd5b50610c096004803603810190610c04919061466e565b612b93565b005b348015610c1757600080fd5b50610c20612c19565b604051610c2d9190614772565b60405180910390f35b348015610c4257600080fd5b50610c5d6004803603810190610c589190614dcf565b612c1f565b604051610c6a9190614573565b60405180910390f35b348015610c7f57600080fd5b50610c9a6004803603810190610c959190614b7d565b612cb3565b005b348015610ca857600080fd5b50610cb1612dab565b604051610cbe9190614573565b60405180910390f35b348015610cd357600080fd5b50610cdc612dbe565b604051610ce99190614772565b60405180910390f35b348015610cfe57600080fd5b50610d196004803603810190610d149190614a91565b612dc4565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610de657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610df65750610df582612e5a565b5b9050919050565b606060028054610e0c90614e3e565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3890614e3e565b8015610e855780601f10610e5a57610100808354040283529160200191610e85565b820191906000526020600020905b815481529060010190602001808311610e6857829003601f168201915b5050505050905090565b6000610e9a82612ec4565b610ed0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610f1682611e8f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f7e576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f9d612f12565b73ffffffffffffffffffffffffffffffffffffffff1614158015610fcf5750610fcd81610fc8612f12565b612c1f565b155b15611006576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611011838383612f1a565b505050565b60155481565b611024612f12565b73ffffffffffffffffffffffffffffffffffffffff166110426122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611098576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108f90614ebc565b60405180910390fd5b80600e8190555050565b600260095414156110e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110df90614f28565b60405180910390fd5b60026009819055506015546115b36111009190614f77565b816111096113b5565b6111139190614fab565b1115611154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114b9061504d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b9906150df565b60405180910390fd5b3481600d546111d191906150ff565b14611211576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611208906151cb565b60405180910390fd5b601360019054906101000a900460ff16611260576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125790615237565b60405180910390fd5b60008161126c33612fcc565b611276919061526b565b9050600b548167ffffffffffffffff1611156112c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112be906152f5565b60405180910390fd5b6000336040516020016112da919061535d565b604051602081830303815290604052805190602001209050611340858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f548361302c565b61137f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611376906153c4565b60405180910390fd5b61138933836130e2565b611393338461314f565b50506001600981905550505050565b601360029054906101000a900460ff1681565b60006113bf61316d565b6001546000540303905090565b6113d4612f12565b73ffffffffffffffffffffffffffffffffffffffff166113f26122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611448576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143f90614ebc565b60405180910390fd5b80600f8190555050565b61145d838383613172565b505050565b61146a612f12565b73ffffffffffffffffffffffffffffffffffffffff166114886122ab565b73ffffffffffffffffffffffffffffffffffffffff16146114de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d590614ebc565b60405180910390fd5b80600d8190555050565b6114f0612f12565b73ffffffffffffffffffffffffffffffffffffffff1661150e6122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611564576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155b90614ebc565b60405180910390fd5b80601360026101000a81548160ff02191690831515021790555050565b600260095414156115c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115be90614f28565b60405180910390fd5b60026009819055506015546115b36115df9190614f77565b816115e86113b5565b6115f29190614fab565b1115611633576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162a9061504d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611698906150df565b60405180910390fd5b3481600e546116b091906150ff565b146116f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e7906151cb565b60405180910390fd5b601360029054906101000a900460ff1661173f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173690615430565b60405180910390fd5b600c54811115611784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177b906154c2565b60405180910390fd5b61178e338261314f565b600160098190555050565b600d5481565b600260095414156117e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117dc90614f28565b60405180910390fd5b60026009819055506015546115b36117fd9190614f77565b816118066113b5565b6118109190614fab565b1115611851576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118489061504d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146118bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b6906150df565b60405180910390fd5b601360009054906101000a900460ff1661190e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119059061552e565b60405180910390fd5b60008161191a33612fcc565b611924919061526b565b9050600a548167ffffffffffffffff161115611975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196c906152f5565b60405180910390fd5b600033604051602001611988919061535d565b6040516020818303038152906040528051906020012090506119ee858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506010548361302c565b611a2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a24906153c4565b60405180910390fd5b611a3733836130e2565b611a41338461314f565b50506001600981905550505050565b601960009054906101000a900460ff1681565b611a6b612f12565b73ffffffffffffffffffffffffffffffffffffffff16611a896122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad690614ebc565b60405180910390fd5b80601360016101000a81548160ff02191690831515021790555050565b611b178383836040518060200160405280600081525061294e565b505050565b611b24612f12565b73ffffffffffffffffffffffffffffffffffffffff16611b426122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611b98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8f90614ebc565b60405180910390fd5b8060108190555050565b611baa612f12565b73ffffffffffffffffffffffffffffffffffffffff16611bc86122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611c1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1590614ebc565b60405180910390fd5b80601360036101000a81548160ff02191690831515021790555050565b611c43612f12565b73ffffffffffffffffffffffffffffffffffffffff16611c616122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611cb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cae90614ebc565b60405180910390fd5b80601360006101000a81548160ff02191690831515021790555050565b611cdc612f12565b73ffffffffffffffffffffffffffffffffffffffff16611cfa6122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611d50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4790614ebc565b60405180910390fd5b8060119080519060200190611d669291906142ca565b5050565b611d72612f12565b73ffffffffffffffffffffffffffffffffffffffff16611d906122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611de6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddd90614ebc565b60405180910390fd5b80601960006101000a81548160ff02191690831515021790555050565b600a5481565b611e11612f12565b73ffffffffffffffffffffffffffffffffffffffff16611e2f6122ab565b73ffffffffffffffffffffffffffffffffffffffff1614611e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7c90614ebc565b60405180910390fd5b80600c8190555050565b6000611e9a82613628565b600001519050919050565b600082829050905060005b81811015611eed57611eda848483818110611ece57611ecd61554e565b5b905060200201356138b7565b8080611ee59061557d565b915050611eb0565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f5b576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611fcb612f12565b73ffffffffffffffffffffffffffffffffffffffff16611fe96122ab565b73ffffffffffffffffffffffffffffffffffffffff161461203f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203690614ebc565b60405180910390fd5b6120496000613ab0565b565b60105481565b612059612f12565b73ffffffffffffffffffffffffffffffffffffffff1661207882611e8f565b73ffffffffffffffffffffffffffffffffffffffff16146120c5576040517f82ca607100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60026018819055506120d8838383611afc565b6001601881905550505050565b6120ed612f12565b73ffffffffffffffffffffffffffffffffffffffff1661210b6122ab565b73ffffffffffffffffffffffffffffffffffffffff1614612161576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215890614ebc565b60405180910390fd5b80600a8190555050565b600b5481565b600f5481565b6060601360009054906101000a900460ff16156121cb576040518060400160405280600481526020017f667265650000000000000000000000000000000000000000000000000000000081525090506122a8565b601360029054906101000a900460ff161561221d576040518060400160405280600681526020017f7075626c6963000000000000000000000000000000000000000000000000000081525090506122a8565b601360019054906101000a900460ff161561226f576040518060400160405280600981526020017f616c6c6f776c697374000000000000000000000000000000000000000000000081525090506122a8565b6040518060400160405280600681526020017f636c6f736564000000000000000000000000000000000000000000000000000081525090505b90565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601360009054906101000a900460ff1681565b600080826040516020016122fc919061535d565b6040516020818303038152906040528051906020012090506000601360009054906101000a900460ff1661233257600f54612336565b6010545b9050612384868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050828461302c565b61238f576000612392565b60015b60ff16925050509392505050565b6060600380546123af90614e3e565b80601f01602080910402602001604051908101604052809291908181526020018280546123db90614e3e565b80156124285780601f106123fd57610100808354040283529160200191612428565b820191906000526020600020905b81548152906001019060200180831161240b57829003601f168201915b5050505050905090565b61243a612f12565b73ffffffffffffffffffffffffffffffffffffffff166124586122ab565b73ffffffffffffffffffffffffffffffffffffffff16146124ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a590614ebc565b60405180910390fd5b600260095414156124f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124eb90614f28565b60405180910390fd5b6002600981905550600047905073452a89f1316798fddc9d03f9af38b0586f8142e573ffffffffffffffffffffffffffffffffffffffff166108fc6064600a8461253e91906150ff565b61254891906155f5565b9081150290604051600060405180830381858888f1935050505061256b57600080fd5b73efc41a7a7b75b0cdc9f78471a4bdadf8796d963c73ffffffffffffffffffffffffffffffffffffffff166108fc6064605a846125a891906150ff565b6125b291906155f5565b9081150290604051600060405180830381858888f193505050506125d557600080fd5b506001600981905550565b6125e8612f12565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561264d576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061265a612f12565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612707612f12565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161274c9190614573565b60405180910390a35050565b6002600954141561279e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279590614f28565b60405180910390fd5b60026009819055506000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506115b3826127f66113b5565b6128009190614fab565b1115612841576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128389061504d565b60405180910390fd5b81811015612884576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287b90615672565b60405180910390fd5b6015548111156128c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c0906156de565b60405180910390fd5b81601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129189190614f77565b9250508190555081601560008282546129319190614f77565b92505081905550612942338361314f565b50600160098190555050565b612959848484613172565b6129788373ffffffffffffffffffffffffffffffffffffffff16613b76565b801561298d575061298b84848484613b89565b155b156129c4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b601360039054906101000a900460ff1681565b6115b381565b6000806000806016600086815260200190815260200160002054905060008114612a1a57600193508042612a179190614f77565b92505b601760008681526020019081526020016000205483612a399190614fab565b9150509193909250565b6060612a4e82612ec4565b612a8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8490615770565b60405180910390fd5b601360039054906101000a900460ff1615612b0057600060118054612ab190614e3e565b905011612acd5760405180602001604052806000815250612af9565b6011612ad883613ce9565b604051602001612ae99291906158ac565b6040516020818303038152906040525b9050612b8e565b60128054612b0d90614e3e565b80601f0160208091040260200160405190810160405280929190818152602001828054612b3990614e3e565b8015612b865780601f10612b5b57610100808354040283529160200191612b86565b820191906000526020600020905b815481529060010190602001808311612b6957829003601f168201915b505050505090505b919050565b612b9b612f12565b73ffffffffffffffffffffffffffffffffffffffff16612bb96122ab565b73ffffffffffffffffffffffffffffffffffffffff1614612c0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0690614ebc565b60405180910390fd5b80600b8190555050565b600c5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612cbb612f12565b73ffffffffffffffffffffffffffffffffffffffff16612cd96122ab565b73ffffffffffffffffffffffffffffffffffffffff1614612d2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2690614ebc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612d9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d969061594d565b60405180910390fd5b612da881613ab0565b50565b601360019054906101000a900460ff1681565b600e5481565b612dcc612f12565b73ffffffffffffffffffffffffffffffffffffffff16612dea6122ab565b73ffffffffffffffffffffffffffffffffffffffff1614612e40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e3790614ebc565b60405180910390fd5b8060129080519060200190612e569291906142ca565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081612ecf61316d565b11158015612ede575060005482105b8015612f0b575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160189054906101000a900467ffffffffffffffff169050919050565b60008082905060005b85518110156130d45760008682815181106130535761305261554e565b5b6020026020010151905080831161309457828160405160200161307792919061598e565b6040516020818303038152906040528051906020012092506130c0565b80836040516020016130a792919061598e565b6040516020818303038152906040528051906020012092505b5080806130cc9061557d565b915050613035565b508381149150509392505050565b80600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b613169828260405180602001604052806000815250613e4a565b5050565b600090565b600061317d82613628565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146131e8576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16613209612f12565b73ffffffffffffffffffffffffffffffffffffffff161480613238575061323785613232612f12565b612c1f565b5b8061327d5750613246612f12565b73ffffffffffffffffffffffffffffffffffffffff1661326584610e8f565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806132b6576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561331d576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61332a8585856001613e5c565b61333660008487612f1a565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156135b65760005482146135b557878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46136218585856001613ef6565b5050505050565b613630614350565b60008290508061363e61316d565b1115801561364d575060005481105b15613880576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161387e57600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146137625780925050506138b2565b5b60011561387d57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146138785780925050506138b2565b613763565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b806138c0612f12565b73ffffffffffffffffffffffffffffffffffffffff166138df82613628565b6000015173ffffffffffffffffffffffffffffffffffffffff16148061393f5750613908612f12565b73ffffffffffffffffffffffffffffffffffffffff1661392782610e8f565b73ffffffffffffffffffffffffffffffffffffffff16145b61397e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161397590615a2c565b60405180910390fd5b6000601660008481526020019081526020016000205490506000811415613a2f57601960009054906101000a900460ff166139e5576040517f5e0ff49500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b426016600085815260200190815260200160002081905550827feebbaa86c348cb664e392b180fd0ff2e1998af9fa833ef69a778cb0b42d3ca2760405160405180910390a2613aab565b8042613a3b9190614f77565b601760008581526020019081526020016000206000828254613a5d9190614fab565b9250508190555060006016600085815260200190815260200160002081905550827f11725367022c3ff288940f4b5473aa61c2da6a24af7363a1128ee2401e8983b260405160405180910390a25b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080823b905060008111915050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613baf612f12565b8786866040518563ffffffff1660e01b8152600401613bd19493929190615aa1565b602060405180830381600087803b158015613beb57600080fd5b505af1925050508015613c1c57506040513d601f19601f82011682018060405250810190613c199190615b02565b60015b613c96573d8060008114613c4c576040519150601f19603f3d011682016040523d82523d6000602084013e613c51565b606091505b50600081511415613c8e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606000821415613d31576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613e45565b600082905060005b60008214613d63578080613d4c9061557d565b915050600a82613d5c91906155f5565b9150613d39565b60008167ffffffffffffffff811115613d7f57613d7e614966565b5b6040519080825280601f01601f191660200182016040528015613db15781602001600182028036833780820191505090505b5090505b60008514613e3e57600182613dca9190614f77565b9150600a85613dd99190615b2f565b6030613de59190614fab565b60f81b818381518110613dfb57613dfa61554e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613e3791906155f5565b9450613db5565b8093505050505b919050565b613e578383836001613efc565b505050565b600082905060008282613e6f9190614fab565b90505b80821015613eee57600060166000848152602001908152602001600020541480613e9e57506002601854145b613edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ed490615bac565b60405180910390fd5b81613ee79061557d565b9150613e72565b505050505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613f69576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613fa4576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613fb16000868387613e5c565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561417b575061417a8773ffffffffffffffffffffffffffffffffffffffff16613b76565b5b15614241575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46141f06000888480600101955088613b89565b614226576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082141561418157826000541461423c57600080fd5b6142ad565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415614242575b8160008190555050506142c36000868387613ef6565b5050505050565b8280546142d690614e3e565b90600052602060002090601f0160209004810192826142f8576000855561433f565b82601f1061431157805160ff191683800117855561433f565b8280016001018555821561433f579182015b8281111561433e578251825591602001919060010190614323565b5b50905061434c9190614393565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156143ac576000816000905550600101614394565b5090565b600082825260208201905092915050565b7f436f6e747261637420646f6573206e6f7420616c6c6f7720726563656970742060008201527f6f6620455448206f72204552432d323020746f6b656e73000000000000000000602082015250565b600061441d6037836143b0565b9150614428826143c1565b604082019050919050565b6000602082019050818103600083015261444c81614410565b9050919050565b7f416e20696e636f72726563742066756e6374696f6e207761732063616c6c6564600082015250565b60006144896020836143b0565b915061449482614453565b602082019050919050565b600060208201905081810360008301526144b88161447c565b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b614508816144d3565b811461451357600080fd5b50565b600081359050614525816144ff565b92915050565b600060208284031215614541576145406144c9565b5b600061454f84828501614516565b91505092915050565b60008115159050919050565b61456d81614558565b82525050565b60006020820190506145886000830184614564565b92915050565b600081519050919050565b60005b838110156145b757808201518184015260208101905061459c565b838111156145c6576000848401525b50505050565b6000601f19601f8301169050919050565b60006145e88261458e565b6145f281856143b0565b9350614602818560208601614599565b61460b816145cc565b840191505092915050565b6000602082019050818103600083015261463081846145dd565b905092915050565b6000819050919050565b61464b81614638565b811461465657600080fd5b50565b60008135905061466881614642565b92915050565b600060208284031215614684576146836144c9565b5b600061469284828501614659565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006146c68261469b565b9050919050565b6146d6816146bb565b82525050565b60006020820190506146f160008301846146cd565b92915050565b614700816146bb565b811461470b57600080fd5b50565b60008135905061471d816146f7565b92915050565b6000806040838503121561473a576147396144c9565b5b60006147488582860161470e565b925050602061475985828601614659565b9150509250929050565b61476c81614638565b82525050565b60006020820190506147876000830184614763565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126147b2576147b161478d565b5b8235905067ffffffffffffffff8111156147cf576147ce614792565b5b6020830191508360208202830111156147eb576147ea614797565b5b9250929050565b60008060006040848603121561480b5761480a6144c9565b5b600084013567ffffffffffffffff811115614829576148286144ce565b5b6148358682870161479c565b9350935050602061484886828701614659565b9150509250925092565b6000819050919050565b61486581614852565b811461487057600080fd5b50565b6000813590506148828161485c565b92915050565b60006020828403121561489e5761489d6144c9565b5b60006148ac84828501614873565b91505092915050565b6000806000606084860312156148ce576148cd6144c9565b5b60006148dc8682870161470e565b93505060206148ed8682870161470e565b92505060406148fe86828701614659565b9150509250925092565b61491181614558565b811461491c57600080fd5b50565b60008135905061492e81614908565b92915050565b60006020828403121561494a576149496144c9565b5b60006149588482850161491f565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61499e826145cc565b810181811067ffffffffffffffff821117156149bd576149bc614966565b5b80604052505050565b60006149d06144bf565b90506149dc8282614995565b919050565b600067ffffffffffffffff8211156149fc576149fb614966565b5b614a05826145cc565b9050602081019050919050565b82818337600083830152505050565b6000614a34614a2f846149e1565b6149c6565b905082815260208101848484011115614a5057614a4f614961565b5b614a5b848285614a12565b509392505050565b600082601f830112614a7857614a7761478d565b5b8135614a88848260208601614a21565b91505092915050565b600060208284031215614aa757614aa66144c9565b5b600082013567ffffffffffffffff811115614ac557614ac46144ce565b5b614ad184828501614a63565b91505092915050565b60008083601f840112614af057614aef61478d565b5b8235905067ffffffffffffffff811115614b0d57614b0c614792565b5b602083019150836020820283011115614b2957614b28614797565b5b9250929050565b60008060208385031215614b4757614b466144c9565b5b600083013567ffffffffffffffff811115614b6557614b646144ce565b5b614b7185828601614ada565b92509250509250929050565b600060208284031215614b9357614b926144c9565b5b6000614ba18482850161470e565b91505092915050565b614bb381614852565b82525050565b6000602082019050614bce6000830184614baa565b92915050565b600080600060408486031215614bed57614bec6144c9565b5b600084013567ffffffffffffffff811115614c0b57614c0a6144ce565b5b614c178682870161479c565b93509350506020614c2a8682870161470e565b9150509250925092565b60008060408385031215614c4b57614c4a6144c9565b5b6000614c598582860161470e565b9250506020614c6a8582860161491f565b9150509250929050565b600067ffffffffffffffff821115614c8f57614c8e614966565b5b614c98826145cc565b9050602081019050919050565b6000614cb8614cb384614c74565b6149c6565b905082815260208101848484011115614cd457614cd3614961565b5b614cdf848285614a12565b509392505050565b600082601f830112614cfc57614cfb61478d565b5b8135614d0c848260208601614ca5565b91505092915050565b60008060008060808587031215614d2f57614d2e6144c9565b5b6000614d3d8782880161470e565b9450506020614d4e8782880161470e565b9350506040614d5f87828801614659565b925050606085013567ffffffffffffffff811115614d8057614d7f6144ce565b5b614d8c87828801614ce7565b91505092959194509250565b6000606082019050614dad6000830186614564565b614dba6020830185614763565b614dc76040830184614763565b949350505050565b60008060408385031215614de657614de56144c9565b5b6000614df48582860161470e565b9250506020614e058582860161470e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614e5657607f821691505b60208210811415614e6a57614e69614e0f565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614ea66020836143b0565b9150614eb182614e70565b602082019050919050565b60006020820190508181036000830152614ed581614e99565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614f12601f836143b0565b9150614f1d82614edc565b602082019050919050565b60006020820190508181036000830152614f4181614f05565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614f8282614638565b9150614f8d83614638565b925082821015614fa057614f9f614f48565b5b828203905092915050565b6000614fb682614638565b9150614fc183614638565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ff657614ff5614f48565b5b828201905092915050565b7f4e6f7420656e6f756768204e465473206c65667420746f206d696e7400000000600082015250565b6000615037601c836143b0565b915061504282615001565b602082019050919050565b600060208201905081810360008301526150668161502a565b9050919050565b7f4d696e74696e672066726f6d20636f6e7472616374206e6f7420616c6c6f776560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b60006150c96021836143b0565b91506150d48261506d565b604082019050919050565b600060208201905081810360008301526150f8816150bc565b9050919050565b600061510a82614638565b915061511583614638565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561514e5761514d614f48565b5b828202905092915050565b7f4e6f7420656e6f7567682045544820746f206d696e742074686973206e756d6260008201527f6572206f66204e46547300000000000000000000000000000000000000000000602082015250565b60006151b5602a836143b0565b91506151c082615159565b604082019050919050565b600060208201905081810360008301526151e4816151a8565b9050919050565b7f416c6c6f776c697374206d696e74206e6f742061637469766500000000000000600082015250565b60006152216019836143b0565b915061522c826151eb565b602082019050919050565b6000602082019050818103600083015261525081615214565b9050919050565b600067ffffffffffffffff82169050919050565b600061527682615257565b915061528183615257565b92508267ffffffffffffffff0382111561529e5761529d614f48565b5b828201905092915050565b7f526571756573746564206d696e7420616d6f756e7420696e76616c6964000000600082015250565b60006152df601d836143b0565b91506152ea826152a9565b602082019050919050565b6000602082019050818103600083015261530e816152d2565b9050919050565b60008160601b9050919050565b600061532d82615315565b9050919050565b600061533f82615322565b9050919050565b615357615352826146bb565b615334565b82525050565b60006153698284615346565b60148201915081905092915050565b7f496e76616c69642070726f6f6600000000000000000000000000000000000000600082015250565b60006153ae600d836143b0565b91506153b982615378565b602082019050919050565b600060208201905081810360008301526153dd816153a1565b9050919050565b7f5075626c6963206d696e74206e6f742061637469766500000000000000000000600082015250565b600061541a6016836143b0565b9150615425826153e4565b602082019050919050565b600060208201905081810360008301526154498161540d565b9050919050565b7f546f6f206d616e79204e46547320696e2073696e676c65207472616e7361637460008201527f696f6e0000000000000000000000000000000000000000000000000000000000602082015250565b60006154ac6023836143b0565b91506154b782615450565b604082019050919050565b600060208201905081810360008301526154db8161549f565b9050919050565b7f46726565206d696e74206e6f7420616374697665000000000000000000000000600082015250565b60006155186014836143b0565b9150615523826154e2565b602082019050919050565b600060208201905081810360008301526155478161550b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061558882614638565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156155bb576155ba614f48565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061560082614638565b915061560b83614638565b92508261561b5761561a6155c6565b5b828204905092915050565b7f496e76616c6964207265736572766174696f6e20616d6f756e74000000000000600082015250565b600061565c601a836143b0565b915061566782615626565b602082019050919050565b6000602082019050818103600083015261568b8161564f565b9050919050565b7f416d6f756e74206578636565647320746f74616c207265736572766564000000600082015250565b60006156c8601d836143b0565b91506156d382615692565b602082019050919050565b600060208201905081810360008301526156f7816156bb565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061575a602f836143b0565b9150615765826156fe565b604082019050919050565b600060208201905081810360008301526157898161574d565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546157bd81614e3e565b6157c78186615790565b945060018216600081146157e257600181146157f357615826565b60ff19831686528186019350615826565b6157fc8561579b565b60005b8381101561581e578154818901526001820191506020810190506157ff565b838801955050505b50505092915050565b600061583a8261458e565b6158448185615790565b9350615854818560208601614599565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000615896600583615790565b91506158a182615860565b600582019050919050565b60006158b882856157b0565b91506158c4828461582f565b91506158cf82615889565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006159376026836143b0565b9150615942826158db565b604082019050919050565b600060208201905081810360008301526159668161592a565b9050919050565b6000819050919050565b61598861598382614852565b61596d565b82525050565b600061599a8285615977565b6020820191506159aa8284615977565b6020820191508190509392505050565b7f45524337323141436f6d6d6f6e3a204e6f7420617070726f766564206e6f722060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615a166025836143b0565b9150615a21826159ba565b604082019050919050565b60006020820190508181036000830152615a4581615a09565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615a7382615a4c565b615a7d8185615a57565b9350615a8d818560208601614599565b615a96816145cc565b840191505092915050565b6000608082019050615ab660008301876146cd565b615ac360208301866146cd565b615ad06040830185614763565b8181036060830152615ae28184615a68565b905095945050505050565b600081519050615afc816144ff565b92915050565b600060208284031215615b1857615b176144c9565b5b6000615b2684828501615aed565b91505092915050565b6000615b3a82614638565b9150615b4583614638565b925082615b5557615b546155c6565b5b828206905092915050565b7f5374616b696e6720416374697665000000000000000000000000000000000000600082015250565b6000615b96600e836143b0565b9150615ba182615b60565b602082019050919050565b60006020820190508181036000830152615bc581615b89565b905091905056fea264697066735822122029f281cc8bf5e90cd90d69f2f4eac92a5ca7e092cc5d628708c76ae3ddb23ae164736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

4e4d9a90688978f72b9f61ee476f553e3607d6766cee0d20461a6c301332d9a90555c8a094f90119b8f8667a3f274957ad66bd939b8a7aaa834d4f9523a2322c

-----Decoded View---------------
Arg [0] : _root_al (bytes32): 0x4e4d9a90688978f72b9f61ee476f553e3607d6766cee0d20461a6c301332d9a9
Arg [1] : _root_free (bytes32): 0x0555c8a094f90119b8f8667a3f274957ad66bd939b8a7aaa834d4f9523a2322c

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 4e4d9a90688978f72b9f61ee476f553e3607d6766cee0d20461a6c301332d9a9
Arg [1] : 0555c8a094f90119b8f8667a3f274957ad66bd939b8a7aaa834d4f9523a2322c


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.