false
false
0

Contract Address Details

0x8A775850F20400Ab3937FA73e42279146A354bEF

Contract Name
NymphsNFTUpgradeable
Creator
0xa9c84f–8c7cbc at 0xe9db37–24b65d
Balance
0 METIS ( )
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
13541695
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
NymphsNFTUpgradeable




Optimization enabled
true
Compiler version
v0.8.11+commit.d7f03943




Optimization runs
200
EVM Version
default




Verified at
2022-03-24T22:42:38.928098Z

Contract source code

// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.11;



// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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 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);
            }
        }
    }
}


// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)
/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}


// OpenZeppelin Contracts v4.4.1 (access/Ownable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _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);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
/**
 * @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 IERC165Upgradeable {
    /**
     * @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);
}


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

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

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

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

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

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

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

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

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

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

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

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


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


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721MetadataUpgradeable is IERC721Upgradeable {
    /**
     * @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);
}


// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
/**
 * @dev String operations.
 */
library StringsUpgradeable {
    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);
    }
}


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.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 ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable 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.
     */
    function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __ERC721_init_unchained(name_, symbol_);
    }

    function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721Upgradeable.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 = ERC721Upgradeable.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

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

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

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

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

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

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721Upgradeable.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(ERC721Upgradeable.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(ERC721Upgradeable.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 IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721ReceiverUpgradeable.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 {}

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[44] private __gap;
}


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)
/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721EnumerableUpgradeable is IERC721Upgradeable {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)
/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable {
    function __ERC721Enumerable_init() internal onlyInitializing {
    }

    function __ERC721Enumerable_init_unchained() internal onlyInitializing {
    }
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[46] private __gap;
}


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)
/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorageUpgradeable is Initializable, ERC721Upgradeable {
    function __ERC721URIStorage_init() internal onlyInitializing {
    }

    function __ERC721URIStorage_init_unchained() internal onlyInitializing {
    }
    using StringsUpgradeable for uint256;

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

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

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

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

        return super.tokenURI(tokenId);
    }

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
/**
 * @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 ReentrancyGuardUpgradeable is Initializable {
    // 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;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _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;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}


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

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

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

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

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


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

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal onlyInitializing {
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _paused = false;
    }

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

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}


library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;

        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }

    function div(int256 a, int256 b) internal pure returns (int256) {
        require(b != -1 || a != MIN_INT256);

        return a / b;
    }

    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }

    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }
}

library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;

        return c;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0);
        return a % b;
    }
}

interface IERC20 {
    function totalSupply() external view returns (uint256);

    function balanceOf(address who) external view returns (uint256);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function transfer(address to, uint256 value) external returns (bool);

    function approve(address spender, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

	function name() external view returns (string memory);
	function symbol() external view returns (string memory);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
}

interface IPancakeSwapPair {
		event Approval(address indexed owner, address indexed spender, uint value);
		event Transfer(address indexed from, address indexed to, uint value);

		function name() external pure returns (string memory);
		function symbol() external pure returns (string memory);
		function decimals() external pure returns (uint8);
		function totalSupply() external view returns (uint);
		function balanceOf(address owner) external view returns (uint);
		function allowance(address owner, address spender) external view returns (uint);

		function approve(address spender, uint value) external returns (bool);
		function transfer(address to, uint value) external returns (bool);
		function transferFrom(address from, address to, uint value) external returns (bool);

		function DOMAIN_SEPARATOR() external view returns (bytes32);
		function PERMIT_TYPEHASH() external pure returns (bytes32);
		function nonces(address owner) external view returns (uint);

		function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

		event Mint(address indexed sender, uint amount0, uint amount1);
		event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
		event Swap(
				address indexed sender,
				uint amount0In,
				uint amount1In,
				uint amount0Out,
				uint amount1Out,
				address indexed to
		);
		event Sync(uint112 reserve0, uint112 reserve1);

		function MINIMUM_LIQUIDITY() external pure returns (uint);
		function factory() external view returns (address);
		function token0() external view returns (address);
		function token1() external view returns (address);
		function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
		function price0CumulativeLast() external view returns (uint);
		function price1CumulativeLast() external view returns (uint);
		function kLast() external view returns (uint);

		function mint(address to) external returns (uint liquidity);
		function burn(address to) external returns (uint amount0, uint amount1);
		function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
		function skim(address to) external;
		function sync() external;

		function initialize(address, address) external;
}

interface IPancakeSwapRouter {
		function factory() external pure returns (address);
		function WETH() external pure returns (address);

		function addLiquidity(
				address tokenA,
				address tokenB,
				uint amountADesired,
				uint amountBDesired,
				uint amountAMin,
				uint amountBMin,
				address to,
				uint deadline
		) external returns (uint amountA, uint amountB, uint liquidity);
		function addLiquidityETH(
				address token,
				uint amountTokenDesired,
				uint amountTokenMin,
				uint amountETHMin,
				address to,
				uint deadline
		) external payable returns (uint amountToken, uint amountETH, uint liquidity);
		function removeLiquidity(
				address tokenA,
				address tokenB,
				uint liquidity,
				uint amountAMin,
				uint amountBMin,
				address to,
				uint deadline
		) external returns (uint amountA, uint amountB);
		function removeLiquidityETH(
				address token,
				uint liquidity,
				uint amountTokenMin,
				uint amountETHMin,
				address to,
				uint deadline
		) external returns (uint amountToken, uint amountETH);
		function removeLiquidityWithPermit(
				address tokenA,
				address tokenB,
				uint liquidity,
				uint amountAMin,
				uint amountBMin,
				address to,
				uint deadline,
				bool approveMax, uint8 v, bytes32 r, bytes32 s
		) external returns (uint amountA, uint amountB);
		function removeLiquidityETHWithPermit(
				address token,
				uint liquidity,
				uint amountTokenMin,
				uint amountETHMin,
				address to,
				uint deadline,
				bool approveMax, uint8 v, bytes32 r, bytes32 s
		) external returns (uint amountToken, uint amountETH);
		function swapExactTokensForTokens(
				uint amountIn,
				uint amountOutMin,
				address[] calldata path,
				address to,
				uint deadline
		) external returns (uint[] memory amounts);
		function swapTokensForExactTokens(
				uint amountOut,
				uint amountInMax,
				address[] calldata path,
				address to,
				uint deadline
		) external returns (uint[] memory amounts);
		function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
				external
				payable
				returns (uint[] memory amounts);
		function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
				external
				returns (uint[] memory amounts);
		function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
				external
				returns (uint[] memory amounts);
		function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
				external
				payable
				returns (uint[] memory amounts);

		function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
		function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
		function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
		function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
		function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
		function removeLiquidityETHSupportingFeeOnTransferTokens(
			address token,
			uint liquidity,
			uint amountTokenMin,
			uint amountETHMin,
			address to,
			uint deadline
		) external returns (uint amountETH);
		function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
			address token,
			uint liquidity,
			uint amountTokenMin,
			uint amountETHMin,
			address to,
			uint deadline,
			bool approveMax, uint8 v, bytes32 r, bytes32 s
		) external returns (uint amountETH);
	
		function swapExactTokensForTokensSupportingFeeOnTransferTokens(
			uint amountIn,
			uint amountOutMin,
			address[] calldata path,
			address to,
			uint deadline
		) external;
		function swapExactETHForTokensSupportingFeeOnTransferTokens(
			uint amountOutMin,
			address[] calldata path,
			address to,
			uint deadline
		) external payable;
		function swapExactTokensForETHSupportingFeeOnTransferTokens(
			uint amountIn,
			uint amountOutMin,
			address[] calldata path,
			address to,
			uint deadline
		) external;
}

interface IPancakeSwapFactory {
		event PairCreated(address indexed token0, address indexed token1, address pair, uint);

		function feeTo() external view returns (address);
		function feeToSetter() external view returns (address);

		function getPair(address tokenA, address tokenB) external view returns (address pair);
		function allPairs(uint) external view returns (address pair);
		function allPairsLength() external view returns (uint);

		function createPair(address tokenA, address tokenB) external returns (address pair);

		function setFeeTo(address) external;
		function setFeeToSetter(address) external;
}

interface IDividendDistributor {
    function setDistributionCriteria(uint256 _minPeriod, uint256 _minDistribution) external;
    function setShare(address shareholder, uint256 amount) external;
    function deposit() external payable;
    function process(uint256 gas) external;
}

interface IAresFinance {
	function balanceOf(address who) external view returns (uint256);
	function firePit() external returns (address);
	function secureTransfer(address _from, address _to, uint256 _amount) external returns (bool);
	function claimRewardTo(address _account, uint256 _amount) external;
}


interface IRandomGenerator {
    function generateNextRandomVariable() external returns (uint256);
}


// Optimizations:
// - Cleaner code, uses modifiers instead of repetitive code
// - Properly isolated contracts
// - Uses external instead of public (less gas)
// - Add liquidity once instead of dumping coins constantly (less gas)
// - Accept any amount for node, not just round numbers
// - Safer, using reetrancy protection and more logical-thinking code
contract NymphsNFTUpgradeable is
    Initializable,
    ERC721Upgradeable,
    ERC721EnumerableUpgradeable,
    ERC721URIStorageUpgradeable,
    PausableUpgradeable,
    OwnableUpgradeable,
    ReentrancyGuardUpgradeable
{
    using CountersUpgradeable for CountersUpgradeable.Counter;

    struct NymphInfoEntity {
        NymphEntity troop;
        uint256 pendingRewards;
        uint256 rewardPerDay;
    }

    struct NymphEntity {
        uint256 id;
        // nymphType means that
        //      1: Sky Nymph
        //      2: Meadow Nymph
        //      3: Sea Nymph
        uint256 nymphType;
        string name;
        uint256 creationTime;
        uint256 lastClaimedTime;
        uint256 totalClaimed;
        bool exists;
        uint256 reserve1;
        uint256 reserve2;
        uint256 reserve3;
        uint256 reserve4;
    }

    CountersUpgradeable.Counter private _nymphCounter;

    mapping(uint256 => NymphEntity) private _nymphs;

    uint256 public MAX_NYMPHS;
    uint256 public mintFeeInMetis1;
    uint256 public mintFeeInMetis2;
    uint256 public mintFeeInMetis3;

    uint256 public reward1PerDayInARES;
    uint256 public reward2PerDayInARES;
    uint256 public reward3PerDayInARES;

    uint256 public firstPeriod;
    uint256 public secondPeriod;

    uint256 public earlyWithdrawalFee;

    uint256 public skyNymphRemaining;
    uint256 public meadowNymphRemaining;
    uint256 public seaNymphRemaining;

    address public aresTokenAddress;
    address public randomGeneratorAddress;

    address[] public shareAddress;
    uint32[] public sharePercentage;

    mapping (address => bool) public isFeeExempt;
    mapping (address => bool) public blackList;
    mapping (bytes32 => bool) private nameOccupied;

    modifier aresSet() {
        require(aresTokenAddress != address(0), "Nymphs: Ares Token is not set");
        _;
    }

    modifier isNotBlacklisted() {
        address _sender = _msgSender();
        require(!blackList[_sender], "Blacklisted");
        _;
    }

    event Claim(
        address indexed account,
        uint256 indexed nymphId,
        uint256 claimAmount
    );

    event ClaimAll(
        address indexed account,
        uint256[] indexed affectedNymphs,
        uint256 claimAmount
    );

    event Create(
        address indexed account,
        uint256 indexed newNymphId,
        uint256 nymphType
    );

    function initialize() external initializer {
        __ERC721_init("Ares Ecosystem", "NYMPHS");
        __Ownable_init();
        __ERC721Enumerable_init();
        __ReentrancyGuard_init();
        __Pausable_init();

        // Initialize contract
        MAX_NYMPHS = 3000;
        skyNymphRemaining = 300;
        meadowNymphRemaining = 600;
        seaNymphRemaining = 2100;

        mintFeeInMetis1 = 300 * (10 ** 15); // 1 METIS = 10 ** 18
        mintFeeInMetis2 = 275 * (10 ** 15); // 1 METIS = 10 ** 18
        mintFeeInMetis3 = 250 * (10 ** 15); // 1 METIS = 10 ** 18

        reward1PerDayInARES = 10 * (10 ** 5); // 10 ARES
        reward2PerDayInARES = 5 * (10 ** 5); // 5 ARES
        reward3PerDayInARES = 25 * (10 ** 4); // 2.5 ARES

        firstPeriod = 7 days;
        secondPeriod = 7 days;

        earlyWithdrawalFee = 5000;

        aresTokenAddress = 0x605C79b5c60A9d4675C87146d57D275624335381;
        isFeeExempt[address(this)] = true;
        isFeeExempt[msg.sender] = true;

        shareAddress = new address[](3);
        shareAddress[0] = 0xb48d4b5ce71A0351BD526f357D408f803D98351d;
        shareAddress[1] = 0xb48d4b5ce71A0351BD526f357D408f803D98351d;
        shareAddress[2] = 0xa9C84F63CF5b6C68600fFbAC3FAb1B74368c7CbC;

        sharePercentage = new uint32[](2);
        sharePercentage[0] = 6500;
        sharePercentage[1] = 2500;
    }

    receive() external payable {        
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override(ERC721URIStorageUpgradeable, ERC721Upgradeable)
        returns (string memory)
    {
        NymphEntity storage nymph = _nymphs[tokenId];

        if (nymph.nymphType == 1)
            return "https://ipfs.io/ipfs/QmT6GmnFXcKgK8S8ze651Gx1LwrQN3oHcjWTtCyN1b7frw/SkyNymph.json";
        else if (nymph.nymphType == 2)
            return "https://ipfs.io/ipfs/QmT6GmnFXcKgK8S8ze651Gx1LwrQN3oHcjWTtCyN1b7frw/MeadowNymph.json";
        else if (nymph.nymphType == 3)
            return "https://ipfs.io/ipfs/QmT6GmnFXcKgK8S8ze651Gx1LwrQN3oHcjWTtCyN1b7frw/SeaNymph.json";

        return "";
    }

    function updateShareInformation(address[] memory _shareAddresses, uint32[] memory _sharePercentages) public onlyOwner {
        require(
            _shareAddresses.length > 0, "Nymphs: Addresses array length must be greater than zero"
        );

        require(
            _shareAddresses.length == _sharePercentages.length + 1, "Nymphs: arrays length mismatch. Remember last address receives the remnant."
        );

        shareAddress = new address[](_shareAddresses.length);
        sharePercentage = new uint32[](_sharePercentages.length);

        uint256 i;
        for (i = 0; i < shareAddress.length; i ++) {
            shareAddress[i] = _shareAddresses[i];    
            if (i + 1 < shareAddress.length) {
                sharePercentage[i] = _sharePercentages[i];
            }
        }
    }

    function distributeShares(uint256 amount) private {
        uint256 totalRemaining = amount;

        for (uint256 i = 0; i < shareAddress.length; i++) {
            if (shareAddress.length == i + 1) {
                // Send remaining to the last address
                if (totalRemaining > 0) {
                    (bool success, ) = payable(shareAddress[i]).call{
                        value: totalRemaining,
                        gas: 30000
                    }("");
                }
            } else {
                uint256 shareAmount = (amount * sharePercentage[i]) / 10000;
                totalRemaining -= shareAmount;
                if (shareAmount > 0) {
                    (bool success, ) = payable(shareAddress[i]).call{
                        value: shareAmount,
                        gas: 30000
                    }("");
                }
            }
        }
    }

    function createNymph(uint256 mintCount) external payable nonReentrant whenNotPaused isNotBlacklisted returns (uint256) {
        address sender = _msgSender();

        // require(
        //     (bytes(nymphName).length > 0 && bytes(nymphName).length < 32) && isNameAvailable(nymphName),
        //     "Nymphs: name not valid or available"
        // );

        require (mintCount > 0 && mintCount <= 10, "Mint count invalid");

        if (!isFeeExempt[sender]) {
            uint256 _mintFeeInMetis = 0;
            if (mintCount == 1) {
                _mintFeeInMetis = mintFeeInMetis1;
            } else if (mintCount <= 5) {
                _mintFeeInMetis = mintFeeInMetis2 * mintCount;
            } else {
                _mintFeeInMetis = mintFeeInMetis3 * mintCount;
            }
            require(msg.value >= _mintFeeInMetis, "Nymphs: Insufficient currency to mint a new nymph");

            uint256 remnant = msg.value - _mintFeeInMetis;
            if (remnant > 0) {
                (bool success, ) = payable(sender).call{
                    value: remnant,
                    gas: 30000
                }("");
            }

            distributeShares(_mintFeeInMetis);
        }

        uint256 ret = 0;
        uint256 i;
        for (i = 0; i < mintCount; i ++) {
            uint256 _tmpRet = innerCreateNymph();
            if (ret == 0) ret = _tmpRet;
        }

        return ret;
    }

    function innerCreateNymph() internal aresSet returns (uint256) {
        address sender = _msgSender();

        uint256 _rand = IRandomGenerator(randomGeneratorAddress).generateNextRandomVariable();
        uint256 totalRemaining = skyNymphRemaining + meadowNymphRemaining + seaNymphRemaining;
        require(totalRemaining > 0, "No Nymph to mint");

        uint256 newType = 0;

        uint256 _nVal = (_rand % totalRemaining);
        if (_nVal < skyNymphRemaining) {
            newType = 1;
        } else if (_nVal < skyNymphRemaining + meadowNymphRemaining) {
            newType = 2;
        } else {
            newType = 3;
        }

        return innerMint(sender, newType);
    }

    function innerMint(address _sender, uint256 _nymphType) internal returns (uint256) {
        if (_nymphType == 1) {
            skyNymphRemaining --;
        } else if (_nymphType == 2) {
            meadowNymphRemaining --;
        } else if (_nymphType == 3) {
            seaNymphRemaining --;
        }

        require(_nymphCounter.current() < MAX_NYMPHS, "All have been minted out");
        _nymphCounter.increment();

        uint256 newNymphId = _nymphCounter.current();
        uint256 currentTime = block.timestamp;

        _nymphs[newNymphId] = NymphEntity({
            id: newNymphId,
            // nymphType means that
            //      1: Sky Nymph
            //      2: Meadow Nymph
            //      3: Sea Nymph
            nymphType: _nymphType,
            name: "",
            creationTime: currentTime,
            lastClaimedTime: currentTime,
            totalClaimed: 0,
            exists: true,
            reserve1: 0,
            reserve2: 0,
            reserve3: 0,
            reserve4: 0
        });

        _mint(_sender, newNymphId);

        emit Create(_sender, newNymphId, _nymphType);
        return newNymphId;
    }

    function presaleMint(address _to, uint256 _nymphType, uint256 _count) external onlyOwner {
        for (uint256 i = 0; i < _count; i ++) {
            innerMint(_to, _nymphType);
        }
    }

    // function setNymphName(
    //     string memory nymphName,
    //     uint256 _nymphId
    // ) external whenNotPaused isNotBlacklisted {
    //     address sender = _msgSender();

    //     require(
    //         (ownerOf(_nymphId) == sender) && (bytes(nymphName).length >= 1 && bytes(nymphName).length < 32) && isNameAvailable(nymphName),
    //         "Nymphs: Rename context invalid"
    //     );

    //     NymphEntity storage _nymph = _nymphs[_nymphId];

    //     nameOccupied[keccak256(abi.encodePacked(_nymph.name))] = false;
    //     nameOccupied[keccak256(abi.encodePacked(nymphName))] = true;

    //     _nymph.name = nymphName;
    // }

    function claim(uint256 _nymphId)
        public
        nonReentrant
        whenNotPaused
        isNotBlacklisted
        aresSet
    {
        address account = _msgSender();
        require(ownerOf(_nymphId) == account, "Not owner of the Nymph");

        uint256 claimAmount = _getNymphsClaimRewards(_nymphId);
        IAresFinance(aresTokenAddress).claimRewardTo(account, claimAmount);

        emit Claim(account, _nymphId, claimAmount);
    }

    function claimAll()
        external
        nonReentrant
        whenNotPaused
        isNotBlacklisted
        aresSet
    {
        address account = _msgSender();
        require(balanceOf(account) > 0, "No Nymph holder");

        uint256 claimTotal = 0;

        uint256[] memory nymphsOwned = getNymphIdsOf(account);
        for (uint256 i = 0; i < nymphsOwned.length; i++) {
            uint256 claimAmount = _getNymphsClaimRewards(nymphsOwned[i]);
            claimTotal += claimAmount;
        }

        IAresFinance(aresTokenAddress).claimRewardTo(account, claimTotal);

        emit ClaimAll(account, nymphsOwned, claimTotal);
    }

    function _getNymphsClaimRewards(uint256 _nymphId)
        private
        returns (uint256)
    {
        NymphEntity storage _nymph = _nymphs[_nymphId];
        uint256 curTimeStamp = block.timestamp;

        uint256 reward = calculateReward(_nymph, curTimeStamp);
        // fee to claim in a week after mint.
        if (curTimeStamp < _nymph.creationTime + firstPeriod && !isFeeExempt[_msgSender()]) {
            reward = reward * (10000 - earlyWithdrawalFee) / 10000;
        }
        _nymph.totalClaimed += reward;
        _nymph.lastClaimedTime = curTimeStamp;

        return reward;
    }

    function calculateReward(NymphEntity memory _nymph, uint256 when)
        private
        view
        returns (uint256)
    {
        return _calculateRewardsFromValue(
            _nymph.nymphType,
            _nymph.creationTime,
            _nymph.lastClaimedTime,
            when
        );
    }

    function rewardPerDayFor(NymphEntity memory _nymph, uint256 when)
        private
        view
        returns (uint256)
    {
        return _calculateRewardsFromValue(
                _nymph.nymphType,
                _nymph.creationTime,
                when,
                when + (24 hours)
            );
    }

    function _calculateRewardsFromValue(
        uint256 _nymphType,
        uint256 initialTime,
        uint256 startTime,
        uint256 endTime
    ) private view returns (uint256) {
        require(
            initialTime <= startTime && startTime <= endTime,
            "calc: Time order is wrong"
        );

        uint256 r1 = 0;
        uint256 r2 = 0;
        uint256 r3 = 0;
        if (_nymphType == 1) { // Sky Nymph
            r1 = reward1PerDayInARES;
            r2 = reward2PerDayInARES;
            r3 = reward3PerDayInARES;
        } else if (_nymphType == 2) { // Meadow Nymph
            r1 = reward2PerDayInARES;
            r2 = reward3PerDayInARES;
            r3 = reward3PerDayInARES;
        } else if (_nymphType == 3) { // Sea Nymph
            r1 = reward3PerDayInARES;
            r2 = reward3PerDayInARES;
            r3 = reward3PerDayInARES;
        }

        uint256 s2 = initialTime + firstPeriod; // 1 week
        uint256 s3 = s2 + secondPeriod; // 1 week

        uint256 retValue = 0;
        if (startTime < s2) {
            if (endTime < s2) {
                retValue = r1 * (endTime - startTime);
            } else if (endTime < s3){
                retValue = r1 * (s2 - startTime) + r2 * (endTime - s2);
            } else {
                retValue = r1 * (s2 - startTime) + r2 * (s3 - s2) + r3 * (endTime - s3);
            }
        } else if (startTime < s3) {
            if (endTime < s3){
                retValue = r2 * (endTime - startTime);
            } else {
                retValue = r2 * (s3 - startTime) + r3 * (endTime - s3);
            }
        } else {
            retValue = r3 * (endTime - startTime);
        }

        return retValue / (1 days);
    }

    function nymphExists(uint256 _nymphId) private view returns (bool) {
        require(_nymphId > 0, "Nymphs: Id must be higher than zero");
        NymphEntity storage _nymph = _nymphs[_nymphId];
        if (_nymph.exists) {
            return true;
        }
        return false;
    }

    // function isNameAvailable(string memory _nymphName)
    //     public
    //     view
    //     returns (bool)
    // {
    //     return !nameOccupied[keccak256(abi.encodePacked(_nymphName))];
    // }

    function getNymphIdsOf(address account)
        public
        view
        returns (uint256[] memory)
    {
        uint256 numberOfNymphs = balanceOf(account);
        uint256[] memory nymphIds = new uint256[](numberOfNymphs);
        for (uint256 i = 0; i < numberOfNymphs; i++) {
            uint256 _nymphId = tokenOfOwnerByIndex(account, i);
            require(nymphExists(_nymphId));
            nymphIds[i] = _nymphId;
        }
        return nymphIds;
    }

    function getNymphsByIds(uint256[] memory _nymphIds)
        external
        view
        returns (NymphInfoEntity[] memory)
    {
        uint256 when = block.timestamp;
        NymphInfoEntity[] memory nymphsInfo = new NymphInfoEntity[](
            _nymphIds.length
        );
        for (uint256 i = 0; i < _nymphIds.length; i++) {
            uint256 _nymphId = _nymphIds[i];
            NymphEntity storage _nymph = _nymphs[_nymphId];
            nymphsInfo[i] = NymphInfoEntity(
                _nymph,
                calculateReward(_nymph, when),
                rewardPerDayFor(_nymph, when)
            );
        }
        return nymphsInfo;
    }

    // Mandatory overrides

    function _burn(uint256 tokenId)
        internal
        override(ERC721URIStorageUpgradeable, ERC721Upgradeable)
        isNotBlacklisted
    {
        // super._burn(tokenId);
        // ERC721Upgradeable._burn(tokenId);
        ERC721URIStorageUpgradeable._burn(tokenId);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    )
        internal
        virtual
        override(ERC721Upgradeable, ERC721EnumerableUpgradeable)
        isNotBlacklisted
    {
        // NymphEntity storage _nymph = _nymphs[tokenId];
        // all the restriction for Nymph NFTs here.
        
        ERC721Upgradeable._beforeTokenTransfer(from, to, tokenId);
        ERC721EnumerableUpgradeable._beforeTokenTransfer(from, to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721Upgradeable, ERC721EnumerableUpgradeable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    // Owner functions

    function pause(bool _set) external onlyOwner {
        if (_set) {
            _pause();
        } else {
            _unpause();
        }
    }

    function setMintFee(uint256 _mintFeeAmount1, uint256 _mintFeeAmount2, uint256 _mintFeeAmount3) external onlyOwner {
        mintFeeInMetis1 = _mintFeeAmount1;
        mintFeeInMetis2 = _mintFeeAmount2;
        mintFeeInMetis3 = _mintFeeAmount3;
    }

    function updateNymphRewards(uint256 _skyReward, uint256 _meadowReward, uint256 _seaReward) external onlyOwner {
        reward1PerDayInARES = _skyReward;
        reward2PerDayInARES = _meadowReward;
        reward3PerDayInARES = _seaReward;
    }

    function updateRewardPeriods(uint256 _firstPeriod, uint256 _secondPeriod) external onlyOwner {
        firstPeriod = _firstPeriod;
        secondPeriod = _secondPeriod;
    }

    function setAresTokenAddress(address _aresTokenAddress) external onlyOwner {
        aresTokenAddress = _aresTokenAddress;
    }

    function setRandomGeneratorAddress(address _randomGeneratorAddress) external onlyOwner {
        randomGeneratorAddress = _randomGeneratorAddress;
    }

    function setFeeExempt(address _exemptAddress, bool _set) external onlyOwner {
        isFeeExempt[_exemptAddress] = _set;
    }

    function setBlacklist(address _account, bool _set) external onlyOwner {
        blackList[_account] = _set;
    }
}
        

Contract ABI

[{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"approved","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"Claim","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"uint256","name":"nymphId","internalType":"uint256","indexed":true},{"type":"uint256","name":"claimAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ClaimAll","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"uint256[]","name":"affectedNymphs","internalType":"uint256[]","indexed":true},{"type":"uint256","name":"claimAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Create","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"uint256","name":"newNymphId","internalType":"uint256","indexed":true},{"type":"uint256","name":"nymphType","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_NYMPHS","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"aresTokenAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"blackList","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claim","inputs":[{"type":"uint256","name":"_nymphId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimAll","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"createNymph","inputs":[{"type":"uint256","name":"mintCount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"earlyWithdrawalFee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"firstPeriod","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"getNymphIdsOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct NymphsNFTUpgradeable.NymphInfoEntity[]","components":[{"type":"tuple","name":"troop","internalType":"struct NymphsNFTUpgradeable.NymphEntity","components":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"uint256","name":"nymphType","internalType":"uint256"},{"type":"string","name":"name","internalType":"string"},{"type":"uint256","name":"creationTime","internalType":"uint256"},{"type":"uint256","name":"lastClaimedTime","internalType":"uint256"},{"type":"uint256","name":"totalClaimed","internalType":"uint256"},{"type":"bool","name":"exists","internalType":"bool"},{"type":"uint256","name":"reserve1","internalType":"uint256"},{"type":"uint256","name":"reserve2","internalType":"uint256"},{"type":"uint256","name":"reserve3","internalType":"uint256"},{"type":"uint256","name":"reserve4","internalType":"uint256"}]},{"type":"uint256","name":"pendingRewards","internalType":"uint256"},{"type":"uint256","name":"rewardPerDay","internalType":"uint256"}]}],"name":"getNymphsByIds","inputs":[{"type":"uint256[]","name":"_nymphIds","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isFeeExempt","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"meadowNymphRemaining","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mintFeeInMetis1","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mintFeeInMetis2","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mintFeeInMetis3","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[{"type":"bool","name":"_set","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"presaleMint","inputs":[{"type":"address","name":"_to","internalType":"address"},{"type":"uint256","name":"_nymphType","internalType":"uint256"},{"type":"uint256","name":"_count","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"randomGeneratorAddress","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"reward1PerDayInARES","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"reward2PerDayInARES","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"reward3PerDayInARES","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"_data","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"seaNymphRemaining","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"secondPeriod","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAresTokenAddress","inputs":[{"type":"address","name":"_aresTokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBlacklist","inputs":[{"type":"address","name":"_account","internalType":"address"},{"type":"bool","name":"_set","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeeExempt","inputs":[{"type":"address","name":"_exemptAddress","internalType":"address"},{"type":"bool","name":"_set","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMintFee","inputs":[{"type":"uint256","name":"_mintFeeAmount1","internalType":"uint256"},{"type":"uint256","name":"_mintFeeAmount2","internalType":"uint256"},{"type":"uint256","name":"_mintFeeAmount3","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRandomGeneratorAddress","inputs":[{"type":"address","name":"_randomGeneratorAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"shareAddress","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"sharePercentage","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"skyNymphRemaining","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenByIndex","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenOfOwnerByIndex","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateNymphRewards","inputs":[{"type":"uint256","name":"_skyReward","internalType":"uint256"},{"type":"uint256","name":"_meadowReward","internalType":"uint256"},{"type":"uint256","name":"_seaReward","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateRewardPeriods","inputs":[{"type":"uint256","name":"_firstPeriod","internalType":"uint256"},{"type":"uint256","name":"_secondPeriod","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateShareInformation","inputs":[{"type":"address[]","name":"_shareAddresses","internalType":"address[]"},{"type":"uint32[]","name":"_sharePercentages","internalType":"uint32[]"}]},{"type":"receive","stateMutability":"payable"}]
              

Contract Creation Code

0x608060405234801561001057600080fd5b5061494b806100206000396000f3fe6080604052600436106103545760003560e01c80638129fc1c116101c6578063cd9e7460116100f7578063e992e70011610095578063efaa8f171161006f578063efaa8f17146109c2578063f2fde38b146109e2578063f3991c2314610a02578063f930a3d214610a1957600080fd5b8063e992e7001461096b578063ecd913651461098b578063eee544ad146109ab57600080fd5b8063e4818e4b116100d1578063e4818e4b146108d4578063e783b596146108eb578063e7a34b171461090b578063e985e9c51461092257600080fd5b8063cd9e74601461087f578063d1058e591461089f578063d5b1c042146108b457600080fd5b8063aecc09c411610164578063c517aafb1161013e578063c517aafb1461081a578063c84fbc6e14610831578063c87b56dd14610848578063c884397a1461086857600080fd5b8063aecc09c4146107c3578063b88d4fde146107e3578063c4e3a63b1461080357600080fd5b80638ea40311116101a05780638ea403111461074d5780638ebfc7961461076e57806395d89b411461078e578063a22cb465146107a357600080fd5b80638129fc1c146106f857806383288a871461070d5780638da5cb5b1461072e57600080fd5b80633f4218e0116102a05780635c975abb1161023e5780636d834960116102185780636d8349601461067f57806370a08231146106ac578063715018a6146106cc57806374dfa30c146106e157600080fd5b80635c975abb146106125780636352211e1461062a5780636c9cdb541461064a57600080fd5b806348982af01161027a57806348982af01461059b5780634f6ccce7146105ae57806352bde32e146105ce578063587c91d2146105fb57600080fd5b80633f4218e01461051957806342842e0e1461054a5780634838d1651461056a57600080fd5b806315d6a88f1161030d5780631cadb197116102e75780631cadb197146104a257806323b872dd146104b95780632f745c59146104d9578063379607f5146104f957600080fd5b806315d6a88f1461045157806316330d401461047657806318160ddd1461048d57600080fd5b806301ffc9a71461036057806302329a291461039557806306fdde03146103b7578063081812fc146103d9578063095ea7b314610411578063153b0d1e1461043157600080fd5b3661035b57005b600080fd5b34801561036c57600080fd5b5061038061037b366004613dd1565b610a39565b60405190151581526020015b60405180910390f35b3480156103a157600080fd5b506103b56103b0366004613e03565b610a4a565b005b3480156103c357600080fd5b506103cc610a97565b60405161038c9190613e6b565b3480156103e557600080fd5b506103f96103f4366004613e7e565b610b29565b6040516001600160a01b03909116815260200161038c565b34801561041d57600080fd5b506103b561042c366004613eae565b610bbe565b34801561043d57600080fd5b506103b561044c366004613ed8565b610cd4565b34801561045d57600080fd5b506104686101995481565b60405190815260200161038c565b34801561048257600080fd5b5061046861019c5481565b34801561049957600080fd5b50609954610468565b3480156104ae57600080fd5b5061046861019f5481565b3480156104c557600080fd5b506103b56104d4366004613f0b565b610d2b565b3480156104e557600080fd5b506104686104f4366004613eae565b610d5c565b34801561050557600080fd5b506103b5610514366004613e7e565b610df2565b34801561052557600080fd5b50610380610534366004613f47565b6101a46020526000908152604090205460ff1681565b34801561055657600080fd5b506103b5610565366004613f0b565b610fb7565b34801561057657600080fd5b50610380610585366004613f47565b6101a56020526000908152604090205460ff1681565b6104686105a9366004613e7e565b610fd2565b3480156105ba57600080fd5b506104686105c9366004613e7e565b611233565b3480156105da57600080fd5b506105ee6105e9366004613f47565b6112c6565b60405161038c9190613f62565b34801561060757600080fd5b506104686101985481565b34801561061e57600080fd5b5060fb5460ff16610380565b34801561063657600080fd5b506103f9610645366004613e7e565b611380565b34801561065657600080fd5b5061066a610665366004613e7e565b6113f7565b60405163ffffffff909116815260200161038c565b34801561068b57600080fd5b5061069f61069a366004614011565b611432565b60405161038c91906140a7565b3480156106b857600080fd5b506104686106c7366004613f47565b611857565b3480156106d857600080fd5b506103b56118de565b3480156106ed57600080fd5b506104686101945481565b34801561070457600080fd5b506103b5611915565b34801561071957600080fd5b506101a0546103f9906001600160a01b031681565b34801561073a57600080fd5b5061012d546001600160a01b03166103f9565b34801561075957600080fd5b506101a1546103f9906001600160a01b031681565b34801561077a57600080fd5b506103b5610789366004613ed8565b611d03565b34801561079a57600080fd5b506103cc611d5a565b3480156107af57600080fd5b506103b56107be366004613ed8565b611d69565b3480156107cf57600080fd5b506103b56107de366004613f47565b611d78565b3480156107ef57600080fd5b506103b56107fe3660046141b7565b611dc6565b34801561080f57600080fd5b5061046861019a5481565b34801561082657600080fd5b506104686101935481565b34801561083d57600080fd5b506104686101975481565b34801561085457600080fd5b506103cc610863366004613e7e565b611dfe565b34801561087457600080fd5b506104686101965481565b34801561088b57600080fd5b506103b561089a3660046142f0565b611ead565b3480156108ab57600080fd5b506103b5612187565b3480156108c057600080fd5b506103b56108cf3660046143b0565b612392565b3480156108e057600080fd5b5061046861019b5481565b3480156108f757600080fd5b506103b56109063660046143d2565b6123ca565b34801561091757600080fd5b506104686101955481565b34801561092e57600080fd5b5061038061093d3660046143fe565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561097757600080fd5b506103b5610986366004613f47565b612406565b34801561099757600080fd5b506103f96109a6366004613e7e565b612454565b3480156109b757600080fd5b5061046861019d5481565b3480156109ce57600080fd5b506103b56109dd3660046143d2565b61247f565b3480156109ee57600080fd5b506103b56109fd366004613f47565b6124bb565b348015610a0e57600080fd5b5061046861019e5481565b348015610a2557600080fd5b506103b5610a34366004614428565b612554565b6000610a44826125a7565b92915050565b61012d546001600160a01b03163314610a7e5760405162461bcd60e51b8152600401610a759061445b565b60405180910390fd5b8015610a8f57610a8c6125cc565b50565b610a8c612641565b606060658054610aa690614490565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad290614490565b8015610b1f5780601f10610af457610100808354040283529160200191610b1f565b820191906000526020600020905b815481529060010190602001808311610b0257829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b0316610ba25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a75565b506000908152606960205260409020546001600160a01b031690565b6000610bc982611380565b9050806001600160a01b0316836001600160a01b03161415610c375760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a75565b336001600160a01b0382161480610c535750610c53813361093d565b610cc55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a75565b610ccf83836126bb565b505050565b61012d546001600160a01b03163314610cff5760405162461bcd60e51b8152600401610a759061445b565b6001600160a01b039190911660009081526101a560205260409020805460ff1916911515919091179055565b610d353382612729565b610d515760405162461bcd60e51b8152600401610a75906144cb565b610ccf838383612820565b6000610d6783611857565b8210610dc95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a75565b506001600160a01b03919091166000908152609760209081526040808320938352929052205490565b600261015f541415610e165760405162461bcd60e51b8152600401610a759061451c565b600261015f5560fb5460ff1615610e3f5760405162461bcd60e51b8152600401610a7590614553565b3360008181526101a5602052604090205460ff1615610e705760405162461bcd60e51b8152600401610a759061457d565b6101a0546001600160a01b0316610e995760405162461bcd60e51b8152600401610a75906145a2565b3380610ea484611380565b6001600160a01b031614610ef35760405162461bcd60e51b815260206004820152601660248201527509cdee840deeedccae440decc40e8d0ca409cf2dae0d60531b6044820152606401610a75565b6000610efe846129c7565b6101a05460405163b6de34c960e01b81526001600160a01b0385811660048301526024820184905292935091169063b6de34c990604401600060405180830381600087803b158015610f4f57600080fd5b505af1158015610f63573d6000803e3d6000fd5b5050505083826001600160a01b03167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf783604051610fa391815260200190565b60405180910390a35050600161015f555050565b610ccf83838360405180602001604052806000815250611dc6565b6000600261015f541415610ff85760405162461bcd60e51b8152600401610a759061451c565b600261015f5560fb5460ff16156110215760405162461bcd60e51b8152600401610a7590614553565b3360008181526101a5602052604090205460ff16156110525760405162461bcd60e51b8152600401610a759061457d565b3383158015906110635750600a8411155b6110a45760405162461bcd60e51b8152602060048201526012602482015271135a5b9d0818dbdd5b9d081a5b9d985b1a5960721b6044820152606401610a75565b6001600160a01b03811660009081526101a4602052604090205460ff166111f057600084600114156110da57506101945461110a565b600585116110f85784610195546110f191906145ef565b905061110a565b846101965461110791906145ef565b90505b803410156111745760405162461bcd60e51b815260206004820152603160248201527f4e796d7068733a20496e73756666696369656e742063757272656e637920746f604482015270040dad2dce840c240dccaee40dcf2dae0d607b1b6064820152608401610a75565b6000611180823461460e565b905080156111e4576000836001600160a01b03168261753090604051600060405180830381858888f193505050503d80600081146111da576040519150601f19603f3d011682016040523d82523d6000602084013e6111df565b606091505b505050505b6111ed82612b78565b50505b6000805b85811015611224576000611206612d0e565b905082611211578092505b508061121c81614625565b9150506111f4565b50600161015f55949350505050565b600061123e60995490565b82106112a15760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a75565b609982815481106112b4576112b4614640565b90600052602060002001549050919050565b606060006112d383611857565b905060008167ffffffffffffffff8111156112f0576112f0613fa6565b604051908082528060200260200182016040528015611319578160200160208202803683370190505b50905060005b828110156113785760006113338683610d5c565b905061133e81612e74565b61134757600080fd5b8083838151811061135a5761135a614640565b6020908102919091010152508061137081614625565b91505061131f565b509392505050565b6000818152606760205260408120546001600160a01b031680610a445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a75565b6101a3818154811061140857600080fd5b9060005260206000209060089182820401919006600402915054906101000a900463ffffffff1681565b606060004290506000835167ffffffffffffffff81111561145557611455613fa6565b60405190808252806020026020018201604052801561148e57816020015b61147b613ba5565b8152602001906001900390816114735790505b50905060005b84518110156113785760008582815181106114b1576114b1614640565b6020026020010151905060006101926000838152602001908152602001600020905060405180606001604052808260405180610160016040529081600082015481526020016001820154815260200160028201805461150f90614490565b80601f016020809104026020016040519081016040528092919081815260200182805461153b90614490565b80156115885780601f1061155d57610100808354040283529160200191611588565b820191906000526020600020905b81548152906001019060200180831161156b57829003601f168201915b505050505081526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff16151515158152602001600782015481526020016008820154815260200160098201548152602001600a82015481525050815260200161170a8360405180610160016040529081600082015481526020016001820154815260200160028201805461162b90614490565b80601f016020809104026020016040519081016040528092919081815260200182805461165790614490565b80156116a45780601f10611679576101008083540402835291602001916116a4565b820191906000526020600020905b81548152906001019060200180831161168757829003601f168201915b5050509183525050600382015460208201526004820154604082015260058201546060820152600682015460ff1615156080820152600782015460a0820152600882015460c0820152600982015460e0820152600a909101546101009091015288612eff565b81526020016118228360405180610160016040529081600082015481526020016001820154815260200160028201805461174390614490565b80601f016020809104026020016040519081016040528092919081815260200182805461176f90614490565b80156117bc5780601f10611791576101008083540402835291602001916117bc565b820191906000526020600020905b81548152906001019060200180831161179f57829003601f168201915b5050509183525050600382015460208201526004820154604082015260058201546060820152600682015460ff1615156080820152600782015460a0820152600882015460c0820152600982015460e0820152600a909101546101009091015288612f20565b81525084848151811061183757611837614640565b60200260200101819052505050808061184f90614625565b915050611494565b60006001600160a01b0382166118c25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a75565b506001600160a01b031660009081526068602052604090205490565b61012d546001600160a01b031633146119095760405162461bcd60e51b8152600401610a759061445b565b6119136000612f44565b565b600054610100900460ff166119305760005460ff1615611934565b303b155b6119975760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a75565b600054610100900460ff161580156119b9576000805461ffff19166101011790555b611a076040518060400160405280600e81526020016d417265732045636f73797374656d60901b815250604051806040016040528060068152602001654e594d50485360d01b815250612f97565b611a0f612fc8565b611a17612ff7565b611a1f61301e565b611a2761304d565b610bb86101935561012c61019d5561025861019e5561083461019f55670429d069189e0000610194556703d0ff0b013b8000610195556703782dace9d9000061019655620f4240610197556207a120610198556203d0906101995562093a8061019a81905561019b5561138861019c556101a080546001600160a01b03191673605c79b5c60a9d4675c87146d57d2756243353811790553060009081526101a460209081526040808320805460ff1990811660019081179092553385529382902080549094161790925581516003808252608082019093529190820160608036833750508151611b1f926101a2925060200190613c23565b5073b48d4b5ce71a0351bd526f357d408f803d98351d6101a2600081548110611b4a57611b4a614640565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555073b48d4b5ce71a0351bd526f357d408f803d98351d6101a2600181548110611ba257611ba2614640565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555073a9c84f63cf5b6c68600ffbac3fab1b74368c7cbc6101a2600281548110611bfa57611bfa614640565b600091825260209091200180546001600160a01b03929092166001600160a01b0319909216919091179055604080516002808252606082019092529081602001602082028036833750508151611c58926101a3925060200190613c88565b506119646101a3600081548110611c7157611c71614640565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055506109c46101a3600181548110611cbc57611cbc614640565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055508015610a8c576000805461ff001916905550565b61012d546001600160a01b03163314611d2e5760405162461bcd60e51b8152600401610a759061445b565b6001600160a01b039190911660009081526101a460205260409020805460ff1916911515919091179055565b606060668054610aa690614490565b611d7433838361307c565b5050565b61012d546001600160a01b03163314611da35760405162461bcd60e51b8152600401610a759061445b565b6101a080546001600160a01b0319166001600160a01b0392909216919091179055565b611dd03383612729565b611dec5760405162461bcd60e51b8152600401610a75906144cb565b611df88484848461314b565b50505050565b600081815261019260205260409020600180820154606092911415611e3d57604051806080016040528060518152602001614871605191399392505050565b806001015460021415611e6a576040518060800160405280605481526020016148c2605491399392505050565b806001015460031415611e9757604051806080016040528060518152602001614820605191399392505050565b5050604080516020810190915260008152919050565b61012d546001600160a01b03163314611ed85760405162461bcd60e51b8152600401610a759061445b565b6000825111611f4f5760405162461bcd60e51b815260206004820152603860248201527f4e796d7068733a20416464726573736573206172726179206c656e677468206d60448201527f7573742062652067726561746572207468616e207a65726f00000000000000006064820152608401610a75565b8051611f5c906001614656565b825114611fe55760405162461bcd60e51b815260206004820152604b60248201527f4e796d7068733a20617272617973206c656e677468206d69736d617463682e2060448201527f52656d656d626572206c6173742061646472657373207265636569766573207460648201526a3432903932b6b730b73a1760a91b608482015260a401610a75565b815167ffffffffffffffff811115611fff57611fff613fa6565b604051908082528060200260200182016040528015612028578160200160208202803683370190505b50805161203e916101a291602090910190613c23565b50805167ffffffffffffffff81111561205957612059613fa6565b604051908082528060200260200182016040528015612082578160200160208202803683370190505b508051612098916101a391602090910190613c88565b5060005b6101a254811015610ccf578281815181106120b9576120b9614640565b60200260200101516101a282815481106120d5576120d5614640565b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790556101a25461210d826001614656565b10156121755781818151811061212557612125614640565b60200260200101516101a3828154811061214157612141614640565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055505b8061217f81614625565b91505061209c565b600261015f5414156121ab5760405162461bcd60e51b8152600401610a759061451c565b600261015f5560fb5460ff16156121d45760405162461bcd60e51b8152600401610a7590614553565b3360008181526101a5602052604090205460ff16156122055760405162461bcd60e51b8152600401610a759061457d565b6101a0546001600160a01b031661222e5760405162461bcd60e51b8152600401610a75906145a2565b33600061223a82611857565b116122795760405162461bcd60e51b815260206004820152600f60248201526e273790273cb6b834103437b63232b960891b6044820152606401610a75565b600080612285836112c6565b905060005b81518110156122d95760006122b78383815181106122aa576122aa614640565b60200260200101516129c7565b90506122c38185614656565b93505080806122d190614625565b91505061228a565b506101a05460405163b6de34c960e01b81526001600160a01b038581166004830152602482018590529091169063b6de34c990604401600060405180830381600087803b15801561232957600080fd5b505af115801561233d573d6000803e3d6000fd5b505050508060405161234f919061466e565b6040518091039020836001600160a01b03167f62682e07270d1e472ec094a7c23afb1994befff0b16b8e0f3338be4e415cb0a984604051610fa391815260200190565b61012d546001600160a01b031633146123bd5760405162461bcd60e51b8152600401610a759061445b565b61019a9190915561019b55565b61012d546001600160a01b031633146123f55760405162461bcd60e51b8152600401610a759061445b565b610197929092556101985561019955565b61012d546001600160a01b031633146124315760405162461bcd60e51b8152600401610a759061445b565b6101a180546001600160a01b0319166001600160a01b0392909216919091179055565b6101a2818154811061246557600080fd5b6000918252602090912001546001600160a01b0316905081565b61012d546001600160a01b031633146124aa5760405162461bcd60e51b8152600401610a759061445b565b610194929092556101955561019655565b61012d546001600160a01b031633146124e65760405162461bcd60e51b8152600401610a759061445b565b6001600160a01b03811661254b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a75565b610a8c81612f44565b61012d546001600160a01b0316331461257f5760405162461bcd60e51b8152600401610a759061445b565b60005b81811015611df857612594848461317e565b508061259f81614625565b915050612582565b60006001600160e01b0319821663780e9d6360e01b1480610a445750610a44826133a3565b60fb5460ff16156125ef5760405162461bcd60e51b8152600401610a7590614553565b60fb805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126243390565b6040516001600160a01b03909116815260200160405180910390a1565b60fb5460ff1661268a5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a75565b60fb805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612624565b600081815260696020526040902080546001600160a01b0319166001600160a01b03841690811790915581906126f082611380565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b03166127a25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a75565b60006127ad83611380565b9050806001600160a01b0316846001600160a01b031614806127e85750836001600160a01b03166127dd84610b29565b6001600160a01b0316145b8061281857506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661283382611380565b6001600160a01b0316146128975760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a75565b6001600160a01b0382166128f95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a75565b6129048383836133f3565b61290f6000826126bb565b6001600160a01b038316600090815260686020526040812080546001929061293890849061460e565b90915550506001600160a01b0382166000908152606860205260408120805460019290612966908490614656565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008181526101926020908152604080832081516101608101835281548152600182015493810193909352600281018054919342938693612aef938792840191612a1090614490565b80601f0160208091040260200160405190810160405280929190818152602001828054612a3c90614490565b8015612a895780601f10612a5e57610100808354040283529160200191612a89565b820191906000526020600020905b815481529060010190602001808311612a6c57829003601f168201915b5050509183525050600382015460208201526004820154604082015260058201546060820152600682015460ff1615156080820152600782015460a0820152600882015460c0820152600982015460e0820152600a909101546101009091015283612eff565b905061019a548360030154612b049190614656565b82108015612b2357503360009081526101a4602052604090205460ff16155b15612b535761271061019c54612710612b3c919061460e565b612b4690836145ef565b612b5091906146ba565b90505b80836005016000828254612b679190614656565b909155505060049092015592915050565b8060005b6101a254811015610ccf57612b92816001614656565b6101a2541415612c1f578115612c1a5760006101a28281548110612bb857612bb8614640565b60009182526020822001546040516001600160a01b0390911691617530918691818181858888f193505050503d8060008114612c10576040519150601f19603f3d011682016040523d82523d6000602084013e612c15565b606091505b505050505b612cfc565b60006127106101a38381548110612c3857612c38614640565b60009182526020909120600882040154612c64916007166004026101000a900463ffffffff16866145ef565b612c6e91906146ba565b9050612c7a818461460e565b92508015612cfa5760006101a28381548110612c9857612c98614640565b60009182526020822001546040516001600160a01b0390911691617530918591818181858888f193505050503d8060008114612cf0576040519150601f19603f3d011682016040523d82523d6000602084013e612cf5565b606091505b505050505b505b80612d0681614625565b915050612b7c565b6101a0546000906001600160a01b0316612d3a5760405162461bcd60e51b8152600401610a75906145a2565b6101a1546040805162bf719960e01b8152905133926000926001600160a01b039091169162bf719991600480820192602092909190829003018187875af1158015612d89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dad91906146ce565b9050600061019f5461019e5461019d54612dc79190614656565b612dd19190614656565b905060008111612e165760405162461bcd60e51b815260206004820152601060248201526f139bc8139e5b5c1a081d1bc81b5a5b9d60821b6044820152606401610a75565b600080612e2383856146e7565b905061019d54811015612e395760019150612e60565b61019e5461019d54612e4b9190614656565b811015612e5b5760029150612e60565b600391505b612e6a858361317e565b9550505050505090565b6000808211612ed15760405162461bcd60e51b815260206004820152602360248201527f4e796d7068733a204964206d75737420626520686967686572207468616e207a60448201526265726f60e81b6064820152608401610a75565b600082815261019260205260409020600681015460ff1615612ef65750600192915050565b50600092915050565b6000612f198360200151846060015185608001518561342f565b9392505050565b6000612f1983602001518460600151848562015180612f3f9190614656565b61342f565b61012d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16612fbe5760405162461bcd60e51b8152600401610a75906146fb565b611d748282613634565b600054610100900460ff16612fef5760405162461bcd60e51b8152600401610a75906146fb565b611913613682565b600054610100900460ff166119135760405162461bcd60e51b8152600401610a75906146fb565b600054610100900460ff166130455760405162461bcd60e51b8152600401610a75906146fb565b6119136136b2565b600054610100900460ff166130745760405162461bcd60e51b8152600401610a75906146fb565b6119136136e1565b816001600160a01b0316836001600160a01b031614156130de5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a75565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613156848484612820565b61316284848484613714565b611df85760405162461bcd60e51b8152600401610a7590614746565b600081600114156131a45761019d805490600061319a83614798565b91905055506131de565b81600214156131be5761019e805490600061319a83614798565b81600314156131de5761019f80549060006131d883614798565b91905055505b6101935461019154106132335760405162461bcd60e51b815260206004820152601860248201527f416c6c2068617665206265656e206d696e746564206f757400000000000000006044820152606401610a75565b61324261019180546001019055565b600061324e6101915490565b6040805161016081018252828152602080820187815283518083018552600080825284860191825242606086018190526080860181905260a08601829052600160c0870181905260e08701839052610100870183905261012087018390526101408701839052888352610192865296909120855181559251958301959095555180519596509394929390926132e99260028501920190613d32565b50606082015160038201556080820151600482015560a0820151600582015560c082015160068201805460ff191691151591909117905560e082015160078201556101008201516008820155610120820151600982015561014090910151600a90910155613357858361380f565b81856001600160a01b03167f278b0fd0170e87df8d6e9c94b47d3ff7382de693c547e6089b53f9972c5323898660405161339391815260200190565b60405180910390a3509392505050565b60006001600160e01b031982166380ac58cd60e01b14806133d457506001600160e01b03198216635b5e139f60e01b145b80610a4457506301ffc9a760e01b6001600160e01b0319831614610a44565b3360008181526101a5602052604090205460ff16156134245760405162461bcd60e51b8152600401610a759061457d565b611df884848461395d565b60008284111580156134415750818311155b61348d5760405162461bcd60e51b815260206004820152601960248201527f63616c633a2054696d65206f726465722069732077726f6e67000000000000006044820152606401610a75565b600080600087600114156134b2576101975492506101985491506101995490506134e2565b87600214156134ce5750506101985461019954909150806134e2565b87600314156134e257505061019954905080805b600061019a54886134f39190614656565b9050600061019b54826135069190614656565b90506000828910156135b5578288101561353557613524898961460e565b61352e90876145ef565b9050613618565b8188101561356f57613547838961460e565b61355190866145ef565b61355b8a8561460e565b61356590886145ef565b61352e9190614656565b613579828961460e565b61358390856145ef565b61358d848461460e565b61359790876145ef565b6135a18b8661460e565b6135ab90896145ef565b6135659190614656565b8189101561360157818810156135d9576135cf898961460e565b61352e90866145ef565b6135e3828961460e565b6135ed90856145ef565b6135f78a8461460e565b61356590876145ef565b61360b898961460e565b61361590856145ef565b90505b61362562015180826146ba565b9b9a5050505050505050505050565b600054610100900460ff1661365b5760405162461bcd60e51b8152600401610a75906146fb565b815161366e906065906020850190613d32565b508051610ccf906066906020840190613d32565b600054610100900460ff166136a95760405162461bcd60e51b8152600401610a75906146fb565b61191333612f44565b600054610100900460ff166136d95760405162461bcd60e51b8152600401610a75906146fb565b600161015f55565b600054610100900460ff166137085760405162461bcd60e51b8152600401610a75906146fb565b60fb805460ff19169055565b60006001600160a01b0384163b1561380757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906137589033908990889088906004016147af565b6020604051808303816000875af1925050508015613793575060408051601f3d908101601f19168201909252613790918101906147ec565b60015b6137ed573d8080156137c1576040519150601f19603f3d011682016040523d82523d6000602084013e6137c6565b606091505b5080516137e55760405162461bcd60e51b8152600401610a7590614746565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612818565b506001612818565b6001600160a01b0382166138655760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a75565b6000818152606760205260409020546001600160a01b0316156138ca5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a75565b6138d6600083836133f3565b6001600160a01b03821660009081526068602052604081208054600192906138ff908490614656565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166139b8576139b381609980546000838152609a60205260408120829055600182018355919091527f72a152ddfb8e864297c917af52ea6c1c68aead0fee1a62673fcc7e0c94979d000155565b6139db565b816001600160a01b0316836001600160a01b0316146139db576139db8382613a15565b6001600160a01b0382166139f257610ccf81613ab2565b826001600160a01b0316826001600160a01b031614610ccf57610ccf8282613b61565b60006001613a2284611857565b613a2c919061460e565b600083815260986020526040902054909150808214613a7f576001600160a01b03841660009081526097602090815260408083208584528252808320548484528184208190558352609890915290208190555b5060009182526098602090815260408084208490556001600160a01b039094168352609781528383209183525290812055565b609954600090613ac49060019061460e565b6000838152609a602052604081205460998054939450909284908110613aec57613aec614640565b906000526020600020015490508060998381548110613b0d57613b0d614640565b6000918252602080832090910192909255828152609a90915260408082208490558582528120556099805480613b4557613b45614809565b6001900381819060005260206000200160009055905550505050565b6000613b6c83611857565b6001600160a01b039093166000908152609760209081526040808320868452825280832085905593825260989052919091209190915550565b6040518060600160405280613c0f604051806101600160405280600081526020016000815260200160608152602001600081526020016000815260200160008152602001600015158152602001600081526020016000815260200160008152602001600081525090565b815260200160008152602001600081525090565b828054828255906000526020600020908101928215613c78579160200282015b82811115613c7857825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190613c43565b50613c84929150613da6565b5090565b82805482825590600052602060002090600701600890048101928215613c785791602002820160005b83821115613cf557835183826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302613cb1565b8015613d255782816101000a81549063ffffffff0219169055600401602081600301049283019260010302613cf5565b5050613c84929150613da6565b828054613d3e90614490565b90600052602060002090601f016020900481019282613d605760008555613c78565b82601f10613d7957805160ff1916838001178555613c78565b82800160010185558215613c78579182015b82811115613c78578251825591602001919060010190613d8b565b5b80821115613c845760008155600101613da7565b6001600160e01b031981168114610a8c57600080fd5b600060208284031215613de357600080fd5b8135612f1981613dbb565b80358015158114613dfe57600080fd5b919050565b600060208284031215613e1557600080fd5b612f1982613dee565b6000815180845260005b81811015613e4457602081850181015186830182015201613e28565b81811115613e56576000602083870101525b50601f01601f19169290920160200192915050565b602081526000612f196020830184613e1e565b600060208284031215613e9057600080fd5b5035919050565b80356001600160a01b0381168114613dfe57600080fd5b60008060408385031215613ec157600080fd5b613eca83613e97565b946020939093013593505050565b60008060408385031215613eeb57600080fd5b613ef483613e97565b9150613f0260208401613dee565b90509250929050565b600080600060608486031215613f2057600080fd5b613f2984613e97565b9250613f3760208501613e97565b9150604084013590509250925092565b600060208284031215613f5957600080fd5b612f1982613e97565b6020808252825182820181905260009190848201906040850190845b81811015613f9a57835183529284019291840191600101613f7e565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613fe557613fe5613fa6565b604052919050565b600067ffffffffffffffff82111561400757614007613fa6565b5060051b60200190565b6000602080838503121561402457600080fd5b823567ffffffffffffffff81111561403b57600080fd5b8301601f8101851361404c57600080fd5b803561405f61405a82613fed565b613fbc565b81815260059190911b8201830190838101908783111561407e57600080fd5b928401925b8284101561409c57833582529284019290840190614083565b979650505050505050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156141a957603f1989840301855281516060815181865280518287015289810151608081818901528a830151915061016060a081818b01526141176101c08b0185613e1e565b9585015160c08b8101919091529285015160e0808c019190915290850151610100808c01919091529285015195935091610120614157818c018815159052565b928501516101408b81019190915290850151918a019190915290830151610180890152909101516101a0870152828a01518a8701529188015194880194909452948701949250908601906001016140ce565b509098975050505050505050565b600080600080608085870312156141cd57600080fd5b6141d685613e97565b935060206141e5818701613e97565b935060408601359250606086013567ffffffffffffffff8082111561420957600080fd5b818801915088601f83011261421d57600080fd5b81358181111561422f5761422f613fa6565b614241601f8201601f19168501613fbc565b9150808252898482850101111561425757600080fd5b808484018584013760008482840101525080935050505092959194509250565b600082601f83011261428857600080fd5b8135602061429861405a83613fed565b82815260059290921b840181019181810190868411156142b757600080fd5b8286015b848110156142e557803563ffffffff811681146142d85760008081fd5b83529183019183016142bb565b509695505050505050565b6000806040838503121561430357600080fd5b823567ffffffffffffffff8082111561431b57600080fd5b818501915085601f83011261432f57600080fd5b8135602061433f61405a83613fed565b82815260059290921b8401810191818101908984111561435e57600080fd5b948201945b838610156143835761437486613e97565b82529482019490820190614363565b9650508601359250508082111561439957600080fd5b506143a685828601614277565b9150509250929050565b600080604083850312156143c357600080fd5b50508035926020909101359150565b6000806000606084860312156143e757600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561441157600080fd5b61441a83613e97565b9150613f0260208401613e97565b60008060006060848603121561443d57600080fd5b61444684613e97565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806144a457607f821691505b602082108114156144c557634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252600b908201526a109b1858dadb1a5cdd195960aa1b604082015260600190565b6020808252601d908201527f4e796d7068733a204172657320546f6b656e206973206e6f7420736574000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615614609576146096145d9565b500290565b600082821015614620576146206145d9565b500390565b6000600019821415614639576146396145d9565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60008219821115614669576146696145d9565b500190565b815160009082906020808601845b838110156146985781518552938201939082019060010161467c565b50929695505050505050565b634e487b7160e01b600052601260045260246000fd5b6000826146c9576146c96146a4565b500490565b6000602082840312156146e057600080fd5b5051919050565b6000826146f6576146f66146a4565b500690565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000816147a7576147a76145d9565b506000190190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906147e290830184613e1e565b9695505050505050565b6000602082840312156147fe57600080fd5b8151612f1981613dbb565b634e487b7160e01b600052603160045260246000fdfe68747470733a2f2f697066732e696f2f697066732f516d5436476d6e4658634b674b3853387a653635314778314c7772514e336f48636a57547443794e3162376672772f5365614e796d70682e6a736f6e68747470733a2f2f697066732e696f2f697066732f516d5436476d6e4658634b674b3853387a653635314778314c7772514e336f48636a57547443794e3162376672772f536b794e796d70682e6a736f6e68747470733a2f2f697066732e696f2f697066732f516d5436476d6e4658634b674b3853387a653635314778314c7772514e336f48636a57547443794e3162376672772f4d6561646f774e796d70682e6a736f6ea2646970667358221220db6df92fbfec5b89743f65709ace27155e864e251521c3ecd2084561d0b3968864736f6c634300080b0033

Deployed ByteCode

0x6080604052600436106103545760003560e01c80638129fc1c116101c6578063cd9e7460116100f7578063e992e70011610095578063efaa8f171161006f578063efaa8f17146109c2578063f2fde38b146109e2578063f3991c2314610a02578063f930a3d214610a1957600080fd5b8063e992e7001461096b578063ecd913651461098b578063eee544ad146109ab57600080fd5b8063e4818e4b116100d1578063e4818e4b146108d4578063e783b596146108eb578063e7a34b171461090b578063e985e9c51461092257600080fd5b8063cd9e74601461087f578063d1058e591461089f578063d5b1c042146108b457600080fd5b8063aecc09c411610164578063c517aafb1161013e578063c517aafb1461081a578063c84fbc6e14610831578063c87b56dd14610848578063c884397a1461086857600080fd5b8063aecc09c4146107c3578063b88d4fde146107e3578063c4e3a63b1461080357600080fd5b80638ea40311116101a05780638ea403111461074d5780638ebfc7961461076e57806395d89b411461078e578063a22cb465146107a357600080fd5b80638129fc1c146106f857806383288a871461070d5780638da5cb5b1461072e57600080fd5b80633f4218e0116102a05780635c975abb1161023e5780636d834960116102185780636d8349601461067f57806370a08231146106ac578063715018a6146106cc57806374dfa30c146106e157600080fd5b80635c975abb146106125780636352211e1461062a5780636c9cdb541461064a57600080fd5b806348982af01161027a57806348982af01461059b5780634f6ccce7146105ae57806352bde32e146105ce578063587c91d2146105fb57600080fd5b80633f4218e01461051957806342842e0e1461054a5780634838d1651461056a57600080fd5b806315d6a88f1161030d5780631cadb197116102e75780631cadb197146104a257806323b872dd146104b95780632f745c59146104d9578063379607f5146104f957600080fd5b806315d6a88f1461045157806316330d401461047657806318160ddd1461048d57600080fd5b806301ffc9a71461036057806302329a291461039557806306fdde03146103b7578063081812fc146103d9578063095ea7b314610411578063153b0d1e1461043157600080fd5b3661035b57005b600080fd5b34801561036c57600080fd5b5061038061037b366004613dd1565b610a39565b60405190151581526020015b60405180910390f35b3480156103a157600080fd5b506103b56103b0366004613e03565b610a4a565b005b3480156103c357600080fd5b506103cc610a97565b60405161038c9190613e6b565b3480156103e557600080fd5b506103f96103f4366004613e7e565b610b29565b6040516001600160a01b03909116815260200161038c565b34801561041d57600080fd5b506103b561042c366004613eae565b610bbe565b34801561043d57600080fd5b506103b561044c366004613ed8565b610cd4565b34801561045d57600080fd5b506104686101995481565b60405190815260200161038c565b34801561048257600080fd5b5061046861019c5481565b34801561049957600080fd5b50609954610468565b3480156104ae57600080fd5b5061046861019f5481565b3480156104c557600080fd5b506103b56104d4366004613f0b565b610d2b565b3480156104e557600080fd5b506104686104f4366004613eae565b610d5c565b34801561050557600080fd5b506103b5610514366004613e7e565b610df2565b34801561052557600080fd5b50610380610534366004613f47565b6101a46020526000908152604090205460ff1681565b34801561055657600080fd5b506103b5610565366004613f0b565b610fb7565b34801561057657600080fd5b50610380610585366004613f47565b6101a56020526000908152604090205460ff1681565b6104686105a9366004613e7e565b610fd2565b3480156105ba57600080fd5b506104686105c9366004613e7e565b611233565b3480156105da57600080fd5b506105ee6105e9366004613f47565b6112c6565b60405161038c9190613f62565b34801561060757600080fd5b506104686101985481565b34801561061e57600080fd5b5060fb5460ff16610380565b34801561063657600080fd5b506103f9610645366004613e7e565b611380565b34801561065657600080fd5b5061066a610665366004613e7e565b6113f7565b60405163ffffffff909116815260200161038c565b34801561068b57600080fd5b5061069f61069a366004614011565b611432565b60405161038c91906140a7565b3480156106b857600080fd5b506104686106c7366004613f47565b611857565b3480156106d857600080fd5b506103b56118de565b3480156106ed57600080fd5b506104686101945481565b34801561070457600080fd5b506103b5611915565b34801561071957600080fd5b506101a0546103f9906001600160a01b031681565b34801561073a57600080fd5b5061012d546001600160a01b03166103f9565b34801561075957600080fd5b506101a1546103f9906001600160a01b031681565b34801561077a57600080fd5b506103b5610789366004613ed8565b611d03565b34801561079a57600080fd5b506103cc611d5a565b3480156107af57600080fd5b506103b56107be366004613ed8565b611d69565b3480156107cf57600080fd5b506103b56107de366004613f47565b611d78565b3480156107ef57600080fd5b506103b56107fe3660046141b7565b611dc6565b34801561080f57600080fd5b5061046861019a5481565b34801561082657600080fd5b506104686101935481565b34801561083d57600080fd5b506104686101975481565b34801561085457600080fd5b506103cc610863366004613e7e565b611dfe565b34801561087457600080fd5b506104686101965481565b34801561088b57600080fd5b506103b561089a3660046142f0565b611ead565b3480156108ab57600080fd5b506103b5612187565b3480156108c057600080fd5b506103b56108cf3660046143b0565b612392565b3480156108e057600080fd5b5061046861019b5481565b3480156108f757600080fd5b506103b56109063660046143d2565b6123ca565b34801561091757600080fd5b506104686101955481565b34801561092e57600080fd5b5061038061093d3660046143fe565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b34801561097757600080fd5b506103b5610986366004613f47565b612406565b34801561099757600080fd5b506103f96109a6366004613e7e565b612454565b3480156109b757600080fd5b5061046861019d5481565b3480156109ce57600080fd5b506103b56109dd3660046143d2565b61247f565b3480156109ee57600080fd5b506103b56109fd366004613f47565b6124bb565b348015610a0e57600080fd5b5061046861019e5481565b348015610a2557600080fd5b506103b5610a34366004614428565b612554565b6000610a44826125a7565b92915050565b61012d546001600160a01b03163314610a7e5760405162461bcd60e51b8152600401610a759061445b565b60405180910390fd5b8015610a8f57610a8c6125cc565b50565b610a8c612641565b606060658054610aa690614490565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad290614490565b8015610b1f5780601f10610af457610100808354040283529160200191610b1f565b820191906000526020600020905b815481529060010190602001808311610b0257829003601f168201915b5050505050905090565b6000818152606760205260408120546001600160a01b0316610ba25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a75565b506000908152606960205260409020546001600160a01b031690565b6000610bc982611380565b9050806001600160a01b0316836001600160a01b03161415610c375760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a75565b336001600160a01b0382161480610c535750610c53813361093d565b610cc55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a75565b610ccf83836126bb565b505050565b61012d546001600160a01b03163314610cff5760405162461bcd60e51b8152600401610a759061445b565b6001600160a01b039190911660009081526101a560205260409020805460ff1916911515919091179055565b610d353382612729565b610d515760405162461bcd60e51b8152600401610a75906144cb565b610ccf838383612820565b6000610d6783611857565b8210610dc95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a75565b506001600160a01b03919091166000908152609760209081526040808320938352929052205490565b600261015f541415610e165760405162461bcd60e51b8152600401610a759061451c565b600261015f5560fb5460ff1615610e3f5760405162461bcd60e51b8152600401610a7590614553565b3360008181526101a5602052604090205460ff1615610e705760405162461bcd60e51b8152600401610a759061457d565b6101a0546001600160a01b0316610e995760405162461bcd60e51b8152600401610a75906145a2565b3380610ea484611380565b6001600160a01b031614610ef35760405162461bcd60e51b815260206004820152601660248201527509cdee840deeedccae440decc40e8d0ca409cf2dae0d60531b6044820152606401610a75565b6000610efe846129c7565b6101a05460405163b6de34c960e01b81526001600160a01b0385811660048301526024820184905292935091169063b6de34c990604401600060405180830381600087803b158015610f4f57600080fd5b505af1158015610f63573d6000803e3d6000fd5b5050505083826001600160a01b03167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf783604051610fa391815260200190565b60405180910390a35050600161015f555050565b610ccf83838360405180602001604052806000815250611dc6565b6000600261015f541415610ff85760405162461bcd60e51b8152600401610a759061451c565b600261015f5560fb5460ff16156110215760405162461bcd60e51b8152600401610a7590614553565b3360008181526101a5602052604090205460ff16156110525760405162461bcd60e51b8152600401610a759061457d565b3383158015906110635750600a8411155b6110a45760405162461bcd60e51b8152602060048201526012602482015271135a5b9d0818dbdd5b9d081a5b9d985b1a5960721b6044820152606401610a75565b6001600160a01b03811660009081526101a4602052604090205460ff166111f057600084600114156110da57506101945461110a565b600585116110f85784610195546110f191906145ef565b905061110a565b846101965461110791906145ef565b90505b803410156111745760405162461bcd60e51b815260206004820152603160248201527f4e796d7068733a20496e73756666696369656e742063757272656e637920746f604482015270040dad2dce840c240dccaee40dcf2dae0d607b1b6064820152608401610a75565b6000611180823461460e565b905080156111e4576000836001600160a01b03168261753090604051600060405180830381858888f193505050503d80600081146111da576040519150601f19603f3d011682016040523d82523d6000602084013e6111df565b606091505b505050505b6111ed82612b78565b50505b6000805b85811015611224576000611206612d0e565b905082611211578092505b508061121c81614625565b9150506111f4565b50600161015f55949350505050565b600061123e60995490565b82106112a15760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a75565b609982815481106112b4576112b4614640565b90600052602060002001549050919050565b606060006112d383611857565b905060008167ffffffffffffffff8111156112f0576112f0613fa6565b604051908082528060200260200182016040528015611319578160200160208202803683370190505b50905060005b828110156113785760006113338683610d5c565b905061133e81612e74565b61134757600080fd5b8083838151811061135a5761135a614640565b6020908102919091010152508061137081614625565b91505061131f565b509392505050565b6000818152606760205260408120546001600160a01b031680610a445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a75565b6101a3818154811061140857600080fd5b9060005260206000209060089182820401919006600402915054906101000a900463ffffffff1681565b606060004290506000835167ffffffffffffffff81111561145557611455613fa6565b60405190808252806020026020018201604052801561148e57816020015b61147b613ba5565b8152602001906001900390816114735790505b50905060005b84518110156113785760008582815181106114b1576114b1614640565b6020026020010151905060006101926000838152602001908152602001600020905060405180606001604052808260405180610160016040529081600082015481526020016001820154815260200160028201805461150f90614490565b80601f016020809104026020016040519081016040528092919081815260200182805461153b90614490565b80156115885780601f1061155d57610100808354040283529160200191611588565b820191906000526020600020905b81548152906001019060200180831161156b57829003601f168201915b505050505081526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff16151515158152602001600782015481526020016008820154815260200160098201548152602001600a82015481525050815260200161170a8360405180610160016040529081600082015481526020016001820154815260200160028201805461162b90614490565b80601f016020809104026020016040519081016040528092919081815260200182805461165790614490565b80156116a45780601f10611679576101008083540402835291602001916116a4565b820191906000526020600020905b81548152906001019060200180831161168757829003601f168201915b5050509183525050600382015460208201526004820154604082015260058201546060820152600682015460ff1615156080820152600782015460a0820152600882015460c0820152600982015460e0820152600a909101546101009091015288612eff565b81526020016118228360405180610160016040529081600082015481526020016001820154815260200160028201805461174390614490565b80601f016020809104026020016040519081016040528092919081815260200182805461176f90614490565b80156117bc5780601f10611791576101008083540402835291602001916117bc565b820191906000526020600020905b81548152906001019060200180831161179f57829003601f168201915b5050509183525050600382015460208201526004820154604082015260058201546060820152600682015460ff1615156080820152600782015460a0820152600882015460c0820152600982015460e0820152600a909101546101009091015288612f20565b81525084848151811061183757611837614640565b60200260200101819052505050808061184f90614625565b915050611494565b60006001600160a01b0382166118c25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a75565b506001600160a01b031660009081526068602052604090205490565b61012d546001600160a01b031633146119095760405162461bcd60e51b8152600401610a759061445b565b6119136000612f44565b565b600054610100900460ff166119305760005460ff1615611934565b303b155b6119975760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a75565b600054610100900460ff161580156119b9576000805461ffff19166101011790555b611a076040518060400160405280600e81526020016d417265732045636f73797374656d60901b815250604051806040016040528060068152602001654e594d50485360d01b815250612f97565b611a0f612fc8565b611a17612ff7565b611a1f61301e565b611a2761304d565b610bb86101935561012c61019d5561025861019e5561083461019f55670429d069189e0000610194556703d0ff0b013b8000610195556703782dace9d9000061019655620f4240610197556207a120610198556203d0906101995562093a8061019a81905561019b5561138861019c556101a080546001600160a01b03191673605c79b5c60a9d4675c87146d57d2756243353811790553060009081526101a460209081526040808320805460ff1990811660019081179092553385529382902080549094161790925581516003808252608082019093529190820160608036833750508151611b1f926101a2925060200190613c23565b5073b48d4b5ce71a0351bd526f357d408f803d98351d6101a2600081548110611b4a57611b4a614640565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555073b48d4b5ce71a0351bd526f357d408f803d98351d6101a2600181548110611ba257611ba2614640565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555073a9c84f63cf5b6c68600ffbac3fab1b74368c7cbc6101a2600281548110611bfa57611bfa614640565b600091825260209091200180546001600160a01b03929092166001600160a01b0319909216919091179055604080516002808252606082019092529081602001602082028036833750508151611c58926101a3925060200190613c88565b506119646101a3600081548110611c7157611c71614640565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055506109c46101a3600181548110611cbc57611cbc614640565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055508015610a8c576000805461ff001916905550565b61012d546001600160a01b03163314611d2e5760405162461bcd60e51b8152600401610a759061445b565b6001600160a01b039190911660009081526101a460205260409020805460ff1916911515919091179055565b606060668054610aa690614490565b611d7433838361307c565b5050565b61012d546001600160a01b03163314611da35760405162461bcd60e51b8152600401610a759061445b565b6101a080546001600160a01b0319166001600160a01b0392909216919091179055565b611dd03383612729565b611dec5760405162461bcd60e51b8152600401610a75906144cb565b611df88484848461314b565b50505050565b600081815261019260205260409020600180820154606092911415611e3d57604051806080016040528060518152602001614871605191399392505050565b806001015460021415611e6a576040518060800160405280605481526020016148c2605491399392505050565b806001015460031415611e9757604051806080016040528060518152602001614820605191399392505050565b5050604080516020810190915260008152919050565b61012d546001600160a01b03163314611ed85760405162461bcd60e51b8152600401610a759061445b565b6000825111611f4f5760405162461bcd60e51b815260206004820152603860248201527f4e796d7068733a20416464726573736573206172726179206c656e677468206d60448201527f7573742062652067726561746572207468616e207a65726f00000000000000006064820152608401610a75565b8051611f5c906001614656565b825114611fe55760405162461bcd60e51b815260206004820152604b60248201527f4e796d7068733a20617272617973206c656e677468206d69736d617463682e2060448201527f52656d656d626572206c6173742061646472657373207265636569766573207460648201526a3432903932b6b730b73a1760a91b608482015260a401610a75565b815167ffffffffffffffff811115611fff57611fff613fa6565b604051908082528060200260200182016040528015612028578160200160208202803683370190505b50805161203e916101a291602090910190613c23565b50805167ffffffffffffffff81111561205957612059613fa6565b604051908082528060200260200182016040528015612082578160200160208202803683370190505b508051612098916101a391602090910190613c88565b5060005b6101a254811015610ccf578281815181106120b9576120b9614640565b60200260200101516101a282815481106120d5576120d5614640565b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790556101a25461210d826001614656565b10156121755781818151811061212557612125614640565b60200260200101516101a3828154811061214157612141614640565b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055505b8061217f81614625565b91505061209c565b600261015f5414156121ab5760405162461bcd60e51b8152600401610a759061451c565b600261015f5560fb5460ff16156121d45760405162461bcd60e51b8152600401610a7590614553565b3360008181526101a5602052604090205460ff16156122055760405162461bcd60e51b8152600401610a759061457d565b6101a0546001600160a01b031661222e5760405162461bcd60e51b8152600401610a75906145a2565b33600061223a82611857565b116122795760405162461bcd60e51b815260206004820152600f60248201526e273790273cb6b834103437b63232b960891b6044820152606401610a75565b600080612285836112c6565b905060005b81518110156122d95760006122b78383815181106122aa576122aa614640565b60200260200101516129c7565b90506122c38185614656565b93505080806122d190614625565b91505061228a565b506101a05460405163b6de34c960e01b81526001600160a01b038581166004830152602482018590529091169063b6de34c990604401600060405180830381600087803b15801561232957600080fd5b505af115801561233d573d6000803e3d6000fd5b505050508060405161234f919061466e565b6040518091039020836001600160a01b03167f62682e07270d1e472ec094a7c23afb1994befff0b16b8e0f3338be4e415cb0a984604051610fa391815260200190565b61012d546001600160a01b031633146123bd5760405162461bcd60e51b8152600401610a759061445b565b61019a9190915561019b55565b61012d546001600160a01b031633146123f55760405162461bcd60e51b8152600401610a759061445b565b610197929092556101985561019955565b61012d546001600160a01b031633146124315760405162461bcd60e51b8152600401610a759061445b565b6101a180546001600160a01b0319166001600160a01b0392909216919091179055565b6101a2818154811061246557600080fd5b6000918252602090912001546001600160a01b0316905081565b61012d546001600160a01b031633146124aa5760405162461bcd60e51b8152600401610a759061445b565b610194929092556101955561019655565b61012d546001600160a01b031633146124e65760405162461bcd60e51b8152600401610a759061445b565b6001600160a01b03811661254b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a75565b610a8c81612f44565b61012d546001600160a01b0316331461257f5760405162461bcd60e51b8152600401610a759061445b565b60005b81811015611df857612594848461317e565b508061259f81614625565b915050612582565b60006001600160e01b0319821663780e9d6360e01b1480610a445750610a44826133a3565b60fb5460ff16156125ef5760405162461bcd60e51b8152600401610a7590614553565b60fb805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126243390565b6040516001600160a01b03909116815260200160405180910390a1565b60fb5460ff1661268a5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a75565b60fb805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612624565b600081815260696020526040902080546001600160a01b0319166001600160a01b03841690811790915581906126f082611380565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152606760205260408120546001600160a01b03166127a25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a75565b60006127ad83611380565b9050806001600160a01b0316846001600160a01b031614806127e85750836001600160a01b03166127dd84610b29565b6001600160a01b0316145b8061281857506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661283382611380565b6001600160a01b0316146128975760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a75565b6001600160a01b0382166128f95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a75565b6129048383836133f3565b61290f6000826126bb565b6001600160a01b038316600090815260686020526040812080546001929061293890849061460e565b90915550506001600160a01b0382166000908152606860205260408120805460019290612966908490614656565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008181526101926020908152604080832081516101608101835281548152600182015493810193909352600281018054919342938693612aef938792840191612a1090614490565b80601f0160208091040260200160405190810160405280929190818152602001828054612a3c90614490565b8015612a895780601f10612a5e57610100808354040283529160200191612a89565b820191906000526020600020905b815481529060010190602001808311612a6c57829003601f168201915b5050509183525050600382015460208201526004820154604082015260058201546060820152600682015460ff1615156080820152600782015460a0820152600882015460c0820152600982015460e0820152600a909101546101009091015283612eff565b905061019a548360030154612b049190614656565b82108015612b2357503360009081526101a4602052604090205460ff16155b15612b535761271061019c54612710612b3c919061460e565b612b4690836145ef565b612b5091906146ba565b90505b80836005016000828254612b679190614656565b909155505060049092015592915050565b8060005b6101a254811015610ccf57612b92816001614656565b6101a2541415612c1f578115612c1a5760006101a28281548110612bb857612bb8614640565b60009182526020822001546040516001600160a01b0390911691617530918691818181858888f193505050503d8060008114612c10576040519150601f19603f3d011682016040523d82523d6000602084013e612c15565b606091505b505050505b612cfc565b60006127106101a38381548110612c3857612c38614640565b60009182526020909120600882040154612c64916007166004026101000a900463ffffffff16866145ef565b612c6e91906146ba565b9050612c7a818461460e565b92508015612cfa5760006101a28381548110612c9857612c98614640565b60009182526020822001546040516001600160a01b0390911691617530918591818181858888f193505050503d8060008114612cf0576040519150601f19603f3d011682016040523d82523d6000602084013e612cf5565b606091505b505050505b505b80612d0681614625565b915050612b7c565b6101a0546000906001600160a01b0316612d3a5760405162461bcd60e51b8152600401610a75906145a2565b6101a1546040805162bf719960e01b8152905133926000926001600160a01b039091169162bf719991600480820192602092909190829003018187875af1158015612d89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dad91906146ce565b9050600061019f5461019e5461019d54612dc79190614656565b612dd19190614656565b905060008111612e165760405162461bcd60e51b815260206004820152601060248201526f139bc8139e5b5c1a081d1bc81b5a5b9d60821b6044820152606401610a75565b600080612e2383856146e7565b905061019d54811015612e395760019150612e60565b61019e5461019d54612e4b9190614656565b811015612e5b5760029150612e60565b600391505b612e6a858361317e565b9550505050505090565b6000808211612ed15760405162461bcd60e51b815260206004820152602360248201527f4e796d7068733a204964206d75737420626520686967686572207468616e207a60448201526265726f60e81b6064820152608401610a75565b600082815261019260205260409020600681015460ff1615612ef65750600192915050565b50600092915050565b6000612f198360200151846060015185608001518561342f565b9392505050565b6000612f1983602001518460600151848562015180612f3f9190614656565b61342f565b61012d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16612fbe5760405162461bcd60e51b8152600401610a75906146fb565b611d748282613634565b600054610100900460ff16612fef5760405162461bcd60e51b8152600401610a75906146fb565b611913613682565b600054610100900460ff166119135760405162461bcd60e51b8152600401610a75906146fb565b600054610100900460ff166130455760405162461bcd60e51b8152600401610a75906146fb565b6119136136b2565b600054610100900460ff166130745760405162461bcd60e51b8152600401610a75906146fb565b6119136136e1565b816001600160a01b0316836001600160a01b031614156130de5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a75565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b613156848484612820565b61316284848484613714565b611df85760405162461bcd60e51b8152600401610a7590614746565b600081600114156131a45761019d805490600061319a83614798565b91905055506131de565b81600214156131be5761019e805490600061319a83614798565b81600314156131de5761019f80549060006131d883614798565b91905055505b6101935461019154106132335760405162461bcd60e51b815260206004820152601860248201527f416c6c2068617665206265656e206d696e746564206f757400000000000000006044820152606401610a75565b61324261019180546001019055565b600061324e6101915490565b6040805161016081018252828152602080820187815283518083018552600080825284860191825242606086018190526080860181905260a08601829052600160c0870181905260e08701839052610100870183905261012087018390526101408701839052888352610192865296909120855181559251958301959095555180519596509394929390926132e99260028501920190613d32565b50606082015160038201556080820151600482015560a0820151600582015560c082015160068201805460ff191691151591909117905560e082015160078201556101008201516008820155610120820151600982015561014090910151600a90910155613357858361380f565b81856001600160a01b03167f278b0fd0170e87df8d6e9c94b47d3ff7382de693c547e6089b53f9972c5323898660405161339391815260200190565b60405180910390a3509392505050565b60006001600160e01b031982166380ac58cd60e01b14806133d457506001600160e01b03198216635b5e139f60e01b145b80610a4457506301ffc9a760e01b6001600160e01b0319831614610a44565b3360008181526101a5602052604090205460ff16156134245760405162461bcd60e51b8152600401610a759061457d565b611df884848461395d565b60008284111580156134415750818311155b61348d5760405162461bcd60e51b815260206004820152601960248201527f63616c633a2054696d65206f726465722069732077726f6e67000000000000006044820152606401610a75565b600080600087600114156134b2576101975492506101985491506101995490506134e2565b87600214156134ce5750506101985461019954909150806134e2565b87600314156134e257505061019954905080805b600061019a54886134f39190614656565b9050600061019b54826135069190614656565b90506000828910156135b5578288101561353557613524898961460e565b61352e90876145ef565b9050613618565b8188101561356f57613547838961460e565b61355190866145ef565b61355b8a8561460e565b61356590886145ef565b61352e9190614656565b613579828961460e565b61358390856145ef565b61358d848461460e565b61359790876145ef565b6135a18b8661460e565b6135ab90896145ef565b6135659190614656565b8189101561360157818810156135d9576135cf898961460e565b61352e90866145ef565b6135e3828961460e565b6135ed90856145ef565b6135f78a8461460e565b61356590876145ef565b61360b898961460e565b61361590856145ef565b90505b61362562015180826146ba565b9b9a5050505050505050505050565b600054610100900460ff1661365b5760405162461bcd60e51b8152600401610a75906146fb565b815161366e906065906020850190613d32565b508051610ccf906066906020840190613d32565b600054610100900460ff166136a95760405162461bcd60e51b8152600401610a75906146fb565b61191333612f44565b600054610100900460ff166136d95760405162461bcd60e51b8152600401610a75906146fb565b600161015f55565b600054610100900460ff166137085760405162461bcd60e51b8152600401610a75906146fb565b60fb805460ff19169055565b60006001600160a01b0384163b1561380757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906137589033908990889088906004016147af565b6020604051808303816000875af1925050508015613793575060408051601f3d908101601f19168201909252613790918101906147ec565b60015b6137ed573d8080156137c1576040519150601f19603f3d011682016040523d82523d6000602084013e6137c6565b606091505b5080516137e55760405162461bcd60e51b8152600401610a7590614746565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612818565b506001612818565b6001600160a01b0382166138655760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a75565b6000818152606760205260409020546001600160a01b0316156138ca5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a75565b6138d6600083836133f3565b6001600160a01b03821660009081526068602052604081208054600192906138ff908490614656565b909155505060008181526067602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166139b8576139b381609980546000838152609a60205260408120829055600182018355919091527f72a152ddfb8e864297c917af52ea6c1c68aead0fee1a62673fcc7e0c94979d000155565b6139db565b816001600160a01b0316836001600160a01b0316146139db576139db8382613a15565b6001600160a01b0382166139f257610ccf81613ab2565b826001600160a01b0316826001600160a01b031614610ccf57610ccf8282613b61565b60006001613a2284611857565b613a2c919061460e565b600083815260986020526040902054909150808214613a7f576001600160a01b03841660009081526097602090815260408083208584528252808320548484528184208190558352609890915290208190555b5060009182526098602090815260408084208490556001600160a01b039094168352609781528383209183525290812055565b609954600090613ac49060019061460e565b6000838152609a602052604081205460998054939450909284908110613aec57613aec614640565b906000526020600020015490508060998381548110613b0d57613b0d614640565b6000918252602080832090910192909255828152609a90915260408082208490558582528120556099805480613b4557613b45614809565b6001900381819060005260206000200160009055905550505050565b6000613b6c83611857565b6001600160a01b039093166000908152609760209081526040808320868452825280832085905593825260989052919091209190915550565b6040518060600160405280613c0f604051806101600160405280600081526020016000815260200160608152602001600081526020016000815260200160008152602001600015158152602001600081526020016000815260200160008152602001600081525090565b815260200160008152602001600081525090565b828054828255906000526020600020908101928215613c78579160200282015b82811115613c7857825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190613c43565b50613c84929150613da6565b5090565b82805482825590600052602060002090600701600890048101928215613c785791602002820160005b83821115613cf557835183826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302613cb1565b8015613d255782816101000a81549063ffffffff0219169055600401602081600301049283019260010302613cf5565b5050613c84929150613da6565b828054613d3e90614490565b90600052602060002090601f016020900481019282613d605760008555613c78565b82601f10613d7957805160ff1916838001178555613c78565b82800160010185558215613c78579182015b82811115613c78578251825591602001919060010190613d8b565b5b80821115613c845760008155600101613da7565b6001600160e01b031981168114610a8c57600080fd5b600060208284031215613de357600080fd5b8135612f1981613dbb565b80358015158114613dfe57600080fd5b919050565b600060208284031215613e1557600080fd5b612f1982613dee565b6000815180845260005b81811015613e4457602081850181015186830182015201613e28565b81811115613e56576000602083870101525b50601f01601f19169290920160200192915050565b602081526000612f196020830184613e1e565b600060208284031215613e9057600080fd5b5035919050565b80356001600160a01b0381168114613dfe57600080fd5b60008060408385031215613ec157600080fd5b613eca83613e97565b946020939093013593505050565b60008060408385031215613eeb57600080fd5b613ef483613e97565b9150613f0260208401613dee565b90509250929050565b600080600060608486031215613f2057600080fd5b613f2984613e97565b9250613f3760208501613e97565b9150604084013590509250925092565b600060208284031215613f5957600080fd5b612f1982613e97565b6020808252825182820181905260009190848201906040850190845b81811015613f9a57835183529284019291840191600101613f7e565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613fe557613fe5613fa6565b604052919050565b600067ffffffffffffffff82111561400757614007613fa6565b5060051b60200190565b6000602080838503121561402457600080fd5b823567ffffffffffffffff81111561403b57600080fd5b8301601f8101851361404c57600080fd5b803561405f61405a82613fed565b613fbc565b81815260059190911b8201830190838101908783111561407e57600080fd5b928401925b8284101561409c57833582529284019290840190614083565b979650505050505050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b838110156141a957603f1989840301855281516060815181865280518287015289810151608081818901528a830151915061016060a081818b01526141176101c08b0185613e1e565b9585015160c08b8101919091529285015160e0808c019190915290850151610100808c01919091529285015195935091610120614157818c018815159052565b928501516101408b81019190915290850151918a019190915290830151610180890152909101516101a0870152828a01518a8701529188015194880194909452948701949250908601906001016140ce565b509098975050505050505050565b600080600080608085870312156141cd57600080fd5b6141d685613e97565b935060206141e5818701613e97565b935060408601359250606086013567ffffffffffffffff8082111561420957600080fd5b818801915088601f83011261421d57600080fd5b81358181111561422f5761422f613fa6565b614241601f8201601f19168501613fbc565b9150808252898482850101111561425757600080fd5b808484018584013760008482840101525080935050505092959194509250565b600082601f83011261428857600080fd5b8135602061429861405a83613fed565b82815260059290921b840181019181810190868411156142b757600080fd5b8286015b848110156142e557803563ffffffff811681146142d85760008081fd5b83529183019183016142bb565b509695505050505050565b6000806040838503121561430357600080fd5b823567ffffffffffffffff8082111561431b57600080fd5b818501915085601f83011261432f57600080fd5b8135602061433f61405a83613fed565b82815260059290921b8401810191818101908984111561435e57600080fd5b948201945b838610156143835761437486613e97565b82529482019490820190614363565b9650508601359250508082111561439957600080fd5b506143a685828601614277565b9150509250929050565b600080604083850312156143c357600080fd5b50508035926020909101359150565b6000806000606084860312156143e757600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561441157600080fd5b61441a83613e97565b9150613f0260208401613e97565b60008060006060848603121561443d57600080fd5b61444684613e97565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806144a457607f821691505b602082108114156144c557634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252600b908201526a109b1858dadb1a5cdd195960aa1b604082015260600190565b6020808252601d908201527f4e796d7068733a204172657320546f6b656e206973206e6f7420736574000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615614609576146096145d9565b500290565b600082821015614620576146206145d9565b500390565b6000600019821415614639576146396145d9565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60008219821115614669576146696145d9565b500190565b815160009082906020808601845b838110156146985781518552938201939082019060010161467c565b50929695505050505050565b634e487b7160e01b600052601260045260246000fd5b6000826146c9576146c96146a4565b500490565b6000602082840312156146e057600080fd5b5051919050565b6000826146f6576146f66146a4565b500690565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000816147a7576147a76145d9565b506000190190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906147e290830184613e1e565b9695505050505050565b6000602082840312156147fe57600080fd5b8151612f1981613dbb565b634e487b7160e01b600052603160045260246000fdfe68747470733a2f2f697066732e696f2f697066732f516d5436476d6e4658634b674b3853387a653635314778314c7772514e336f48636a57547443794e3162376672772f5365614e796d70682e6a736f6e68747470733a2f2f697066732e696f2f697066732f516d5436476d6e4658634b674b3853387a653635314778314c7772514e336f48636a57547443794e3162376672772f536b794e796d70682e6a736f6e68747470733a2f2f697066732e696f2f697066732f516d5436476d6e4658634b674b3853387a653635314778314c7772514e336f48636a57547443794e3162376672772f4d6561646f774e796d70682e6a736f6ea2646970667358221220db6df92fbfec5b89743f65709ace27155e864e251521c3ecd2084561d0b3968864736f6c634300080b0033