ETH Price: $2,549.72 (-1.97%)

Meme Kids - Gen 0 (GenesisNFT)
 

Overview

TokenID

1000012

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

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:
DontDieMemeGenesis

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

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

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";

pragma solidity >=0.8.7;

contract DontDieMemeGenesis is
    ERC721,
    Ownable,
    AccessControlEnumerable,
    ERC2981
{
    using SafeMath for uint256;
    using Strings for uint256;

    string internal baseTokenURI;
    uint256 private _baseID;
    mapping(uint256 => address) public creators;
    mapping(uint256 => uint256) public tokenSupply;
    mapping(uint256 => uint256) public tokenMaxSupply;
    mapping(uint256 => uint256) public currentTokenID;

    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant JUICING_ROLE = keccak256("JUICING_ROLE");

    constructor(
        string memory _name,
        string memory _symbol,
        address payable royaltyReceiver
    ) ERC721(_name, _symbol) {
        _setDefaultRoyalty(royaltyReceiver, 500);
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    function totalSupply(uint256 _id) public view returns (uint256) {
        return tokenSupply[_id];
    }

    function maxSupply(uint256 _id) public view returns (uint256) {
        return tokenMaxSupply[_id];
    }

    function create(uint256 _maxSupply)
        external
        onlyRole(MINTER_ROLE)
        returns (uint256 tokenId)
    {
        uint256 _baseTokenID = _getNextBaseID();
        _incrementBaseID();
        creators[_baseTokenID] = msg.sender;
        tokenSupply[_baseTokenID] = 0;
        tokenMaxSupply[_baseTokenID] = _maxSupply;
        return _baseTokenID;
    }

    function mint(address _to, uint256 _baseTokenID)
        public
        onlyRole(MINTER_ROLE)  returns (uint256)
    {
        require(
            creators[_baseTokenID] != address(0),
            "baseTokenID not been created"
        );
        require(
            tokenSupply[_baseTokenID] < tokenMaxSupply[_baseTokenID],
            "Max supply reached"
        );
        uint256 tokenID = _getNextTokenID(_baseTokenID);
        _mint(_to, tokenID);
        _incrementTokenId(_baseTokenID);
        tokenSupply[_baseTokenID] = tokenSupply[_baseTokenID].add(1);
        return tokenID;
    }

    function _getNextBaseID() private view returns (uint256) {
        return _baseID.add(1000000);
    }

    function _incrementBaseID() private {
        _baseID = _baseID.add(1000000);
    }

    function _getNextTokenID(uint256 _baseTokenID)
        private
        view
        returns (uint256)
    {
        return (currentTokenID[_baseTokenID].add(1)).add(_baseTokenID);
    }

    function _incrementTokenId(uint256 _baseTokenID) private {
        currentTokenID[_baseTokenID]++;
    }

    /// @dev Returns an URI for a given token ID
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }

    /// @dev Sets the base token URI prefix.
    function setBaseTokenURI(string memory _baseTokenURI) public onlyOwner {
        baseTokenURI = _baseTokenURI;
    }

    function tokenURI(uint256 _tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        string memory currentBaseURI = _baseURI();
        return
            bytes(currentBaseURI).length > 0
                ? string(abi.encodePacked(currentBaseURI, _tokenId.toString()))
                : "";
    }

    function setRoyaltyInfo(address receiver, uint96 feeBasisPoints)
        external
        onlyOwner
    {
        _setDefaultRoyalty(receiver, feeBasisPoints);
    }

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

    /*
        Juicing
    */
    mapping(uint256 => uint256) private juicingStarted;
    mapping(uint256 => uint256) private juicingTaskId;

    event Juiced(uint256 indexed tokenId, uint256 indexed taskId);

    event UnJuiced(uint256 indexed tokenId, uint256 indexed taskId);

    function juicingStatus(uint256 tokenId)
        external
        view
        returns (
            bool juicing,
            uint256 start,
            uint256 task
        )
    {
        start = juicingStarted[tokenId];
        task = juicingTaskId[tokenId];
        if (start != 0) {
            juicing = true;
        } else {
            juicing = false;
        }
    }

    function _beforeTokenTransfer(
        address,
        address,
        uint256 tokenId
    ) internal virtual override {
        require(juicingStarted[tokenId] == 0, "can't transfer while juicing");
    }

    function toggleJuicing(
        uint256 tokenId,
        bool juicing,
        uint256 taskId
    ) internal {
        require(taskId > 0, "invalid task id");
        if (juicing) {
            juicingStarted[tokenId] = block.timestamp;
            juicingTaskId[tokenId] = taskId;
            emit Juiced(tokenId, taskId);
        } else {
            require(taskId == juicingTaskId[tokenId], "wrong taskid");
            juicingStarted[tokenId] = 0;
            juicingTaskId[tokenId] = 0;
            emit UnJuiced(tokenId, taskId);
        }
    }

    function toggleJuicing(
        uint256[] calldata tokenIds,
        bool juicing,
        uint256 taskId
    ) external onlyRole(JUICING_ROLE) {
        uint256 n = tokenIds.length;
        for (uint256 i = 0; i < n; ++i) {
            toggleJuicing(tokenIds[i], juicing, taskId);
        }
    }
}

File 2 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not 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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits 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 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 20 : 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 6 of 20 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 7 of 20 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 8 of 20 : 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 9 of 20 : 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 20 : 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 11 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 12 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

File 13 of 20 : 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 14 of 20 : 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 15 of 20 : 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 16 of 20 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 17 of 20 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 18 of 20 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 19 of 20 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address payable","name":"royaltyReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"taskId","type":"uint256"}],"name":"Juiced","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"taskId","type":"uint256"}],"name":"UnJuiced","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"JUICING_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"create","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"creators","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"currentTokenID","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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"juicingStatus","outputs":[{"internalType":"bool","name":"juicing","type":"bool"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"task","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_baseTokenID","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeBasisPoints","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bool","name":"juicing","type":"bool"},{"internalType":"uint256","name":"taskId","type":"uint256"}],"name":"toggleJuicing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenSupply","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":"uint256","name":"_id","type":"uint256"}],"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"}]

60806040523480156200001157600080fd5b50604051620059d7380380620059d78339818101604052810190620000379190620006fa565b8282816000908051906020019062000051929190620005b5565b5080600190805190602001906200006a929190620005b5565b5050506200008d62000081620000bf60201b60201c565b620000c760201b60201c565b620000a1816101f46200018d60201b60201c565b620000b66000801b336200033160201b60201c565b50505062000a81565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200019d6200037960201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620001fe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001f590620007e2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000271576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002689062000804565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600960008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6200034882826200038360201b620018cc1760201c565b6200037481600860008581526020019081526020016000206200047560201b620019ad1790919060201c565b505050565b6000612710905090565b620003958282620004ad60201b60201c565b620004715760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555062000416620000bf60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620004a5836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200051860201b60201c565b905092915050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006200052c83836200059260201b60201c565b620005875782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506200058c565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b828054620005c39062000900565b90600052602060002090601f016020900481019282620005e7576000855562000633565b82601f106200060257805160ff191683800117855562000633565b8280016001018555821562000633579182015b828111156200063257825182559160200191906001019062000615565b5b50905062000642919062000646565b5090565b5b808211156200066157600081600090555060010162000647565b5090565b60006200067c62000676846200084f565b62000826565b9050828152602081018484840111156200069b576200069a620009cf565b5b620006a8848285620008ca565b509392505050565b600081519050620006c18162000a67565b92915050565b600082601f830112620006df57620006de620009ca565b5b8151620006f184826020860162000665565b91505092915050565b600080600060608486031215620007165762000715620009d9565b5b600084015167ffffffffffffffff811115620007375762000736620009d4565b5b6200074586828701620006c7565b935050602084015167ffffffffffffffff811115620007695762000768620009d4565b5b6200077786828701620006c7565b92505060406200078a86828701620006b0565b9150509250925092565b6000620007a3602a8362000885565b9150620007b082620009ef565b604082019050919050565b6000620007ca60198362000885565b9150620007d78262000a3e565b602082019050919050565b60006020820190508181036000830152620007fd8162000794565b9050919050565b600060208201905081810360008301526200081f81620007bb565b9050919050565b60006200083262000845565b905062000840828262000936565b919050565b6000604051905090565b600067ffffffffffffffff8211156200086d576200086c6200099b565b5b6200087882620009de565b9050602081019050919050565b600082825260208201905092915050565b6000620008a382620008aa565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620008ea578082015181840152602081019050620008cd565b83811115620008fa576000848401525b50505050565b600060028204905060018216806200091957607f821691505b6020821081141562000930576200092f6200096c565b5b50919050565b6200094182620009de565b810181811067ffffffffffffffff821117156200096357620009626200099b565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b62000a728162000896565b811462000a7e57600080fd5b50565b614f468062000a916000396000f3fe608060405234801561001057600080fd5b506004361061023c5760003560e01c8063780900dc1161013b578063bd85b039116100b8578063d53913931161007c578063d53913931461075c578063d547741f1461077a578063e985e9c514610796578063f2fde38b146107c6578063f4896d0e146107e25761023c565b8063bd85b0391461066a578063be77ccf51461069a578063c87b56dd146106cc578063ca15c873146106fc578063cd53d08e1461072c5761023c565b806394ac9968116100ff57806394ac9968146105da57806395d89b41146105f6578063a217fddf14610614578063a22cb46514610632578063b88d4fde1461064e5761023c565b8063780900dc146104fc578063869f75941461052c5780638da5cb5b1461055c5780639010d07c1461057a57806391d14854146105aa5761023c565b80632a55205a116101c957806340c10f191161018d57806340c10f191461044657806342842e0e146104765780636352211e1461049257806370a08231146104c2578063715018a6146104f25761023c565b80632a55205a146103a35780632f2ff15d146103d457806330176e13146103f0578063356ea6c61461040c57806336568abe1461042a5761023c565b8063081812fc11610210578063081812fc146102db578063095ea7b31461030b57806323b872dd14610327578063248a9ca3146103435780632693ebf2146103735761023c565b80624221f01461024157806301ffc9a71461027157806302fa7c47146102a157806306fdde03146102bd575b600080fd5b61025b600480360381019061025691906139f5565b610812565b604051610268919061434c565b60405180910390f35b61028b60048036038101906102869190613952565b61082a565b6040516102989190613fbd565b60405180910390f35b6102bb60048036038101906102b691906137f1565b61083c565b005b6102c56108c6565b6040516102d2919061402a565b60405180910390f35b6102f560048036038101906102f091906139f5565b610958565b6040516103029190613f2d565b60405180910390f35b610325600480360381019061032091906137b1565b6109dd565b005b610341600480360381019061033c919061369b565b610af5565b005b61035d600480360381019061035891906138a5565b610b55565b60405161036a919061400f565b60405180910390f35b61038d600480360381019061038891906139f5565b610b75565b60405161039a919061434c565b60405180910390f35b6103bd60048036038101906103b89190613a22565b610b8d565b6040516103cb929190613f94565b60405180910390f35b6103ee60048036038101906103e991906138d2565b610d78565b005b61040a600480360381019061040591906139ac565b610d99565b005b610414610e2f565b604051610421919061400f565b60405180910390f35b610444600480360381019061043f91906138d2565b610e53565b005b610460600480360381019061045b91906137b1565b610ed6565b60405161046d919061434c565b60405180910390f35b610490600480360381019061048b919061369b565b611076565b005b6104ac60048036038101906104a791906139f5565b611096565b6040516104b99190613f2d565b60405180910390f35b6104dc60048036038101906104d7919061362e565b611148565b6040516104e9919061434c565b60405180910390f35b6104fa611200565b005b610516600480360381019061051191906139f5565b611288565b604051610523919061434c565b60405180910390f35b610546600480360381019061054191906139f5565b611355565b604051610553919061434c565b60405180910390f35b610564611372565b6040516105719190613f2d565b60405180910390f35b610594600480360381019061058f9190613912565b61139c565b6040516105a19190613f2d565b60405180910390f35b6105c460048036038101906105bf91906138d2565b6113cb565b6040516105d19190613fbd565b60405180910390f35b6105f460048036038101906105ef9190613831565b611436565b005b6105fe6114b1565b60405161060b919061402a565b60405180910390f35b61061c611543565b604051610629919061400f565b60405180910390f35b61064c60048036038101906106479190613771565b61154a565b005b610668600480360381019061066391906136ee565b611560565b005b610684600480360381019061067f91906139f5565b6115c2565b604051610691919061434c565b60405180910390f35b6106b460048036038101906106af91906139f5565b6115df565b6040516106c393929190613fd8565b60405180910390f35b6106e660048036038101906106e191906139f5565b61162d565b6040516106f3919061402a565b60405180910390f35b610716600480360381019061071191906138a5565b61168c565b604051610723919061434c565b60405180910390f35b610746600480360381019061074191906139f5565b6116b0565b6040516107539190613f2d565b60405180910390f35b6107646116e3565b604051610771919061400f565b60405180910390f35b610794600480360381019061078f91906138d2565b611707565b005b6107b060048036038101906107ab919061365b565b611728565b6040516107bd9190613fbd565b60405180910390f35b6107e060048036038101906107db919061362e565b6117bc565b005b6107fc60048036038101906107f791906139f5565b6118b4565b604051610809919061434c565b60405180910390f35b600f6020528060005260406000206000915090505481565b6000610835826119dd565b9050919050565b610844611a57565b73ffffffffffffffffffffffffffffffffffffffff16610862611372565b73ffffffffffffffffffffffffffffffffffffffff16146108b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108af9061422c565b60405180910390fd5b6108c28282611a5f565b5050565b6060600080546108d590614648565b80601f016020809104026020016040519081016040528092919081815260200182805461090190614648565b801561094e5780601f106109235761010080835404028352916020019161094e565b820191906000526020600020905b81548152906001019060200180831161093157829003601f168201915b5050505050905090565b600061096382611bf5565b6109a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109999061420c565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109e882611096565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a509061424c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a78611a57565b73ffffffffffffffffffffffffffffffffffffffff161480610aa75750610aa681610aa1611a57565b611728565b5b610ae6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610add9061414c565b60405180910390fd5b610af08383611c61565b505050565b610b06610b00611a57565b82611d1a565b610b45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3c9061428c565b60405180910390fd5b610b50838383611df8565b505050565b600060076000838152602001908152602001600020600101549050919050565b600e6020528060005260406000206000915090505481565b6000806000600a60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610d235760096040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610d2d61205f565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610d5991906144b8565b610d639190614487565b90508160000151819350935050509250929050565b610d8182610b55565b610d8a81612069565b610d94838361207d565b505050565b610da1611a57565b73ffffffffffffffffffffffffffffffffffffffff16610dbf611372565b73ffffffffffffffffffffffffffffffffffffffff1614610e15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0c9061422c565b60405180910390fd5b80600b9080519060200190610e2b9291906133c2565b5050565b7f84f866be4904f319a18e8cf4db8f4b76d6ec7d27860173c125ec640353a62a7981565b610e5b611a57565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ec8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebf9061432c565b60405180910390fd5b610ed282826120b1565b5050565b60007f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610f0281612069565b600073ffffffffffffffffffffffffffffffffffffffff16600d600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610fa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9c906141ac565b60405180910390fd5b600f600084815260200190815260200160002054600e6000858152602001908152602001600020541061100d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611004906142cc565b60405180910390fd5b6000611018846120e5565b90506110248582612127565b61102d84612301565b6110546001600e60008781526020019081526020016000205461232d90919063ffffffff16565b600e600086815260200190815260200160002081905550809250505092915050565b61109183838360405180602001604052806000815250611560565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561113f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111369061418c565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b09061416c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611208611a57565b73ffffffffffffffffffffffffffffffffffffffff16611226611372565b73ffffffffffffffffffffffffffffffffffffffff161461127c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112739061422c565b60405180910390fd5b6112866000612343565b565b60007f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66112b481612069565b60006112be612409565b90506112c8612428565b33600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600e60008381526020019081526020016000208190555083600f6000838152602001908152602001600020819055508092505050919050565b6000600f6000838152602001908152602001600020549050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006113c3826008600086815260200190815260200160002061244890919063ffffffff16565b905092915050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f84f866be4904f319a18e8cf4db8f4b76d6ec7d27860173c125ec640353a62a7961146081612069565b600085859050905060005b818110156114a857611497878783818110611489576114886147e1565b5b905060200201358686612462565b806114a1906146ab565b905061146b565b50505050505050565b6060600180546114c090614648565b80601f01602080910402602001604051908101604052809291908181526020018280546114ec90614648565b80156115395780601f1061150e57610100808354040283529160200191611539565b820191906000526020600020905b81548152906001019060200180831161151c57829003601f168201915b5050505050905090565b6000801b81565b61155c611555611a57565b83836125c9565b5050565b61157161156b611a57565b83611d1a565b6115b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a79061428c565b60405180910390fd5b6115bc84848484612736565b50505050565b6000600e6000838152602001908152602001600020549050919050565b60008060006011600085815260200190815260200160002054915060126000858152602001908152602001600020549050600082146116215760019250611626565b600092505b9193909250565b60606000611639612792565b905060008151116116595760405180602001604052806000815250611684565b8061166384612824565b604051602001611674929190613ecf565b6040516020818303038152906040525b915050919050565b60006116a960086000848152602001908152602001600020612985565b9050919050565b600d6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61171082610b55565b61171981612069565b61172383836120b1565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6117c4611a57565b73ffffffffffffffffffffffffffffffffffffffff166117e2611372565b73ffffffffffffffffffffffffffffffffffffffff1614611838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182f9061422c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189f9061408c565b60405180910390fd5b6118b181612343565b50565b60106020528060005260406000206000915090505481565b6118d682826113cb565b6119a95760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061194e611a57565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006119d5836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61299a565b905092915050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a505750611a4f82612a0a565b5b9050919050565b600033905090565b611a6761205f565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abc906142ec565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2c9061430c565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600960008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611cd483611096565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d2582611bf5565b611d64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5b9061412c565b60405180910390fd5b6000611d6f83611096565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611db15750611db08185611728565b5b80611def57508373ffffffffffffffffffffffffffffffffffffffff16611dd784610958565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e1882611096565b73ffffffffffffffffffffffffffffffffffffffff1614611e6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e65906140ac565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ede576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed5906140ec565b60405180910390fd5b611ee9838383612a84565b611ef4600082611c61565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f449190614512565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f9b9190614431565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461205a838383612adf565b505050565b6000612710905090565b61207a81612075611a57565b612ae4565b50565b61208782826118cc565b6120ac81600860008581526020019081526020016000206119ad90919063ffffffff16565b505050565b6120bb8282612b81565b6120e08160086000858152602001908152602001600020612c6390919063ffffffff16565b505050565b6000612120826121126001601060008781526020019081526020016000205461232d90919063ffffffff16565b61232d90919063ffffffff16565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612197576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218e906141cc565b60405180910390fd5b6121a081611bf5565b156121e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d7906140cc565b60405180910390fd5b6121ec60008383612a84565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461223c9190614431565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46122fd60008383612adf565b5050565b601060008281526020019081526020016000206000815480929190612325906146ab565b919050555050565b6000818361233b9190614431565b905092915050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612423620f4240600c5461232d90919063ffffffff16565b905090565b612440620f4240600c5461232d90919063ffffffff16565b600c81905550565b60006124578360000183612c93565b60001c905092915050565b600081116124a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249c906141ec565b60405180910390fd5b811561250e5742601160008581526020019081526020016000208190555080601260008581526020019081526020016000208190555080837f365c7d7284755ed19e809683dfd787da1e8115e86c37612909e022f8ec85126f60405160405180910390a36125c4565b60126000848152602001908152602001600020548114612563576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255a906142ac565b60405180910390fd5b600060116000858152602001908152602001600020819055506000601260008581526020019081526020016000208190555080837f29461b419f1938cf901704b3e90c50de5ce021544424551b5d65869b605f9dc660405160405180910390a35b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262f9061410c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127299190613fbd565b60405180910390a3505050565b612741848484611df8565b61274d84848484612cbe565b61278c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127839061406c565b60405180910390fd5b50505050565b6060600b80546127a190614648565b80601f01602080910402602001604051908101604052809291908181526020018280546127cd90614648565b801561281a5780601f106127ef5761010080835404028352916020019161281a565b820191906000526020600020905b8154815290600101906020018083116127fd57829003601f168201915b5050505050905090565b6060600082141561286c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612980565b600082905060005b6000821461289e578080612887906146ab565b915050600a826128979190614487565b9150612874565b60008167ffffffffffffffff8111156128ba576128b9614810565b5b6040519080825280601f01601f1916602001820160405280156128ec5781602001600182028036833780820191505090505b5090505b60008514612979576001826129059190614512565b9150600a8561291491906146f4565b60306129209190614431565b60f81b818381518110612936576129356147e1565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856129729190614487565b94506128f0565b8093505050505b919050565b600061299382600001612e55565b9050919050565b60006129a68383612e66565b6129ff578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612a04565b600090505b92915050565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a7d5750612a7c82612e89565b5b9050919050565b6000601160008381526020019081526020016000205414612ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad19061426c565b60405180910390fd5b505050565b505050565b612aee82826113cb565b612b7d57612b138173ffffffffffffffffffffffffffffffffffffffff166014612f03565b612b218360001c6020612f03565b604051602001612b32929190613ef3565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b74919061402a565b60405180910390fd5b5050565b612b8b82826113cb565b15612c5f5760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612c04611a57565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000612c8b836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61313f565b905092915050565b6000826000018281548110612cab57612caa6147e1565b5b9060005260206000200154905092915050565b6000612cdf8473ffffffffffffffffffffffffffffffffffffffff16613253565b15612e48578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d08611a57565b8786866040518563ffffffff1660e01b8152600401612d2a9493929190613f48565b602060405180830381600087803b158015612d4457600080fd5b505af1925050508015612d7557506040513d601f19601f82011682018060405250810190612d72919061397f565b60015b612df8573d8060008114612da5576040519150601f19603f3d011682016040523d82523d6000602084013e612daa565b606091505b50600081511415612df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de79061406c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612e4d565b600190505b949350505050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612efc5750612efb82613276565b5b9050919050565b606060006002836002612f1691906144b8565b612f209190614431565b67ffffffffffffffff811115612f3957612f38614810565b5b6040519080825280601f01601f191660200182016040528015612f6b5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612fa357612fa26147e1565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613007576130066147e1565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261304791906144b8565b6130519190614431565b90505b60018111156130f1577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613093576130926147e1565b5b1a60f81b8282815181106130aa576130a96147e1565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806130ea9061461e565b9050613054565b5060008414613135576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312c9061404c565b60405180910390fd5b8091505092915050565b600080836001016000848152602001908152602001600020549050600081146132475760006001826131719190614512565b90506000600186600001805490506131899190614512565b90508181146131f85760008660000182815481106131aa576131a96147e1565b5b90600052602060002001549050808760000184815481106131ce576131cd6147e1565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061320c5761320b6147b2565b5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061324d565b60009150505b92915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061334157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613351575061335082613358565b5b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b8280546133ce90614648565b90600052602060002090601f0160209004810192826133f05760008555613437565b82601f1061340957805160ff1916838001178555613437565b82800160010185558215613437579182015b8281111561343657825182559160200191906001019061341b565b5b5090506134449190613448565b5090565b5b80821115613461576000816000905550600101613449565b5090565b60006134786134738461438c565b614367565b9050828152602081018484840111156134945761349361484e565b5b61349f8482856145dc565b509392505050565b60006134ba6134b5846143bd565b614367565b9050828152602081018484840111156134d6576134d561484e565b5b6134e18482856145dc565b509392505050565b6000813590506134f881614e86565b92915050565b60008083601f84011261351457613513614844565b5b8235905067ffffffffffffffff8111156135315761353061483f565b5b60208301915083602082028301111561354d5761354c614849565b5b9250929050565b60008135905061356381614e9d565b92915050565b60008135905061357881614eb4565b92915050565b60008135905061358d81614ecb565b92915050565b6000815190506135a281614ecb565b92915050565b600082601f8301126135bd576135bc614844565b5b81356135cd848260208601613465565b91505092915050565b600082601f8301126135eb576135ea614844565b5b81356135fb8482602086016134a7565b91505092915050565b60008135905061361381614ee2565b92915050565b60008135905061362881614ef9565b92915050565b60006020828403121561364457613643614858565b5b6000613652848285016134e9565b91505092915050565b6000806040838503121561367257613671614858565b5b6000613680858286016134e9565b9250506020613691858286016134e9565b9150509250929050565b6000806000606084860312156136b4576136b3614858565b5b60006136c2868287016134e9565b93505060206136d3868287016134e9565b92505060406136e486828701613604565b9150509250925092565b6000806000806080858703121561370857613707614858565b5b6000613716878288016134e9565b9450506020613727878288016134e9565b935050604061373887828801613604565b925050606085013567ffffffffffffffff81111561375957613758614853565b5b613765878288016135a8565b91505092959194509250565b6000806040838503121561378857613787614858565b5b6000613796858286016134e9565b92505060206137a785828601613554565b9150509250929050565b600080604083850312156137c8576137c7614858565b5b60006137d6858286016134e9565b92505060206137e785828601613604565b9150509250929050565b6000806040838503121561380857613807614858565b5b6000613816858286016134e9565b925050602061382785828601613619565b9150509250929050565b6000806000806060858703121561384b5761384a614858565b5b600085013567ffffffffffffffff81111561386957613868614853565b5b613875878288016134fe565b9450945050602061388887828801613554565b925050604061389987828801613604565b91505092959194509250565b6000602082840312156138bb576138ba614858565b5b60006138c984828501613569565b91505092915050565b600080604083850312156138e9576138e8614858565b5b60006138f785828601613569565b9250506020613908858286016134e9565b9150509250929050565b6000806040838503121561392957613928614858565b5b600061393785828601613569565b925050602061394885828601613604565b9150509250929050565b60006020828403121561396857613967614858565b5b60006139768482850161357e565b91505092915050565b60006020828403121561399557613994614858565b5b60006139a384828501613593565b91505092915050565b6000602082840312156139c2576139c1614858565b5b600082013567ffffffffffffffff8111156139e0576139df614853565b5b6139ec848285016135d6565b91505092915050565b600060208284031215613a0b57613a0a614858565b5b6000613a1984828501613604565b91505092915050565b60008060408385031215613a3957613a38614858565b5b6000613a4785828601613604565b9250506020613a5885828601613604565b9150509250929050565b613a6b81614546565b82525050565b613a7a81614558565b82525050565b613a8981614564565b82525050565b6000613a9a826143ee565b613aa48185614404565b9350613ab48185602086016145eb565b613abd8161485d565b840191505092915050565b6000613ad3826143f9565b613add8185614415565b9350613aed8185602086016145eb565b613af68161485d565b840191505092915050565b6000613b0c826143f9565b613b168185614426565b9350613b268185602086016145eb565b80840191505092915050565b6000613b3f602083614415565b9150613b4a8261486e565b602082019050919050565b6000613b62603283614415565b9150613b6d82614897565b604082019050919050565b6000613b85602683614415565b9150613b90826148e6565b604082019050919050565b6000613ba8602583614415565b9150613bb382614935565b604082019050919050565b6000613bcb601c83614415565b9150613bd682614984565b602082019050919050565b6000613bee602483614415565b9150613bf9826149ad565b604082019050919050565b6000613c11601983614415565b9150613c1c826149fc565b602082019050919050565b6000613c34602c83614415565b9150613c3f82614a25565b604082019050919050565b6000613c57603883614415565b9150613c6282614a74565b604082019050919050565b6000613c7a602a83614415565b9150613c8582614ac3565b604082019050919050565b6000613c9d602983614415565b9150613ca882614b12565b604082019050919050565b6000613cc0601c83614415565b9150613ccb82614b61565b602082019050919050565b6000613ce3602083614415565b9150613cee82614b8a565b602082019050919050565b6000613d06600f83614415565b9150613d1182614bb3565b602082019050919050565b6000613d29602c83614415565b9150613d3482614bdc565b604082019050919050565b6000613d4c602083614415565b9150613d5782614c2b565b602082019050919050565b6000613d6f602183614415565b9150613d7a82614c54565b604082019050919050565b6000613d92601c83614415565b9150613d9d82614ca3565b602082019050919050565b6000613db5603183614415565b9150613dc082614ccc565b604082019050919050565b6000613dd8600c83614415565b9150613de382614d1b565b602082019050919050565b6000613dfb601283614415565b9150613e0682614d44565b602082019050919050565b6000613e1e601783614426565b9150613e2982614d6d565b601782019050919050565b6000613e41602a83614415565b9150613e4c82614d96565b604082019050919050565b6000613e64601983614415565b9150613e6f82614de5565b602082019050919050565b6000613e87601183614426565b9150613e9282614e0e565b601182019050919050565b6000613eaa602f83614415565b9150613eb582614e37565b604082019050919050565b613ec9816145ba565b82525050565b6000613edb8285613b01565b9150613ee78284613b01565b91508190509392505050565b6000613efe82613e11565b9150613f0a8285613b01565b9150613f1582613e7a565b9150613f218284613b01565b91508190509392505050565b6000602082019050613f426000830184613a62565b92915050565b6000608082019050613f5d6000830187613a62565b613f6a6020830186613a62565b613f776040830185613ec0565b8181036060830152613f898184613a8f565b905095945050505050565b6000604082019050613fa96000830185613a62565b613fb66020830184613ec0565b9392505050565b6000602082019050613fd26000830184613a71565b92915050565b6000606082019050613fed6000830186613a71565b613ffa6020830185613ec0565b6140076040830184613ec0565b949350505050565b60006020820190506140246000830184613a80565b92915050565b600060208201905081810360008301526140448184613ac8565b905092915050565b6000602082019050818103600083015261406581613b32565b9050919050565b6000602082019050818103600083015261408581613b55565b9050919050565b600060208201905081810360008301526140a581613b78565b9050919050565b600060208201905081810360008301526140c581613b9b565b9050919050565b600060208201905081810360008301526140e581613bbe565b9050919050565b6000602082019050818103600083015261410581613be1565b9050919050565b6000602082019050818103600083015261412581613c04565b9050919050565b6000602082019050818103600083015261414581613c27565b9050919050565b6000602082019050818103600083015261416581613c4a565b9050919050565b6000602082019050818103600083015261418581613c6d565b9050919050565b600060208201905081810360008301526141a581613c90565b9050919050565b600060208201905081810360008301526141c581613cb3565b9050919050565b600060208201905081810360008301526141e581613cd6565b9050919050565b6000602082019050818103600083015261420581613cf9565b9050919050565b6000602082019050818103600083015261422581613d1c565b9050919050565b6000602082019050818103600083015261424581613d3f565b9050919050565b6000602082019050818103600083015261426581613d62565b9050919050565b6000602082019050818103600083015261428581613d85565b9050919050565b600060208201905081810360008301526142a581613da8565b9050919050565b600060208201905081810360008301526142c581613dcb565b9050919050565b600060208201905081810360008301526142e581613dee565b9050919050565b6000602082019050818103600083015261430581613e34565b9050919050565b6000602082019050818103600083015261432581613e57565b9050919050565b6000602082019050818103600083015261434581613e9d565b9050919050565b60006020820190506143616000830184613ec0565b92915050565b6000614371614382565b905061437d828261467a565b919050565b6000604051905090565b600067ffffffffffffffff8211156143a7576143a6614810565b5b6143b08261485d565b9050602081019050919050565b600067ffffffffffffffff8211156143d8576143d7614810565b5b6143e18261485d565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061443c826145ba565b9150614447836145ba565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561447c5761447b614725565b5b828201905092915050565b6000614492826145ba565b915061449d836145ba565b9250826144ad576144ac614754565b5b828204905092915050565b60006144c3826145ba565b91506144ce836145ba565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561450757614506614725565b5b828202905092915050565b600061451d826145ba565b9150614528836145ba565b92508282101561453b5761453a614725565b5b828203905092915050565b60006145518261459a565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156146095780820151818401526020810190506145ee565b83811115614618576000848401525b50505050565b6000614629826145ba565b9150600082141561463d5761463c614725565b5b600182039050919050565b6000600282049050600182168061466057607f821691505b6020821081141561467457614673614783565b5b50919050565b6146838261485d565b810181811067ffffffffffffffff821117156146a2576146a1614810565b5b80604052505050565b60006146b6826145ba565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156146e9576146e8614725565b5b600182019050919050565b60006146ff826145ba565b915061470a836145ba565b92508261471a57614719614754565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f62617365546f6b656e4944206e6f74206265656e206372656174656400000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f696e76616c6964207461736b2069640000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f63616e2774207472616e73666572207768696c65206a756963696e6700000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f77726f6e67207461736b69640000000000000000000000000000000000000000600082015250565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b614e8f81614546565b8114614e9a57600080fd5b50565b614ea681614558565b8114614eb157600080fd5b50565b614ebd81614564565b8114614ec857600080fd5b50565b614ed48161456e565b8114614edf57600080fd5b50565b614eeb816145ba565b8114614ef657600080fd5b50565b614f02816145c4565b8114614f0d57600080fd5b5056fea2646970667358221220ad7fd075d8c4c5610dffd75938fdf86fec639377df70a1b49fe804d87c6a7b2c64736f6c63430008070033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000b66a9d6298167f2d94f49fe1e24d081bf6672ad100000000000000000000000000000000000000000000000000000000000000114d656d65204b696473202d2047656e2030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a47656e657369734e465400000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061023c5760003560e01c8063780900dc1161013b578063bd85b039116100b8578063d53913931161007c578063d53913931461075c578063d547741f1461077a578063e985e9c514610796578063f2fde38b146107c6578063f4896d0e146107e25761023c565b8063bd85b0391461066a578063be77ccf51461069a578063c87b56dd146106cc578063ca15c873146106fc578063cd53d08e1461072c5761023c565b806394ac9968116100ff57806394ac9968146105da57806395d89b41146105f6578063a217fddf14610614578063a22cb46514610632578063b88d4fde1461064e5761023c565b8063780900dc146104fc578063869f75941461052c5780638da5cb5b1461055c5780639010d07c1461057a57806391d14854146105aa5761023c565b80632a55205a116101c957806340c10f191161018d57806340c10f191461044657806342842e0e146104765780636352211e1461049257806370a08231146104c2578063715018a6146104f25761023c565b80632a55205a146103a35780632f2ff15d146103d457806330176e13146103f0578063356ea6c61461040c57806336568abe1461042a5761023c565b8063081812fc11610210578063081812fc146102db578063095ea7b31461030b57806323b872dd14610327578063248a9ca3146103435780632693ebf2146103735761023c565b80624221f01461024157806301ffc9a71461027157806302fa7c47146102a157806306fdde03146102bd575b600080fd5b61025b600480360381019061025691906139f5565b610812565b604051610268919061434c565b60405180910390f35b61028b60048036038101906102869190613952565b61082a565b6040516102989190613fbd565b60405180910390f35b6102bb60048036038101906102b691906137f1565b61083c565b005b6102c56108c6565b6040516102d2919061402a565b60405180910390f35b6102f560048036038101906102f091906139f5565b610958565b6040516103029190613f2d565b60405180910390f35b610325600480360381019061032091906137b1565b6109dd565b005b610341600480360381019061033c919061369b565b610af5565b005b61035d600480360381019061035891906138a5565b610b55565b60405161036a919061400f565b60405180910390f35b61038d600480360381019061038891906139f5565b610b75565b60405161039a919061434c565b60405180910390f35b6103bd60048036038101906103b89190613a22565b610b8d565b6040516103cb929190613f94565b60405180910390f35b6103ee60048036038101906103e991906138d2565b610d78565b005b61040a600480360381019061040591906139ac565b610d99565b005b610414610e2f565b604051610421919061400f565b60405180910390f35b610444600480360381019061043f91906138d2565b610e53565b005b610460600480360381019061045b91906137b1565b610ed6565b60405161046d919061434c565b60405180910390f35b610490600480360381019061048b919061369b565b611076565b005b6104ac60048036038101906104a791906139f5565b611096565b6040516104b99190613f2d565b60405180910390f35b6104dc60048036038101906104d7919061362e565b611148565b6040516104e9919061434c565b60405180910390f35b6104fa611200565b005b610516600480360381019061051191906139f5565b611288565b604051610523919061434c565b60405180910390f35b610546600480360381019061054191906139f5565b611355565b604051610553919061434c565b60405180910390f35b610564611372565b6040516105719190613f2d565b60405180910390f35b610594600480360381019061058f9190613912565b61139c565b6040516105a19190613f2d565b60405180910390f35b6105c460048036038101906105bf91906138d2565b6113cb565b6040516105d19190613fbd565b60405180910390f35b6105f460048036038101906105ef9190613831565b611436565b005b6105fe6114b1565b60405161060b919061402a565b60405180910390f35b61061c611543565b604051610629919061400f565b60405180910390f35b61064c60048036038101906106479190613771565b61154a565b005b610668600480360381019061066391906136ee565b611560565b005b610684600480360381019061067f91906139f5565b6115c2565b604051610691919061434c565b60405180910390f35b6106b460048036038101906106af91906139f5565b6115df565b6040516106c393929190613fd8565b60405180910390f35b6106e660048036038101906106e191906139f5565b61162d565b6040516106f3919061402a565b60405180910390f35b610716600480360381019061071191906138a5565b61168c565b604051610723919061434c565b60405180910390f35b610746600480360381019061074191906139f5565b6116b0565b6040516107539190613f2d565b60405180910390f35b6107646116e3565b604051610771919061400f565b60405180910390f35b610794600480360381019061078f91906138d2565b611707565b005b6107b060048036038101906107ab919061365b565b611728565b6040516107bd9190613fbd565b60405180910390f35b6107e060048036038101906107db919061362e565b6117bc565b005b6107fc60048036038101906107f791906139f5565b6118b4565b604051610809919061434c565b60405180910390f35b600f6020528060005260406000206000915090505481565b6000610835826119dd565b9050919050565b610844611a57565b73ffffffffffffffffffffffffffffffffffffffff16610862611372565b73ffffffffffffffffffffffffffffffffffffffff16146108b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108af9061422c565b60405180910390fd5b6108c28282611a5f565b5050565b6060600080546108d590614648565b80601f016020809104026020016040519081016040528092919081815260200182805461090190614648565b801561094e5780601f106109235761010080835404028352916020019161094e565b820191906000526020600020905b81548152906001019060200180831161093157829003601f168201915b5050505050905090565b600061096382611bf5565b6109a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109999061420c565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109e882611096565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a509061424c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a78611a57565b73ffffffffffffffffffffffffffffffffffffffff161480610aa75750610aa681610aa1611a57565b611728565b5b610ae6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610add9061414c565b60405180910390fd5b610af08383611c61565b505050565b610b06610b00611a57565b82611d1a565b610b45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3c9061428c565b60405180910390fd5b610b50838383611df8565b505050565b600060076000838152602001908152602001600020600101549050919050565b600e6020528060005260406000206000915090505481565b6000806000600a60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610d235760096040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610d2d61205f565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610d5991906144b8565b610d639190614487565b90508160000151819350935050509250929050565b610d8182610b55565b610d8a81612069565b610d94838361207d565b505050565b610da1611a57565b73ffffffffffffffffffffffffffffffffffffffff16610dbf611372565b73ffffffffffffffffffffffffffffffffffffffff1614610e15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0c9061422c565b60405180910390fd5b80600b9080519060200190610e2b9291906133c2565b5050565b7f84f866be4904f319a18e8cf4db8f4b76d6ec7d27860173c125ec640353a62a7981565b610e5b611a57565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ec8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebf9061432c565b60405180910390fd5b610ed282826120b1565b5050565b60007f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610f0281612069565b600073ffffffffffffffffffffffffffffffffffffffff16600d600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610fa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9c906141ac565b60405180910390fd5b600f600084815260200190815260200160002054600e6000858152602001908152602001600020541061100d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611004906142cc565b60405180910390fd5b6000611018846120e5565b90506110248582612127565b61102d84612301565b6110546001600e60008781526020019081526020016000205461232d90919063ffffffff16565b600e600086815260200190815260200160002081905550809250505092915050565b61109183838360405180602001604052806000815250611560565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561113f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111369061418c565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b09061416c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611208611a57565b73ffffffffffffffffffffffffffffffffffffffff16611226611372565b73ffffffffffffffffffffffffffffffffffffffff161461127c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112739061422c565b60405180910390fd5b6112866000612343565b565b60007f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66112b481612069565b60006112be612409565b90506112c8612428565b33600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600e60008381526020019081526020016000208190555083600f6000838152602001908152602001600020819055508092505050919050565b6000600f6000838152602001908152602001600020549050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006113c3826008600086815260200190815260200160002061244890919063ffffffff16565b905092915050565b60006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f84f866be4904f319a18e8cf4db8f4b76d6ec7d27860173c125ec640353a62a7961146081612069565b600085859050905060005b818110156114a857611497878783818110611489576114886147e1565b5b905060200201358686612462565b806114a1906146ab565b905061146b565b50505050505050565b6060600180546114c090614648565b80601f01602080910402602001604051908101604052809291908181526020018280546114ec90614648565b80156115395780601f1061150e57610100808354040283529160200191611539565b820191906000526020600020905b81548152906001019060200180831161151c57829003601f168201915b5050505050905090565b6000801b81565b61155c611555611a57565b83836125c9565b5050565b61157161156b611a57565b83611d1a565b6115b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a79061428c565b60405180910390fd5b6115bc84848484612736565b50505050565b6000600e6000838152602001908152602001600020549050919050565b60008060006011600085815260200190815260200160002054915060126000858152602001908152602001600020549050600082146116215760019250611626565b600092505b9193909250565b60606000611639612792565b905060008151116116595760405180602001604052806000815250611684565b8061166384612824565b604051602001611674929190613ecf565b6040516020818303038152906040525b915050919050565b60006116a960086000848152602001908152602001600020612985565b9050919050565b600d6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61171082610b55565b61171981612069565b61172383836120b1565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6117c4611a57565b73ffffffffffffffffffffffffffffffffffffffff166117e2611372565b73ffffffffffffffffffffffffffffffffffffffff1614611838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182f9061422c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189f9061408c565b60405180910390fd5b6118b181612343565b50565b60106020528060005260406000206000915090505481565b6118d682826113cb565b6119a95760016007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061194e611a57565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006119d5836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61299a565b905092915050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a505750611a4f82612a0a565b5b9050919050565b600033905090565b611a6761205f565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abc906142ec565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2c9061430c565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600960008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611cd483611096565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d2582611bf5565b611d64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5b9061412c565b60405180910390fd5b6000611d6f83611096565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611db15750611db08185611728565b5b80611def57508373ffffffffffffffffffffffffffffffffffffffff16611dd784610958565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e1882611096565b73ffffffffffffffffffffffffffffffffffffffff1614611e6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e65906140ac565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ede576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed5906140ec565b60405180910390fd5b611ee9838383612a84565b611ef4600082611c61565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f449190614512565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f9b9190614431565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461205a838383612adf565b505050565b6000612710905090565b61207a81612075611a57565b612ae4565b50565b61208782826118cc565b6120ac81600860008581526020019081526020016000206119ad90919063ffffffff16565b505050565b6120bb8282612b81565b6120e08160086000858152602001908152602001600020612c6390919063ffffffff16565b505050565b6000612120826121126001601060008781526020019081526020016000205461232d90919063ffffffff16565b61232d90919063ffffffff16565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612197576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218e906141cc565b60405180910390fd5b6121a081611bf5565b156121e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d7906140cc565b60405180910390fd5b6121ec60008383612a84565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461223c9190614431565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46122fd60008383612adf565b5050565b601060008281526020019081526020016000206000815480929190612325906146ab565b919050555050565b6000818361233b9190614431565b905092915050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612423620f4240600c5461232d90919063ffffffff16565b905090565b612440620f4240600c5461232d90919063ffffffff16565b600c81905550565b60006124578360000183612c93565b60001c905092915050565b600081116124a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249c906141ec565b60405180910390fd5b811561250e5742601160008581526020019081526020016000208190555080601260008581526020019081526020016000208190555080837f365c7d7284755ed19e809683dfd787da1e8115e86c37612909e022f8ec85126f60405160405180910390a36125c4565b60126000848152602001908152602001600020548114612563576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255a906142ac565b60405180910390fd5b600060116000858152602001908152602001600020819055506000601260008581526020019081526020016000208190555080837f29461b419f1938cf901704b3e90c50de5ce021544424551b5d65869b605f9dc660405160405180910390a35b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262f9061410c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127299190613fbd565b60405180910390a3505050565b612741848484611df8565b61274d84848484612cbe565b61278c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127839061406c565b60405180910390fd5b50505050565b6060600b80546127a190614648565b80601f01602080910402602001604051908101604052809291908181526020018280546127cd90614648565b801561281a5780601f106127ef5761010080835404028352916020019161281a565b820191906000526020600020905b8154815290600101906020018083116127fd57829003601f168201915b5050505050905090565b6060600082141561286c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612980565b600082905060005b6000821461289e578080612887906146ab565b915050600a826128979190614487565b9150612874565b60008167ffffffffffffffff8111156128ba576128b9614810565b5b6040519080825280601f01601f1916602001820160405280156128ec5781602001600182028036833780820191505090505b5090505b60008514612979576001826129059190614512565b9150600a8561291491906146f4565b60306129209190614431565b60f81b818381518110612936576129356147e1565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856129729190614487565b94506128f0565b8093505050505b919050565b600061299382600001612e55565b9050919050565b60006129a68383612e66565b6129ff578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612a04565b600090505b92915050565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a7d5750612a7c82612e89565b5b9050919050565b6000601160008381526020019081526020016000205414612ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad19061426c565b60405180910390fd5b505050565b505050565b612aee82826113cb565b612b7d57612b138173ffffffffffffffffffffffffffffffffffffffff166014612f03565b612b218360001c6020612f03565b604051602001612b32929190613ef3565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b74919061402a565b60405180910390fd5b5050565b612b8b82826113cb565b15612c5f5760006007600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612c04611a57565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000612c8b836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61313f565b905092915050565b6000826000018281548110612cab57612caa6147e1565b5b9060005260206000200154905092915050565b6000612cdf8473ffffffffffffffffffffffffffffffffffffffff16613253565b15612e48578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d08611a57565b8786866040518563ffffffff1660e01b8152600401612d2a9493929190613f48565b602060405180830381600087803b158015612d4457600080fd5b505af1925050508015612d7557506040513d601f19601f82011682018060405250810190612d72919061397f565b60015b612df8573d8060008114612da5576040519150601f19603f3d011682016040523d82523d6000602084013e612daa565b606091505b50600081511415612df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de79061406c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612e4d565b600190505b949350505050565b600081600001805490509050919050565b600080836001016000848152602001908152602001600020541415905092915050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612efc5750612efb82613276565b5b9050919050565b606060006002836002612f1691906144b8565b612f209190614431565b67ffffffffffffffff811115612f3957612f38614810565b5b6040519080825280601f01601f191660200182016040528015612f6b5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612fa357612fa26147e1565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613007576130066147e1565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261304791906144b8565b6130519190614431565b90505b60018111156130f1577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613093576130926147e1565b5b1a60f81b8282815181106130aa576130a96147e1565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806130ea9061461e565b9050613054565b5060008414613135576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312c9061404c565b60405180910390fd5b8091505092915050565b600080836001016000848152602001908152602001600020549050600081146132475760006001826131719190614512565b90506000600186600001805490506131899190614512565b90508181146131f85760008660000182815481106131aa576131a96147e1565b5b90600052602060002001549050808760000184815481106131ce576131cd6147e1565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061320c5761320b6147b2565b5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061324d565b60009150505b92915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061334157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613351575061335082613358565b5b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b8280546133ce90614648565b90600052602060002090601f0160209004810192826133f05760008555613437565b82601f1061340957805160ff1916838001178555613437565b82800160010185558215613437579182015b8281111561343657825182559160200191906001019061341b565b5b5090506134449190613448565b5090565b5b80821115613461576000816000905550600101613449565b5090565b60006134786134738461438c565b614367565b9050828152602081018484840111156134945761349361484e565b5b61349f8482856145dc565b509392505050565b60006134ba6134b5846143bd565b614367565b9050828152602081018484840111156134d6576134d561484e565b5b6134e18482856145dc565b509392505050565b6000813590506134f881614e86565b92915050565b60008083601f84011261351457613513614844565b5b8235905067ffffffffffffffff8111156135315761353061483f565b5b60208301915083602082028301111561354d5761354c614849565b5b9250929050565b60008135905061356381614e9d565b92915050565b60008135905061357881614eb4565b92915050565b60008135905061358d81614ecb565b92915050565b6000815190506135a281614ecb565b92915050565b600082601f8301126135bd576135bc614844565b5b81356135cd848260208601613465565b91505092915050565b600082601f8301126135eb576135ea614844565b5b81356135fb8482602086016134a7565b91505092915050565b60008135905061361381614ee2565b92915050565b60008135905061362881614ef9565b92915050565b60006020828403121561364457613643614858565b5b6000613652848285016134e9565b91505092915050565b6000806040838503121561367257613671614858565b5b6000613680858286016134e9565b9250506020613691858286016134e9565b9150509250929050565b6000806000606084860312156136b4576136b3614858565b5b60006136c2868287016134e9565b93505060206136d3868287016134e9565b92505060406136e486828701613604565b9150509250925092565b6000806000806080858703121561370857613707614858565b5b6000613716878288016134e9565b9450506020613727878288016134e9565b935050604061373887828801613604565b925050606085013567ffffffffffffffff81111561375957613758614853565b5b613765878288016135a8565b91505092959194509250565b6000806040838503121561378857613787614858565b5b6000613796858286016134e9565b92505060206137a785828601613554565b9150509250929050565b600080604083850312156137c8576137c7614858565b5b60006137d6858286016134e9565b92505060206137e785828601613604565b9150509250929050565b6000806040838503121561380857613807614858565b5b6000613816858286016134e9565b925050602061382785828601613619565b9150509250929050565b6000806000806060858703121561384b5761384a614858565b5b600085013567ffffffffffffffff81111561386957613868614853565b5b613875878288016134fe565b9450945050602061388887828801613554565b925050604061389987828801613604565b91505092959194509250565b6000602082840312156138bb576138ba614858565b5b60006138c984828501613569565b91505092915050565b600080604083850312156138e9576138e8614858565b5b60006138f785828601613569565b9250506020613908858286016134e9565b9150509250929050565b6000806040838503121561392957613928614858565b5b600061393785828601613569565b925050602061394885828601613604565b9150509250929050565b60006020828403121561396857613967614858565b5b60006139768482850161357e565b91505092915050565b60006020828403121561399557613994614858565b5b60006139a384828501613593565b91505092915050565b6000602082840312156139c2576139c1614858565b5b600082013567ffffffffffffffff8111156139e0576139df614853565b5b6139ec848285016135d6565b91505092915050565b600060208284031215613a0b57613a0a614858565b5b6000613a1984828501613604565b91505092915050565b60008060408385031215613a3957613a38614858565b5b6000613a4785828601613604565b9250506020613a5885828601613604565b9150509250929050565b613a6b81614546565b82525050565b613a7a81614558565b82525050565b613a8981614564565b82525050565b6000613a9a826143ee565b613aa48185614404565b9350613ab48185602086016145eb565b613abd8161485d565b840191505092915050565b6000613ad3826143f9565b613add8185614415565b9350613aed8185602086016145eb565b613af68161485d565b840191505092915050565b6000613b0c826143f9565b613b168185614426565b9350613b268185602086016145eb565b80840191505092915050565b6000613b3f602083614415565b9150613b4a8261486e565b602082019050919050565b6000613b62603283614415565b9150613b6d82614897565b604082019050919050565b6000613b85602683614415565b9150613b90826148e6565b604082019050919050565b6000613ba8602583614415565b9150613bb382614935565b604082019050919050565b6000613bcb601c83614415565b9150613bd682614984565b602082019050919050565b6000613bee602483614415565b9150613bf9826149ad565b604082019050919050565b6000613c11601983614415565b9150613c1c826149fc565b602082019050919050565b6000613c34602c83614415565b9150613c3f82614a25565b604082019050919050565b6000613c57603883614415565b9150613c6282614a74565b604082019050919050565b6000613c7a602a83614415565b9150613c8582614ac3565b604082019050919050565b6000613c9d602983614415565b9150613ca882614b12565b604082019050919050565b6000613cc0601c83614415565b9150613ccb82614b61565b602082019050919050565b6000613ce3602083614415565b9150613cee82614b8a565b602082019050919050565b6000613d06600f83614415565b9150613d1182614bb3565b602082019050919050565b6000613d29602c83614415565b9150613d3482614bdc565b604082019050919050565b6000613d4c602083614415565b9150613d5782614c2b565b602082019050919050565b6000613d6f602183614415565b9150613d7a82614c54565b604082019050919050565b6000613d92601c83614415565b9150613d9d82614ca3565b602082019050919050565b6000613db5603183614415565b9150613dc082614ccc565b604082019050919050565b6000613dd8600c83614415565b9150613de382614d1b565b602082019050919050565b6000613dfb601283614415565b9150613e0682614d44565b602082019050919050565b6000613e1e601783614426565b9150613e2982614d6d565b601782019050919050565b6000613e41602a83614415565b9150613e4c82614d96565b604082019050919050565b6000613e64601983614415565b9150613e6f82614de5565b602082019050919050565b6000613e87601183614426565b9150613e9282614e0e565b601182019050919050565b6000613eaa602f83614415565b9150613eb582614e37565b604082019050919050565b613ec9816145ba565b82525050565b6000613edb8285613b01565b9150613ee78284613b01565b91508190509392505050565b6000613efe82613e11565b9150613f0a8285613b01565b9150613f1582613e7a565b9150613f218284613b01565b91508190509392505050565b6000602082019050613f426000830184613a62565b92915050565b6000608082019050613f5d6000830187613a62565b613f6a6020830186613a62565b613f776040830185613ec0565b8181036060830152613f898184613a8f565b905095945050505050565b6000604082019050613fa96000830185613a62565b613fb66020830184613ec0565b9392505050565b6000602082019050613fd26000830184613a71565b92915050565b6000606082019050613fed6000830186613a71565b613ffa6020830185613ec0565b6140076040830184613ec0565b949350505050565b60006020820190506140246000830184613a80565b92915050565b600060208201905081810360008301526140448184613ac8565b905092915050565b6000602082019050818103600083015261406581613b32565b9050919050565b6000602082019050818103600083015261408581613b55565b9050919050565b600060208201905081810360008301526140a581613b78565b9050919050565b600060208201905081810360008301526140c581613b9b565b9050919050565b600060208201905081810360008301526140e581613bbe565b9050919050565b6000602082019050818103600083015261410581613be1565b9050919050565b6000602082019050818103600083015261412581613c04565b9050919050565b6000602082019050818103600083015261414581613c27565b9050919050565b6000602082019050818103600083015261416581613c4a565b9050919050565b6000602082019050818103600083015261418581613c6d565b9050919050565b600060208201905081810360008301526141a581613c90565b9050919050565b600060208201905081810360008301526141c581613cb3565b9050919050565b600060208201905081810360008301526141e581613cd6565b9050919050565b6000602082019050818103600083015261420581613cf9565b9050919050565b6000602082019050818103600083015261422581613d1c565b9050919050565b6000602082019050818103600083015261424581613d3f565b9050919050565b6000602082019050818103600083015261426581613d62565b9050919050565b6000602082019050818103600083015261428581613d85565b9050919050565b600060208201905081810360008301526142a581613da8565b9050919050565b600060208201905081810360008301526142c581613dcb565b9050919050565b600060208201905081810360008301526142e581613dee565b9050919050565b6000602082019050818103600083015261430581613e34565b9050919050565b6000602082019050818103600083015261432581613e57565b9050919050565b6000602082019050818103600083015261434581613e9d565b9050919050565b60006020820190506143616000830184613ec0565b92915050565b6000614371614382565b905061437d828261467a565b919050565b6000604051905090565b600067ffffffffffffffff8211156143a7576143a6614810565b5b6143b08261485d565b9050602081019050919050565b600067ffffffffffffffff8211156143d8576143d7614810565b5b6143e18261485d565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061443c826145ba565b9150614447836145ba565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561447c5761447b614725565b5b828201905092915050565b6000614492826145ba565b915061449d836145ba565b9250826144ad576144ac614754565b5b828204905092915050565b60006144c3826145ba565b91506144ce836145ba565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561450757614506614725565b5b828202905092915050565b600061451d826145ba565b9150614528836145ba565b92508282101561453b5761453a614725565b5b828203905092915050565b60006145518261459a565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156146095780820151818401526020810190506145ee565b83811115614618576000848401525b50505050565b6000614629826145ba565b9150600082141561463d5761463c614725565b5b600182039050919050565b6000600282049050600182168061466057607f821691505b6020821081141561467457614673614783565b5b50919050565b6146838261485d565b810181811067ffffffffffffffff821117156146a2576146a1614810565b5b80604052505050565b60006146b6826145ba565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156146e9576146e8614725565b5b600182019050919050565b60006146ff826145ba565b915061470a836145ba565b92508261471a57614719614754565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f62617365546f6b656e4944206e6f74206265656e206372656174656400000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f696e76616c6964207461736b2069640000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f63616e2774207472616e73666572207768696c65206a756963696e6700000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f77726f6e67207461736b69640000000000000000000000000000000000000000600082015250565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b614e8f81614546565b8114614e9a57600080fd5b50565b614ea681614558565b8114614eb157600080fd5b50565b614ebd81614564565b8114614ec857600080fd5b50565b614ed48161456e565b8114614edf57600080fd5b50565b614eeb816145ba565b8114614ef657600080fd5b50565b614f02816145c4565b8114614f0d57600080fd5b5056fea2646970667358221220ad7fd075d8c4c5610dffd75938fdf86fec639377df70a1b49fe804d87c6a7b2c64736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000b66a9d6298167f2d94f49fe1e24d081bf6672ad100000000000000000000000000000000000000000000000000000000000000114d656d65204b696473202d2047656e2030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a47656e657369734e465400000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Meme Kids - Gen 0
Arg [1] : _symbol (string): GenesisNFT
Arg [2] : royaltyReceiver (address): 0xB66A9D6298167f2D94F49FE1e24D081BF6672ad1

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000b66a9d6298167f2d94f49fe1e24d081bf6672ad1
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [4] : 4d656d65204b696473202d2047656e2030000000000000000000000000000000
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 47656e657369734e465400000000000000000000000000000000000000000000


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

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