ETH Price: $2,711.13 (+2.37%)

Token

Tavern (TAVERN)
 

Overview

Max Total Supply

140 TAVERN

Holders

27

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
foundersfactorynetwork.eth
Balance
2 TAVERN
0x9026ba685ea3e0e35a5085072e292849935ce2a9
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:
TavernNFT

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : TavernNFT.sol
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";

pragma solidity ^0.8.7;
pragma abicoder v2;

contract TavernNFT is ERC721, Ownable, ERC721Enumerable {
    using SafeMath for uint256;
    using Strings for uint256;

    uint256 public constant tokenPublicPrice = 400000000000000000; // 0.4 ETH
    uint256 public constant tokenPreSalePrice = 250000000000000000; // 0.25 ETH
    uint256 public constant MAX_TOKENS = 1200;
    uint256 public maxMint = 2;
    uint256 public devReserve = 100;

    string public baseURI = ""; // IPFS URI WILL BE SET AFTER ALL TOKENS SOLD OUT

    bool public saleIsActive = false; // when launch sale then call to function
    bool public presaleIsActive = false;
    bool public isRevealed = false;

    uint256 private _countreserveTokens;

    mapping(address => bool) private _presaleList;
    mapping(address => uint256) private _presaleListClaimed;

    event Minted(uint256 tokenId, address owner);

    constructor() ERC721("Tavern", "TAVERN") {
        _safeMint(address(this), 1);
        _burn(1);
    }

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

    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }

    function withdraw() external onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    function reveal() public onlyOwner {
        isRevealed = !isRevealed;
    }

    // reverse token to dev with 100
    function reserveTokens(address _to, uint256 _reserveAmount)
        external
        onlyOwner
    {
        require(
            _reserveAmount > 0 &&
                _countreserveTokens.add(_reserveAmount) <= devReserve,
            "Not enough reserve left for team"
        );
        for (uint256 i = 0; i < _reserveAmount; i++) {
            uint256 id = totalSupply().add(1);
            _safeMint(_to, id);
        }
        _countreserveTokens = _countreserveTokens.add(_reserveAmount);
    }

    function toggleSaleState() external onlyOwner {
        saleIsActive = !saleIsActive;
    }

    function togglePresaleState() external onlyOwner {
        presaleIsActive = !presaleIsActive;
    }

    function tokensOfOwner(address _owner)
        external
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            // Return an empty array
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 index;
            for (index = 0; index < tokenCount; index++) {
                result[index] = tokenOfOwnerByIndex(_owner, index);
            }
            return result;
        }
    }

    function mint(uint256 numberOfTokens) external payable {
        require(saleIsActive, "Sale must be active to mint Token");
        require(
            numberOfTokens > 0 && numberOfTokens <= maxMint,
            "Can only mint one or more tokens at a time"
        );
        require(
            totalSupply().add(numberOfTokens) <= MAX_TOKENS,
            "Purchase would exceed max supply of tokens"
        );
        require(
            msg.value >= tokenPublicPrice.mul(numberOfTokens),
            "Ether value sent is not correct"
        );

        if (_presaleListClaimed[msg.sender] == 0) {
            require(
                balanceOf(msg.sender).add(numberOfTokens) <= maxMint,
                "You can mint max 2 NFTs"
            );

            for (uint256 i = 0; i < numberOfTokens; i++) {
                uint256 id = totalSupply().add(1);
                _safeMint(msg.sender, id);
                emit Minted(id, msg.sender);
            }
        }


        if(_presaleListClaimed[msg.sender] == 1){
             require(
                balanceOf(msg.sender).add(numberOfTokens) <= maxMint.add(1),
                "You can mint max 2 NFTs"
            );

            for (uint256 i = 0; i < numberOfTokens; i++) {
                uint256 id = totalSupply().add(1);
                _safeMint(msg.sender, id);
                emit Minted(id, msg.sender);
            }

        }

         if(_presaleListClaimed[msg.sender] == 2){
             require(
                balanceOf(msg.sender).add(numberOfTokens) <= maxMint.add(2),
                "You can mint max 2 NFTs"
            );

            for (uint256 i = 0; i < numberOfTokens; i++) {
                uint256 id = totalSupply().add(1);
                _safeMint(msg.sender, id);
                emit Minted(id, msg.sender);
            }

        }



    }

    function presaleTavern(uint256 numberOfTokens) external payable {
        require(presaleIsActive, "Presale is not active");
        require(_presaleList[msg.sender], "You are not on the Presale List");
        require(
            totalSupply().add(numberOfTokens) <= MAX_TOKENS,
            "Purchase would exceed max supply of presale event"
        );
        require(
            numberOfTokens > 0 && numberOfTokens <= maxMint,
            "Cannot purchase this many tokens"
        );
        require(
            _presaleListClaimed[msg.sender].add(numberOfTokens) <= maxMint,
            "Purchase exceeds max allowed"
        );
        require(
            msg.value >= tokenPreSalePrice.mul(numberOfTokens),
            "Ether value sent is not correct"
        );
        require(
            balanceOf(msg.sender).add(numberOfTokens) <= maxMint,
            "You can mint max 2 NFTs"
        );

        for (uint256 i = 0; i < numberOfTokens; i++) {
            uint256 id = totalSupply().add(1);
            _presaleListClaimed[msg.sender] += 1;
            _safeMint(msg.sender, id);
            emit Minted(id, msg.sender);
        }
    }

    function addToPresaleList(address[] calldata addresses) external onlyOwner {
        for (uint256 i = 0; i < addresses.length; i++) {
            require(addresses[i] != address(0), "Can't add the null address");

            _presaleList[addresses[i]] = true;
        }
    }

    function removeFromPresaleList(address[] calldata addresses)
        external
        onlyOwner
    {
        for (uint256 i = 0; i < addresses.length; i++) {
            require(addresses[i] != address(0), "Can't add the null address");

            _presaleList[addresses[i]] = false;
        }
    }

    function onPreSaleList(address addr) external view returns (bool) {
        return _presaleList[addr];
    }

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

        if (isRevealed == false) {
            return _baseURI();
        }

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

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

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

File 2 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

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

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

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

File 3 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev 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 {
        _transferOwnership(address(0));
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 14 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 14 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 8 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 14 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addToPresaleList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devReserve","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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"onPreSaleList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"presaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"presaleTavern","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"removeFromPresaleList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_reserveAmount","type":"uint256"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPreSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPublicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526002600b556064600c5560405180602001604052806000815250600d90805190602001906200003592919062000f3b565b506000600e60006101000a81548160ff0219169083151502179055506000600e60016101000a81548160ff0219169083151502179055506000600e60026101000a81548160ff0219169083151502179055503480156200009457600080fd5b506040518060400160405280600681526020017f54617665726e00000000000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f54415645524e000000000000000000000000000000000000000000000000000081525081600090805190602001906200011992919062000f3b565b5080600190805190602001906200013292919062000f3b565b50505062000155620001496200018060201b60201c565b6200018860201b60201c565b620001683060016200024e60201b60201c565b6200017a60016200027460201b60201c565b6200161e565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000270828260405180602001604052806000815250620003b860201b60201c565b5050565b60006200028c826200042660201b62000ee41760201c565b9050620002a281600084620004db60201b60201c565b620002b5600083620004f860201b60201c565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254620003079190620012e2565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4620003b481600084620005be60201b60201c565b5050565b620003ca8383620005c360201b60201c565b620003df6000848484620007bd60201b60201c565b62000421576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200041890620011ae565b60405180910390fd5b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620004d2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004c99062001214565b60405180910390fd5b80915050919050565b620004f38383836200097760201b6200259e1760201c565b505050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1662000578836200042660201b62000ee41760201c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000636576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200062d9062001236565b60405180910390fd5b620006478162000abe60201b60201c565b156200068a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200068190620011d0565b60405180910390fd5b6200069e60008383620004db60201b60201c565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254620006f0919062001285565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4620007b960008383620005be60201b60201c565b5050565b6000620007eb8473ffffffffffffffffffffffffffffffffffffffff1662000b2a60201b620026b21760201c565b156200096a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026200081d6200018060201b60201c565b8786866040518563ffffffff1660e01b81526004016200084194939291906200115a565b602060405180830381600087803b1580156200085c57600080fd5b505af19250505080156200089057506040513d601f19601f820116820180604052508101906200088d919062001002565b60015b62000919573d8060008114620008c3576040519150601f19603f3d011682016040523d82523d6000602084013e620008c8565b606091505b5060008151141562000911576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200090890620011ae565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506200096f565b600190505b949350505050565b6200098f83838362000b4d60201b620026d51760201c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415620009dc57620009d68162000b5260201b60201c565b62000a24565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161462000a235762000a22838262000b9b60201b60201c565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000a715762000a6b8162000d1860201b60201c565b62000ab9565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000ab85762000ab7828262000df460201b60201c565b5b5b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600162000bb58462000e8060201b620010241760201c565b62000bc19190620012e2565b905060006008600084815260200190815260200160002054905081811462000ca7576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160098054905062000d2e9190620012e2565b90506000600a600084815260200190815260200160002054905060006009838154811062000d615762000d6062001480565b5b90600052602060002001549050806009838154811062000d865762000d8562001480565b5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a600085815260200190815260200160002060009055600980548062000dd85762000dd762001451565b5b6001900381819060005260206000200160009055905550505050565b600062000e0c8362000e8060201b620010241760201c565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000ef4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000eeb90620011f2565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b82805462000f4990620013bd565b90600052602060002090601f01602090048101928262000f6d576000855562000fb9565b82601f1062000f8857805160ff191683800117855562000fb9565b8280016001018555821562000fb9579182015b8281111562000fb857825182559160200191906001019062000f9b565b5b50905062000fc8919062000fcc565b5090565b5b8082111562000fe757600081600090555060010162000fcd565b5090565b60008151905062000ffc8162001604565b92915050565b6000602082840312156200101b576200101a620014af565b5b60006200102b8482850162000feb565b91505092915050565b6200103f816200131d565b82525050565b6000620010528262001258565b6200105e818562001263565b93506200107081856020860162001387565b6200107b81620014b4565b840191505092915050565b60006200109560328362001274565b9150620010a282620014c5565b604082019050919050565b6000620010bc601c8362001274565b9150620010c98262001514565b602082019050919050565b6000620010e3602a8362001274565b9150620010f0826200153d565b604082019050919050565b60006200110a60298362001274565b915062001117826200158c565b604082019050919050565b60006200113160208362001274565b91506200113e82620015db565b602082019050919050565b62001154816200137d565b82525050565b600060808201905062001171600083018762001034565b62001180602083018662001034565b6200118f604083018562001149565b8181036060830152620011a3818462001045565b905095945050505050565b60006020820190508181036000830152620011c98162001086565b9050919050565b60006020820190508181036000830152620011eb81620010ad565b9050919050565b600060208201905081810360008301526200120d81620010d4565b9050919050565b600060208201905081810360008301526200122f81620010fb565b9050919050565b60006020820190508181036000830152620012518162001122565b9050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600062001292826200137d565b91506200129f836200137d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115620012d757620012d6620013f3565b5b828201905092915050565b6000620012ef826200137d565b9150620012fc836200137d565b925082821015620013125762001311620013f3565b5b828203905092915050565b60006200132a826200135d565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015620013a75780820151818401526020810190506200138a565b83811115620013b7576000848401525b50505050565b60006002820490506001821680620013d657607f821691505b60208210811415620013ed57620013ec62001422565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6200160f8162001331565b81146200161b57600080fd5b50565b61559b806200162e6000396000f3fe60806040526004361061023b5760003560e01c80637501f7411161012e578063b88d4fde116100ab578063eb8d24441161006f578063eb8d244414610855578063f285e69e14610880578063f2fde38b14610897578063f47c84c5146108c0578063fcd2a427146108eb5761023b565b8063b88d4fde1461077f578063c8496f32146107a8578063c87b56dd146107c4578063daaeec8614610801578063e985e9c5146108185761023b565b806395d89b41116100f257806395d89b41146106cf578063a0712d68146106fa578063a22cb46514610716578063a475b5dd1461073f578063b179e060146107565761023b565b80637501f741146105e8578063775cf6c71461061357806378cf19e91461063e5780638462151c146106675780638da5cb5b146106a45761023b565b80633ccfd60b116101bc5780636352211e116101805780636352211e146105035780636c0360eb1461054057806370a082311461056b578063715018a6146105a85780637204a3c9146105bf5761023b565b80633ccfd60b1461043257806342842e0e146104495780634f6ccce71461047257806354214f69146104af57806355f804b3146104da5761023b565b806318160ddd1161020357806318160ddd1461034b5780631917e5001461037657806323b872dd146103a15780632f745c59146103ca57806330f72cd4146104075761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e557806311576b791461030e575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613d17565b610916565b6040516102749190614431565b60405180910390f35b34801561028957600080fd5b50610292610928565b60405161029f919061444c565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca9190613dba565b6109ba565b6040516102dc91906143a8565b60405180910390f35b3480156102f157600080fd5b5061030c60048036038101906103079190613c8a565b610a3f565b005b34801561031a57600080fd5b5061033560048036038101906103309190613b07565b610b57565b6040516103429190614431565b60405180910390f35b34801561035757600080fd5b50610360610bad565b60405161036d919061482e565b60405180910390f35b34801561038257600080fd5b5061038b610bba565b604051610398919061482e565b60405180910390f35b3480156103ad57600080fd5b506103c860048036038101906103c39190613b74565b610bc6565b005b3480156103d657600080fd5b506103f160048036038101906103ec9190613c8a565b610c26565b6040516103fe919061482e565b60405180910390f35b34801561041357600080fd5b5061041c610ccb565b6040516104299190614431565b60405180910390f35b34801561043e57600080fd5b50610447610cde565b005b34801561045557600080fd5b50610470600480360381019061046b9190613b74565b610daa565b005b34801561047e57600080fd5b5061049960048036038101906104949190613dba565b610dca565b6040516104a6919061482e565b60405180910390f35b3480156104bb57600080fd5b506104c4610e3b565b6040516104d19190614431565b60405180910390f35b3480156104e657600080fd5b5061050160048036038101906104fc9190613d71565b610e4e565b005b34801561050f57600080fd5b5061052a60048036038101906105259190613dba565b610ee4565b60405161053791906143a8565b60405180910390f35b34801561054c57600080fd5b50610555610f96565b604051610562919061444c565b60405180910390f35b34801561057757600080fd5b50610592600480360381019061058d9190613b07565b611024565b60405161059f919061482e565b60405180910390f35b3480156105b457600080fd5b506105bd6110dc565b005b3480156105cb57600080fd5b506105e660048036038101906105e19190613cca565b611164565b005b3480156105f457600080fd5b506105fd61131c565b60405161060a919061482e565b60405180910390f35b34801561061f57600080fd5b50610628611322565b604051610635919061482e565b60405180910390f35b34801561064a57600080fd5b5061066560048036038101906106609190613c8a565b61132e565b005b34801561067357600080fd5b5061068e60048036038101906106899190613b07565b611477565b60405161069b919061440f565b60405180910390f35b3480156106b057600080fd5b506106b9611581565b6040516106c691906143a8565b60405180910390f35b3480156106db57600080fd5b506106e46115ab565b6040516106f1919061444c565b60405180910390f35b610714600480360381019061070f9190613dba565b61163d565b005b34801561072257600080fd5b5061073d60048036038101906107389190613c4a565b611b3f565b005b34801561074b57600080fd5b50610754611b55565b005b34801561076257600080fd5b5061077d60048036038101906107789190613cca565b611bfd565b005b34801561078b57600080fd5b506107a660048036038101906107a19190613bc7565b611db5565b005b6107c260048036038101906107bd9190613dba565b611e17565b005b3480156107d057600080fd5b506107eb60048036038101906107e69190613dba565b6121cf565b6040516107f8919061444c565b60405180910390f35b34801561080d57600080fd5b506108166122a3565b005b34801561082457600080fd5b5061083f600480360381019061083a9190613b34565b61234b565b60405161084c9190614431565b60405180910390f35b34801561086157600080fd5b5061086a6123df565b6040516108779190614431565b60405180910390f35b34801561088c57600080fd5b506108956123f2565b005b3480156108a357600080fd5b506108be60048036038101906108b99190613b07565b61249a565b005b3480156108cc57600080fd5b506108d5612592565b6040516108e2919061482e565b60405180910390f35b3480156108f757600080fd5b50610900612598565b60405161090d919061482e565b60405180910390f35b6000610921826126da565b9050919050565b60606000805461093790614b40565b80601f016020809104026020016040519081016040528092919081815260200182805461096390614b40565b80156109b05780601f10610985576101008083540402835291602001916109b0565b820191906000526020600020905b81548152906001019060200180831161099357829003601f168201915b5050505050905090565b60006109c582612754565b610a04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fb906146ee565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a4a82610ee4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610abb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab29061476e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ada6127c0565b73ffffffffffffffffffffffffffffffffffffffff161480610b095750610b0881610b036127c0565b61234b565b5b610b48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3f9061462e565b60405180910390fd5b610b5283836127c8565b505050565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000600980549050905090565b67058d15e17628000081565b610bd7610bd16127c0565b82612881565b610c16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0d9061478e565b60405180910390fd5b610c2183838361295f565b505050565b6000610c3183611024565b8210610c72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c699061448e565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600e60019054906101000a900460ff1681565b610ce66127c0565b73ffffffffffffffffffffffffffffffffffffffff16610d04611581565b73ffffffffffffffffffffffffffffffffffffffff1614610d5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d519061470e565b60405180910390fd5b610d62611581565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610da7573d6000803e3d6000fd5b50565b610dc583838360405180602001604052806000815250611db5565b505050565b6000610dd4610bad565b8210610e15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0c906147ae565b60405180910390fd5b60098281548110610e2957610e28614cd9565b5b90600052602060002001549050919050565b600e60029054906101000a900460ff1681565b610e566127c0565b73ffffffffffffffffffffffffffffffffffffffff16610e74611581565b73ffffffffffffffffffffffffffffffffffffffff1614610eca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec19061470e565b60405180910390fd5b80600d9080519060200190610ee09291906138c5565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f849061466e565b60405180910390fd5b80915050919050565b600d8054610fa390614b40565b80601f0160208091040260200160405190810160405280929190818152602001828054610fcf90614b40565b801561101c5780601f10610ff15761010080835404028352916020019161101c565b820191906000526020600020905b815481529060010190602001808311610fff57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108c9061464e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110e46127c0565b73ffffffffffffffffffffffffffffffffffffffff16611102611581565b73ffffffffffffffffffffffffffffffffffffffff1614611158576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114f9061470e565b60405180910390fd5b6111626000612bc6565b565b61116c6127c0565b73ffffffffffffffffffffffffffffffffffffffff1661118a611581565b73ffffffffffffffffffffffffffffffffffffffff16146111e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d79061470e565b60405180910390fd5b60005b8282905081101561131757600073ffffffffffffffffffffffffffffffffffffffff1683838381811061121957611218614cd9565b5b905060200201602081019061122e9190613b07565b73ffffffffffffffffffffffffffffffffffffffff161415611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127c9061472e565b60405180910390fd5b60016010600085858581811061129e5761129d614cd9565b5b90506020020160208101906112b39190613b07565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808061130f90614ba3565b9150506111e3565b505050565b600b5481565b6703782dace9d9000081565b6113366127c0565b73ffffffffffffffffffffffffffffffffffffffff16611354611581565b73ffffffffffffffffffffffffffffffffffffffff16146113aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a19061470e565b60405180910390fd5b6000811180156113d05750600c546113cd82600f54612c8c90919063ffffffff16565b11155b61140f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114069061458e565b60405180910390fd5b60005b818110156114575760006114376001611429610bad565b612c8c90919063ffffffff16565b90506114438482612ca2565b50808061144f90614ba3565b915050611412565b5061146d81600f54612c8c90919063ffffffff16565b600f819055505050565b6060600061148483611024565b905060008114156114e157600067ffffffffffffffff8111156114aa576114a9614d08565b5b6040519080825280602002602001820160405280156114d85781602001602082028036833780820191505090505b5091505061157c565b60008167ffffffffffffffff8111156114fd576114fc614d08565b5b60405190808252806020026020018201604052801561152b5781602001602082028036833780820191505090505b50905060005b82811015611575576115438582610c26565b82828151811061155657611555614cd9565b5b602002602001018181525050808061156d90614ba3565b915050611531565b8193505050505b919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546115ba90614b40565b80601f01602080910402602001604051908101604052809291908181526020018280546115e690614b40565b80156116335780601f1061160857610100808354040283529160200191611633565b820191906000526020600020905b81548152906001019060200180831161161657829003601f168201915b5050505050905090565b600e60009054906101000a900460ff1661168c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116839061454e565b60405180910390fd5b60008111801561169e5750600b548111155b6116dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d49061446e565b60405180910390fd5b6104b06116fa826116ec610bad565b612c8c90919063ffffffff16565b111561173b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117329061468e565b60405180910390fd5b6117568167058d15e176280000612cc090919063ffffffff16565b341015611798576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178f906145ee565b60405180910390fd5b6000601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414156118c257600b546117fe826117f033611024565b612c8c90919063ffffffff16565b111561183f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611836906146ce565b60405180910390fd5b60005b818110156118c05760006118676001611859610bad565b612c8c90919063ffffffff16565b90506118733382612ca2565b7fb9203d657e9c0ec8274c818292ab0f58b04e1970050716891770eb1bab5d655e81336040516118a4929190614849565b60405180910390a15080806118b890614ba3565b915050611842565b505b6001601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414156119ff576119206001600b54612c8c90919063ffffffff16565b61193b8261192d33611024565b612c8c90919063ffffffff16565b111561197c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611973906146ce565b60405180910390fd5b60005b818110156119fd5760006119a46001611996610bad565b612c8c90919063ffffffff16565b90506119b03382612ca2565b7fb9203d657e9c0ec8274c818292ab0f58b04e1970050716891770eb1bab5d655e81336040516119e1929190614849565b60405180910390a15080806119f590614ba3565b91505061197f565b505b6002601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415611b3c57611a5d6002600b54612c8c90919063ffffffff16565b611a7882611a6a33611024565b612c8c90919063ffffffff16565b1115611ab9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab0906146ce565b60405180910390fd5b60005b81811015611b3a576000611ae16001611ad3610bad565b612c8c90919063ffffffff16565b9050611aed3382612ca2565b7fb9203d657e9c0ec8274c818292ab0f58b04e1970050716891770eb1bab5d655e8133604051611b1e929190614849565b60405180910390a1508080611b3290614ba3565b915050611abc565b505b50565b611b51611b4a6127c0565b8383612cd6565b5050565b611b5d6127c0565b73ffffffffffffffffffffffffffffffffffffffff16611b7b611581565b73ffffffffffffffffffffffffffffffffffffffff1614611bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc89061470e565b60405180910390fd5b600e60029054906101000a900460ff1615600e60026101000a81548160ff021916908315150217905550565b611c056127c0565b73ffffffffffffffffffffffffffffffffffffffff16611c23611581565b73ffffffffffffffffffffffffffffffffffffffff1614611c79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c709061470e565b60405180910390fd5b60005b82829050811015611db057600073ffffffffffffffffffffffffffffffffffffffff16838383818110611cb257611cb1614cd9565b5b9050602002016020810190611cc79190613b07565b73ffffffffffffffffffffffffffffffffffffffff161415611d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d159061472e565b60405180910390fd5b600060106000858585818110611d3757611d36614cd9565b5b9050602002016020810190611d4c9190613b07565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611da890614ba3565b915050611c7c565b505050565b611dc6611dc06127c0565b83612881565b611e05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dfc9061478e565b60405180910390fd5b611e1184848484612e43565b50505050565b600e60019054906101000a900460ff16611e66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5d906147ce565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611ef2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee99061452e565b60405180910390fd5b6104b0611f0f82611f01610bad565b612c8c90919063ffffffff16565b1115611f50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f479061456e565b60405180910390fd5b600081118015611f625750600b548111155b611fa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f989061480e565b60405180910390fd5b600b54611ff682601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612c8c90919063ffffffff16565b1115612037576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202e906147ee565b60405180910390fd5b612052816703782dace9d90000612cc090919063ffffffff16565b341015612094576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208b906145ee565b60405180910390fd5b600b546120b2826120a433611024565b612c8c90919063ffffffff16565b11156120f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ea906146ce565b60405180910390fd5b60005b818110156121cb57600061211b600161210d610bad565b612c8c90919063ffffffff16565b90506001601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461216d9190614975565b9250508190555061217e3382612ca2565b7fb9203d657e9c0ec8274c818292ab0f58b04e1970050716891770eb1bab5d655e81336040516121af929190614849565b60405180910390a15080806121c390614ba3565b9150506120f6565b5050565b60606121da82612754565b612219576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122109061474e565b60405180910390fd5b60001515600e60029054906101000a900460ff16151514156122445761223d612e9f565b905061229e565b600061224e612e9f565b5111612269576040518060200160405280600081525061229b565b612271612e9f565b61227a83612f31565b60405160200161228b929190614379565b6040516020818303038152906040525b90505b919050565b6122ab6127c0565b73ffffffffffffffffffffffffffffffffffffffff166122c9611581565b73ffffffffffffffffffffffffffffffffffffffff161461231f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123169061470e565b60405180910390fd5b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600e60009054906101000a900460ff1681565b6123fa6127c0565b73ffffffffffffffffffffffffffffffffffffffff16612418611581565b73ffffffffffffffffffffffffffffffffffffffff161461246e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124659061470e565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b6124a26127c0565b73ffffffffffffffffffffffffffffffffffffffff166124c0611581565b73ffffffffffffffffffffffffffffffffffffffff1614612516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250d9061470e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612586576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257d906144ce565b60405180910390fd5b61258f81612bc6565b50565b6104b081565b600c5481565b6125a98383836126d5565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156125ec576125e781613092565b61262b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461262a5761262983826130db565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561266e5761266981613248565b6126ad565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146126ac576126ab8282613319565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061274d575061274c82613398565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661283b83610ee4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061288c82612754565b6128cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c29061460e565b60405180910390fd5b60006128d683610ee4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061294557508373ffffffffffffffffffffffffffffffffffffffff1661292d846109ba565b73ffffffffffffffffffffffffffffffffffffffff16145b806129565750612955818561234b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661297f82610ee4565b73ffffffffffffffffffffffffffffffffffffffff16146129d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129cc906144ee565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3c906145ae565b60405180910390fd5b612a5083838361347a565b612a5b6000826127c8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612aab9190614a56565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b029190614975565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612bc183838361348a565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183612c9a9190614975565b905092915050565b612cbc82826040518060200160405280600081525061348f565b5050565b60008183612cce91906149fc565b905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612d45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3c906145ce565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612e369190614431565b60405180910390a3505050565b612e4e84848461295f565b612e5a848484846134ea565b612e99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e90906144ae565b60405180910390fd5b50505050565b6060600d8054612eae90614b40565b80601f0160208091040260200160405190810160405280929190818152602001828054612eda90614b40565b8015612f275780601f10612efc57610100808354040283529160200191612f27565b820191906000526020600020905b815481529060010190602001808311612f0a57829003601f168201915b5050505050905090565b60606000821415612f79576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061308d565b600082905060005b60008214612fab578080612f9490614ba3565b915050600a82612fa491906149cb565b9150612f81565b60008167ffffffffffffffff811115612fc757612fc6614d08565b5b6040519080825280601f01601f191660200182016040528015612ff95781602001600182028036833780820191505090505b5090505b60008514613086576001826130129190614a56565b9150600a856130219190614bec565b603061302d9190614975565b60f81b81838151811061304357613042614cd9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561307f91906149cb565b9450612ffd565b8093505050505b919050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016130e884611024565b6130f29190614a56565b90506000600860008481526020019081526020016000205490508181146131d7576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160098054905061325c9190614a56565b90506000600a600084815260200190815260200160002054905060006009838154811061328c5761328b614cd9565b5b9060005260206000200154905080600983815481106132ae576132ad614cd9565b5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a60008581526020019081526020016000206000905560098054806132fd576132fc614caa565b5b6001900381819060005260206000200160009055905550505050565b600061332483611024565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061346357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613473575061347282613681565b5b9050919050565b61348583838361259e565b505050565b505050565b61349983836136eb565b6134a660008484846134ea565b6134e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134dc906144ae565b60405180910390fd5b505050565b600061350b8473ffffffffffffffffffffffffffffffffffffffff166126b2565b15613674578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026135346127c0565b8786866040518563ffffffff1660e01b815260040161355694939291906143c3565b602060405180830381600087803b15801561357057600080fd5b505af19250505080156135a157506040513d601f19601f8201168201806040525081019061359e9190613d44565b60015b613624573d80600081146135d1576040519150601f19603f3d011682016040523d82523d6000602084013e6135d6565b606091505b5060008151141561361c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613613906144ae565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613679565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561375b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613752906146ae565b60405180910390fd5b61376481612754565b156137a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161379b9061450e565b60405180910390fd5b6137b06000838361347a565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546138009190614975565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46138c16000838361348a565b5050565b8280546138d190614b40565b90600052602060002090601f0160209004810192826138f3576000855561393a565b82601f1061390c57805160ff191683800117855561393a565b8280016001018555821561393a579182015b8281111561393957825182559160200191906001019061391e565b5b509050613947919061394b565b5090565b5b8082111561396457600081600090555060010161394c565b5090565b600061397b61397684614897565b614872565b90508281526020810184848401111561399757613996614d46565b5b6139a2848285614afe565b509392505050565b60006139bd6139b8846148c8565b614872565b9050828152602081018484840111156139d9576139d8614d46565b5b6139e4848285614afe565b509392505050565b6000813590506139fb81615509565b92915050565b60008083601f840112613a1757613a16614d3c565b5b8235905067ffffffffffffffff811115613a3457613a33614d37565b5b602083019150836020820283011115613a5057613a4f614d41565b5b9250929050565b600081359050613a6681615520565b92915050565b600081359050613a7b81615537565b92915050565b600081519050613a9081615537565b92915050565b600082601f830112613aab57613aaa614d3c565b5b8135613abb848260208601613968565b91505092915050565b600082601f830112613ad957613ad8614d3c565b5b8135613ae98482602086016139aa565b91505092915050565b600081359050613b018161554e565b92915050565b600060208284031215613b1d57613b1c614d50565b5b6000613b2b848285016139ec565b91505092915050565b60008060408385031215613b4b57613b4a614d50565b5b6000613b59858286016139ec565b9250506020613b6a858286016139ec565b9150509250929050565b600080600060608486031215613b8d57613b8c614d50565b5b6000613b9b868287016139ec565b9350506020613bac868287016139ec565b9250506040613bbd86828701613af2565b9150509250925092565b60008060008060808587031215613be157613be0614d50565b5b6000613bef878288016139ec565b9450506020613c00878288016139ec565b9350506040613c1187828801613af2565b925050606085013567ffffffffffffffff811115613c3257613c31614d4b565b5b613c3e87828801613a96565b91505092959194509250565b60008060408385031215613c6157613c60614d50565b5b6000613c6f858286016139ec565b9250506020613c8085828601613a57565b9150509250929050565b60008060408385031215613ca157613ca0614d50565b5b6000613caf858286016139ec565b9250506020613cc085828601613af2565b9150509250929050565b60008060208385031215613ce157613ce0614d50565b5b600083013567ffffffffffffffff811115613cff57613cfe614d4b565b5b613d0b85828601613a01565b92509250509250929050565b600060208284031215613d2d57613d2c614d50565b5b6000613d3b84828501613a6c565b91505092915050565b600060208284031215613d5a57613d59614d50565b5b6000613d6884828501613a81565b91505092915050565b600060208284031215613d8757613d86614d50565b5b600082013567ffffffffffffffff811115613da557613da4614d4b565b5b613db184828501613ac4565b91505092915050565b600060208284031215613dd057613dcf614d50565b5b6000613dde84828501613af2565b91505092915050565b6000613df3838361435b565b60208301905092915050565b613e0881614a8a565b82525050565b6000613e1982614909565b613e238185614937565b9350613e2e836148f9565b8060005b83811015613e5f578151613e468882613de7565b9750613e518361492a565b925050600181019050613e32565b5085935050505092915050565b613e7581614a9c565b82525050565b6000613e8682614914565b613e908185614948565b9350613ea0818560208601614b0d565b613ea981614d55565b840191505092915050565b6000613ebf8261491f565b613ec98185614959565b9350613ed9818560208601614b0d565b613ee281614d55565b840191505092915050565b6000613ef88261491f565b613f02818561496a565b9350613f12818560208601614b0d565b80840191505092915050565b6000613f2b602a83614959565b9150613f3682614d66565b604082019050919050565b6000613f4e602b83614959565b9150613f5982614db5565b604082019050919050565b6000613f71603283614959565b9150613f7c82614e04565b604082019050919050565b6000613f94602683614959565b9150613f9f82614e53565b604082019050919050565b6000613fb7602583614959565b9150613fc282614ea2565b604082019050919050565b6000613fda601c83614959565b9150613fe582614ef1565b602082019050919050565b6000613ffd601f83614959565b915061400882614f1a565b602082019050919050565b6000614020602183614959565b915061402b82614f43565b604082019050919050565b6000614043603183614959565b915061404e82614f92565b604082019050919050565b6000614066602083614959565b915061407182614fe1565b602082019050919050565b6000614089602483614959565b91506140948261500a565b604082019050919050565b60006140ac601983614959565b91506140b782615059565b602082019050919050565b60006140cf601f83614959565b91506140da82615082565b602082019050919050565b60006140f2602c83614959565b91506140fd826150ab565b604082019050919050565b6000614115603883614959565b9150614120826150fa565b604082019050919050565b6000614138602a83614959565b915061414382615149565b604082019050919050565b600061415b602983614959565b915061416682615198565b604082019050919050565b600061417e602a83614959565b9150614189826151e7565b604082019050919050565b60006141a1602083614959565b91506141ac82615236565b602082019050919050565b60006141c4601783614959565b91506141cf8261525f565b602082019050919050565b60006141e7602c83614959565b91506141f282615288565b604082019050919050565b600061420a60058361496a565b9150614215826152d7565b600582019050919050565b600061422d602083614959565b915061423882615300565b602082019050919050565b6000614250601a83614959565b915061425b82615329565b602082019050919050565b6000614273602f83614959565b915061427e82615352565b604082019050919050565b6000614296602183614959565b91506142a1826153a1565b604082019050919050565b60006142b9603183614959565b91506142c4826153f0565b604082019050919050565b60006142dc602c83614959565b91506142e78261543f565b604082019050919050565b60006142ff601583614959565b915061430a8261548e565b602082019050919050565b6000614322601c83614959565b915061432d826154b7565b602082019050919050565b6000614345602083614959565b9150614350826154e0565b602082019050919050565b61436481614af4565b82525050565b61437381614af4565b82525050565b60006143858285613eed565b91506143918284613eed565b915061439c826141fd565b91508190509392505050565b60006020820190506143bd6000830184613dff565b92915050565b60006080820190506143d86000830187613dff565b6143e56020830186613dff565b6143f2604083018561436a565b81810360608301526144048184613e7b565b905095945050505050565b600060208201905081810360008301526144298184613e0e565b905092915050565b60006020820190506144466000830184613e6c565b92915050565b600060208201905081810360008301526144668184613eb4565b905092915050565b6000602082019050818103600083015261448781613f1e565b9050919050565b600060208201905081810360008301526144a781613f41565b9050919050565b600060208201905081810360008301526144c781613f64565b9050919050565b600060208201905081810360008301526144e781613f87565b9050919050565b6000602082019050818103600083015261450781613faa565b9050919050565b6000602082019050818103600083015261452781613fcd565b9050919050565b6000602082019050818103600083015261454781613ff0565b9050919050565b6000602082019050818103600083015261456781614013565b9050919050565b6000602082019050818103600083015261458781614036565b9050919050565b600060208201905081810360008301526145a781614059565b9050919050565b600060208201905081810360008301526145c78161407c565b9050919050565b600060208201905081810360008301526145e78161409f565b9050919050565b60006020820190508181036000830152614607816140c2565b9050919050565b60006020820190508181036000830152614627816140e5565b9050919050565b6000602082019050818103600083015261464781614108565b9050919050565b600060208201905081810360008301526146678161412b565b9050919050565b600060208201905081810360008301526146878161414e565b9050919050565b600060208201905081810360008301526146a781614171565b9050919050565b600060208201905081810360008301526146c781614194565b9050919050565b600060208201905081810360008301526146e7816141b7565b9050919050565b60006020820190508181036000830152614707816141da565b9050919050565b6000602082019050818103600083015261472781614220565b9050919050565b6000602082019050818103600083015261474781614243565b9050919050565b6000602082019050818103600083015261476781614266565b9050919050565b6000602082019050818103600083015261478781614289565b9050919050565b600060208201905081810360008301526147a7816142ac565b9050919050565b600060208201905081810360008301526147c7816142cf565b9050919050565b600060208201905081810360008301526147e7816142f2565b9050919050565b6000602082019050818103600083015261480781614315565b9050919050565b6000602082019050818103600083015261482781614338565b9050919050565b6000602082019050614843600083018461436a565b92915050565b600060408201905061485e600083018561436a565b61486b6020830184613dff565b9392505050565b600061487c61488d565b90506148888282614b72565b919050565b6000604051905090565b600067ffffffffffffffff8211156148b2576148b1614d08565b5b6148bb82614d55565b9050602081019050919050565b600067ffffffffffffffff8211156148e3576148e2614d08565b5b6148ec82614d55565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061498082614af4565b915061498b83614af4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156149c0576149bf614c1d565b5b828201905092915050565b60006149d682614af4565b91506149e183614af4565b9250826149f1576149f0614c4c565b5b828204905092915050565b6000614a0782614af4565b9150614a1283614af4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614a4b57614a4a614c1d565b5b828202905092915050565b6000614a6182614af4565b9150614a6c83614af4565b925082821015614a7f57614a7e614c1d565b5b828203905092915050565b6000614a9582614ad4565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614b2b578082015181840152602081019050614b10565b83811115614b3a576000848401525b50505050565b60006002820490506001821680614b5857607f821691505b60208210811415614b6c57614b6b614c7b565b5b50919050565b614b7b82614d55565b810181811067ffffffffffffffff82111715614b9a57614b99614d08565b5b80604052505050565b6000614bae82614af4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614be157614be0614c1d565b5b600182019050919050565b6000614bf782614af4565b9150614c0283614af4565b925082614c1257614c11614c4c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f43616e206f6e6c79206d696e74206f6e65206f72206d6f726520746f6b656e7360008201527f20617420612074696d6500000000000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f596f7520617265206e6f74206f6e207468652050726573616c65204c69737400600082015250565b7f53616c65206d7573742062652061637469766520746f206d696e7420546f6b6560008201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b7f507572636861736520776f756c6420657863656564206d617820737570706c7960008201527f206f662070726573616c65206576656e74000000000000000000000000000000602082015250565b7f4e6f7420656e6f7567682072657365727665206c65667420666f72207465616d600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f507572636861736520776f756c6420657863656564206d617820737570706c7960008201527f206f6620746f6b656e7300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f596f752063616e206d696e74206d61782032204e465473000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f43616e27742061646420746865206e756c6c2061646472657373000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f50726573616c65206973206e6f74206163746976650000000000000000000000600082015250565b7f50757263686173652065786365656473206d617820616c6c6f77656400000000600082015250565b7f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e73600082015250565b61551281614a8a565b811461551d57600080fd5b50565b61552981614a9c565b811461553457600080fd5b50565b61554081614aa8565b811461554b57600080fd5b50565b61555781614af4565b811461556257600080fd5b5056fea2646970667358221220aab8c430a64ea042eb0122cb9f3bf07f4607f23708f8e77bfb2fb9411b08115a64736f6c63430008070033

Deployed Bytecode

0x60806040526004361061023b5760003560e01c80637501f7411161012e578063b88d4fde116100ab578063eb8d24441161006f578063eb8d244414610855578063f285e69e14610880578063f2fde38b14610897578063f47c84c5146108c0578063fcd2a427146108eb5761023b565b8063b88d4fde1461077f578063c8496f32146107a8578063c87b56dd146107c4578063daaeec8614610801578063e985e9c5146108185761023b565b806395d89b41116100f257806395d89b41146106cf578063a0712d68146106fa578063a22cb46514610716578063a475b5dd1461073f578063b179e060146107565761023b565b80637501f741146105e8578063775cf6c71461061357806378cf19e91461063e5780638462151c146106675780638da5cb5b146106a45761023b565b80633ccfd60b116101bc5780636352211e116101805780636352211e146105035780636c0360eb1461054057806370a082311461056b578063715018a6146105a85780637204a3c9146105bf5761023b565b80633ccfd60b1461043257806342842e0e146104495780634f6ccce71461047257806354214f69146104af57806355f804b3146104da5761023b565b806318160ddd1161020357806318160ddd1461034b5780631917e5001461037657806323b872dd146103a15780632f745c59146103ca57806330f72cd4146104075761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e557806311576b791461030e575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190613d17565b610916565b6040516102749190614431565b60405180910390f35b34801561028957600080fd5b50610292610928565b60405161029f919061444c565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca9190613dba565b6109ba565b6040516102dc91906143a8565b60405180910390f35b3480156102f157600080fd5b5061030c60048036038101906103079190613c8a565b610a3f565b005b34801561031a57600080fd5b5061033560048036038101906103309190613b07565b610b57565b6040516103429190614431565b60405180910390f35b34801561035757600080fd5b50610360610bad565b60405161036d919061482e565b60405180910390f35b34801561038257600080fd5b5061038b610bba565b604051610398919061482e565b60405180910390f35b3480156103ad57600080fd5b506103c860048036038101906103c39190613b74565b610bc6565b005b3480156103d657600080fd5b506103f160048036038101906103ec9190613c8a565b610c26565b6040516103fe919061482e565b60405180910390f35b34801561041357600080fd5b5061041c610ccb565b6040516104299190614431565b60405180910390f35b34801561043e57600080fd5b50610447610cde565b005b34801561045557600080fd5b50610470600480360381019061046b9190613b74565b610daa565b005b34801561047e57600080fd5b5061049960048036038101906104949190613dba565b610dca565b6040516104a6919061482e565b60405180910390f35b3480156104bb57600080fd5b506104c4610e3b565b6040516104d19190614431565b60405180910390f35b3480156104e657600080fd5b5061050160048036038101906104fc9190613d71565b610e4e565b005b34801561050f57600080fd5b5061052a60048036038101906105259190613dba565b610ee4565b60405161053791906143a8565b60405180910390f35b34801561054c57600080fd5b50610555610f96565b604051610562919061444c565b60405180910390f35b34801561057757600080fd5b50610592600480360381019061058d9190613b07565b611024565b60405161059f919061482e565b60405180910390f35b3480156105b457600080fd5b506105bd6110dc565b005b3480156105cb57600080fd5b506105e660048036038101906105e19190613cca565b611164565b005b3480156105f457600080fd5b506105fd61131c565b60405161060a919061482e565b60405180910390f35b34801561061f57600080fd5b50610628611322565b604051610635919061482e565b60405180910390f35b34801561064a57600080fd5b5061066560048036038101906106609190613c8a565b61132e565b005b34801561067357600080fd5b5061068e60048036038101906106899190613b07565b611477565b60405161069b919061440f565b60405180910390f35b3480156106b057600080fd5b506106b9611581565b6040516106c691906143a8565b60405180910390f35b3480156106db57600080fd5b506106e46115ab565b6040516106f1919061444c565b60405180910390f35b610714600480360381019061070f9190613dba565b61163d565b005b34801561072257600080fd5b5061073d60048036038101906107389190613c4a565b611b3f565b005b34801561074b57600080fd5b50610754611b55565b005b34801561076257600080fd5b5061077d60048036038101906107789190613cca565b611bfd565b005b34801561078b57600080fd5b506107a660048036038101906107a19190613bc7565b611db5565b005b6107c260048036038101906107bd9190613dba565b611e17565b005b3480156107d057600080fd5b506107eb60048036038101906107e69190613dba565b6121cf565b6040516107f8919061444c565b60405180910390f35b34801561080d57600080fd5b506108166122a3565b005b34801561082457600080fd5b5061083f600480360381019061083a9190613b34565b61234b565b60405161084c9190614431565b60405180910390f35b34801561086157600080fd5b5061086a6123df565b6040516108779190614431565b60405180910390f35b34801561088c57600080fd5b506108956123f2565b005b3480156108a357600080fd5b506108be60048036038101906108b99190613b07565b61249a565b005b3480156108cc57600080fd5b506108d5612592565b6040516108e2919061482e565b60405180910390f35b3480156108f757600080fd5b50610900612598565b60405161090d919061482e565b60405180910390f35b6000610921826126da565b9050919050565b60606000805461093790614b40565b80601f016020809104026020016040519081016040528092919081815260200182805461096390614b40565b80156109b05780601f10610985576101008083540402835291602001916109b0565b820191906000526020600020905b81548152906001019060200180831161099357829003601f168201915b5050505050905090565b60006109c582612754565b610a04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fb906146ee565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a4a82610ee4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610abb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab29061476e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ada6127c0565b73ffffffffffffffffffffffffffffffffffffffff161480610b095750610b0881610b036127c0565b61234b565b5b610b48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3f9061462e565b60405180910390fd5b610b5283836127c8565b505050565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000600980549050905090565b67058d15e17628000081565b610bd7610bd16127c0565b82612881565b610c16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0d9061478e565b60405180910390fd5b610c2183838361295f565b505050565b6000610c3183611024565b8210610c72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c699061448e565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600e60019054906101000a900460ff1681565b610ce66127c0565b73ffffffffffffffffffffffffffffffffffffffff16610d04611581565b73ffffffffffffffffffffffffffffffffffffffff1614610d5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d519061470e565b60405180910390fd5b610d62611581565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610da7573d6000803e3d6000fd5b50565b610dc583838360405180602001604052806000815250611db5565b505050565b6000610dd4610bad565b8210610e15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0c906147ae565b60405180910390fd5b60098281548110610e2957610e28614cd9565b5b90600052602060002001549050919050565b600e60029054906101000a900460ff1681565b610e566127c0565b73ffffffffffffffffffffffffffffffffffffffff16610e74611581565b73ffffffffffffffffffffffffffffffffffffffff1614610eca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec19061470e565b60405180910390fd5b80600d9080519060200190610ee09291906138c5565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f849061466e565b60405180910390fd5b80915050919050565b600d8054610fa390614b40565b80601f0160208091040260200160405190810160405280929190818152602001828054610fcf90614b40565b801561101c5780601f10610ff15761010080835404028352916020019161101c565b820191906000526020600020905b815481529060010190602001808311610fff57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108c9061464e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110e46127c0565b73ffffffffffffffffffffffffffffffffffffffff16611102611581565b73ffffffffffffffffffffffffffffffffffffffff1614611158576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114f9061470e565b60405180910390fd5b6111626000612bc6565b565b61116c6127c0565b73ffffffffffffffffffffffffffffffffffffffff1661118a611581565b73ffffffffffffffffffffffffffffffffffffffff16146111e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d79061470e565b60405180910390fd5b60005b8282905081101561131757600073ffffffffffffffffffffffffffffffffffffffff1683838381811061121957611218614cd9565b5b905060200201602081019061122e9190613b07565b73ffffffffffffffffffffffffffffffffffffffff161415611285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127c9061472e565b60405180910390fd5b60016010600085858581811061129e5761129d614cd9565b5b90506020020160208101906112b39190613b07565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808061130f90614ba3565b9150506111e3565b505050565b600b5481565b6703782dace9d9000081565b6113366127c0565b73ffffffffffffffffffffffffffffffffffffffff16611354611581565b73ffffffffffffffffffffffffffffffffffffffff16146113aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a19061470e565b60405180910390fd5b6000811180156113d05750600c546113cd82600f54612c8c90919063ffffffff16565b11155b61140f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114069061458e565b60405180910390fd5b60005b818110156114575760006114376001611429610bad565b612c8c90919063ffffffff16565b90506114438482612ca2565b50808061144f90614ba3565b915050611412565b5061146d81600f54612c8c90919063ffffffff16565b600f819055505050565b6060600061148483611024565b905060008114156114e157600067ffffffffffffffff8111156114aa576114a9614d08565b5b6040519080825280602002602001820160405280156114d85781602001602082028036833780820191505090505b5091505061157c565b60008167ffffffffffffffff8111156114fd576114fc614d08565b5b60405190808252806020026020018201604052801561152b5781602001602082028036833780820191505090505b50905060005b82811015611575576115438582610c26565b82828151811061155657611555614cd9565b5b602002602001018181525050808061156d90614ba3565b915050611531565b8193505050505b919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546115ba90614b40565b80601f01602080910402602001604051908101604052809291908181526020018280546115e690614b40565b80156116335780601f1061160857610100808354040283529160200191611633565b820191906000526020600020905b81548152906001019060200180831161161657829003601f168201915b5050505050905090565b600e60009054906101000a900460ff1661168c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116839061454e565b60405180910390fd5b60008111801561169e5750600b548111155b6116dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d49061446e565b60405180910390fd5b6104b06116fa826116ec610bad565b612c8c90919063ffffffff16565b111561173b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117329061468e565b60405180910390fd5b6117568167058d15e176280000612cc090919063ffffffff16565b341015611798576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178f906145ee565b60405180910390fd5b6000601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414156118c257600b546117fe826117f033611024565b612c8c90919063ffffffff16565b111561183f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611836906146ce565b60405180910390fd5b60005b818110156118c05760006118676001611859610bad565b612c8c90919063ffffffff16565b90506118733382612ca2565b7fb9203d657e9c0ec8274c818292ab0f58b04e1970050716891770eb1bab5d655e81336040516118a4929190614849565b60405180910390a15080806118b890614ba3565b915050611842565b505b6001601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414156119ff576119206001600b54612c8c90919063ffffffff16565b61193b8261192d33611024565b612c8c90919063ffffffff16565b111561197c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611973906146ce565b60405180910390fd5b60005b818110156119fd5760006119a46001611996610bad565b612c8c90919063ffffffff16565b90506119b03382612ca2565b7fb9203d657e9c0ec8274c818292ab0f58b04e1970050716891770eb1bab5d655e81336040516119e1929190614849565b60405180910390a15080806119f590614ba3565b91505061197f565b505b6002601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415611b3c57611a5d6002600b54612c8c90919063ffffffff16565b611a7882611a6a33611024565b612c8c90919063ffffffff16565b1115611ab9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab0906146ce565b60405180910390fd5b60005b81811015611b3a576000611ae16001611ad3610bad565b612c8c90919063ffffffff16565b9050611aed3382612ca2565b7fb9203d657e9c0ec8274c818292ab0f58b04e1970050716891770eb1bab5d655e8133604051611b1e929190614849565b60405180910390a1508080611b3290614ba3565b915050611abc565b505b50565b611b51611b4a6127c0565b8383612cd6565b5050565b611b5d6127c0565b73ffffffffffffffffffffffffffffffffffffffff16611b7b611581565b73ffffffffffffffffffffffffffffffffffffffff1614611bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc89061470e565b60405180910390fd5b600e60029054906101000a900460ff1615600e60026101000a81548160ff021916908315150217905550565b611c056127c0565b73ffffffffffffffffffffffffffffffffffffffff16611c23611581565b73ffffffffffffffffffffffffffffffffffffffff1614611c79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c709061470e565b60405180910390fd5b60005b82829050811015611db057600073ffffffffffffffffffffffffffffffffffffffff16838383818110611cb257611cb1614cd9565b5b9050602002016020810190611cc79190613b07565b73ffffffffffffffffffffffffffffffffffffffff161415611d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d159061472e565b60405180910390fd5b600060106000858585818110611d3757611d36614cd9565b5b9050602002016020810190611d4c9190613b07565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611da890614ba3565b915050611c7c565b505050565b611dc6611dc06127c0565b83612881565b611e05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dfc9061478e565b60405180910390fd5b611e1184848484612e43565b50505050565b600e60019054906101000a900460ff16611e66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5d906147ce565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611ef2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee99061452e565b60405180910390fd5b6104b0611f0f82611f01610bad565b612c8c90919063ffffffff16565b1115611f50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f479061456e565b60405180910390fd5b600081118015611f625750600b548111155b611fa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f989061480e565b60405180910390fd5b600b54611ff682601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612c8c90919063ffffffff16565b1115612037576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202e906147ee565b60405180910390fd5b612052816703782dace9d90000612cc090919063ffffffff16565b341015612094576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208b906145ee565b60405180910390fd5b600b546120b2826120a433611024565b612c8c90919063ffffffff16565b11156120f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ea906146ce565b60405180910390fd5b60005b818110156121cb57600061211b600161210d610bad565b612c8c90919063ffffffff16565b90506001601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461216d9190614975565b9250508190555061217e3382612ca2565b7fb9203d657e9c0ec8274c818292ab0f58b04e1970050716891770eb1bab5d655e81336040516121af929190614849565b60405180910390a15080806121c390614ba3565b9150506120f6565b5050565b60606121da82612754565b612219576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122109061474e565b60405180910390fd5b60001515600e60029054906101000a900460ff16151514156122445761223d612e9f565b905061229e565b600061224e612e9f565b5111612269576040518060200160405280600081525061229b565b612271612e9f565b61227a83612f31565b60405160200161228b929190614379565b6040516020818303038152906040525b90505b919050565b6122ab6127c0565b73ffffffffffffffffffffffffffffffffffffffff166122c9611581565b73ffffffffffffffffffffffffffffffffffffffff161461231f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123169061470e565b60405180910390fd5b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600e60009054906101000a900460ff1681565b6123fa6127c0565b73ffffffffffffffffffffffffffffffffffffffff16612418611581565b73ffffffffffffffffffffffffffffffffffffffff161461246e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124659061470e565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b6124a26127c0565b73ffffffffffffffffffffffffffffffffffffffff166124c0611581565b73ffffffffffffffffffffffffffffffffffffffff1614612516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250d9061470e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612586576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257d906144ce565b60405180910390fd5b61258f81612bc6565b50565b6104b081565b600c5481565b6125a98383836126d5565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156125ec576125e781613092565b61262b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461262a5761262983826130db565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561266e5761266981613248565b6126ad565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146126ac576126ab8282613319565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061274d575061274c82613398565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661283b83610ee4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061288c82612754565b6128cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c29061460e565b60405180910390fd5b60006128d683610ee4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061294557508373ffffffffffffffffffffffffffffffffffffffff1661292d846109ba565b73ffffffffffffffffffffffffffffffffffffffff16145b806129565750612955818561234b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661297f82610ee4565b73ffffffffffffffffffffffffffffffffffffffff16146129d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129cc906144ee565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3c906145ae565b60405180910390fd5b612a5083838361347a565b612a5b6000826127c8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612aab9190614a56565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b029190614975565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612bc183838361348a565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183612c9a9190614975565b905092915050565b612cbc82826040518060200160405280600081525061348f565b5050565b60008183612cce91906149fc565b905092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612d45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3c906145ce565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612e369190614431565b60405180910390a3505050565b612e4e84848461295f565b612e5a848484846134ea565b612e99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e90906144ae565b60405180910390fd5b50505050565b6060600d8054612eae90614b40565b80601f0160208091040260200160405190810160405280929190818152602001828054612eda90614b40565b8015612f275780601f10612efc57610100808354040283529160200191612f27565b820191906000526020600020905b815481529060010190602001808311612f0a57829003601f168201915b5050505050905090565b60606000821415612f79576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061308d565b600082905060005b60008214612fab578080612f9490614ba3565b915050600a82612fa491906149cb565b9150612f81565b60008167ffffffffffffffff811115612fc757612fc6614d08565b5b6040519080825280601f01601f191660200182016040528015612ff95781602001600182028036833780820191505090505b5090505b60008514613086576001826130129190614a56565b9150600a856130219190614bec565b603061302d9190614975565b60f81b81838151811061304357613042614cd9565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561307f91906149cb565b9450612ffd565b8093505050505b919050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016130e884611024565b6130f29190614a56565b90506000600860008481526020019081526020016000205490508181146131d7576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160098054905061325c9190614a56565b90506000600a600084815260200190815260200160002054905060006009838154811061328c5761328b614cd9565b5b9060005260206000200154905080600983815481106132ae576132ad614cd9565b5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a60008581526020019081526020016000206000905560098054806132fd576132fc614caa565b5b6001900381819060005260206000200160009055905550505050565b600061332483611024565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061346357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613473575061347282613681565b5b9050919050565b61348583838361259e565b505050565b505050565b61349983836136eb565b6134a660008484846134ea565b6134e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134dc906144ae565b60405180910390fd5b505050565b600061350b8473ffffffffffffffffffffffffffffffffffffffff166126b2565b15613674578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026135346127c0565b8786866040518563ffffffff1660e01b815260040161355694939291906143c3565b602060405180830381600087803b15801561357057600080fd5b505af19250505080156135a157506040513d601f19601f8201168201806040525081019061359e9190613d44565b60015b613624573d80600081146135d1576040519150601f19603f3d011682016040523d82523d6000602084013e6135d6565b606091505b5060008151141561361c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613613906144ae565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613679565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561375b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613752906146ae565b60405180910390fd5b61376481612754565b156137a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161379b9061450e565b60405180910390fd5b6137b06000838361347a565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546138009190614975565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46138c16000838361348a565b5050565b8280546138d190614b40565b90600052602060002090601f0160209004810192826138f3576000855561393a565b82601f1061390c57805160ff191683800117855561393a565b8280016001018555821561393a579182015b8281111561393957825182559160200191906001019061391e565b5b509050613947919061394b565b5090565b5b8082111561396457600081600090555060010161394c565b5090565b600061397b61397684614897565b614872565b90508281526020810184848401111561399757613996614d46565b5b6139a2848285614afe565b509392505050565b60006139bd6139b8846148c8565b614872565b9050828152602081018484840111156139d9576139d8614d46565b5b6139e4848285614afe565b509392505050565b6000813590506139fb81615509565b92915050565b60008083601f840112613a1757613a16614d3c565b5b8235905067ffffffffffffffff811115613a3457613a33614d37565b5b602083019150836020820283011115613a5057613a4f614d41565b5b9250929050565b600081359050613a6681615520565b92915050565b600081359050613a7b81615537565b92915050565b600081519050613a9081615537565b92915050565b600082601f830112613aab57613aaa614d3c565b5b8135613abb848260208601613968565b91505092915050565b600082601f830112613ad957613ad8614d3c565b5b8135613ae98482602086016139aa565b91505092915050565b600081359050613b018161554e565b92915050565b600060208284031215613b1d57613b1c614d50565b5b6000613b2b848285016139ec565b91505092915050565b60008060408385031215613b4b57613b4a614d50565b5b6000613b59858286016139ec565b9250506020613b6a858286016139ec565b9150509250929050565b600080600060608486031215613b8d57613b8c614d50565b5b6000613b9b868287016139ec565b9350506020613bac868287016139ec565b9250506040613bbd86828701613af2565b9150509250925092565b60008060008060808587031215613be157613be0614d50565b5b6000613bef878288016139ec565b9450506020613c00878288016139ec565b9350506040613c1187828801613af2565b925050606085013567ffffffffffffffff811115613c3257613c31614d4b565b5b613c3e87828801613a96565b91505092959194509250565b60008060408385031215613c6157613c60614d50565b5b6000613c6f858286016139ec565b9250506020613c8085828601613a57565b9150509250929050565b60008060408385031215613ca157613ca0614d50565b5b6000613caf858286016139ec565b9250506020613cc085828601613af2565b9150509250929050565b60008060208385031215613ce157613ce0614d50565b5b600083013567ffffffffffffffff811115613cff57613cfe614d4b565b5b613d0b85828601613a01565b92509250509250929050565b600060208284031215613d2d57613d2c614d50565b5b6000613d3b84828501613a6c565b91505092915050565b600060208284031215613d5a57613d59614d50565b5b6000613d6884828501613a81565b91505092915050565b600060208284031215613d8757613d86614d50565b5b600082013567ffffffffffffffff811115613da557613da4614d4b565b5b613db184828501613ac4565b91505092915050565b600060208284031215613dd057613dcf614d50565b5b6000613dde84828501613af2565b91505092915050565b6000613df3838361435b565b60208301905092915050565b613e0881614a8a565b82525050565b6000613e1982614909565b613e238185614937565b9350613e2e836148f9565b8060005b83811015613e5f578151613e468882613de7565b9750613e518361492a565b925050600181019050613e32565b5085935050505092915050565b613e7581614a9c565b82525050565b6000613e8682614914565b613e908185614948565b9350613ea0818560208601614b0d565b613ea981614d55565b840191505092915050565b6000613ebf8261491f565b613ec98185614959565b9350613ed9818560208601614b0d565b613ee281614d55565b840191505092915050565b6000613ef88261491f565b613f02818561496a565b9350613f12818560208601614b0d565b80840191505092915050565b6000613f2b602a83614959565b9150613f3682614d66565b604082019050919050565b6000613f4e602b83614959565b9150613f5982614db5565b604082019050919050565b6000613f71603283614959565b9150613f7c82614e04565b604082019050919050565b6000613f94602683614959565b9150613f9f82614e53565b604082019050919050565b6000613fb7602583614959565b9150613fc282614ea2565b604082019050919050565b6000613fda601c83614959565b9150613fe582614ef1565b602082019050919050565b6000613ffd601f83614959565b915061400882614f1a565b602082019050919050565b6000614020602183614959565b915061402b82614f43565b604082019050919050565b6000614043603183614959565b915061404e82614f92565b604082019050919050565b6000614066602083614959565b915061407182614fe1565b602082019050919050565b6000614089602483614959565b91506140948261500a565b604082019050919050565b60006140ac601983614959565b91506140b782615059565b602082019050919050565b60006140cf601f83614959565b91506140da82615082565b602082019050919050565b60006140f2602c83614959565b91506140fd826150ab565b604082019050919050565b6000614115603883614959565b9150614120826150fa565b604082019050919050565b6000614138602a83614959565b915061414382615149565b604082019050919050565b600061415b602983614959565b915061416682615198565b604082019050919050565b600061417e602a83614959565b9150614189826151e7565b604082019050919050565b60006141a1602083614959565b91506141ac82615236565b602082019050919050565b60006141c4601783614959565b91506141cf8261525f565b602082019050919050565b60006141e7602c83614959565b91506141f282615288565b604082019050919050565b600061420a60058361496a565b9150614215826152d7565b600582019050919050565b600061422d602083614959565b915061423882615300565b602082019050919050565b6000614250601a83614959565b915061425b82615329565b602082019050919050565b6000614273602f83614959565b915061427e82615352565b604082019050919050565b6000614296602183614959565b91506142a1826153a1565b604082019050919050565b60006142b9603183614959565b91506142c4826153f0565b604082019050919050565b60006142dc602c83614959565b91506142e78261543f565b604082019050919050565b60006142ff601583614959565b915061430a8261548e565b602082019050919050565b6000614322601c83614959565b915061432d826154b7565b602082019050919050565b6000614345602083614959565b9150614350826154e0565b602082019050919050565b61436481614af4565b82525050565b61437381614af4565b82525050565b60006143858285613eed565b91506143918284613eed565b915061439c826141fd565b91508190509392505050565b60006020820190506143bd6000830184613dff565b92915050565b60006080820190506143d86000830187613dff565b6143e56020830186613dff565b6143f2604083018561436a565b81810360608301526144048184613e7b565b905095945050505050565b600060208201905081810360008301526144298184613e0e565b905092915050565b60006020820190506144466000830184613e6c565b92915050565b600060208201905081810360008301526144668184613eb4565b905092915050565b6000602082019050818103600083015261448781613f1e565b9050919050565b600060208201905081810360008301526144a781613f41565b9050919050565b600060208201905081810360008301526144c781613f64565b9050919050565b600060208201905081810360008301526144e781613f87565b9050919050565b6000602082019050818103600083015261450781613faa565b9050919050565b6000602082019050818103600083015261452781613fcd565b9050919050565b6000602082019050818103600083015261454781613ff0565b9050919050565b6000602082019050818103600083015261456781614013565b9050919050565b6000602082019050818103600083015261458781614036565b9050919050565b600060208201905081810360008301526145a781614059565b9050919050565b600060208201905081810360008301526145c78161407c565b9050919050565b600060208201905081810360008301526145e78161409f565b9050919050565b60006020820190508181036000830152614607816140c2565b9050919050565b60006020820190508181036000830152614627816140e5565b9050919050565b6000602082019050818103600083015261464781614108565b9050919050565b600060208201905081810360008301526146678161412b565b9050919050565b600060208201905081810360008301526146878161414e565b9050919050565b600060208201905081810360008301526146a781614171565b9050919050565b600060208201905081810360008301526146c781614194565b9050919050565b600060208201905081810360008301526146e7816141b7565b9050919050565b60006020820190508181036000830152614707816141da565b9050919050565b6000602082019050818103600083015261472781614220565b9050919050565b6000602082019050818103600083015261474781614243565b9050919050565b6000602082019050818103600083015261476781614266565b9050919050565b6000602082019050818103600083015261478781614289565b9050919050565b600060208201905081810360008301526147a7816142ac565b9050919050565b600060208201905081810360008301526147c7816142cf565b9050919050565b600060208201905081810360008301526147e7816142f2565b9050919050565b6000602082019050818103600083015261480781614315565b9050919050565b6000602082019050818103600083015261482781614338565b9050919050565b6000602082019050614843600083018461436a565b92915050565b600060408201905061485e600083018561436a565b61486b6020830184613dff565b9392505050565b600061487c61488d565b90506148888282614b72565b919050565b6000604051905090565b600067ffffffffffffffff8211156148b2576148b1614d08565b5b6148bb82614d55565b9050602081019050919050565b600067ffffffffffffffff8211156148e3576148e2614d08565b5b6148ec82614d55565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061498082614af4565b915061498b83614af4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156149c0576149bf614c1d565b5b828201905092915050565b60006149d682614af4565b91506149e183614af4565b9250826149f1576149f0614c4c565b5b828204905092915050565b6000614a0782614af4565b9150614a1283614af4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614a4b57614a4a614c1d565b5b828202905092915050565b6000614a6182614af4565b9150614a6c83614af4565b925082821015614a7f57614a7e614c1d565b5b828203905092915050565b6000614a9582614ad4565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614b2b578082015181840152602081019050614b10565b83811115614b3a576000848401525b50505050565b60006002820490506001821680614b5857607f821691505b60208210811415614b6c57614b6b614c7b565b5b50919050565b614b7b82614d55565b810181811067ffffffffffffffff82111715614b9a57614b99614d08565b5b80604052505050565b6000614bae82614af4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614be157614be0614c1d565b5b600182019050919050565b6000614bf782614af4565b9150614c0283614af4565b925082614c1257614c11614c4c565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f43616e206f6e6c79206d696e74206f6e65206f72206d6f726520746f6b656e7360008201527f20617420612074696d6500000000000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f596f7520617265206e6f74206f6e207468652050726573616c65204c69737400600082015250565b7f53616c65206d7573742062652061637469766520746f206d696e7420546f6b6560008201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b7f507572636861736520776f756c6420657863656564206d617820737570706c7960008201527f206f662070726573616c65206576656e74000000000000000000000000000000602082015250565b7f4e6f7420656e6f7567682072657365727665206c65667420666f72207465616d600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f507572636861736520776f756c6420657863656564206d617820737570706c7960008201527f206f6620746f6b656e7300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f596f752063616e206d696e74206d61782032204e465473000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f43616e27742061646420746865206e756c6c2061646472657373000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f50726573616c65206973206e6f74206163746976650000000000000000000000600082015250565b7f50757263686173652065786365656473206d617820616c6c6f77656400000000600082015250565b7f43616e6e6f742070757263686173652074686973206d616e7920746f6b656e73600082015250565b61551281614a8a565b811461551d57600080fd5b50565b61552981614a9c565b811461553457600080fd5b50565b61554081614aa8565b811461554b57600080fd5b50565b61555781614af4565b811461556257600080fd5b5056fea2646970667358221220aab8c430a64ea042eb0122cb9f3bf07f4607f23708f8e77bfb2fb9411b08115a64736f6c63430008070033

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.