ETH Price: $3,452.50 (-1.96%)
Gas: 4 Gwei

Token

HYAKKI YAKO (HY)
 

Overview

Max Total Supply

331 HY

Holders

181

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
4 HY
0x45fa3b5239d17f772cdc5314976e3396c88a7f17
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
HyakkiYako

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 2 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 7 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 8 of 20 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 9 of 20 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.2) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 12 of 20 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 13 of 20 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 14 of 20 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._
 * _Available since v4.9 for `string`, `bytes`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

File 15 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 16 of 20 : ERC721Psi.sol
// SPDX-License-Identifier: MIT
/**
  ______ _____   _____ ______ ___  __ _  _  _
 |  ____|  __ \ / ____|____  |__ \/_ | || || |
 | |__  | |__) | |        / /   ) || | \| |/ |
 |  __| |  _  /| |       / /   / / | |\_   _/
 | |____| | \ \| |____  / /   / /_ | |  | |
 |______|_|  \_\\_____|/_/   |____||_|  |_|


 */

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/StorageSlot.sol";
import "solidity-bits/contracts/BitMaps.sol";


contract ERC721Psi is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;
    using BitMaps for BitMaps.BitMap;

    BitMaps.BitMap private _batchHead;

    string private _name;
    string private _symbol;

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

    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

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

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

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

        uint count;
        for( uint i = 1; i < _minted; ++i ){
            if(_exists(i)){
                if( owner == ownerOf(i)){
                    ++count;
                }
            }
        }
        return count;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        (address owner, ) = _ownerAndBatchHeadOf(tokenId);
        return owner;
    }

    function _ownerAndBatchHeadOf(uint256 tokenId) internal view returns (address owner, uint256 tokenIdBatchHead){
        require(_exists(tokenId), "ERC721Psi: owner query for nonexistent token");
        tokenIdBatchHead = _getBatchHead(tokenId);
        owner = _owners[tokenIdBatchHead];
    }

    /**
     * @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), "ERC721Psi: 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 = ownerOf(tokenId);
        require(to != owner, "ERC721Psi: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721Psi: 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),
            "ERC721Psi: approved query for nonexistent token"
        );

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(operator != _msgSender(), "ERC721Psi: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721Psi: 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),
            "ERC721Psi: 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, 1,_data),
            "ERC721Psi: 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`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _minted;
    }

    /**
     * @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),
            "ERC721Psi: operator query for nonexistent token"
        );
        address owner = ownerOf(tokenId);
        return (spender == owner ||
            getApproved(tokenId) == spender ||
            isApprovedForAll(owner, spender));
    }

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


    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        uint256 startTokenId = _minted;
        _mint(to, quantity);
        require(
            _checkOnERC721Received(address(0), to, startTokenId, quantity, _data),
            "ERC721Psi: transfer to non ERC721Receiver implementer"
        );
    }


    function _mint(
        address to,
        uint256 quantity
    ) internal virtual {
        uint256 tokenIdBatchHead = _minted;

        require(quantity > 0, "ERC721Psi: quantity must be greater 0");
        require(to != address(0), "ERC721Psi: mint to the zero address");

        _beforeTokenTransfers(address(0), to, tokenIdBatchHead, quantity);
        _minted += quantity;
        _owners[tokenIdBatchHead] = to;
        _batchHead.set(tokenIdBatchHead);
        _afterTokenTransfers(address(0), to, tokenIdBatchHead, quantity);

        // Emit events
        for(uint256 tokenId=tokenIdBatchHead;tokenId < tokenIdBatchHead + quantity; tokenId++){
            emit Transfer(address(0), to, 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 {
        (address owner, uint256 tokenIdBatchHead) = _ownerAndBatchHeadOf(tokenId);

        require(
            owner == from,
            "ERC721Psi: transfer of token that is not own"
        );
        require(to != address(0), "ERC721Psi: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        uint256 nextTokenId = tokenId + 1;

        if(!_batchHead.get(nextTokenId) &&
            nextTokenId < _minted
        ) {
            _owners[nextTokenId] = from;
            _batchHead.set(nextTokenId);
        }

        _owners[tokenId] = to;
        if(tokenId != tokenIdBatchHead) {
            _batchHead.set(tokenId);
        }

        emit Transfer(from, to, tokenId);

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

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

    /**
     * @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 startTokenId uint256 the first ID of the tokens to be transferred
     * @param quantity uint256 amount of the tokens to be transfered.
     * @param _data bytes optional data to send along with the call
     * @return r bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity,
        bytes memory _data
    ) private returns (bool r) {
        if (to.isContract()) {
            r = true;
            for(uint256 tokenId = startTokenId; tokenId < startTokenId + quantity; tokenId++){
                try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                    r = r && retval == IERC721Receiver.onERC721Received.selector;
                } catch (bytes memory reason) {
                    if (reason.length == 0) {
                        revert("ERC721Psi: transfer to non ERC721Receiver implementer");
                    } else {
                        assembly {
                            revert(add(32, reason), mload(reason))
                        }
                    }
                }
            }
            return r;
        } else {
            return true;
        }
    }

    function _getBatchHead(uint256 tokenId) internal view returns (uint256 tokenIdBatchHead) {
        tokenIdBatchHead = _batchHead.scanForward(tokenId);
    }

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

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

        uint count;
        for(uint i = 1; i < _minted; i++){
            if(_exists(i)){
                if(count == index) return i;
                else count++;
            }
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) {
        uint count;
        for(uint i = 1; i < _minted; i++){
            if(_exists(i) && owner == ownerOf(i)){
                if(count == index) return i;
                else count++;
            }
        }

        revert("ERC721Psi: owner index out of bounds");
    }


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

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

File 17 of 20 : HyakkiYako.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

interface zukanContract {
    function balanceOf(address _address) external view returns (uint256);
    function tokenOfOwnerByIndex(address _address, uint256 _index) external view returns (uint256);
    function account(uint256 _tokenId) external view returns (address);
}

contract HyakkiYako is ERC721Psi, Ownable, ReentrancyGuard {
    using Strings for uint256;
    uint256 public maxSupply = 777;
    bool public saleStart = true;
    mapping(address => uint256) public claimed;
    bytes32 public merkleRoot;
    mapping(uint256 => bool) public evolved;
    string private baseTokenURI;
    mapping(uint256 => string) private evolvedURI;
    address public otherContractAddress;

    constructor(
        bytes32 _merkleRoot,
        string memory _baseTokenURI,
        address _otherContractAddress
    ) ERC721Psi("HYAKKI YAKO", "HY") {
        merkleRoot = _merkleRoot;
        baseTokenURI = _baseTokenURI;
        otherContractAddress = _otherContractAddress;
    }

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

    function tokenURI(uint256 _tokenId) public view virtual override(ERC721Psi) returns (string memory) {
        if (evolved[_tokenId] == false) {
            return string(abi.encodePacked(ERC721Psi.tokenURI(_tokenId), ".json"));
        } else {
            return string(evolvedURI[_tokenId]);
        }
    }

    function mintCheck(address _address, uint256 _count, bytes32[] memory _proof) public view returns (bool) {
        bytes32 _leaf = keccak256(abi.encodePacked(_address, _count));
        for (uint256 i = 0; i < _proof.length; i++) {
            _leaf = _leaf < _proof[i] ? keccak256(abi.encodePacked(_leaf, _proof[i])) : keccak256(abi.encodePacked(_proof[i], _leaf));
        }
        return _leaf == merkleRoot;
    }

    function mint(uint256 _amount, uint256 _count, bytes32[] memory _proof) external virtual nonReentrant {
        require(saleStart, "Sale is paused");
        require(mintCheck(msg.sender, _count, _proof), "Invalid count");
        require(_count > 0, "You have no AL");
        require(_count >= _amount, "Over max mint per wallet");
        require(_count >= claimed[msg.sender] + _amount, "You have no mint left");
        require((_amount + totalSupply()) <= (maxSupply), "No more NFTs");
        claimed[msg.sender] += _amount;
        _safeMint(msg.sender, _amount);
    }

    function ownerMint(address _address, uint256 _quantity) public onlyOwner {
        uint256 supply = totalSupply();
        require(supply + _quantity <= maxSupply, "Max supply over");
        _safeMint(_address, _quantity);
    }

    function setBaseURI(string calldata _uri) public onlyOwner {
        baseTokenURI = _uri;
    }

    function setEvolvedURI(uint256 _tokenId, string memory _uri) public onlyOwner {
        evolvedURI[_tokenId] = _uri;
    }

    function evolve(uint256 _tokenId ,bool _bool) public onlyOwner {
        evolved[_tokenId] = _bool;
    }

    function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
        merkleRoot = _merkleRoot;
    }

    function setSaleStart(bool _state) public onlyOwner {
        saleStart = _state;
    }

    function getBalanceOf(address _address) public view returns (uint256) {
        uint256 balance = zukanContract(otherContractAddress).balanceOf(_address);
        return balance;
    }

    function getTokenOfOwnerByIndex(address _address, uint256 _index) public view returns (uint256) {
        uint256 tokenID = zukanContract(otherContractAddress).tokenOfOwnerByIndex(_address, _index);
        return tokenID;
    }

    function getAccount(uint256 _tokenId) public view returns (address) {
        address account = zukanContract(otherContractAddress).account(_tokenId);
        return account;
    }

    function setOtherContractAddress(address _address) public onlyOwner {
        otherContractAddress = _address;
    }
}

File 18 of 20 : BitMaps.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */
pragma solidity ^0.8.0;

import "./BitScan.sol";
import "./Popcount.sol";

/**
 * @dev This Library is a modified version of Openzeppelin's BitMaps library with extra features.
 *
 * 1. Functions of finding the index of the closest set bit from a given index are added.
 *    The indexing of each bucket is modifed to count from the MSB to the LSB instead of from the LSB to the MSB.
 *    The modification of indexing makes finding the closest previous set bit more efficient in gas usage.
 * 2. Setting and unsetting the bitmap consecutively.
 * 3. Accounting number of set bits within a given range.   
 *
*/

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */

library BitMaps {
    using BitScan for uint256;
    uint256 private constant MASK_INDEX_ZERO = (1 << 255);
    uint256 private constant MASK_FULL = type(uint256).max;

    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(
        BitMap storage bitmap,
        uint256 index,
        bool value
    ) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }


    /**
     * @dev Consecutively sets `amount` of bits starting from the bit at `startIndex`.
     */    
    function setBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal {
        uint256 bucket = startIndex >> 8;

        uint256 bucketStartIndex = (startIndex & 0xff);

        unchecked {
            if(bucketStartIndex + amount < 256) {
                bitmap._data[bucket] |= MASK_FULL << (256 - amount) >> bucketStartIndex;
            } else {
                bitmap._data[bucket] |= MASK_FULL >> bucketStartIndex;
                amount -= (256 - bucketStartIndex);
                bucket++;

                while(amount > 256) {
                    bitmap._data[bucket] = MASK_FULL;
                    amount -= 256;
                    bucket++;
                }

                bitmap._data[bucket] |= MASK_FULL << (256 - amount);
            }
        }
    }


    /**
     * @dev Consecutively unsets `amount` of bits starting from the bit at `startIndex`.
     */    
    function unsetBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal {
        uint256 bucket = startIndex >> 8;

        uint256 bucketStartIndex = (startIndex & 0xff);

        unchecked {
            if(bucketStartIndex + amount < 256) {
                bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount) >> bucketStartIndex);
            } else {
                bitmap._data[bucket] &= ~(MASK_FULL >> bucketStartIndex);
                amount -= (256 - bucketStartIndex);
                bucket++;

                while(amount > 256) {
                    bitmap._data[bucket] = 0;
                    amount -= 256;
                    bucket++;
                }

                bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount));
            }
        }
    }

    /**
     * @dev Returns number of set bits within a range.
     */
    function popcountA(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal view returns(uint256 count) {
        uint256 bucket = startIndex >> 8;

        uint256 bucketStartIndex = (startIndex & 0xff);

        unchecked {
            if(bucketStartIndex + amount < 256) {
                count +=  Popcount.popcount256A(
                    bitmap._data[bucket] & (MASK_FULL << (256 - amount) >> bucketStartIndex)
                );
            } else {
                count += Popcount.popcount256A(
                    bitmap._data[bucket] & (MASK_FULL >> bucketStartIndex)
                );
                amount -= (256 - bucketStartIndex);
                bucket++;

                while(amount > 256) {
                    count += Popcount.popcount256A(bitmap._data[bucket]);
                    amount -= 256;
                    bucket++;
                }
                count += Popcount.popcount256A(
                    bitmap._data[bucket] & (MASK_FULL << (256 - amount))
                );
            }
        }
    }

    /**
     * @dev Returns number of set bits within a range.
     */
    function popcountB(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal view returns(uint256 count) {
        uint256 bucket = startIndex >> 8;

        uint256 bucketStartIndex = (startIndex & 0xff);

        unchecked {
            if(bucketStartIndex + amount < 256) {
                count +=  Popcount.popcount256B(
                    bitmap._data[bucket] & (MASK_FULL << (256 - amount) >> bucketStartIndex)
                );
            } else {
                count += Popcount.popcount256B(
                    bitmap._data[bucket] & (MASK_FULL >> bucketStartIndex)
                );
                amount -= (256 - bucketStartIndex);
                bucket++;

                while(amount > 256) {
                    count += Popcount.popcount256B(bitmap._data[bucket]);
                    amount -= 256;
                    bucket++;
                }
                count += Popcount.popcount256B(
                    bitmap._data[bucket] & (MASK_FULL << (256 - amount))
                );
            }
        }
    }


    /**
     * @dev Find the closest index of the set bit before `index`.
     */
    function scanForward(BitMap storage bitmap, uint256 index) internal view returns (uint256 setBitIndex) {
        uint256 bucket = index >> 8;

        // index within the bucket
        uint256 bucketIndex = (index & 0xff);

        // load a bitboard from the bitmap.
        uint256 bb = bitmap._data[bucket];

        // offset the bitboard to scan from `bucketIndex`.
        bb = bb >> (0xff ^ bucketIndex); // bb >> (255 - bucketIndex)
        
        if(bb > 0) {
            unchecked {
                setBitIndex = (bucket << 8) | (bucketIndex -  bb.bitScanForward256());    
            }
        } else {
            while(true) {
                require(bucket > 0, "BitMaps: The set bit before the index doesn't exist.");
                unchecked {
                    bucket--;
                }
                // No offset. Always scan from the least significiant bit now.
                bb = bitmap._data[bucket];
                
                if(bb > 0) {
                    unchecked {
                        setBitIndex = (bucket << 8) | (255 -  bb.bitScanForward256());
                        break;
                    }
                } 
            }
        }
    }

    function getBucket(BitMap storage bitmap, uint256 bucket) internal view returns (uint256) {
        return bitmap._data[bucket];
    }
}

File 19 of 20 : BitScan.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */

pragma solidity ^0.8.0;


library BitScan {
    uint256 constant private DEBRUIJN_256 = 0x818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff;
    bytes constant private LOOKUP_TABLE_256 = hex"0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8";

    /**
        @dev Isolate the least significant set bit.
     */ 
    function isolateLS1B256(uint256 bb) pure internal returns (uint256) {
        require(bb > 0);
        unchecked {
            return bb & (0 - bb);
        }
    } 

    /**
        @dev Isolate the most significant set bit.
     */ 
    function isolateMS1B256(uint256 bb) pure internal returns (uint256) {
        require(bb > 0);
        unchecked {
            bb |= bb >> 128;
            bb |= bb >> 64;
            bb |= bb >> 32;
            bb |= bb >> 16;
            bb |= bb >> 8;
            bb |= bb >> 4;
            bb |= bb >> 2;
            bb |= bb >> 1;
            
            return (bb >> 1) + 1;
        }
    } 

    /**
        @dev Find the index of the lest significant set bit. (trailing zero count)
     */ 
    function bitScanForward256(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return uint8(LOOKUP_TABLE_256[(isolateLS1B256(bb) * DEBRUIJN_256) >> 248]);
        }   
    }

    /**
        @dev Find the index of the most significant set bit.
     */ 
    function bitScanReverse256(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return 255 - uint8(LOOKUP_TABLE_256[((isolateMS1B256(bb) * DEBRUIJN_256) >> 248)]);
        }   
    }

    function log2(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return uint8(LOOKUP_TABLE_256[(isolateMS1B256(bb) * DEBRUIJN_256) >> 248]);
        } 
    }
}

File 20 of 20 : Popcount.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */

pragma solidity ^0.8.0;

library Popcount {
    uint256 private constant m1 = 0x5555555555555555555555555555555555555555555555555555555555555555;
    uint256 private constant m2 = 0x3333333333333333333333333333333333333333333333333333333333333333;
    uint256 private constant m4 = 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f;
    uint256 private constant h01 = 0x0101010101010101010101010101010101010101010101010101010101010101;

    function popcount256A(uint256 x) internal pure returns (uint256 count) {
        unchecked{
            for (count=0; x!=0; count++)
                x &= x - 1;
        }
    }

    function popcount256B(uint256 x) internal pure returns (uint256) {
        if (x == type(uint256).max) {
            return 256;
        }
        unchecked {
            x -= (x >> 1) & m1;             //put count of each 2 bits into those 2 bits
            x = (x & m2) + ((x >> 2) & m2); //put count of each 4 bits into those 4 bits 
            x = (x + (x >> 4)) & m4;        //put count of each 8 bits into those 8 bits 
            x = (x * h01) >> 248;  //returns left 8 bits of x + (x<<8) + (x<<16) + (x<<24) + ... 
        }
        return x;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"string","name":"_baseTokenURI","type":"string"},{"internalType":"address","name":"_otherContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bool","name":"_bool","type":"bool"}],"name":"evolve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"evolved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getAccount","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getTokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mintCheck","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"otherContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setEvolvedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setOtherContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260016004556103096009556001600a60006101000a81548160ff0219169083151502179055503480156200003757600080fd5b50604051620054e2380380620054e283398181016040528101906200005d91906200047b565b6040518060400160405280600b81526020017f4859414b4b492059414b4f0000000000000000000000000000000000000000008152506040518060400160405280600281526020017f48590000000000000000000000000000000000000000000000000000000000008152508160019081620000da919062000741565b508060029081620000ec919062000741565b5050506200010f620001036200017a60201b60201c565b6200018260201b60201c565b600160088190555082600c8190555081600e90816200012f919062000741565b5080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505062000828565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b62000271816200025c565b81146200027d57600080fd5b50565b600081519050620002918162000266565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620002ec82620002a1565b810181811067ffffffffffffffff821117156200030e576200030d620002b2565b5b80604052505050565b60006200032362000248565b9050620003318282620002e1565b919050565b600067ffffffffffffffff821115620003545762000353620002b2565b5b6200035f82620002a1565b9050602081019050919050565b60005b838110156200038c5780820151818401526020810190506200036f565b60008484015250505050565b6000620003af620003a98462000336565b62000317565b905082815260208101848484011115620003ce57620003cd6200029c565b5b620003db8482856200036c565b509392505050565b600082601f830112620003fb57620003fa62000297565b5b81516200040d84826020860162000398565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004438262000416565b9050919050565b620004558162000436565b81146200046157600080fd5b50565b60008151905062000475816200044a565b92915050565b60008060006060848603121562000497576200049662000252565b5b6000620004a78682870162000280565b935050602084015167ffffffffffffffff811115620004cb57620004ca62000257565b5b620004d986828701620003e3565b9250506040620004ec8682870162000464565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200054957607f821691505b6020821081036200055f576200055e62000501565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005c97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200058a565b620005d586836200058a565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620006226200061c6200061684620005ed565b620005f7565b620005ed565b9050919050565b6000819050919050565b6200063e8362000601565b620006566200064d8262000629565b84845462000597565b825550505050565b600090565b6200066d6200065e565b6200067a81848462000633565b505050565b5b81811015620006a2576200069660008262000663565b60018101905062000680565b5050565b601f821115620006f157620006bb8162000565565b620006c6846200057a565b81016020851015620006d6578190505b620006ee620006e5856200057a565b8301826200067f565b50505b505050565b600082821c905092915050565b60006200071660001984600802620006f6565b1980831691505092915050565b600062000731838362000703565b9150826002028217905092915050565b6200074c82620004f6565b67ffffffffffffffff811115620007685762000767620002b2565b5b62000774825462000530565b62000781828285620006a6565b600060209050601f831160018114620007b95760008415620007a4578287015190505b620007b0858262000723565b86555062000820565b601f198416620007c98662000565565b60005b82811015620007f357848901518255600182019150602085019450602081019050620007cc565b868310156200081357848901516200080f601f89168262000703565b8355505b6001600288020188555050505b505050505050565b614caa80620008386000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c80637cb6475911610130578063ad1c2993116100b8578063ce88b1451161007c578063ce88b14514610698578063d5abeb01146106c8578063e6d37b88146106e6578063e985e9c514610702578063f2fde38b1461073257610227565b8063ad1c2993146105ce578063b88d4fde146105fe578063c0a15e991461061a578063c87b56dd14610638578063c884ef831461066857610227565b806395d89b41116100ff57806395d89b41146105165780639b96eece14610534578063a22cb46514610564578063ab0bcc4114610580578063ac615f701461059e57610227565b80637cb64759146104a45780638c30ffe6146104c05780638da5cb5b146104dc57806391f35a6d146104fa57610227565b806342842e0e116101b35780635fa964d6116101825780635fa964d6146103ee5780636352211e1461041e5780636c9119181461044e57806370a082311461046a578063715018a61461049a57610227565b806342842e0e1461036a578063484b973c146103865780634f6ccce7146103a257806355f804b3146103d257610227565b806318160ddd116101fa57806318160ddd146102c657806323b872dd146102e4578063285d0595146103005780632eb4a7ab1461031c5780632f745c591461033a57610227565b806301ffc9a71461022c57806306fdde031461025c578063081812fc1461027a578063095ea7b3146102aa575b600080fd5b61024660048036038101906102419190612bc1565b61074e565b6040516102539190612c09565b60405180910390f35b610264610898565b6040516102719190612cb4565b60405180910390f35b610294600480360381019061028f9190612d0c565b61092a565b6040516102a19190612d7a565b60405180910390f35b6102c460048036038101906102bf9190612dc1565b6109af565b005b6102ce610ac6565b6040516102db9190612e10565b60405180910390f35b6102fe60048036038101906102f99190612e2b565b610adc565b005b61031a60048036038101906103159190612fb3565b610b3c565b005b610324610b69565b6040516103319190613028565b60405180910390f35b610354600480360381019061034f9190612dc1565b610b6f565b6040516103619190612e10565b60405180910390f35b610384600480360381019061037f9190612e2b565b610c45565b005b6103a0600480360381019061039b9190612dc1565b610c65565b005b6103bc60048036038101906103b79190612d0c565b610cd8565b6040516103c99190612e10565b60405180910390f35b6103ec60048036038101906103e791906130a3565b610d7e565b005b61040860048036038101906104039190612d0c565b610d9c565b6040516104159190612c09565b60405180910390f35b61043860048036038101906104339190612d0c565b610dbc565b6040516104459190612d7a565b60405180910390f35b6104686004803603810190610463919061311c565b610dd4565b005b610484600480360381019061047f9190613149565b610df9565b6040516104919190612e10565b60405180910390f35b6104a2610eed565b005b6104be60048036038101906104b991906131a2565b610f01565b005b6104da60048036038101906104d59190613149565b610f13565b005b6104e4610f5f565b6040516104f19190612d7a565b60405180910390f35b610514600480360381019061050f91906131cf565b610f89565b005b61051e610fc0565b60405161052b9190612cb4565b60405180910390f35b61054e60048036038101906105499190613149565b611052565b60405161055b9190612e10565b60405180910390f35b61057e6004803603810190610579919061320f565b6110fc565b005b61058861127c565b6040516105959190612c09565b60405180910390f35b6105b860048036038101906105b39190612dc1565b61128f565b6040516105c59190612e10565b60405180910390f35b6105e860048036038101906105e39190613312565b61133c565b6040516105f59190612c09565b60405180910390f35b61061860048036038101906106139190613422565b611448565b005b6106226114aa565b60405161062f9190612d7a565b60405180910390f35b610652600480360381019061064d9190612d0c565b6114d0565b60405161065f9190612cb4565b60405180910390f35b610682600480360381019061067d9190613149565b6115d1565b60405161068f9190612e10565b60405180910390f35b6106b260048036038101906106ad9190612d0c565b6115e9565b6040516106bf9190612d7a565b60405180910390f35b6106d0611693565b6040516106dd9190612e10565b60405180910390f35b61070060048036038101906106fb91906134a5565b611699565b005b61071c60048036038101906107179190613514565b611911565b6040516107299190612c09565b60405180910390f35b61074c60048036038101906107479190613149565b6119a5565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061081957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061088157507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610891575061089082611a28565b5b9050919050565b6060600180546108a790613583565b80601f01602080910402602001604051908101604052809291908181526020018280546108d390613583565b80156109205780601f106108f557610100808354040283529160200191610920565b820191906000526020600020905b81548152906001019060200180831161090357829003601f168201915b5050505050905090565b600061093582611a92565b610974576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096b90613626565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109ba82610dbc565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a21906136b8565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a49611aa0565b73ffffffffffffffffffffffffffffffffffffffff161480610a785750610a7781610a72611aa0565b611911565b5b610ab7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aae9061374a565b60405180910390fd5b610ac18383611aa8565b505050565b60006001600454610ad79190613799565b905090565b610aed610ae7611aa0565b82611b61565b610b2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b239061383f565b60405180910390fd5b610b37838383611c3f565b505050565b610b44611ec1565b80600f60008481526020019081526020016000209081610b649190613a0b565b505050565b600c5481565b6000806000600190505b600454811015610c0357610b8c81611a92565b8015610bcb5750610b9c81610dbc565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b15610bf057838203610be1578092505050610c3f565b8180610bec90613add565b9250505b8080610bfb90613add565b915050610b79565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3690613b97565b60405180910390fd5b92915050565b610c6083838360405180602001604052806000815250611448565b505050565b610c6d611ec1565b6000610c77610ac6565b90506009548282610c889190613bb7565b1115610cc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc090613c37565b60405180910390fd5b610cd38383611f3f565b505050565b6000610ce2610ac6565b8210610d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1a90613cc9565b60405180910390fd5b600080600190505b600454811015610d7657610d3e81611a92565b15610d6357838203610d54578092505050610d79565b8180610d5f90613add565b9250505b8080610d6e90613add565b915050610d2b565b50505b919050565b610d86611ec1565b8181600e9182610d97929190613cf4565b505050565b600d6020528060005260406000206000915054906101000a900460ff1681565b600080610dc883611f5d565b50905080915050919050565b610ddc611ec1565b80600a60006101000a81548160ff02191690831515021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6090613e36565b60405180910390fd5b600080600190505b600454811015610ee357610e8481611a92565b15610ed257610e9281610dbc565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610ed15781610ece90613add565b91505b5b80610edc90613add565b9050610e71565b5080915050919050565b610ef5611ec1565b610eff6000611fee565b565b610f09611ec1565b80600c8190555050565b610f1b611ec1565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f91611ec1565b80600d600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b606060028054610fcf90613583565b80601f0160208091040260200160405190810160405280929190818152602001828054610ffb90613583565b80156110485780601f1061101d57610100808354040283529160200191611048565b820191906000526020600020905b81548152906001019060200180831161102b57829003601f168201915b5050505050905090565b600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016110b09190612d7a565b602060405180830381865afa1580156110cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f19190613e6b565b905080915050919050565b611104611aa0565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611171576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116890613ee4565b60405180910390fd5b806006600061117e611aa0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661122b611aa0565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112709190612c09565b60405180910390a35050565b600a60009054906101000a900460ff1681565b600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5985856040518363ffffffff1660e01b81526004016112ef929190613f04565b602060405180830381865afa15801561130c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113309190613e6b565b90508091505092915050565b6000808484604051602001611352929190613f96565b60405160208183030381529060405280519060200120905060005b83518110156114385783818151811061138957611388613fc2565b5b602002602001015182106113df578381815181106113aa576113a9613fc2565b5b6020026020010151826040516020016113c4929190614012565b60405160208183030381529060405280519060200120611423565b818482815181106113f3576113f2613fc2565b5b602002602001015160405160200161140c929190614012565b604051602081830303815290604052805190602001205b9150808061143090613add565b91505061136d565b50600c5481149150509392505050565b611459611453611aa0565b83611b61565b611498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148f9061383f565b60405180910390fd5b6114a4848484846120b4565b50505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060001515600d600084815260200190815260200160002060009054906101000a900460ff1615150361152d5761150782612112565b60405160200161151791906140c6565b60405160208183030381529060405290506115cc565b600f6000838152602001908152602001600020805461154b90613583565b80601f016020809104026020016040519081016040528092919081815260200182805461157790613583565b80156115c45780601f10611599576101008083540402835291602001916115c4565b820191906000526020600020905b8154815290600101906020018083116115a757829003601f168201915b505050505090505b919050565b600b6020528060005260406000206000915090505481565b600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632dd7c658846040518263ffffffff1660e01b81526004016116479190612e10565b602060405180830381865afa158015611664573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168891906140fd565b905080915050919050565b60095481565b6116a16121b9565b600a60009054906101000a900460ff166116f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e790614176565b60405180910390fd5b6116fb33838361133c565b61173a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611731906141e2565b60405180910390fd5b6000821161177d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117749061424e565b60405180910390fd5b828210156117c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b7906142ba565b60405180910390fd5b82600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461180b9190613bb7565b82101561184d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184490614326565b60405180910390fd5b600954611858610ac6565b846118639190613bb7565b11156118a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189b90614392565b60405180910390fd5b82600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118f39190613bb7565b925050819055506119043384611f3f565b61190c612208565b505050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119ad611ec1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611a1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1390614424565b60405180910390fd5b611a2581611fee565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060045482109050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611b1b83610dbc565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b6c82611a92565b611bab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba2906144b6565b60405180910390fd5b6000611bb683610dbc565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611c2557508373ffffffffffffffffffffffffffffffffffffffff16611c0d8461092a565b73ffffffffffffffffffffffffffffffffffffffff16145b80611c365750611c358185611911565b5b91505092915050565b600080611c4b83611f5d565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611cbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb490614548565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611d2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d23906145da565b60405180910390fd5b611d398585856001612212565b611d44600084611aa8565b6000600184611d539190613bb7565b9050611d6981600061221890919063ffffffff16565b158015611d77575060045481105b15611de357856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611de281600061227390919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818414611e5157611e5084600061227390919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611eb986868660016122d0565b505050505050565b611ec9611aa0565b73ffffffffffffffffffffffffffffffffffffffff16611ee7610f5f565b73ffffffffffffffffffffffffffffffffffffffff1614611f3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3490614646565b60405180910390fd5b565b611f598282604051806020016040528060008152506122d6565b5050565b600080611f6983611a92565b611fa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9f906146d8565b60405180910390fd5b611fb18361233a565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6120bf848484611c3f565b6120cd848484600185612357565b61210c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121039061476a565b60405180910390fd5b50505050565b606061211d82611a92565b61215c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612153906147fc565b60405180910390fd5b6000612166612519565b9050600081511161218657604051806020016040528060008152506121b1565b80612190846125ab565b6040516020016121a192919061481c565b6040516020818303038152906040525b915050919050565b6002600854036121fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f59061488c565b60405180910390fd5b6002600881905550565b6001600881905550565b50505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b50505050565b600060045490506122e78484612679565b6122f5600085838686612357565b612334576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232b9061476a565b60405180910390fd5b50505050565b600061235082600061285990919063ffffffff16565b9050919050565b60006123788573ffffffffffffffffffffffffffffffffffffffff16612952565b1561250b576001905060008490505b83856123939190613bb7565b811015612505578573ffffffffffffffffffffffffffffffffffffffff1663150b7a026123be611aa0565b8984876040518563ffffffff1660e01b81526004016123e09493929190614901565b6020604051808303816000875af192505050801561241c57506040513d601f19601f820116820180604052508101906124199190614962565b60015b61249e573d806000811461244c576040519150601f19603f3d011682016040523d82523d6000602084013e612451565b606091505b506000815103612496576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248d9061476a565b60405180910390fd5b805181602001fd5b8280156124ef575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b92505080806124fd90613add565b915050612387565b50612510565b600190505b95945050505050565b6060600e805461252890613583565b80601f016020809104026020016040519081016040528092919081815260200182805461255490613583565b80156125a15780601f10612576576101008083540402835291602001916125a1565b820191906000526020600020905b81548152906001019060200180831161258457829003601f168201915b5050505050905090565b6060600060016125ba84612975565b01905060008167ffffffffffffffff8111156125d9576125d8612e88565b5b6040519080825280601f01601f19166020018201604052801561260b5781602001600182028036833780820191505090505b509050600082602001820190505b60011561266e578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816126625761266161498f565b5b04945060008503612619575b819350505050919050565b60006004549050600082116126c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ba90614a30565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612732576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272990614ac2565b60405180910390fd5b61273f6000848385612212565b81600460008282546127519190613bb7565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506127be81600061227390919063ffffffff16565b6127cb60008483856122d0565b60008190505b82826127dd9190613bb7565b81101561285357808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808061284b90613add565b9150506127d1565b50505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c905060008111156128b2576128a081612ac8565b60ff168203600884901b179350612949565b5b60011561294857600083116128fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f490614b54565b60405180910390fd5b82806001900393505085600001600084815260200190815260200160002054905060008111156129435761293081612ac8565b60ff0360ff16600884901b179350612948565b6128b3565b5b50505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106129d3577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816129c9576129c861498f565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612a10576d04ee2d6d415b85acef81000000008381612a0657612a0561498f565b5b0492506020810190505b662386f26fc100008310612a3f57662386f26fc100008381612a3557612a3461498f565b5b0492506010810190505b6305f5e1008310612a68576305f5e1008381612a5e57612a5d61498f565b5b0492506008810190505b6127108310612a8d576127108381612a8357612a8261498f565b5b0492506004810190505b60648310612ab05760648381612aa657612aa561498f565b5b0492506002810190505b600a8310612abf576001810190505b80915050919050565b60006040518061012001604052806101008152602001614b75610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff612b1185612b3a565b02901c81518110612b2557612b24613fc2565b5b602001015160f81c60f81b60f81c9050919050565b6000808211612b4857600080fd5b8160000382169050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612b9e81612b69565b8114612ba957600080fd5b50565b600081359050612bbb81612b95565b92915050565b600060208284031215612bd757612bd6612b5f565b5b6000612be584828501612bac565b91505092915050565b60008115159050919050565b612c0381612bee565b82525050565b6000602082019050612c1e6000830184612bfa565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612c5e578082015181840152602081019050612c43565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c8682612c24565b612c908185612c2f565b9350612ca0818560208601612c40565b612ca981612c6a565b840191505092915050565b60006020820190508181036000830152612cce8184612c7b565b905092915050565b6000819050919050565b612ce981612cd6565b8114612cf457600080fd5b50565b600081359050612d0681612ce0565b92915050565b600060208284031215612d2257612d21612b5f565b5b6000612d3084828501612cf7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612d6482612d39565b9050919050565b612d7481612d59565b82525050565b6000602082019050612d8f6000830184612d6b565b92915050565b612d9e81612d59565b8114612da957600080fd5b50565b600081359050612dbb81612d95565b92915050565b60008060408385031215612dd857612dd7612b5f565b5b6000612de685828601612dac565b9250506020612df785828601612cf7565b9150509250929050565b612e0a81612cd6565b82525050565b6000602082019050612e256000830184612e01565b92915050565b600080600060608486031215612e4457612e43612b5f565b5b6000612e5286828701612dac565b9350506020612e6386828701612dac565b9250506040612e7486828701612cf7565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ec082612c6a565b810181811067ffffffffffffffff82111715612edf57612ede612e88565b5b80604052505050565b6000612ef2612b55565b9050612efe8282612eb7565b919050565b600067ffffffffffffffff821115612f1e57612f1d612e88565b5b612f2782612c6a565b9050602081019050919050565b82818337600083830152505050565b6000612f56612f5184612f03565b612ee8565b905082815260208101848484011115612f7257612f71612e83565b5b612f7d848285612f34565b509392505050565b600082601f830112612f9a57612f99612e7e565b5b8135612faa848260208601612f43565b91505092915050565b60008060408385031215612fca57612fc9612b5f565b5b6000612fd885828601612cf7565b925050602083013567ffffffffffffffff811115612ff957612ff8612b64565b5b61300585828601612f85565b9150509250929050565b6000819050919050565b6130228161300f565b82525050565b600060208201905061303d6000830184613019565b92915050565b600080fd5b600080fd5b60008083601f84011261306357613062612e7e565b5b8235905067ffffffffffffffff8111156130805761307f613043565b5b60208301915083600182028301111561309c5761309b613048565b5b9250929050565b600080602083850312156130ba576130b9612b5f565b5b600083013567ffffffffffffffff8111156130d8576130d7612b64565b5b6130e48582860161304d565b92509250509250929050565b6130f981612bee565b811461310457600080fd5b50565b600081359050613116816130f0565b92915050565b60006020828403121561313257613131612b5f565b5b600061314084828501613107565b91505092915050565b60006020828403121561315f5761315e612b5f565b5b600061316d84828501612dac565b91505092915050565b61317f8161300f565b811461318a57600080fd5b50565b60008135905061319c81613176565b92915050565b6000602082840312156131b8576131b7612b5f565b5b60006131c68482850161318d565b91505092915050565b600080604083850312156131e6576131e5612b5f565b5b60006131f485828601612cf7565b925050602061320585828601613107565b9150509250929050565b6000806040838503121561322657613225612b5f565b5b600061323485828601612dac565b925050602061324585828601613107565b9150509250929050565b600067ffffffffffffffff82111561326a57613269612e88565b5b602082029050602081019050919050565b600061328e6132898461324f565b612ee8565b905080838252602082019050602084028301858111156132b1576132b0613048565b5b835b818110156132da57806132c6888261318d565b8452602084019350506020810190506132b3565b5050509392505050565b600082601f8301126132f9576132f8612e7e565b5b813561330984826020860161327b565b91505092915050565b60008060006060848603121561332b5761332a612b5f565b5b600061333986828701612dac565b935050602061334a86828701612cf7565b925050604084013567ffffffffffffffff81111561336b5761336a612b64565b5b613377868287016132e4565b9150509250925092565b600067ffffffffffffffff82111561339c5761339b612e88565b5b6133a582612c6a565b9050602081019050919050565b60006133c56133c084613381565b612ee8565b9050828152602081018484840111156133e1576133e0612e83565b5b6133ec848285612f34565b509392505050565b600082601f83011261340957613408612e7e565b5b81356134198482602086016133b2565b91505092915050565b6000806000806080858703121561343c5761343b612b5f565b5b600061344a87828801612dac565b945050602061345b87828801612dac565b935050604061346c87828801612cf7565b925050606085013567ffffffffffffffff81111561348d5761348c612b64565b5b613499878288016133f4565b91505092959194509250565b6000806000606084860312156134be576134bd612b5f565b5b60006134cc86828701612cf7565b93505060206134dd86828701612cf7565b925050604084013567ffffffffffffffff8111156134fe576134fd612b64565b5b61350a868287016132e4565b9150509250925092565b6000806040838503121561352b5761352a612b5f565b5b600061353985828601612dac565b925050602061354a85828601612dac565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061359b57607f821691505b6020821081036135ae576135ad613554565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613610602f83612c2f565b915061361b826135b4565b604082019050919050565b6000602082019050818103600083015261363f81613603565b9050919050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b60006136a2602483612c2f565b91506136ad82613646565b604082019050919050565b600060208201905081810360008301526136d181613695565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000613734603b83612c2f565b915061373f826136d8565b604082019050919050565b6000602082019050818103600083015261376381613727565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006137a482612cd6565b91506137af83612cd6565b92508282039050818111156137c7576137c661376a565b5b92915050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b6000613829603483612c2f565b9150613834826137cd565b604082019050919050565b600060208201905081810360008301526138588161381c565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026138c17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613884565b6138cb8683613884565b95508019841693508086168417925050509392505050565b6000819050919050565b60006139086139036138fe84612cd6565b6138e3565b612cd6565b9050919050565b6000819050919050565b613922836138ed565b61393661392e8261390f565b848454613891565b825550505050565b600090565b61394b61393e565b613956818484613919565b505050565b5b8181101561397a5761396f600082613943565b60018101905061395c565b5050565b601f8211156139bf576139908161385f565b61399984613874565b810160208510156139a8578190505b6139bc6139b485613874565b83018261395b565b50505b505050565b600082821c905092915050565b60006139e2600019846008026139c4565b1980831691505092915050565b60006139fb83836139d1565b9150826002028217905092915050565b613a1482612c24565b67ffffffffffffffff811115613a2d57613a2c612e88565b5b613a378254613583565b613a4282828561397e565b600060209050601f831160018114613a755760008415613a63578287015190505b613a6d85826139ef565b865550613ad5565b601f198416613a838661385f565b60005b82811015613aab57848901518255600182019150602085019450602081019050613a86565b86831015613ac85784890151613ac4601f8916826139d1565b8355505b6001600288020188555050505b505050505050565b6000613ae882612cd6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613b1a57613b1961376a565b5b600182019050919050565b7f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60008201527f756e647300000000000000000000000000000000000000000000000000000000602082015250565b6000613b81602483612c2f565b9150613b8c82613b25565b604082019050919050565b60006020820190508181036000830152613bb081613b74565b9050919050565b6000613bc282612cd6565b9150613bcd83612cd6565b9250828201905080821115613be557613be461376a565b5b92915050565b7f4d617820737570706c79206f7665720000000000000000000000000000000000600082015250565b6000613c21600f83612c2f565b9150613c2c82613beb565b602082019050919050565b60006020820190508181036000830152613c5081613c14565b9050919050565b7f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260008201527f6f756e6473000000000000000000000000000000000000000000000000000000602082015250565b6000613cb3602583612c2f565b9150613cbe82613c57565b604082019050919050565b60006020820190508181036000830152613ce281613ca6565b9050919050565b600082905092915050565b613cfe8383613ce9565b67ffffffffffffffff811115613d1757613d16612e88565b5b613d218254613583565b613d2c82828561397e565b6000601f831160018114613d5b5760008415613d49578287013590505b613d5385826139ef565b865550613dbb565b601f198416613d698661385f565b60005b82811015613d9157848901358255600182019150602085019450602081019050613d6c565b86831015613dae5784890135613daa601f8916826139d1565b8355505b6001600288020188555050505b50505050505050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b6000613e20602d83612c2f565b9150613e2b82613dc4565b604082019050919050565b60006020820190508181036000830152613e4f81613e13565b9050919050565b600081519050613e6581612ce0565b92915050565b600060208284031215613e8157613e80612b5f565b5b6000613e8f84828501613e56565b91505092915050565b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b6000613ece601c83612c2f565b9150613ed982613e98565b602082019050919050565b60006020820190508181036000830152613efd81613ec1565b9050919050565b6000604082019050613f196000830185612d6b565b613f266020830184612e01565b9392505050565b60008160601b9050919050565b6000613f4582613f2d565b9050919050565b6000613f5782613f3a565b9050919050565b613f6f613f6a82612d59565b613f4c565b82525050565b6000819050919050565b613f90613f8b82612cd6565b613f75565b82525050565b6000613fa28285613f5e565b601482019150613fb28284613f7f565b6020820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b61400c6140078261300f565b613ff1565b82525050565b600061401e8285613ffb565b60208201915061402e8284613ffb565b6020820191508190509392505050565b600081905092915050565b600061405482612c24565b61405e818561403e565b935061406e818560208601612c40565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006140b060058361403e565b91506140bb8261407a565b600582019050919050565b60006140d28284614049565b91506140dd826140a3565b915081905092915050565b6000815190506140f781612d95565b92915050565b60006020828403121561411357614112612b5f565b5b6000614121848285016140e8565b91505092915050565b7f53616c6520697320706175736564000000000000000000000000000000000000600082015250565b6000614160600e83612c2f565b915061416b8261412a565b602082019050919050565b6000602082019050818103600083015261418f81614153565b9050919050565b7f496e76616c696420636f756e7400000000000000000000000000000000000000600082015250565b60006141cc600d83612c2f565b91506141d782614196565b602082019050919050565b600060208201905081810360008301526141fb816141bf565b9050919050565b7f596f752068617665206e6f20414c000000000000000000000000000000000000600082015250565b6000614238600e83612c2f565b915061424382614202565b602082019050919050565b600060208201905081810360008301526142678161422b565b9050919050565b7f4f766572206d6178206d696e74207065722077616c6c65740000000000000000600082015250565b60006142a4601883612c2f565b91506142af8261426e565b602082019050919050565b600060208201905081810360008301526142d381614297565b9050919050565b7f596f752068617665206e6f206d696e74206c6566740000000000000000000000600082015250565b6000614310601583612c2f565b915061431b826142da565b602082019050919050565b6000602082019050818103600083015261433f81614303565b9050919050565b7f4e6f206d6f7265204e4654730000000000000000000000000000000000000000600082015250565b600061437c600c83612c2f565b915061438782614346565b602082019050919050565b600060208201905081810360008301526143ab8161436f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061440e602683612c2f565b9150614419826143b2565b604082019050919050565b6000602082019050818103600083015261443d81614401565b9050919050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006144a0602f83612c2f565b91506144ab82614444565b604082019050919050565b600060208201905081810360008301526144cf81614493565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b6000614532602c83612c2f565b915061453d826144d6565b604082019050919050565b6000602082019050818103600083015261456181614525565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b60006145c4602783612c2f565b91506145cf82614568565b604082019050919050565b600060208201905081810360008301526145f3816145b7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614630602083612c2f565b915061463b826145fa565b602082019050919050565b6000602082019050818103600083015261465f81614623565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006146c2602c83612c2f565b91506146cd82614666565b604082019050919050565b600060208201905081810360008301526146f1816146b5565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b6000614754603583612c2f565b915061475f826146f8565b604082019050919050565b6000602082019050818103600083015261478381614747565b9050919050565b7f4552433732315073693a2055524920717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006147e6602a83612c2f565b91506147f18261478a565b604082019050919050565b60006020820190508181036000830152614815816147d9565b9050919050565b60006148288285614049565b91506148348284614049565b91508190509392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614876601f83612c2f565b915061488182614840565b602082019050919050565b600060208201905081810360008301526148a581614869565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006148d3826148ac565b6148dd81856148b7565b93506148ed818560208601612c40565b6148f681612c6a565b840191505092915050565b60006080820190506149166000830187612d6b565b6149236020830186612d6b565b6149306040830185612e01565b818103606083015261494281846148c8565b905095945050505050565b60008151905061495c81612b95565b92915050565b60006020828403121561497857614977612b5f565b5b60006149868482850161494d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b6000614a1a602583612c2f565b9150614a25826149be565b604082019050919050565b60006020820190508181036000830152614a4981614a0d565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614aac602383612c2f565b9150614ab782614a50565b604082019050919050565b60006020820190508181036000830152614adb81614a9f565b9050919050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b6000614b3e603483612c2f565b9150614b4982614ae2565b604082019050919050565b60006020820190508181036000830152614b6d81614b31565b905091905056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a26469706673582212209dddd4b6a9c5f7f2bb7cdafb4ebad27ab660342914c1a7dba2514c66a9ea6fa864736f6c634300081300332553bececa5745bf2e6109a7c84ebe8054cce9c35f580ad71a9a79518ce2830400000000000000000000000000000000000000000000000000000000000000600000000000000000000000004832d88a60c1bee42b3a8fa8c5dc74f1053c5413000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f6879616b6b692d67656e657261746976652d70726f642e7765622e6170702f6d657461646174612f00000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102275760003560e01c80637cb6475911610130578063ad1c2993116100b8578063ce88b1451161007c578063ce88b14514610698578063d5abeb01146106c8578063e6d37b88146106e6578063e985e9c514610702578063f2fde38b1461073257610227565b8063ad1c2993146105ce578063b88d4fde146105fe578063c0a15e991461061a578063c87b56dd14610638578063c884ef831461066857610227565b806395d89b41116100ff57806395d89b41146105165780639b96eece14610534578063a22cb46514610564578063ab0bcc4114610580578063ac615f701461059e57610227565b80637cb64759146104a45780638c30ffe6146104c05780638da5cb5b146104dc57806391f35a6d146104fa57610227565b806342842e0e116101b35780635fa964d6116101825780635fa964d6146103ee5780636352211e1461041e5780636c9119181461044e57806370a082311461046a578063715018a61461049a57610227565b806342842e0e1461036a578063484b973c146103865780634f6ccce7146103a257806355f804b3146103d257610227565b806318160ddd116101fa57806318160ddd146102c657806323b872dd146102e4578063285d0595146103005780632eb4a7ab1461031c5780632f745c591461033a57610227565b806301ffc9a71461022c57806306fdde031461025c578063081812fc1461027a578063095ea7b3146102aa575b600080fd5b61024660048036038101906102419190612bc1565b61074e565b6040516102539190612c09565b60405180910390f35b610264610898565b6040516102719190612cb4565b60405180910390f35b610294600480360381019061028f9190612d0c565b61092a565b6040516102a19190612d7a565b60405180910390f35b6102c460048036038101906102bf9190612dc1565b6109af565b005b6102ce610ac6565b6040516102db9190612e10565b60405180910390f35b6102fe60048036038101906102f99190612e2b565b610adc565b005b61031a60048036038101906103159190612fb3565b610b3c565b005b610324610b69565b6040516103319190613028565b60405180910390f35b610354600480360381019061034f9190612dc1565b610b6f565b6040516103619190612e10565b60405180910390f35b610384600480360381019061037f9190612e2b565b610c45565b005b6103a0600480360381019061039b9190612dc1565b610c65565b005b6103bc60048036038101906103b79190612d0c565b610cd8565b6040516103c99190612e10565b60405180910390f35b6103ec60048036038101906103e791906130a3565b610d7e565b005b61040860048036038101906104039190612d0c565b610d9c565b6040516104159190612c09565b60405180910390f35b61043860048036038101906104339190612d0c565b610dbc565b6040516104459190612d7a565b60405180910390f35b6104686004803603810190610463919061311c565b610dd4565b005b610484600480360381019061047f9190613149565b610df9565b6040516104919190612e10565b60405180910390f35b6104a2610eed565b005b6104be60048036038101906104b991906131a2565b610f01565b005b6104da60048036038101906104d59190613149565b610f13565b005b6104e4610f5f565b6040516104f19190612d7a565b60405180910390f35b610514600480360381019061050f91906131cf565b610f89565b005b61051e610fc0565b60405161052b9190612cb4565b60405180910390f35b61054e60048036038101906105499190613149565b611052565b60405161055b9190612e10565b60405180910390f35b61057e6004803603810190610579919061320f565b6110fc565b005b61058861127c565b6040516105959190612c09565b60405180910390f35b6105b860048036038101906105b39190612dc1565b61128f565b6040516105c59190612e10565b60405180910390f35b6105e860048036038101906105e39190613312565b61133c565b6040516105f59190612c09565b60405180910390f35b61061860048036038101906106139190613422565b611448565b005b6106226114aa565b60405161062f9190612d7a565b60405180910390f35b610652600480360381019061064d9190612d0c565b6114d0565b60405161065f9190612cb4565b60405180910390f35b610682600480360381019061067d9190613149565b6115d1565b60405161068f9190612e10565b60405180910390f35b6106b260048036038101906106ad9190612d0c565b6115e9565b6040516106bf9190612d7a565b60405180910390f35b6106d0611693565b6040516106dd9190612e10565b60405180910390f35b61070060048036038101906106fb91906134a5565b611699565b005b61071c60048036038101906107179190613514565b611911565b6040516107299190612c09565b60405180910390f35b61074c60048036038101906107479190613149565b6119a5565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061081957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061088157507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610891575061089082611a28565b5b9050919050565b6060600180546108a790613583565b80601f01602080910402602001604051908101604052809291908181526020018280546108d390613583565b80156109205780601f106108f557610100808354040283529160200191610920565b820191906000526020600020905b81548152906001019060200180831161090357829003601f168201915b5050505050905090565b600061093582611a92565b610974576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096b90613626565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109ba82610dbc565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a21906136b8565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a49611aa0565b73ffffffffffffffffffffffffffffffffffffffff161480610a785750610a7781610a72611aa0565b611911565b5b610ab7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aae9061374a565b60405180910390fd5b610ac18383611aa8565b505050565b60006001600454610ad79190613799565b905090565b610aed610ae7611aa0565b82611b61565b610b2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b239061383f565b60405180910390fd5b610b37838383611c3f565b505050565b610b44611ec1565b80600f60008481526020019081526020016000209081610b649190613a0b565b505050565b600c5481565b6000806000600190505b600454811015610c0357610b8c81611a92565b8015610bcb5750610b9c81610dbc565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b15610bf057838203610be1578092505050610c3f565b8180610bec90613add565b9250505b8080610bfb90613add565b915050610b79565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3690613b97565b60405180910390fd5b92915050565b610c6083838360405180602001604052806000815250611448565b505050565b610c6d611ec1565b6000610c77610ac6565b90506009548282610c889190613bb7565b1115610cc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc090613c37565b60405180910390fd5b610cd38383611f3f565b505050565b6000610ce2610ac6565b8210610d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1a90613cc9565b60405180910390fd5b600080600190505b600454811015610d7657610d3e81611a92565b15610d6357838203610d54578092505050610d79565b8180610d5f90613add565b9250505b8080610d6e90613add565b915050610d2b565b50505b919050565b610d86611ec1565b8181600e9182610d97929190613cf4565b505050565b600d6020528060005260406000206000915054906101000a900460ff1681565b600080610dc883611f5d565b50905080915050919050565b610ddc611ec1565b80600a60006101000a81548160ff02191690831515021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6090613e36565b60405180910390fd5b600080600190505b600454811015610ee357610e8481611a92565b15610ed257610e9281610dbc565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610ed15781610ece90613add565b91505b5b80610edc90613add565b9050610e71565b5080915050919050565b610ef5611ec1565b610eff6000611fee565b565b610f09611ec1565b80600c8190555050565b610f1b611ec1565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f91611ec1565b80600d600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b606060028054610fcf90613583565b80601f0160208091040260200160405190810160405280929190818152602001828054610ffb90613583565b80156110485780601f1061101d57610100808354040283529160200191611048565b820191906000526020600020905b81548152906001019060200180831161102b57829003601f168201915b5050505050905090565b600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016110b09190612d7a565b602060405180830381865afa1580156110cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f19190613e6b565b905080915050919050565b611104611aa0565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611171576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116890613ee4565b60405180910390fd5b806006600061117e611aa0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661122b611aa0565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112709190612c09565b60405180910390a35050565b600a60009054906101000a900460ff1681565b600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5985856040518363ffffffff1660e01b81526004016112ef929190613f04565b602060405180830381865afa15801561130c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113309190613e6b565b90508091505092915050565b6000808484604051602001611352929190613f96565b60405160208183030381529060405280519060200120905060005b83518110156114385783818151811061138957611388613fc2565b5b602002602001015182106113df578381815181106113aa576113a9613fc2565b5b6020026020010151826040516020016113c4929190614012565b60405160208183030381529060405280519060200120611423565b818482815181106113f3576113f2613fc2565b5b602002602001015160405160200161140c929190614012565b604051602081830303815290604052805190602001205b9150808061143090613add565b91505061136d565b50600c5481149150509392505050565b611459611453611aa0565b83611b61565b611498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148f9061383f565b60405180910390fd5b6114a4848484846120b4565b50505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060001515600d600084815260200190815260200160002060009054906101000a900460ff1615150361152d5761150782612112565b60405160200161151791906140c6565b60405160208183030381529060405290506115cc565b600f6000838152602001908152602001600020805461154b90613583565b80601f016020809104026020016040519081016040528092919081815260200182805461157790613583565b80156115c45780601f10611599576101008083540402835291602001916115c4565b820191906000526020600020905b8154815290600101906020018083116115a757829003601f168201915b505050505090505b919050565b600b6020528060005260406000206000915090505481565b600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632dd7c658846040518263ffffffff1660e01b81526004016116479190612e10565b602060405180830381865afa158015611664573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168891906140fd565b905080915050919050565b60095481565b6116a16121b9565b600a60009054906101000a900460ff166116f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e790614176565b60405180910390fd5b6116fb33838361133c565b61173a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611731906141e2565b60405180910390fd5b6000821161177d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117749061424e565b60405180910390fd5b828210156117c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b7906142ba565b60405180910390fd5b82600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461180b9190613bb7565b82101561184d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184490614326565b60405180910390fd5b600954611858610ac6565b846118639190613bb7565b11156118a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189b90614392565b60405180910390fd5b82600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118f39190613bb7565b925050819055506119043384611f3f565b61190c612208565b505050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119ad611ec1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611a1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1390614424565b60405180910390fd5b611a2581611fee565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060045482109050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611b1b83610dbc565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b6c82611a92565b611bab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba2906144b6565b60405180910390fd5b6000611bb683610dbc565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611c2557508373ffffffffffffffffffffffffffffffffffffffff16611c0d8461092a565b73ffffffffffffffffffffffffffffffffffffffff16145b80611c365750611c358185611911565b5b91505092915050565b600080611c4b83611f5d565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611cbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb490614548565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611d2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d23906145da565b60405180910390fd5b611d398585856001612212565b611d44600084611aa8565b6000600184611d539190613bb7565b9050611d6981600061221890919063ffffffff16565b158015611d77575060045481105b15611de357856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611de281600061227390919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818414611e5157611e5084600061227390919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611eb986868660016122d0565b505050505050565b611ec9611aa0565b73ffffffffffffffffffffffffffffffffffffffff16611ee7610f5f565b73ffffffffffffffffffffffffffffffffffffffff1614611f3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3490614646565b60405180910390fd5b565b611f598282604051806020016040528060008152506122d6565b5050565b600080611f6983611a92565b611fa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9f906146d8565b60405180910390fd5b611fb18361233a565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6120bf848484611c3f565b6120cd848484600185612357565b61210c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121039061476a565b60405180910390fd5b50505050565b606061211d82611a92565b61215c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612153906147fc565b60405180910390fd5b6000612166612519565b9050600081511161218657604051806020016040528060008152506121b1565b80612190846125ab565b6040516020016121a192919061481c565b6040516020818303038152906040525b915050919050565b6002600854036121fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f59061488c565b60405180910390fd5b6002600881905550565b6001600881905550565b50505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b50505050565b600060045490506122e78484612679565b6122f5600085838686612357565b612334576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232b9061476a565b60405180910390fd5b50505050565b600061235082600061285990919063ffffffff16565b9050919050565b60006123788573ffffffffffffffffffffffffffffffffffffffff16612952565b1561250b576001905060008490505b83856123939190613bb7565b811015612505578573ffffffffffffffffffffffffffffffffffffffff1663150b7a026123be611aa0565b8984876040518563ffffffff1660e01b81526004016123e09493929190614901565b6020604051808303816000875af192505050801561241c57506040513d601f19601f820116820180604052508101906124199190614962565b60015b61249e573d806000811461244c576040519150601f19603f3d011682016040523d82523d6000602084013e612451565b606091505b506000815103612496576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248d9061476a565b60405180910390fd5b805181602001fd5b8280156124ef575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b92505080806124fd90613add565b915050612387565b50612510565b600190505b95945050505050565b6060600e805461252890613583565b80601f016020809104026020016040519081016040528092919081815260200182805461255490613583565b80156125a15780601f10612576576101008083540402835291602001916125a1565b820191906000526020600020905b81548152906001019060200180831161258457829003601f168201915b5050505050905090565b6060600060016125ba84612975565b01905060008167ffffffffffffffff8111156125d9576125d8612e88565b5b6040519080825280601f01601f19166020018201604052801561260b5781602001600182028036833780820191505090505b509050600082602001820190505b60011561266e578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816126625761266161498f565b5b04945060008503612619575b819350505050919050565b60006004549050600082116126c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ba90614a30565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612732576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272990614ac2565b60405180910390fd5b61273f6000848385612212565b81600460008282546127519190613bb7565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506127be81600061227390919063ffffffff16565b6127cb60008483856122d0565b60008190505b82826127dd9190613bb7565b81101561285357808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808061284b90613add565b9150506127d1565b50505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c905060008111156128b2576128a081612ac8565b60ff168203600884901b179350612949565b5b60011561294857600083116128fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f490614b54565b60405180910390fd5b82806001900393505085600001600084815260200190815260200160002054905060008111156129435761293081612ac8565b60ff0360ff16600884901b179350612948565b6128b3565b5b50505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106129d3577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816129c9576129c861498f565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612a10576d04ee2d6d415b85acef81000000008381612a0657612a0561498f565b5b0492506020810190505b662386f26fc100008310612a3f57662386f26fc100008381612a3557612a3461498f565b5b0492506010810190505b6305f5e1008310612a68576305f5e1008381612a5e57612a5d61498f565b5b0492506008810190505b6127108310612a8d576127108381612a8357612a8261498f565b5b0492506004810190505b60648310612ab05760648381612aa657612aa561498f565b5b0492506002810190505b600a8310612abf576001810190505b80915050919050565b60006040518061012001604052806101008152602001614b75610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff612b1185612b3a565b02901c81518110612b2557612b24613fc2565b5b602001015160f81c60f81b60f81c9050919050565b6000808211612b4857600080fd5b8160000382169050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612b9e81612b69565b8114612ba957600080fd5b50565b600081359050612bbb81612b95565b92915050565b600060208284031215612bd757612bd6612b5f565b5b6000612be584828501612bac565b91505092915050565b60008115159050919050565b612c0381612bee565b82525050565b6000602082019050612c1e6000830184612bfa565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612c5e578082015181840152602081019050612c43565b60008484015250505050565b6000601f19601f8301169050919050565b6000612c8682612c24565b612c908185612c2f565b9350612ca0818560208601612c40565b612ca981612c6a565b840191505092915050565b60006020820190508181036000830152612cce8184612c7b565b905092915050565b6000819050919050565b612ce981612cd6565b8114612cf457600080fd5b50565b600081359050612d0681612ce0565b92915050565b600060208284031215612d2257612d21612b5f565b5b6000612d3084828501612cf7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612d6482612d39565b9050919050565b612d7481612d59565b82525050565b6000602082019050612d8f6000830184612d6b565b92915050565b612d9e81612d59565b8114612da957600080fd5b50565b600081359050612dbb81612d95565b92915050565b60008060408385031215612dd857612dd7612b5f565b5b6000612de685828601612dac565b9250506020612df785828601612cf7565b9150509250929050565b612e0a81612cd6565b82525050565b6000602082019050612e256000830184612e01565b92915050565b600080600060608486031215612e4457612e43612b5f565b5b6000612e5286828701612dac565b9350506020612e6386828701612dac565b9250506040612e7486828701612cf7565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612ec082612c6a565b810181811067ffffffffffffffff82111715612edf57612ede612e88565b5b80604052505050565b6000612ef2612b55565b9050612efe8282612eb7565b919050565b600067ffffffffffffffff821115612f1e57612f1d612e88565b5b612f2782612c6a565b9050602081019050919050565b82818337600083830152505050565b6000612f56612f5184612f03565b612ee8565b905082815260208101848484011115612f7257612f71612e83565b5b612f7d848285612f34565b509392505050565b600082601f830112612f9a57612f99612e7e565b5b8135612faa848260208601612f43565b91505092915050565b60008060408385031215612fca57612fc9612b5f565b5b6000612fd885828601612cf7565b925050602083013567ffffffffffffffff811115612ff957612ff8612b64565b5b61300585828601612f85565b9150509250929050565b6000819050919050565b6130228161300f565b82525050565b600060208201905061303d6000830184613019565b92915050565b600080fd5b600080fd5b60008083601f84011261306357613062612e7e565b5b8235905067ffffffffffffffff8111156130805761307f613043565b5b60208301915083600182028301111561309c5761309b613048565b5b9250929050565b600080602083850312156130ba576130b9612b5f565b5b600083013567ffffffffffffffff8111156130d8576130d7612b64565b5b6130e48582860161304d565b92509250509250929050565b6130f981612bee565b811461310457600080fd5b50565b600081359050613116816130f0565b92915050565b60006020828403121561313257613131612b5f565b5b600061314084828501613107565b91505092915050565b60006020828403121561315f5761315e612b5f565b5b600061316d84828501612dac565b91505092915050565b61317f8161300f565b811461318a57600080fd5b50565b60008135905061319c81613176565b92915050565b6000602082840312156131b8576131b7612b5f565b5b60006131c68482850161318d565b91505092915050565b600080604083850312156131e6576131e5612b5f565b5b60006131f485828601612cf7565b925050602061320585828601613107565b9150509250929050565b6000806040838503121561322657613225612b5f565b5b600061323485828601612dac565b925050602061324585828601613107565b9150509250929050565b600067ffffffffffffffff82111561326a57613269612e88565b5b602082029050602081019050919050565b600061328e6132898461324f565b612ee8565b905080838252602082019050602084028301858111156132b1576132b0613048565b5b835b818110156132da57806132c6888261318d565b8452602084019350506020810190506132b3565b5050509392505050565b600082601f8301126132f9576132f8612e7e565b5b813561330984826020860161327b565b91505092915050565b60008060006060848603121561332b5761332a612b5f565b5b600061333986828701612dac565b935050602061334a86828701612cf7565b925050604084013567ffffffffffffffff81111561336b5761336a612b64565b5b613377868287016132e4565b9150509250925092565b600067ffffffffffffffff82111561339c5761339b612e88565b5b6133a582612c6a565b9050602081019050919050565b60006133c56133c084613381565b612ee8565b9050828152602081018484840111156133e1576133e0612e83565b5b6133ec848285612f34565b509392505050565b600082601f83011261340957613408612e7e565b5b81356134198482602086016133b2565b91505092915050565b6000806000806080858703121561343c5761343b612b5f565b5b600061344a87828801612dac565b945050602061345b87828801612dac565b935050604061346c87828801612cf7565b925050606085013567ffffffffffffffff81111561348d5761348c612b64565b5b613499878288016133f4565b91505092959194509250565b6000806000606084860312156134be576134bd612b5f565b5b60006134cc86828701612cf7565b93505060206134dd86828701612cf7565b925050604084013567ffffffffffffffff8111156134fe576134fd612b64565b5b61350a868287016132e4565b9150509250925092565b6000806040838503121561352b5761352a612b5f565b5b600061353985828601612dac565b925050602061354a85828601612dac565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061359b57607f821691505b6020821081036135ae576135ad613554565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613610602f83612c2f565b915061361b826135b4565b604082019050919050565b6000602082019050818103600083015261363f81613603565b9050919050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b60006136a2602483612c2f565b91506136ad82613646565b604082019050919050565b600060208201905081810360008301526136d181613695565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000613734603b83612c2f565b915061373f826136d8565b604082019050919050565b6000602082019050818103600083015261376381613727565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006137a482612cd6565b91506137af83612cd6565b92508282039050818111156137c7576137c661376a565b5b92915050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b6000613829603483612c2f565b9150613834826137cd565b604082019050919050565b600060208201905081810360008301526138588161381c565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026138c17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613884565b6138cb8683613884565b95508019841693508086168417925050509392505050565b6000819050919050565b60006139086139036138fe84612cd6565b6138e3565b612cd6565b9050919050565b6000819050919050565b613922836138ed565b61393661392e8261390f565b848454613891565b825550505050565b600090565b61394b61393e565b613956818484613919565b505050565b5b8181101561397a5761396f600082613943565b60018101905061395c565b5050565b601f8211156139bf576139908161385f565b61399984613874565b810160208510156139a8578190505b6139bc6139b485613874565b83018261395b565b50505b505050565b600082821c905092915050565b60006139e2600019846008026139c4565b1980831691505092915050565b60006139fb83836139d1565b9150826002028217905092915050565b613a1482612c24565b67ffffffffffffffff811115613a2d57613a2c612e88565b5b613a378254613583565b613a4282828561397e565b600060209050601f831160018114613a755760008415613a63578287015190505b613a6d85826139ef565b865550613ad5565b601f198416613a838661385f565b60005b82811015613aab57848901518255600182019150602085019450602081019050613a86565b86831015613ac85784890151613ac4601f8916826139d1565b8355505b6001600288020188555050505b505050505050565b6000613ae882612cd6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613b1a57613b1961376a565b5b600182019050919050565b7f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60008201527f756e647300000000000000000000000000000000000000000000000000000000602082015250565b6000613b81602483612c2f565b9150613b8c82613b25565b604082019050919050565b60006020820190508181036000830152613bb081613b74565b9050919050565b6000613bc282612cd6565b9150613bcd83612cd6565b9250828201905080821115613be557613be461376a565b5b92915050565b7f4d617820737570706c79206f7665720000000000000000000000000000000000600082015250565b6000613c21600f83612c2f565b9150613c2c82613beb565b602082019050919050565b60006020820190508181036000830152613c5081613c14565b9050919050565b7f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260008201527f6f756e6473000000000000000000000000000000000000000000000000000000602082015250565b6000613cb3602583612c2f565b9150613cbe82613c57565b604082019050919050565b60006020820190508181036000830152613ce281613ca6565b9050919050565b600082905092915050565b613cfe8383613ce9565b67ffffffffffffffff811115613d1757613d16612e88565b5b613d218254613583565b613d2c82828561397e565b6000601f831160018114613d5b5760008415613d49578287013590505b613d5385826139ef565b865550613dbb565b601f198416613d698661385f565b60005b82811015613d9157848901358255600182019150602085019450602081019050613d6c565b86831015613dae5784890135613daa601f8916826139d1565b8355505b6001600288020188555050505b50505050505050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b6000613e20602d83612c2f565b9150613e2b82613dc4565b604082019050919050565b60006020820190508181036000830152613e4f81613e13565b9050919050565b600081519050613e6581612ce0565b92915050565b600060208284031215613e8157613e80612b5f565b5b6000613e8f84828501613e56565b91505092915050565b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b6000613ece601c83612c2f565b9150613ed982613e98565b602082019050919050565b60006020820190508181036000830152613efd81613ec1565b9050919050565b6000604082019050613f196000830185612d6b565b613f266020830184612e01565b9392505050565b60008160601b9050919050565b6000613f4582613f2d565b9050919050565b6000613f5782613f3a565b9050919050565b613f6f613f6a82612d59565b613f4c565b82525050565b6000819050919050565b613f90613f8b82612cd6565b613f75565b82525050565b6000613fa28285613f5e565b601482019150613fb28284613f7f565b6020820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b61400c6140078261300f565b613ff1565b82525050565b600061401e8285613ffb565b60208201915061402e8284613ffb565b6020820191508190509392505050565b600081905092915050565b600061405482612c24565b61405e818561403e565b935061406e818560208601612c40565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006140b060058361403e565b91506140bb8261407a565b600582019050919050565b60006140d28284614049565b91506140dd826140a3565b915081905092915050565b6000815190506140f781612d95565b92915050565b60006020828403121561411357614112612b5f565b5b6000614121848285016140e8565b91505092915050565b7f53616c6520697320706175736564000000000000000000000000000000000000600082015250565b6000614160600e83612c2f565b915061416b8261412a565b602082019050919050565b6000602082019050818103600083015261418f81614153565b9050919050565b7f496e76616c696420636f756e7400000000000000000000000000000000000000600082015250565b60006141cc600d83612c2f565b91506141d782614196565b602082019050919050565b600060208201905081810360008301526141fb816141bf565b9050919050565b7f596f752068617665206e6f20414c000000000000000000000000000000000000600082015250565b6000614238600e83612c2f565b915061424382614202565b602082019050919050565b600060208201905081810360008301526142678161422b565b9050919050565b7f4f766572206d6178206d696e74207065722077616c6c65740000000000000000600082015250565b60006142a4601883612c2f565b91506142af8261426e565b602082019050919050565b600060208201905081810360008301526142d381614297565b9050919050565b7f596f752068617665206e6f206d696e74206c6566740000000000000000000000600082015250565b6000614310601583612c2f565b915061431b826142da565b602082019050919050565b6000602082019050818103600083015261433f81614303565b9050919050565b7f4e6f206d6f7265204e4654730000000000000000000000000000000000000000600082015250565b600061437c600c83612c2f565b915061438782614346565b602082019050919050565b600060208201905081810360008301526143ab8161436f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061440e602683612c2f565b9150614419826143b2565b604082019050919050565b6000602082019050818103600083015261443d81614401565b9050919050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006144a0602f83612c2f565b91506144ab82614444565b604082019050919050565b600060208201905081810360008301526144cf81614493565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b6000614532602c83612c2f565b915061453d826144d6565b604082019050919050565b6000602082019050818103600083015261456181614525565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b60006145c4602783612c2f565b91506145cf82614568565b604082019050919050565b600060208201905081810360008301526145f3816145b7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614630602083612c2f565b915061463b826145fa565b602082019050919050565b6000602082019050818103600083015261465f81614623565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006146c2602c83612c2f565b91506146cd82614666565b604082019050919050565b600060208201905081810360008301526146f1816146b5565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b6000614754603583612c2f565b915061475f826146f8565b604082019050919050565b6000602082019050818103600083015261478381614747565b9050919050565b7f4552433732315073693a2055524920717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006147e6602a83612c2f565b91506147f18261478a565b604082019050919050565b60006020820190508181036000830152614815816147d9565b9050919050565b60006148288285614049565b91506148348284614049565b91508190509392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614876601f83612c2f565b915061488182614840565b602082019050919050565b600060208201905081810360008301526148a581614869565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006148d3826148ac565b6148dd81856148b7565b93506148ed818560208601612c40565b6148f681612c6a565b840191505092915050565b60006080820190506149166000830187612d6b565b6149236020830186612d6b565b6149306040830185612e01565b818103606083015261494281846148c8565b905095945050505050565b60008151905061495c81612b95565b92915050565b60006020828403121561497857614977612b5f565b5b60006149868482850161494d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b6000614a1a602583612c2f565b9150614a25826149be565b604082019050919050565b60006020820190508181036000830152614a4981614a0d565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614aac602383612c2f565b9150614ab782614a50565b604082019050919050565b60006020820190508181036000830152614adb81614a9f565b9050919050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b6000614b3e603483612c2f565b9150614b4982614ae2565b604082019050919050565b60006020820190508181036000830152614b6d81614b31565b905091905056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a26469706673582212209dddd4b6a9c5f7f2bb7cdafb4ebad27ab660342914c1a7dba2514c66a9ea6fa864736f6c63430008130033

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

2553bececa5745bf2e6109a7c84ebe8054cce9c35f580ad71a9a79518ce2830400000000000000000000000000000000000000000000000000000000000000600000000000000000000000004832d88a60c1bee42b3a8fa8c5dc74f1053c5413000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f6879616b6b692d67656e657261746976652d70726f642e7765622e6170702f6d657461646174612f00000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _merkleRoot (bytes32): 0x2553bececa5745bf2e6109a7c84ebe8054cce9c35f580ad71a9a79518ce28304
Arg [1] : _baseTokenURI (string): https://hyakki-generative-prod.web.app/metadata/
Arg [2] : _otherContractAddress (address): 0x4832d88a60C1BeE42b3A8fa8c5DC74f1053c5413

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 2553bececa5745bf2e6109a7c84ebe8054cce9c35f580ad71a9a79518ce28304
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 0000000000000000000000004832d88a60c1bee42b3a8fa8c5dc74f1053c5413
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000030
Arg [4] : 68747470733a2f2f6879616b6b692d67656e657261746976652d70726f642e77
Arg [5] : 65622e6170702f6d657461646174612f00000000000000000000000000000000


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

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