ETH Price: $3,422.11 (+2.24%)

IROIRORemix (IROIRORemix)
 

Overview

TokenID

31830

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x64B9995f...12a76b171
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
IROIRORemix

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : IROIRORemix.sol
// Sources flattened with hardhat v2.16.1 https://hardhat.org

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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

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


// File @openzeppelin/contracts/access/[email protected]

// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract 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 @openzeppelin/contracts/utils/introspection/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface 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 @openzeppelin/contracts/interfaces/[email protected]

// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)

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


// File @openzeppelin/contracts/utils/introspection/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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


// File @openzeppelin/contracts/token/common/[email protected]

// OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol)


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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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


// File @openzeppelin/contracts/token/ERC1155/[email protected]

// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol)

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] calldata accounts,
        uint256[] calldata ids
    ) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}


// File @openzeppelin/contracts/token/ERC1155/extensions/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}


// File @openzeppelin/contracts/token/ERC1155/[email protected]

// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}


// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

/**
 * @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 @openzeppelin/contracts/token/ERC1155/[email protected]

// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/ERC1155.sol)






/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] memory accounts,
        uint256[] memory ids
    ) public view virtual override returns (uint256[] memory) {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(address from, uint256 id, uint256 amount) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(address from, uint256[] memory ids, uint256[] memory amounts) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `ids` and `amounts` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.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 @openzeppelin/contracts/token/ERC721/extensions/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface 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 @openzeppelin/contracts/token/ERC721/[email protected]

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

/**
 * @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 @openzeppelin/contracts/utils/math/[email protected]

// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

/**
 * @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 @openzeppelin/contracts/utils/math/[email protected]

// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

/**
 * @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 @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.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 @openzeppelin/contracts/token/ERC721/[email protected]

// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol)







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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

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

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

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

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

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

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

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

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

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

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

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

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

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

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

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}


// File contracts/IROIRO.sol

//------------------------------------------------------------
// Token(ERC721)
//------------------------------------------------------------
contract IROIRO is Ownable, ERC721, ERC2981{
    //--------------------------------------------------------
    // constants
    //--------------------------------------------------------
    string constant private TOKEN_NAME = "IROIRO";
    string constant private TOKEN_SYMBOL = "IROIRO";
    address constant private OWNER_ADDRESS = 0xc78b8E9f12EDbc74A708F9B5A0472B33b3B286ce;


    // Royalty
    uint96 constant private ROYALTY_FEE_NUMERATOR = 500;    // 500/10000 = 5%

    //--------------------------------------------------------
    // storage
    //--------------------------------------------------------
    address private _manager;
    address private _minter;

    string private _base_uri_for_hidden;
    string private _base_uri_for_revealed;
    uint256 private _token_id_from;
    uint256 private _token_id_to;

    //--------------------------------------------------------
    // [modifier] onlyOwnerOrManager
    //--------------------------------------------------------
    modifier onlyOwnerOrManager() {
        require( msg.sender == owner() || msg.sender == manager(), "caller is not the owner neither manager" );
        _;
    }

    //--------------------------------------------------------
    // [modifier] onlyMinter
    //--------------------------------------------------------
    modifier onlyMinter() {
        require( msg.sender == minter(), "caller is not the minter" );
        _;
    }

    //--------------------------------------------------------
    // constructor
    //--------------------------------------------------------
    constructor()  ERC721( TOKEN_NAME, TOKEN_SYMBOL ) {
        _setDefaultRoyalty( OWNER_ADDRESS, ROYALTY_FEE_NUMERATOR );
        _manager = msg.sender;

        _base_uri_for_hidden = "ipfs://QmbJAjHuXRC1nvpWa8gqwSxREo47rZwCRzff1iCpzUpt5m/";
        _token_id_from = 1;
        _token_id_to = 5000;
    }

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

    //=======================================================================
    // [external/onlyOwnerOrManager] for ERC2981
    //=======================================================================
    function setDefaultRoyalty( address receiver, uint96 feeNumerator ) external onlyOwnerOrManager { _setDefaultRoyalty( receiver, feeNumerator ); }
    function deleteDefaultRoyalty() external onlyOwnerOrManager { _deleteDefaultRoyalty(); }
    function setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) external onlyOwnerOrManager { _setTokenRoyalty( tokenId, receiver, feeNumerator ); }
    function resetTokenRoyalty( uint256 tokenId ) external onlyOwnerOrManager { _resetTokenRoyalty( tokenId ); }



    //--------------------------------------------------------
    // [public] manager
    //--------------------------------------------------------
    function manager() public view returns (address) {
        return( _manager );
    }

    //--------------------------------------------------------
    // [external/onlyOwner] setManager
    //--------------------------------------------------------
    function setManager( address target ) external onlyOwner {
        _manager = target;
    }

    //--------------------------------------------------------
    // [public] minter
    //--------------------------------------------------------
    function minter() public view returns (address) {
        return( _minter );
    }

    //--------------------------------------------------------
    // [external/onlyOwnerOrManager] setMinter
    //--------------------------------------------------------
    function setMinter( address target ) external onlyOwnerOrManager {
        _minter = target;
    }

    //--------------------------------------------------------
    // [external] get
    //--------------------------------------------------------
    function baseUriForHidden() external view returns (string memory) { return( _base_uri_for_hidden ); }
    function baseUriForRevealed() external view returns (string memory) { return( _base_uri_for_revealed ); }
    function tokenIdFrom() external view returns (uint256) { return( _token_id_from ); }
    function tokenIdTo()external view returns (uint256) { return( _token_id_to ); }

    //--------------------------------------------------------
    // [external/onlyOwnerOrManager] set
    //--------------------------------------------------------
    function setBaseUriForHidden( string calldata baseUri ) external onlyOwnerOrManager { _base_uri_for_hidden = baseUri; }
    function setBaseUriForRevealed( string calldata baseUri ) external onlyOwnerOrManager { _base_uri_for_revealed = baseUri; }
    function setTokenIdFrom( uint256 idFrom ) external onlyOwnerOrManager { _token_id_from = idFrom; }
    function setTokenIdTo( uint256 idTo )external onlyOwnerOrManager { _token_id_to = idTo; }

    //--------------------------------------------------------
    // [public/override] tokenURI
    //--------------------------------------------------------
    function tokenURI( uint256 tokenId ) public view override returns (string memory) {
        require( _exists( tokenId ), "nonexistent token" );

        if( bytes(_base_uri_for_revealed).length > 0 ){
            return( string( abi.encodePacked( _base_uri_for_revealed, Strings.toString( tokenId ) ) ) );          
        }

        return( string( abi.encodePacked( _base_uri_for_hidden, Strings.toString( tokenId ) ) ) );
    }

    //--------------------------------------------------------
    // [external/override/onlyMinter] mintByMinter
    //--------------------------------------------------------
    function mintByMinter( address to, uint256 tokenId ) external onlyMinter {
        require( tokenId >=_token_id_from && tokenId <= _token_id_to, "invalid tokenId" );

        _mint( to, tokenId );
    }

}


// File operator-filter-registry/src/[email protected]


interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}


// File contracts/IROIROShikigami.sol

// Sources flattened with hardhat v2.16.1 https://hardhat.org

// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

abstract contract UpdatableOperatorFilterer {
    address private _owner;
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);
    /// @dev Emitted when someone other than the owner is trying to call an only owner function.
    error OnlyOwner();

    event OperatorFilterRegistryAddressUpdated(address newRegistry);

    IOperatorFilterRegistry public operatorFilterRegistry;

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe) {
        _owner = msg.sender;
        IOperatorFilterRegistry registry = IOperatorFilterRegistry(_registry);
        operatorFilterRegistry = registry;
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(registry).code.length > 0) {
            if (subscribe) {
                registry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    registry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    registry.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if the operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if the operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function transferOwnershipRegister(address newOwner) public virtual {
        require(msg.sender == _owner);
        _owner = newOwner;
    }

    /**
     * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero
     *         address, checks will be bypassed. OnlyOwner.
     */
    function updateOperatorFilterRegistryAddress(address newRegistry) public virtual {
        if (msg.sender != returnOwnerRegister()) {
            revert OnlyOwner();
        }
        operatorFilterRegistry = IOperatorFilterRegistry(newRegistry);
        emit OperatorFilterRegistryAddressUpdated(newRegistry);
    }

    /**
     * @dev Assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract.
     */
    function returnOwnerRegister() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev A helper function to check if the operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        IOperatorFilterRegistry registry = operatorFilterRegistry;
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(registry) != address(0) && address(registry).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!registry.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)
/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Custom is ERC1155 {
    using Strings for uint256;

    // Optional base URI
    string private _baseURI = "";

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the concatenation of the `_baseURI`
     * and the token-specific uri if the latter is set
     *
     * This enables the following behaviors:
     *
     * - if `_tokenURIs[tokenId]` is set, then the result is the concatenation
     *   of `_baseURI` and `_tokenURIs[tokenId]` (keep in mind that `_baseURI`
     *   is empty per default);
     *
     * - if `_tokenURIs[tokenId]` is NOT set then we fallback to `super.uri()`
     *   which in most cases will contain `ERC1155._uri`;
     *
     * - if `_tokenURIs[tokenId]` is NOT set, and if the parents do not have a
     *   uri value set, then the result is empty.
     */
    function uri(uint256 tokenId) public view virtual override returns (string memory) {
        string memory tokenURI = _tokenURIs[tokenId];

        // If token URI is set, concatenate base URI and tokenURI (via abi.encodePacked).
        return bytes(tokenURI).length > 0 ? string(abi.encodePacked(_baseURI, tokenURI)) : super.uri(tokenId);
    }

    /**
     * @dev Sets `tokenURI` as the tokenURI of `tokenId`.
     */
    function _setURI(uint256 tokenId, string memory tokenURI) internal virtual {
        _tokenURIs[tokenId] = tokenURI;
        emit URI(uri(tokenId), tokenId);
    }

    /**
     * @dev Sets `baseURI` as the `_baseURI` for all tokens
     */
    function _setBaseURI(string memory baseURI) internal virtual {
        _baseURI = baseURI;
    }

    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Custom.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

contract IROIROShikigami is Ownable, ERC1155Custom, ERC2981, UpdatableOperatorFilterer {

    // *Important* 
    // IROIROShikigami contract should be deployed FIRST, before minter and burner!

    //--------------------------------------------------------
    // Storage
    //--------------------------------------------------------
    
    using Strings for uint256;

    // Royalty
    uint96 constant private ROYALTY_FEE_NUMERATOR = 500;    // 500/10000 = 5%

    address public minterContract; // Shikigami Sale contract
    address public burnerContract; // IROIRORemix contract
    address public managerAddress; // Contract manager

    address private constant ADDRESS_ZERO = 0x0000000000000000000000000000000000000000; // Check for 0 address
    // ShikigamiId => Shikigami struct
    mapping (uint256 => uint256) public shikigamiChoices; // Shikigami ID => Choices
    mapping (uint256 => uint256) public burnedShikigamiCounter; // Shikigami ID => Burned Shikigamis
    uint256 public shikigamiCount; // Count for initialized Shikigamis

    //--------------------------------------------------------
    // Events
    //--------------------------------------------------------

    event NewShikigamiInitialized(uint256 indexed shikigamiId);

    event ShikigamiBurned(address from, uint256 indexed shikigamiId,  uint256 choice);

    event ShikigamiMinted(address to, uint256 indexed shikigamiId, uint256 amount);

    //--------------------------------------------------------
    // Modifiers
    //--------------------------------------------------------

    // Adding manager address to manage the contract
    modifier onlyOwnerOrManager() {
        require(msg.sender == owner() || msg.sender == managerAddress, "Caller is not the owner neither manager!" );
        _;
    }

    //--------------------------------------------------------
    // Constructor
    //--------------------------------------------------------

    constructor(address _manager, address ROYALTY_ADDRESS) ERC1155("") UpdatableOperatorFilterer(address(0x000000000000AAeB6D7670E522A718067333cd4E), address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6), true){
        _setDefaultRoyalty( ROYALTY_ADDRESS, ROYALTY_FEE_NUMERATOR );
        managerAddress = _manager;
    }

    //--------------------------------------------------------
    // [Override] supportsInterface
    //--------------------------------------------------------

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

    //--------------------------------------------------------
    // [External][onlyOwnerOrManager] for ERC2981
    //--------------------------------------------------------
    
    function setDefaultRoyalty( address receiver, uint96 feeNumerator ) external onlyOwnerOrManager { _setDefaultRoyalty( receiver, feeNumerator ); }
    function deleteDefaultRoyalty() external onlyOwnerOrManager { _deleteDefaultRoyalty(); }
    function setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) external onlyOwnerOrManager { _setTokenRoyalty( tokenId, receiver, feeNumerator ); }
    function resetTokenRoyalty( uint256 tokenId ) external onlyOwnerOrManager { _resetTokenRoyalty( tokenId ); }

    //--------------------------------------------------------
    // [Public/Override/onlyAllowedOperatorApproval] for OperatorFilterCustom
    //--------------------------------------------------------

    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); }
    function safeBatchTransferFrom(address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) public override onlyAllowedOperator(from) { super.safeBatchTransferFrom(from, to, ids, amounts, data); }
    function safeTransferFrom(address from, address to, uint256 tokenId, uint256 amount, bytes memory data) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, amount, data); }

    //--------------------------------------------------------
    // [External][onlyOwner] Setters for Minter/Burner/Manager/Filter Register 
    //--------------------------------------------------------

    function setMinterContract (address _minterContract) external onlyOwner {
        require(_minterContract != ADDRESS_ZERO, "Address should be real!");
        require(_minterContract != minterContract, "Address already set!");

        minterContract = _minterContract;
    }

    function setBurnerContract (address _burnerContract) external onlyOwner {
        require(_burnerContract != ADDRESS_ZERO, "Address should be real!");
        require(_burnerContract != burnerContract, "Address already set!");

        burnerContract = _burnerContract;
    }

    function setManager(address to) external onlyOwner {
       managerAddress = to;
    }

    function setOperatorFilterRegistryAddress(address to) external onlyOwner {
        updateOperatorFilterRegistryAddress(to);
    }

    //--------------------------------------------------------
    // [External][onlyOwnerOrManager] Functions for managing Shikigami structs
    //--------------------------------------------------------

    // Creates new Shikigami sale struct and sets URI 
    function initializeShikigami(uint256 choiceCount, string calldata uri) external onlyOwnerOrManager {
        require(choiceCount >= 1 && choiceCount <= 10, "Amount of choices must be between 1 and 10!");
        require(keccak256(abi.encode(uri)) != keccak256(abi.encode("")), "uri can't be empty!");
        require(shikigamiChoices[shikigamiCount] == 0, "Shikigami with this ID already exists!");

        shikigamiChoices[shikigamiCount] = choiceCount;

        _setURI(shikigamiCount, uri); // Sets URI for this ID

        emit NewShikigamiInitialized(shikigamiCount);
        shikigamiCount++;
    }

    // Updates URI for a Shikigami sale struct
    function updateShikigamiURI(uint256 shikigamiId, string calldata uri) external onlyOwnerOrManager {
        require(shikigamiChoices[shikigamiId] != 0, "Shikigami with this ID doesn't exist!");
        require(keccak256(abi.encode(uri)) != keccak256(abi.encode("")), "uri can't be empty!");

        _setURI(shikigamiId, uri);
    }

    //--------------------------------------------------------
    // [Internal][onlyMinter/onlyBurner] Internal functions for minting/burning Shikigami NFTs
    //--------------------------------------------------------

    function mintShikigami(address to, uint256 shikigamiId, uint256 amount) external {
        require(msg.sender == minterContract, "Can only be called by the minter contract!"); // Checks for minter address
        require(shikigamiChoices[shikigamiId] != 0, "Shikigami with this ID doesn't exist!");

        _mint(to, shikigamiId, amount, "");

        emit ShikigamiMinted(to, shikigamiId, amount);
    }

    function burnShikigami(address from, uint256 shikigamiId, uint256 choice) external {
         require(msg.sender == burnerContract, "Can only be called by the burner contract!"); // Checks for burner address
         require(choice <= shikigamiChoiceCount(shikigamiId), "No such choice available!"); // Checks for input choice

         _burn(from, shikigamiId, 1);
         burnedShikigamiCounter[shikigamiId] += 1; // Records burned shikigami 

         emit ShikigamiBurned(from, shikigamiId, choice);
    }

    //--------------------------------------------------------
    // [View] Getters for Shikigami collection
    //--------------------------------------------------------

    // Returns array of all initialized Shikigami Structs
    function getAllShikigamiChoices() external view returns(uint256[] memory) {
        uint256[] memory result = new uint256[](shikigamiCount);
        for (uint256 i = 0; i < shikigamiCount; i++) {
          result[i]= (shikigamiChoices[i]);
        }
        return result; 
    }

    // Returns balance of every Shikigami ID for address
    function shikigamiCountForOwner(address owner) external view returns(uint256[] memory) {
        uint256[] memory result = new uint256[](shikigamiCount);
        for (uint i = 0; i < shikigamiCount; i++) {
           result[i]= (balanceOf(owner, i));
        }
        return result; 
    }

    // Returns Shikigami ID struct
    function shikigamiChoiceCount(uint256 shikigamiId) public view returns (uint) {
        return shikigamiChoices[shikigamiId]; 
    }
}


// File contracts/IDelegationRegistry.sol

/**
 * @title An immutable registry contract to be deployed as a standalone primitive
 * @dev See EIP-5639, new project launches can read previous cold wallet -> hot wallet delegations
 * from here and integrate those permissions into their flow
 */

interface IDelegationRegistry {
    /// @notice Delegation type
    enum DelegationType {
        NONE,
        ALL,
        CONTRACT,
        TOKEN
    }

    /// @notice Info about a single delegation, used for onchain enumeration
    struct DelegationInfo {
        DelegationType type_;
        address vault;
        address delegate;
        address contract_;
        uint256 tokenId;
    }

    /// @notice Info about a single contract-level delegation
    struct ContractDelegation {
        address contract_;
        address delegate;
    }

    /// @notice Info about a single token-level delegation
    struct TokenDelegation {
        address contract_;
        uint256 tokenId;
        address delegate;
    }

    /// @notice Emitted when a user delegates their entire wallet
    event DelegateForAll(address vault, address delegate, bool value);

    /// @notice Emitted when a user delegates a specific contract
    event DelegateForContract(address vault, address delegate, address contract_, bool value);

    /// @notice Emitted when a user delegates a specific token
    event DelegateForToken(address vault, address delegate, address contract_, uint256 tokenId, bool value);

    /// @notice Emitted when a user revokes all delegations
    event RevokeAllDelegates(address vault);

    /// @notice Emitted when a user revoes all delegations for a given delegate
    event RevokeDelegate(address vault, address delegate);

    /**
     * -----------  WRITE -----------
     */

    /**
     * @notice Allow the delegate to act on your behalf for all contracts
     * @param delegate The hotwallet to act on your behalf
     * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking
     */
    function delegateForAll(address delegate, bool value) external;

    /**
     * @notice Allow the delegate to act on your behalf for a specific contract
     * @param delegate The hotwallet to act on your behalf
     * @param contract_ The address for the contract you're delegating
     * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking
     */
    function delegateForContract(address delegate, address contract_, bool value) external;

    /**
     * @notice Allow the delegate to act on your behalf for a specific token
     * @param delegate The hotwallet to act on your behalf
     * @param contract_ The address for the contract you're delegating
     * @param tokenId The token id for the token you're delegating
     * @param value Whether to enable or disable delegation for this address, true for setting and false for revoking
     */
    function delegateForToken(address delegate, address contract_, uint256 tokenId, bool value) external;

    /**
     * @notice Revoke all delegates
     */
    function revokeAllDelegates() external;

    /**
     * @notice Revoke a specific delegate for all their permissions
     * @param delegate The hotwallet to revoke
     */
    function revokeDelegate(address delegate) external;

    /**
     * @notice Remove yourself as a delegate for a specific vault
     * @param vault The vault which delegated to the msg.sender, and should be removed
     */
    function revokeSelf(address vault) external;

    /**
     * -----------  READ -----------
     */

    /**
     * @notice Returns all active delegations a given delegate is able to claim on behalf of
     * @param delegate The delegate that you would like to retrieve delegations for
     * @return info Array of DelegationInfo structs
     */
    function getDelegationsByDelegate(address delegate) external view returns (DelegationInfo[] memory);

    /**
     * @notice Returns an array of wallet-level delegates for a given vault
     * @param vault The cold wallet who issued the delegation
     * @return addresses Array of wallet-level delegates for a given vault
     */
    function getDelegatesForAll(address vault) external view returns (address[] memory);

    /**
     * @notice Returns an array of contract-level delegates for a given vault and contract
     * @param vault The cold wallet who issued the delegation
     * @param contract_ The address for the contract you're delegating
     * @return addresses Array of contract-level delegates for a given vault and contract
     */
    function getDelegatesForContract(address vault, address contract_) external view returns (address[] memory);

    /**
     * @notice Returns an array of contract-level delegates for a given vault's token
     * @param vault The cold wallet who issued the delegation
     * @param contract_ The address for the contract holding the token
     * @param tokenId The token id for the token you're delegating
     * @return addresses Array of contract-level delegates for a given vault's token
     */
    function getDelegatesForToken(address vault, address contract_, uint256 tokenId)
        external
        view
        returns (address[] memory);

    /**
     * @notice Returns all contract-level delegations for a given vault
     * @param vault The cold wallet who issued the delegations
     * @return delegations Array of ContractDelegation structs
     */
    function getContractLevelDelegations(address vault)
        external
        view
        returns (ContractDelegation[] memory delegations);

    /**
     * @notice Returns all token-level delegations for a given vault
     * @param vault The cold wallet who issued the delegations
     * @return delegations Array of TokenDelegation structs
     */
    function getTokenLevelDelegations(address vault) external view returns (TokenDelegation[] memory delegations);

    /**
     * @notice Returns true if the address is delegated to act on the entire vault
     * @param delegate The hotwallet to act on your behalf
     * @param vault The cold wallet who issued the delegation
     */
    function checkDelegateForAll(address delegate, address vault) external view returns (bool);

    /**
     * @notice Returns true if the address is delegated to act on your behalf for a token contract or an entire vault
     * @param delegate The hotwallet to act on your behalf
     * @param contract_ The address for the contract you're delegating
     * @param vault The cold wallet who issued the delegation
     */
    function checkDelegateForContract(address delegate, address vault, address contract_)
        external
        view
        returns (bool);

    /**
     * @notice Returns true if the address is delegated to act on your behalf for a specific token, the token's contract or an entire vault
     * @param delegate The hotwallet to act on your behalf
     * @param contract_ The address for the contract you're delegating
     * @param tokenId The token id for the token you're delegating
     * @param vault The cold wallet who issued the delegation
     */
    function checkDelegateForToken(address delegate, address vault, address contract_, uint256 tokenId)
        external
        view
        returns (bool);
}

// File contracts/IROIRORemix.sol

contract IROIRORemix is Ownable, ERC721, ERC2981, UpdatableOperatorFilterer {

    // Made with love by uwulabs <3

    //--------------------------------------------------------
    // Storage
    //--------------------------------------------------------

    address public immutable shikigamiNftAddress; // Address for Shikigami NFT collection
    address public immutable iroiroNftAddress; // Address for IROIRO NFT collection
    address public managerAddress; 

    bool public mintActive = true; // Mint switch
    string public baseURI;
    // ShikigamiID => base URI
    mapping(uint256 => string) public baseUriPerShikigamiId; // Mapping of base URIs for IROIRORemix sorted by Shikigami ID

    IROIRO private immutable iroiro;
    IROIROShikigami private immutable shikigami; 
    IDelegationRegistry public immutable registry;

    // Royalty
    uint96 constant private ROYALTY_FEE_NUMERATOR = 500;    // 500/10000 = 5%

    //--------------------------------------------------------
    // Events
    //--------------------------------------------------------

    event IROIRORemixed(uint256 indexed shikighamiId, uint256 iroiroID,  uint256 choice, uint256 remixTokenId);

    //--------------------------------------------------------
    // Modifiers
    //--------------------------------------------------------

    modifier onlyOwnerOrManager() {
        require( msg.sender == owner() || msg.sender == managerAddress, "Caller is not the owner neither manager!" );
        _;
    }

    //--------------------------------------------------------
    // Constructor
    //--------------------------------------------------------

    constructor(address _registry, address _shikigamiNftAddress, address _iroiroNftAddress, address ROYALTY_ADDRESS, address _manager) ERC721("IROIRORemix", "IROIRORemix") UpdatableOperatorFilterer(address(0x000000000000AAeB6D7670E522A718067333cd4E), address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6), true) {
        _setDefaultRoyalty( ROYALTY_ADDRESS, ROYALTY_FEE_NUMERATOR );
        shikigamiNftAddress = _shikigamiNftAddress; // Setting up address of the Shikigami NFT contract instance
        iroiroNftAddress = _iroiroNftAddress; // Setting up address of the IROIRO NFT contract instance
        managerAddress = _manager; // Setting up manager address

        registry = IDelegationRegistry(_registry);
        shikigami = IROIROShikigami(_shikigamiNftAddress); // Creating Shikigami contract instance
        iroiro = IROIRO(_iroiroNftAddress); // Creating IROIRO contract instance
    }

    //--------------------------------------------------------
    // [Override] supportsInterface
    //--------------------------------------------------------

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

    //--------------------------------------------------------
    // [External][onlyOwnerOrManager] for ERC2981
    //--------------------------------------------------------

    function setDefaultRoyalty( address receiver, uint96 feeNumerator ) external onlyOwnerOrManager { _setDefaultRoyalty( receiver, feeNumerator ); }
    function deleteDefaultRoyalty() external onlyOwnerOrManager { _deleteDefaultRoyalty(); }
    function setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) external onlyOwnerOrManager { _setTokenRoyalty( tokenId, receiver, feeNumerator ); }
    function resetTokenRoyalty( uint256 tokenId ) external onlyOwnerOrManager { _resetTokenRoyalty( tokenId ); }

    //--------------------------------------------------------
    // [Public/Override/onlyAllowedOperatorApproval] for OperatorFilter
    //--------------------------------------------------------
    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); }
    function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); }
    function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); }
    function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); }
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); }

    //--------------------------------------------------------
    // [External] Mint IROIRORemix with a set choice for Shikigami ID.
    //--------------------------------------------------------

    function remixIROIROWithShikigami(uint256 shikigamiId, uint256 iroiroId, uint256 choice, address vault) external returns(uint256) {

        uint iroiroRemixId = constructRemixId(shikigamiId,iroiroId,choice); // Creates ID for IROIRORemix by calling constructRemixId

        require(mintActive, "Mint is not active!");
        require(!_exists(iroiroRemixId), "You've already remixed this IROIRO with this Shikigami!"); // Checks if already minted
        
        // Check for delegation 
        if (vault == address(0)) {
            vault = msg.sender;
        } else {
            require(registry.checkDelegateForContract(msg.sender, vault, address(this)), "Sender is not delegated!"); // Checks delegation 
        }
        
        require(vault == iroiro.ownerOf(iroiroId), "Ownership of IROIRO Id is not confirmed!"); // Checks IROIRO ownership

        shikigami.burnShikigami(vault, shikigamiId, choice); // Burns one Shikigami of shikigamiId
        _mint(vault, iroiroRemixId); // Mints one IROIRORemix

        emit IROIRORemixed(shikigamiId, iroiroId,  choice, iroiroRemixId);
        return iroiroRemixId;
    }

    //--------------------------------------------------------
    // [External] Setters administrative functions
    //--------------------------------------------------------
    
    function setMintActive(bool _mintActive) external onlyOwnerOrManager {
        mintActive = _mintActive;
    }

    function setManager(address to) external onlyOwner {
       managerAddress = to;
    }

    function setBaseUriPerShikigamiId(uint256 shikigamiId, string memory uri) external onlyOwnerOrManager {
        baseUriPerShikigamiId[shikigamiId] = uri;
    }

    function setOperatorFilterRegistryAddress(address to) external onlyOwner {
        updateOperatorFilterRegistryAddress(to);
    }

    //--------------------------------------------------------
    // [Pure] Creates ID for IROIRORemix as <ShikigamiId>+<IROIROID>+<Shikigami Choice>
    //--------------------------------------------------------

    function constructRemixId(uint256 shikigamiId, uint256 iroiroId, uint256 choice) public pure returns (uint) {
        require(_getDigitsCount(iroiroId) <= 4, "iroiroId must have no more than 4 digits");
        require( shikigamiId < 100, "Largest Shikigami ID is 99");
        require( choice < 10, "Largest choice count is 9");

        uint iroiroIdDigits = _getDigitsCount(iroiroId);
        uint choiceDigits = 1;
        uint extraZerosForiroiroId = 4 - iroiroIdDigits;

        uint iroiroRemixId;

        iroiroRemixId = shikigamiId * (10 ** (iroiroIdDigits + choiceDigits + extraZerosForiroiroId));
        iroiroRemixId += iroiroId * (10 ** choiceDigits) + choice;

        return iroiroRemixId;
    }
    
    function _getDigitsCount(uint num) internal pure returns (uint) {
        if (num == 0) {return 1;}
        
        uint count = 0;
        while (num != 0) {
            count++;
            num /= 10;
        }
        return count;
    }
    
    function deconstructIroiroRemixId(uint iroiroRemixId) public pure returns (uint shikigamiId, uint iroiroId, uint choice) {
        // Check if the input is a five-digit number
        if (iroiroRemixId <= 99999) {
            shikigamiId = 0;
            // Extract the middle four digits
            iroiroId = (iroiroRemixId / 10) % 10000;
            // Extract the last digit
            choice = iroiroRemixId % 10;

        } else if ((iroiroRemixId >= 100000 && iroiroRemixId <= 999999) || (iroiroRemixId >= 1000000 && iroiroRemixId <= 9999999) ){
            // If the input is a six or seven-digit number
            shikigamiId = iroiroRemixId / 100000;
            iroiroId = (iroiroRemixId / 10) % 10000;
            choice = iroiroRemixId % 10;
        } 
        return (shikigamiId, iroiroId, choice);
    }

    //--------------------------------------------------------
    // [View] URI Getters
    //--------------------------------------------------------

    function iroiroRemixData(uint shikigamiId, uint[] memory iroiroId) public view returns (bool[][] memory) {
        bool[][] memory result = new bool[][](iroiroId.length); 

        for(uint i = 0; i < iroiroId.length; i++) {
            uint choices = shikigami.shikigamiChoices(shikigamiId);
            bool[] memory remixedChoices = new bool[](choices);
            
            for(uint j = 0; j < choices; j++) {
                if (_exists(constructRemixId(shikigamiId, iroiroId[i], j))) {
                    remixedChoices[j] = true;
                } else {
                    remixedChoices[j] = false;
                }
            } 
            result[i] = remixedChoices;
        }
        
        return result;
    }


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

        (uint shikigamiId,,) = deconstructIroiroRemixId(iroiroRemixId);

        return bytes(baseUriPerShikigamiId[shikigamiId]).length > 0 ? string(abi.encodePacked(baseUriPerShikigamiId[shikigamiId], Strings.toString(iroiroRemixId))) : "";
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_registry","type":"address"},{"internalType":"address","name":"_shikigamiNftAddress","type":"address"},{"internalType":"address","name":"_iroiroNftAddress","type":"address"},{"internalType":"address","name":"ROYALTY_ADDRESS","type":"address"},{"internalType":"address","name":"_manager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"shikighamiId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"iroiroID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"choice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"remixTokenId","type":"uint256"}],"name":"IROIRORemixed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newRegistry","type":"address"}],"name":"OperatorFilterRegistryAddressUpdated","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":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"baseUriPerShikigamiId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shikigamiId","type":"uint256"},{"internalType":"uint256","name":"iroiroId","type":"uint256"},{"internalType":"uint256","name":"choice","type":"uint256"}],"name":"constructRemixId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"iroiroRemixId","type":"uint256"}],"name":"deconstructIroiroRemixId","outputs":[{"internalType":"uint256","name":"shikigamiId","type":"uint256"},{"internalType":"uint256","name":"iroiroId","type":"uint256"},{"internalType":"uint256","name":"choice","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"iroiroNftAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shikigamiId","type":"uint256"},{"internalType":"uint256[]","name":"iroiroId","type":"uint256[]"}],"name":"iroiroRemixData","outputs":[{"internalType":"bool[][]","name":"","type":"bool[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"managerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintActive","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":"operatorFilterRegistry","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registry","outputs":[{"internalType":"contract IDelegationRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shikigamiId","type":"uint256"},{"internalType":"uint256","name":"iroiroId","type":"uint256"},{"internalType":"uint256","name":"choice","type":"uint256"},{"internalType":"address","name":"vault","type":"address"}],"name":"remixIROIROWithShikigami","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"returnOwnerRegister","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shikigamiId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseUriPerShikigamiId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_mintActive","type":"bool"}],"name":"setMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"setOperatorFilterRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shikigamiNftAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"iroiroRemixId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnershipRegister","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRegistry","type":"address"}],"name":"updateOperatorFilterRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101206040526001600b60146101000a81548160ff0219169083151502179055503480156200002d57600080fd5b506040516200683e3803806200683e8339818101604052810190620000539190620007bb565b6daaeb6d7670e522a718067333cd4e733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600b81526020017f49524f49524f52656d69780000000000000000000000000000000000000000008152506040518060400160405280600b81526020017f49524f49524f52656d697800000000000000000000000000000000000000000081525062000105620000f9620004d860201b60201c565b620004e060201b60201c565b816001908162000116919062000abd565b50806002908162000128919062000abd565b50505033600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600083905080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008173ffffffffffffffffffffffffffffffffffffffff163b11156200036f57811562000251578073ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30856040518363ffffffff1660e01b81526004016200021792919062000bb5565b600060405180830381600087803b1580156200023257600080fd5b505af115801562000247573d6000803e3d6000fd5b505050506200036e565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614620002fd578073ffffffffffffffffffffffffffffffffffffffff1663a0af290330856040518363ffffffff1660e01b8152600401620002c392919062000bb5565b600060405180830381600087803b158015620002de57600080fd5b505af1158015620002f3573d6000803e3d6000fd5b505050506200036d565b8073ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b815260040162000338919062000be2565b600060405180830381600087803b1580156200035357600080fd5b505af115801562000368573d6000803e3d6000fd5b505050505b5b5b5050505062000387826101f4620005a460201b60201c565b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff168152505080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508473ffffffffffffffffffffffffffffffffffffffff166101008173ffffffffffffffffffffffffffffffffffffffff16815250508373ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1681525050505050505062000d1a565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620005b46200074760201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000615576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200060c9062000c86565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000687576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200067e9062000cf8565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007838262000756565b9050919050565b620007958162000776565b8114620007a157600080fd5b50565b600081519050620007b5816200078a565b92915050565b600080600080600060a08688031215620007da57620007d962000751565b5b6000620007ea88828901620007a4565b9550506020620007fd88828901620007a4565b94505060406200081088828901620007a4565b93505060606200082388828901620007a4565b92505060806200083688828901620007a4565b9150509295509295909350565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620008c557607f821691505b602082108103620008db57620008da6200087d565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620009457fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000906565b62000951868362000906565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200099e62000998620009928462000969565b62000973565b62000969565b9050919050565b6000819050919050565b620009ba836200097d565b620009d2620009c982620009a5565b84845462000913565b825550505050565b600090565b620009e9620009da565b620009f6818484620009af565b505050565b5b8181101562000a1e5762000a12600082620009df565b600181019050620009fc565b5050565b601f82111562000a6d5762000a3781620008e1565b62000a4284620008f6565b8101602085101562000a52578190505b62000a6a62000a6185620008f6565b830182620009fb565b50505b505050565b600082821c905092915050565b600062000a926000198460080262000a72565b1980831691505092915050565b600062000aad838362000a7f565b9150826002028217905092915050565b62000ac88262000843565b67ffffffffffffffff81111562000ae45762000ae36200084e565b5b62000af08254620008ac565b62000afd82828562000a22565b600060209050601f83116001811462000b35576000841562000b20578287015190505b62000b2c858262000a9f565b86555062000b9c565b601f19841662000b4586620008e1565b60005b8281101562000b6f5784890151825560018201915060208501945060208101905062000b48565b8683101562000b8f578489015162000b8b601f89168262000a7f565b8355505b6001600288020188555050505b505050505050565b62000baf8162000776565b82525050565b600060408201905062000bcc600083018562000ba4565b62000bdb602083018462000ba4565b9392505050565b600060208201905062000bf9600083018462000ba4565b92915050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000c6e602a8362000bff565b915062000c7b8262000c10565b604082019050919050565b6000602082019050818103600083015262000ca18162000c5f565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600062000ce060198362000bff565b915062000ced8262000ca8565b602082019050919050565b6000602082019050818103600083015262000d138162000cd1565b9050919050565b60805160a05160c05160e05161010051615ad162000d6d6000396000818161112301526116080152600081816111aa01526117ed015260006116e601526000611a6901526000611e850152615ad16000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c806395d89b411161013b578063c4f72ec2116100b8578063d638db121161007c578063d638db12146106ee578063e72571d21461070c578063e985e9c51461072a578063ee1cc9441461075a578063f2fde38b1461077657610248565b8063c4f72ec214610622578063c546ce1b14610654578063c87b56dd14610684578063cf73a1bc146106b4578063d0ebdbe7146106d257610248565b8063b0ccc31e116100ff578063b0ccc31e14610592578063b3246624146105b0578063b88d4fde146105ce578063b8d1e532146105ea578063baf3ff601461060657610248565b806395d89b4114610502578063a22cb46514610520578063a270fe721461053c578063aa1b103f1461056c578063acb8dbc91461057657610248565b806358c90692116101c9578063715018a61161018d578063715018a6146104705780637b1039991461047a578063816606ea146104985780638a616bc0146104c85780638da5cb5b146104e457610248565b806358c90692146103ba5780635944c753146103d65780636352211e146103f25780636c0360eb1461042257806370a082311461044057610248565b806323b872dd1161021057806323b872dd1461030357806325fd90f31461031f5780632a55205a1461033d57806342842e0e1461036e578063581a48c71461038a57610248565b806301ffc9a71461024d57806304634d8d1461027d57806306fdde0314610299578063081812fc146102b7578063095ea7b3146102e7575b600080fd5b610267600480360381019061026291906138a6565b610792565b60405161027491906138ee565b60405180910390f35b610297600480360381019061029291906139ab565b6107a4565b005b6102a161087f565b6040516102ae9190613a7b565b60405180910390f35b6102d160048036038101906102cc9190613ad3565b610911565b6040516102de9190613b0f565b60405180910390f35b61030160048036038101906102fc9190613b2a565b610957565b005b61031d60048036038101906103189190613b6a565b610970565b005b6103276109bf565b60405161033491906138ee565b60405180910390f35b61035760048036038101906103529190613bbd565b6109d2565b604051610365929190613c0c565b60405180910390f35b61038860048036038101906103839190613b6a565b610bbc565b005b6103a4600480360381019061039f9190613c35565b610c0b565b6040516103b19190613c88565b60405180910390f35b6103d460048036038101906103cf9190613dd8565b610d73565b005b6103f060048036038101906103eb9190613e34565b610e65565b005b61040c60048036038101906104079190613ad3565b610f42565b6040516104199190613b0f565b60405180910390f35b61042a610fc8565b6040516104379190613a7b565b60405180910390f35b61045a60048036038101906104559190613e87565b611056565b6040516104679190613c88565b60405180910390f35b61047861110d565b005b610482611121565b60405161048f9190613f13565b60405180910390f35b6104b260048036038101906104ad9190613ff6565b611145565b6040516104bf91906141d2565b60405180910390f35b6104e260048036038101906104dd9190613ad3565b611375565b005b6104ec61144e565b6040516104f99190613b0f565b60405180910390f35b61050a611477565b6040516105179190613a7b565b60405180910390f35b61053a60048036038101906105359190614220565b611509565b005b61055660048036038101906105519190614260565b611522565b6040516105639190613c88565b60405180910390f35b6105746118cc565b005b610590600480360381019061058b9190613e87565b6119a3565b005b61059a611a41565b6040516105a791906142e8565b60405180910390f35b6105b8611a67565b6040516105c59190613b0f565b60405180910390f35b6105e860048036038101906105e391906143a4565b611a8b565b005b61060460048036038101906105ff9190613e87565b611adc565b005b610620600480360381019061061b9190613e87565b611bc3565b005b61063c60048036038101906106379190613ad3565b611bd7565b60405161064b93929190614427565b60405180910390f35b61066e60048036038101906106699190613ad3565b611c97565b60405161067b9190613a7b565b60405180910390f35b61069e60048036038101906106999190613ad3565b611d37565b6040516106ab9190613a7b565b60405180910390f35b6106bc611e11565b6040516106c99190613b0f565b60405180910390f35b6106ec60048036038101906106e79190613e87565b611e37565b005b6106f6611e83565b6040516107039190613b0f565b60405180910390f35b610714611ea7565b6040516107219190613b0f565b60405180910390f35b610744600480360381019061073f919061445e565b611ed1565b60405161075191906138ee565b60405180910390f35b610774600480360381019061076f919061449e565b611f65565b005b610790600480360381019061078b9190613e87565b61204f565b005b600061079d826120d2565b9050919050565b6107ac61144e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806108325750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610871576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108689061453d565b60405180910390fd5b61087b828261214c565b5050565b60606001805461088e9061458c565b80601f01602080910402602001604051908101604052809291908181526020018280546108ba9061458c565b80156109075780601f106108dc57610100808354040283529160200191610907565b820191906000526020600020905b8154815290600101906020018083116108ea57829003601f168201915b5050505050905090565b600061091c826122e1565b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b816109618161232c565b61096b838361246e565b505050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109ae576109ad3361232c565b5b6109b9848484612585565b50505050565b600b60149054906101000a900460ff1681565b6000806000600860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610b675760076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610b716125e5565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610b9d91906145ec565b610ba7919061465d565b90508160000151819350935050509250929050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bfa57610bf93361232c565b5b610c058484846125ef565b50505050565b60006004610c188461260f565b1115610c59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5090614700565b60405180910390fd5b60648410610c9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c939061476c565b60405180910390fd5b600a8210610cdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd6906147d8565b60405180910390fd5b6000610cea8461260f565b90506000600190506000826004610d0191906147f8565b90506000818385610d12919061482c565b610d1c919061482c565b600a610d289190614993565b88610d3391906145ec565b90508583600a610d439190614993565b88610d4e91906145ec565b610d58919061482c565b81610d63919061482c565b9050809450505050509392505050565b610d7b61144e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610e015750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610e40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e379061453d565b60405180910390fd5b80600d60008481526020019081526020016000209081610e609190614b80565b505050565b610e6d61144e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610ef35750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610f32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f299061453d565b60405180910390fd5b610f3d838383612658565b505050565b600080610f4e836127ff565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb690614c9e565b60405180910390fd5b80915050919050565b600c8054610fd59061458c565b80601f01602080910402602001604051908101604052809291908181526020018280546110019061458c565b801561104e5780601f106110235761010080835404028352916020019161104e565b820191906000526020600020905b81548152906001019060200180831161103157829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bd90614d30565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61111561283c565b61111f60006128ba565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606000825167ffffffffffffffff81111561116457611163613cad565b5b60405190808252806020026020018201604052801561119757816020015b60608152602001906001900390816111825790505b50905060005b835181101561136a5760007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663588632fc876040518263ffffffff1660e01b81526004016112019190613c88565b602060405180830381865afa15801561121e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112429190614d65565b905060008167ffffffffffffffff8111156112605761125f613cad565b5b60405190808252806020026020018201604052801561128e5781602001602082028036833780820191505090505b50905060005b82811015611335576112c96112c4898987815181106112b6576112b5614d92565b5b602002602001015184610c0b565b61297e565b156112fa5760018282815181106112e3576112e2614d92565b5b602002602001019015159081151581525050611322565b600082828151811061130f5761130e614d92565b5b6020026020010190151590811515815250505b808061132d90614dc1565b915050611294565b508084848151811061134a57611349614d92565b5b60200260200101819052505050808061136290614dc1565b91505061119d565b508091505092915050565b61137d61144e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806114035750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611442576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114399061453d565b60405180910390fd5b61144b816129bf565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546114869061458c565b80601f01602080910402602001604051908101604052809291908181526020018280546114b29061458c565b80156114ff5780601f106114d4576101008083540402835291602001916114ff565b820191906000526020600020905b8154815290600101906020018083116114e257829003601f168201915b5050505050905090565b816115138161232c565b61151d8383612a1e565b505050565b600080611530868686610c0b565b9050600b60149054906101000a900460ff16611581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157890614e55565b60405180910390fd5b61158a8161297e565b156115ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c190614ee7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611606573392506116e4565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166390c9a2d03385306040518463ffffffff1660e01b815260040161166393929190614f07565b602060405180830381865afa158015611680573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a49190614f53565b6116e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116da90614fcc565b60405180910390fd5b5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e866040518263ffffffff1660e01b815260040161173d9190613c88565b602060405180830381865afa15801561175a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177e9190615001565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146117eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e2906150a0565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166369f5f4758488876040518463ffffffff1660e01b8152600401611848939291906150c0565b600060405180830381600087803b15801561186257600080fd5b505af1158015611876573d6000803e3d6000fd5b505050506118848382612a34565b857f678cc07094b4c79dfd50d9fb3c626d2afc803355ebb1df9ddaab84fc3d3345068686846040516118b893929190614427565b60405180910390a280915050949350505050565b6118d461144e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061195a5750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611999576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119909061453d565b60405180910390fd5b6119a1612c51565b565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146119fd57600080fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ac957611ac83361232c565b5b611ad585858585612c9e565b5050505050565b611ae4611ea7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b48576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f9f513fe86dc42fdbac355fa4d9b1d5be7b5e6cd2df67e30db8003766568de47681604051611bb89190613b0f565b60405180910390a150565b611bcb61283c565b611bd481611adc565b50565b60008060006201869f8411611c1a5760009250612710600a85611bfa919061465d565b611c0491906150f7565b9150600a84611c1391906150f7565b9050611c90565b620186a08410158015611c305750620f423f8411155b80611c4d5750620f42408410158015611c4c57506298967f8411155b5b15611c8f57620186a084611c61919061465d565b9250612710600a85611c73919061465d565b611c7d91906150f7565b9150600a84611c8c91906150f7565b90505b5b9193909250565b600d6020528060005260406000206000915090508054611cb69061458c565b80601f0160208091040260200160405190810160405280929190818152602001828054611ce29061458c565b8015611d2f5780601f10611d0457610100808354040283529160200191611d2f565b820191906000526020600020905b815481529060010190602001808311611d1257829003601f168201915b505050505081565b6060611d428261297e565b611d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7890615174565b60405180910390fd5b6000611d8c83611bd7565b505090506000600d60008381526020019081526020016000208054611db09061458c565b905011611dcc5760405180602001604052806000815250611e09565b600d6000828152602001908152602001600020611de884612d00565b604051602001611df9929190615253565b6040516020818303038152906040525b915050919050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611e3f61283c565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f6d61144e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611ff35750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612032576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120299061453d565b60405180910390fd5b80600b60146101000a81548160ff02191690831515021790555050565b61205761283c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036120c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bd906152e9565b60405180910390fd5b6120cf816128ba565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612145575061214482612dce565b5b9050919050565b6121546125e5565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156121b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a99061537b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612221576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612218906153e7565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6122ea8161297e565b612329576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232090614c9e565b60405180910390fd5b50565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156123a7575060008173ffffffffffffffffffffffffffffffffffffffff163b115b1561246a578073ffffffffffffffffffffffffffffffffffffffff1663c617113430846040518363ffffffff1660e01b81526004016123e7929190615407565b602060405180830381865afa158015612404573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124289190614f53565b61246957816040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016124609190613b0f565b60405180910390fd5b5b5050565b600061247982610f42565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e0906154a2565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16612508612eb0565b73ffffffffffffffffffffffffffffffffffffffff161480612537575061253681612531612eb0565b611ed1565b5b612576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256d90615534565b60405180910390fd5b6125808383612eb8565b505050565b612596612590612eb0565b82612f71565b6125d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125cc906155c6565b60405180910390fd5b6125e0838383613006565b505050565b6000612710905090565b61260a83838360405180602001604052806000815250611a8b565b505050565b60008082036126215760019050612653565b60005b6000831461264e57808061263790614dc1565b915050600a83612647919061465d565b9250612624565b809150505b919050565b6126606125e5565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156126be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b59061537b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361272d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272490615632565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506008600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b60006003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b612844612eb0565b73ffffffffffffffffffffffffffffffffffffffff1661286261144e565b73ffffffffffffffffffffffffffffffffffffffff16146128b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128af9061569e565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff166129a0836127ff565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60086000828152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff0219169055505050565b612a30612a29612eb0565b83836132ff565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9a9061570a565b60405180910390fd5b612aac8161297e565b15612aec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ae390615776565b60405180910390fd5b612afa60008383600161346b565b612b038161297e565b15612b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3a90615776565b60405180910390fd5b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c4d600083836001613471565b5050565b6007600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff02191690555050565b612caf612ca9612eb0565b83612f71565b612cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce5906155c6565b60405180910390fd5b612cfa84848484613477565b50505050565b606060006001612d0f846134d3565b01905060008167ffffffffffffffff811115612d2e57612d2d613cad565b5b6040519080825280601f01601f191660200182016040528015612d605781602001600182028036833780820191505090505b509050600082602001820190505b600115612dc3578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612db757612db661462e565b5b04945060008503612d6e575b819350505050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e9957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612ea95750612ea882613626565b5b9050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612f2b83610f42565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612f7d83610f42565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612fbf5750612fbe8185611ed1565b5b80612ffd57508373ffffffffffffffffffffffffffffffffffffffff16612fe584610911565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661302682610f42565b73ffffffffffffffffffffffffffffffffffffffff161461307c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307390615808565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036130eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130e29061589a565b60405180910390fd5b6130f8838383600161346b565b8273ffffffffffffffffffffffffffffffffffffffff1661311882610f42565b73ffffffffffffffffffffffffffffffffffffffff161461316e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316590615808565b60405180910390fd5b6005600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46132fa8383836001613471565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361336d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336490615906565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161345e91906138ee565b60405180910390a3505050565b50505050565b50505050565b613482848484613006565b61348e84848484613690565b6134cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134c490615998565b60405180910390fd5b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613531577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816135275761352661462e565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061356e576d04ee2d6d415b85acef810000000083816135645761356361462e565b5b0492506020810190505b662386f26fc10000831061359d57662386f26fc1000083816135935761359261462e565b5b0492506010810190505b6305f5e10083106135c6576305f5e10083816135bc576135bb61462e565b5b0492506008810190505b61271083106135eb5761271083816135e1576135e061462e565b5b0492506004810190505b6064831061360e57606483816136045761360361462e565b5b0492506002810190505b600a831061361d576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60006136b18473ffffffffffffffffffffffffffffffffffffffff16613817565b1561380a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136da612eb0565b8786866040518563ffffffff1660e01b81526004016136fc9493929190615a0d565b6020604051808303816000875af192505050801561373857506040513d601f19601f820116820180604052508101906137359190615a6e565b60015b6137ba573d8060008114613768576040519150601f19603f3d011682016040523d82523d6000602084013e61376d565b606091505b5060008151036137b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137a990615998565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061380f565b600190505b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6138838161384e565b811461388e57600080fd5b50565b6000813590506138a08161387a565b92915050565b6000602082840312156138bc576138bb613844565b5b60006138ca84828501613891565b91505092915050565b60008115159050919050565b6138e8816138d3565b82525050565b600060208201905061390360008301846138df565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061393482613909565b9050919050565b61394481613929565b811461394f57600080fd5b50565b6000813590506139618161393b565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61398881613967565b811461399357600080fd5b50565b6000813590506139a58161397f565b92915050565b600080604083850312156139c2576139c1613844565b5b60006139d085828601613952565b92505060206139e185828601613996565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a25578082015181840152602081019050613a0a565b60008484015250505050565b6000601f19601f8301169050919050565b6000613a4d826139eb565b613a5781856139f6565b9350613a67818560208601613a07565b613a7081613a31565b840191505092915050565b60006020820190508181036000830152613a958184613a42565b905092915050565b6000819050919050565b613ab081613a9d565b8114613abb57600080fd5b50565b600081359050613acd81613aa7565b92915050565b600060208284031215613ae957613ae8613844565b5b6000613af784828501613abe565b91505092915050565b613b0981613929565b82525050565b6000602082019050613b246000830184613b00565b92915050565b60008060408385031215613b4157613b40613844565b5b6000613b4f85828601613952565b9250506020613b6085828601613abe565b9150509250929050565b600080600060608486031215613b8357613b82613844565b5b6000613b9186828701613952565b9350506020613ba286828701613952565b9250506040613bb386828701613abe565b9150509250925092565b60008060408385031215613bd457613bd3613844565b5b6000613be285828601613abe565b9250506020613bf385828601613abe565b9150509250929050565b613c0681613a9d565b82525050565b6000604082019050613c216000830185613b00565b613c2e6020830184613bfd565b9392505050565b600080600060608486031215613c4e57613c4d613844565b5b6000613c5c86828701613abe565b9350506020613c6d86828701613abe565b9250506040613c7e86828701613abe565b9150509250925092565b6000602082019050613c9d6000830184613bfd565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613ce582613a31565b810181811067ffffffffffffffff82111715613d0457613d03613cad565b5b80604052505050565b6000613d1761383a565b9050613d238282613cdc565b919050565b600067ffffffffffffffff821115613d4357613d42613cad565b5b613d4c82613a31565b9050602081019050919050565b82818337600083830152505050565b6000613d7b613d7684613d28565b613d0d565b905082815260208101848484011115613d9757613d96613ca8565b5b613da2848285613d59565b509392505050565b600082601f830112613dbf57613dbe613ca3565b5b8135613dcf848260208601613d68565b91505092915050565b60008060408385031215613def57613dee613844565b5b6000613dfd85828601613abe565b925050602083013567ffffffffffffffff811115613e1e57613e1d613849565b5b613e2a85828601613daa565b9150509250929050565b600080600060608486031215613e4d57613e4c613844565b5b6000613e5b86828701613abe565b9350506020613e6c86828701613952565b9250506040613e7d86828701613996565b9150509250925092565b600060208284031215613e9d57613e9c613844565b5b6000613eab84828501613952565b91505092915050565b6000819050919050565b6000613ed9613ed4613ecf84613909565b613eb4565b613909565b9050919050565b6000613eeb82613ebe565b9050919050565b6000613efd82613ee0565b9050919050565b613f0d81613ef2565b82525050565b6000602082019050613f286000830184613f04565b92915050565b600067ffffffffffffffff821115613f4957613f48613cad565b5b602082029050602081019050919050565b600080fd5b6000613f72613f6d84613f2e565b613d0d565b90508083825260208201905060208402830185811115613f9557613f94613f5a565b5b835b81811015613fbe5780613faa8882613abe565b845260208401935050602081019050613f97565b5050509392505050565b600082601f830112613fdd57613fdc613ca3565b5b8135613fed848260208601613f5f565b91505092915050565b6000806040838503121561400d5761400c613844565b5b600061401b85828601613abe565b925050602083013567ffffffffffffffff81111561403c5761403b613849565b5b61404885828601613fc8565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6140b3816138d3565b82525050565b60006140c583836140aa565b60208301905092915050565b6000602082019050919050565b60006140e98261407e565b6140f38185614089565b93506140fe8361409a565b8060005b8381101561412f57815161411688826140b9565b9750614121836140d1565b925050600181019050614102565b5085935050505092915050565b600061414883836140de565b905092915050565b6000602082019050919050565b600061416882614052565b614172818561405d565b9350836020820285016141848561406e565b8060005b858110156141c057848403895281516141a1858261413c565b94506141ac83614150565b925060208a01995050600181019050614188565b50829750879550505050505092915050565b600060208201905081810360008301526141ec818461415d565b905092915050565b6141fd816138d3565b811461420857600080fd5b50565b60008135905061421a816141f4565b92915050565b6000806040838503121561423757614236613844565b5b600061424585828601613952565b92505060206142568582860161420b565b9150509250929050565b6000806000806080858703121561427a57614279613844565b5b600061428887828801613abe565b945050602061429987828801613abe565b93505060406142aa87828801613abe565b92505060606142bb87828801613952565b91505092959194509250565b60006142d282613ee0565b9050919050565b6142e2816142c7565b82525050565b60006020820190506142fd60008301846142d9565b92915050565b600067ffffffffffffffff82111561431e5761431d613cad565b5b61432782613a31565b9050602081019050919050565b600061434761434284614303565b613d0d565b90508281526020810184848401111561436357614362613ca8565b5b61436e848285613d59565b509392505050565b600082601f83011261438b5761438a613ca3565b5b813561439b848260208601614334565b91505092915050565b600080600080608085870312156143be576143bd613844565b5b60006143cc87828801613952565b94505060206143dd87828801613952565b93505060406143ee87828801613abe565b925050606085013567ffffffffffffffff81111561440f5761440e613849565b5b61441b87828801614376565b91505092959194509250565b600060608201905061443c6000830186613bfd565b6144496020830185613bfd565b6144566040830184613bfd565b949350505050565b6000806040838503121561447557614474613844565b5b600061448385828601613952565b925050602061449485828601613952565b9150509250929050565b6000602082840312156144b4576144b3613844565b5b60006144c28482850161420b565b91505092915050565b7f43616c6c6572206973206e6f7420746865206f776e6572206e6569746865722060008201527f6d616e6167657221000000000000000000000000000000000000000000000000602082015250565b60006145276028836139f6565b9150614532826144cb565b604082019050919050565b600060208201905081810360008301526145568161451a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806145a457607f821691505b6020821081036145b7576145b661455d565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006145f782613a9d565b915061460283613a9d565b925082820261461081613a9d565b91508282048414831517614627576146266145bd565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061466882613a9d565b915061467383613a9d565b9250826146835761468261462e565b5b828204905092915050565b7f69726f69726f4964206d7573742068617665206e6f206d6f7265207468616e2060008201527f3420646967697473000000000000000000000000000000000000000000000000602082015250565b60006146ea6028836139f6565b91506146f58261468e565b604082019050919050565b60006020820190508181036000830152614719816146dd565b9050919050565b7f4c617267657374205368696b6967616d69204944206973203939000000000000600082015250565b6000614756601a836139f6565b915061476182614720565b602082019050919050565b6000602082019050818103600083015261478581614749565b9050919050565b7f4c6172676573742063686f69636520636f756e74206973203900000000000000600082015250565b60006147c26019836139f6565b91506147cd8261478c565b602082019050919050565b600060208201905081810360008301526147f1816147b5565b9050919050565b600061480382613a9d565b915061480e83613a9d565b9250828203905081811115614826576148256145bd565b5b92915050565b600061483782613a9d565b915061484283613a9d565b925082820190508082111561485a576148596145bd565b5b92915050565b60008160011c9050919050565b6000808291508390505b60018511156148b757808604811115614893576148926145bd565b5b60018516156148a25780820291505b80810290506148b085614860565b9450614877565b94509492505050565b6000826148d0576001905061498c565b816148de576000905061498c565b81600181146148f457600281146148fe5761492d565b600191505061498c565b60ff8411156149105761490f6145bd565b5b8360020a915084821115614927576149266145bd565b5b5061498c565b5060208310610133831016604e8410600b84101617156149625782820a90508381111561495d5761495c6145bd565b5b61498c565b61496f848484600161486d565b92509050818404811115614986576149856145bd565b5b81810290505b9392505050565b600061499e82613a9d565b91506149a983613a9d565b92506149d67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846148c0565b905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614a407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614a03565b614a4a8683614a03565b95508019841693508086168417925050509392505050565b6000614a7d614a78614a7384613a9d565b613eb4565b613a9d565b9050919050565b6000819050919050565b614a9783614a62565b614aab614aa382614a84565b848454614a10565b825550505050565b600090565b614ac0614ab3565b614acb818484614a8e565b505050565b5b81811015614aef57614ae4600082614ab8565b600181019050614ad1565b5050565b601f821115614b3457614b05816149de565b614b0e846149f3565b81016020851015614b1d578190505b614b31614b29856149f3565b830182614ad0565b50505b505050565b600082821c905092915050565b6000614b5760001984600802614b39565b1980831691505092915050565b6000614b708383614b46565b9150826002028217905092915050565b614b89826139eb565b67ffffffffffffffff811115614ba257614ba1613cad565b5b614bac825461458c565b614bb7828285614af3565b600060209050601f831160018114614bea5760008415614bd8578287015190505b614be28582614b64565b865550614c4a565b601f198416614bf8866149de565b60005b82811015614c2057848901518255600182019150602085019450602081019050614bfb565b86831015614c3d5784890151614c39601f891682614b46565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614c886018836139f6565b9150614c9382614c52565b602082019050919050565b60006020820190508181036000830152614cb781614c7b565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614d1a6029836139f6565b9150614d2582614cbe565b604082019050919050565b60006020820190508181036000830152614d4981614d0d565b9050919050565b600081519050614d5f81613aa7565b92915050565b600060208284031215614d7b57614d7a613844565b5b6000614d8984828501614d50565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614dcc82613a9d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614dfe57614dfd6145bd565b5b600182019050919050565b7f4d696e74206973206e6f74206163746976652100000000000000000000000000600082015250565b6000614e3f6013836139f6565b9150614e4a82614e09565b602082019050919050565b60006020820190508181036000830152614e6e81614e32565b9050919050565b7f596f7527766520616c72656164792072656d6978656420746869732049524f4960008201527f524f20776974682074686973205368696b6967616d6921000000000000000000602082015250565b6000614ed16037836139f6565b9150614edc82614e75565b604082019050919050565b60006020820190508181036000830152614f0081614ec4565b9050919050565b6000606082019050614f1c6000830186613b00565b614f296020830185613b00565b614f366040830184613b00565b949350505050565b600081519050614f4d816141f4565b92915050565b600060208284031215614f6957614f68613844565b5b6000614f7784828501614f3e565b91505092915050565b7f53656e646572206973206e6f742064656c656761746564210000000000000000600082015250565b6000614fb66018836139f6565b9150614fc182614f80565b602082019050919050565b60006020820190508181036000830152614fe581614fa9565b9050919050565b600081519050614ffb8161393b565b92915050565b60006020828403121561501757615016613844565b5b600061502584828501614fec565b91505092915050565b7f4f776e657273686970206f662049524f49524f204964206973206e6f7420636f60008201527f6e6669726d656421000000000000000000000000000000000000000000000000602082015250565b600061508a6028836139f6565b91506150958261502e565b604082019050919050565b600060208201905081810360008301526150b98161507d565b9050919050565b60006060820190506150d56000830186613b00565b6150e26020830185613bfd565b6150ef6040830184613bfd565b949350505050565b600061510282613a9d565b915061510d83613a9d565b92508261511d5761511c61462e565b5b828206905092915050565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b600061515e601f836139f6565b915061516982615128565b602082019050919050565b6000602082019050818103600083015261518d81615151565b9050919050565b600081905092915050565b600081546151ac8161458c565b6151b68186615194565b945060018216600081146151d157600181146151e657615219565b60ff1983168652811515820286019350615219565b6151ef856149de565b60005b83811015615211578154818901526001820191506020810190506151f2565b838801955050505b50505092915050565b600061522d826139eb565b6152378185615194565b9350615247818560208601613a07565b80840191505092915050565b600061525f828561519f565b915061526b8284615222565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006152d36026836139f6565b91506152de82615277565b604082019050919050565b60006020820190508181036000830152615302816152c6565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000615365602a836139f6565b915061537082615309565b604082019050919050565b6000602082019050818103600083015261539481615358565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006153d16019836139f6565b91506153dc8261539b565b602082019050919050565b60006020820190508181036000830152615400816153c4565b9050919050565b600060408201905061541c6000830185613b00565b6154296020830184613b00565b9392505050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061548c6021836139f6565b915061549782615430565b604082019050919050565b600060208201905081810360008301526154bb8161547f565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b600061551e603d836139f6565b9150615529826154c2565b604082019050919050565b6000602082019050818103600083015261554d81615511565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b60006155b0602d836139f6565b91506155bb82615554565b604082019050919050565b600060208201905081810360008301526155df816155a3565b9050919050565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b600061561c601b836139f6565b9150615627826155e6565b602082019050919050565b6000602082019050818103600083015261564b8161560f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006156886020836139f6565b915061569382615652565b602082019050919050565b600060208201905081810360008301526156b78161567b565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006156f46020836139f6565b91506156ff826156be565b602082019050919050565b60006020820190508181036000830152615723816156e7565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615760601c836139f6565b915061576b8261572a565b602082019050919050565b6000602082019050818103600083015261578f81615753565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006157f26025836139f6565b91506157fd82615796565b604082019050919050565b60006020820190508181036000830152615821816157e5565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006158846024836139f6565b915061588f82615828565b604082019050919050565b600060208201905081810360008301526158b381615877565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006158f06019836139f6565b91506158fb826158ba565b602082019050919050565b6000602082019050818103600083015261591f816158e3565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006159826032836139f6565b915061598d82615926565b604082019050919050565b600060208201905081810360008301526159b181615975565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006159df826159b8565b6159e981856159c3565b93506159f9818560208601613a07565b615a0281613a31565b840191505092915050565b6000608082019050615a226000830187613b00565b615a2f6020830186613b00565b615a3c6040830185613bfd565b8181036060830152615a4e81846159d4565b905095945050505050565b600081519050615a688161387a565b92915050565b600060208284031215615a8457615a83613844565b5b6000615a9284828501615a59565b9150509291505056fea2646970667358221220d63d8904a82c75669dc7b7d90bff2e3547711257cc3748893b71925dc6c62cbd64736f6c6343000812003300000000000000000000000000000000000076a84fef008cdabe6409d2fe638b000000000000000000000000275af81cd01c435898ebf243df609cb923c362ee000000000000000000000000c78b8e9f12edbc74a708f9b5a0472b33b3b286ce000000000000000000000000c78b8e9f12edbc74a708f9b5a0472b33b3b286ce00000000000000000000000060dd0cf42b571dc2e437cf37a8b2a98ab9551e29

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102485760003560e01c806395d89b411161013b578063c4f72ec2116100b8578063d638db121161007c578063d638db12146106ee578063e72571d21461070c578063e985e9c51461072a578063ee1cc9441461075a578063f2fde38b1461077657610248565b8063c4f72ec214610622578063c546ce1b14610654578063c87b56dd14610684578063cf73a1bc146106b4578063d0ebdbe7146106d257610248565b8063b0ccc31e116100ff578063b0ccc31e14610592578063b3246624146105b0578063b88d4fde146105ce578063b8d1e532146105ea578063baf3ff601461060657610248565b806395d89b4114610502578063a22cb46514610520578063a270fe721461053c578063aa1b103f1461056c578063acb8dbc91461057657610248565b806358c90692116101c9578063715018a61161018d578063715018a6146104705780637b1039991461047a578063816606ea146104985780638a616bc0146104c85780638da5cb5b146104e457610248565b806358c90692146103ba5780635944c753146103d65780636352211e146103f25780636c0360eb1461042257806370a082311461044057610248565b806323b872dd1161021057806323b872dd1461030357806325fd90f31461031f5780632a55205a1461033d57806342842e0e1461036e578063581a48c71461038a57610248565b806301ffc9a71461024d57806304634d8d1461027d57806306fdde0314610299578063081812fc146102b7578063095ea7b3146102e7575b600080fd5b610267600480360381019061026291906138a6565b610792565b60405161027491906138ee565b60405180910390f35b610297600480360381019061029291906139ab565b6107a4565b005b6102a161087f565b6040516102ae9190613a7b565b60405180910390f35b6102d160048036038101906102cc9190613ad3565b610911565b6040516102de9190613b0f565b60405180910390f35b61030160048036038101906102fc9190613b2a565b610957565b005b61031d60048036038101906103189190613b6a565b610970565b005b6103276109bf565b60405161033491906138ee565b60405180910390f35b61035760048036038101906103529190613bbd565b6109d2565b604051610365929190613c0c565b60405180910390f35b61038860048036038101906103839190613b6a565b610bbc565b005b6103a4600480360381019061039f9190613c35565b610c0b565b6040516103b19190613c88565b60405180910390f35b6103d460048036038101906103cf9190613dd8565b610d73565b005b6103f060048036038101906103eb9190613e34565b610e65565b005b61040c60048036038101906104079190613ad3565b610f42565b6040516104199190613b0f565b60405180910390f35b61042a610fc8565b6040516104379190613a7b565b60405180910390f35b61045a60048036038101906104559190613e87565b611056565b6040516104679190613c88565b60405180910390f35b61047861110d565b005b610482611121565b60405161048f9190613f13565b60405180910390f35b6104b260048036038101906104ad9190613ff6565b611145565b6040516104bf91906141d2565b60405180910390f35b6104e260048036038101906104dd9190613ad3565b611375565b005b6104ec61144e565b6040516104f99190613b0f565b60405180910390f35b61050a611477565b6040516105179190613a7b565b60405180910390f35b61053a60048036038101906105359190614220565b611509565b005b61055660048036038101906105519190614260565b611522565b6040516105639190613c88565b60405180910390f35b6105746118cc565b005b610590600480360381019061058b9190613e87565b6119a3565b005b61059a611a41565b6040516105a791906142e8565b60405180910390f35b6105b8611a67565b6040516105c59190613b0f565b60405180910390f35b6105e860048036038101906105e391906143a4565b611a8b565b005b61060460048036038101906105ff9190613e87565b611adc565b005b610620600480360381019061061b9190613e87565b611bc3565b005b61063c60048036038101906106379190613ad3565b611bd7565b60405161064b93929190614427565b60405180910390f35b61066e60048036038101906106699190613ad3565b611c97565b60405161067b9190613a7b565b60405180910390f35b61069e60048036038101906106999190613ad3565b611d37565b6040516106ab9190613a7b565b60405180910390f35b6106bc611e11565b6040516106c99190613b0f565b60405180910390f35b6106ec60048036038101906106e79190613e87565b611e37565b005b6106f6611e83565b6040516107039190613b0f565b60405180910390f35b610714611ea7565b6040516107219190613b0f565b60405180910390f35b610744600480360381019061073f919061445e565b611ed1565b60405161075191906138ee565b60405180910390f35b610774600480360381019061076f919061449e565b611f65565b005b610790600480360381019061078b9190613e87565b61204f565b005b600061079d826120d2565b9050919050565b6107ac61144e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806108325750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610871576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108689061453d565b60405180910390fd5b61087b828261214c565b5050565b60606001805461088e9061458c565b80601f01602080910402602001604051908101604052809291908181526020018280546108ba9061458c565b80156109075780601f106108dc57610100808354040283529160200191610907565b820191906000526020600020905b8154815290600101906020018083116108ea57829003601f168201915b5050505050905090565b600061091c826122e1565b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b816109618161232c565b61096b838361246e565b505050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109ae576109ad3361232c565b5b6109b9848484612585565b50505050565b600b60149054906101000a900460ff1681565b6000806000600860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610b675760076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610b716125e5565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610b9d91906145ec565b610ba7919061465d565b90508160000151819350935050509250929050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bfa57610bf93361232c565b5b610c058484846125ef565b50505050565b60006004610c188461260f565b1115610c59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5090614700565b60405180910390fd5b60648410610c9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c939061476c565b60405180910390fd5b600a8210610cdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd6906147d8565b60405180910390fd5b6000610cea8461260f565b90506000600190506000826004610d0191906147f8565b90506000818385610d12919061482c565b610d1c919061482c565b600a610d289190614993565b88610d3391906145ec565b90508583600a610d439190614993565b88610d4e91906145ec565b610d58919061482c565b81610d63919061482c565b9050809450505050509392505050565b610d7b61144e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610e015750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610e40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e379061453d565b60405180910390fd5b80600d60008481526020019081526020016000209081610e609190614b80565b505050565b610e6d61144e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610ef35750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610f32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f299061453d565b60405180910390fd5b610f3d838383612658565b505050565b600080610f4e836127ff565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb690614c9e565b60405180910390fd5b80915050919050565b600c8054610fd59061458c565b80601f01602080910402602001604051908101604052809291908181526020018280546110019061458c565b801561104e5780601f106110235761010080835404028352916020019161104e565b820191906000526020600020905b81548152906001019060200180831161103157829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bd90614d30565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61111561283c565b61111f60006128ba565b565b7f00000000000000000000000000000000000076a84fef008cdabe6409d2fe638b81565b60606000825167ffffffffffffffff81111561116457611163613cad565b5b60405190808252806020026020018201604052801561119757816020015b60608152602001906001900390816111825790505b50905060005b835181101561136a5760007f000000000000000000000000275af81cd01c435898ebf243df609cb923c362ee73ffffffffffffffffffffffffffffffffffffffff1663588632fc876040518263ffffffff1660e01b81526004016112019190613c88565b602060405180830381865afa15801561121e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112429190614d65565b905060008167ffffffffffffffff8111156112605761125f613cad565b5b60405190808252806020026020018201604052801561128e5781602001602082028036833780820191505090505b50905060005b82811015611335576112c96112c4898987815181106112b6576112b5614d92565b5b602002602001015184610c0b565b61297e565b156112fa5760018282815181106112e3576112e2614d92565b5b602002602001019015159081151581525050611322565b600082828151811061130f5761130e614d92565b5b6020026020010190151590811515815250505b808061132d90614dc1565b915050611294565b508084848151811061134a57611349614d92565b5b60200260200101819052505050808061136290614dc1565b91505061119d565b508091505092915050565b61137d61144e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806114035750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611442576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114399061453d565b60405180910390fd5b61144b816129bf565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546114869061458c565b80601f01602080910402602001604051908101604052809291908181526020018280546114b29061458c565b80156114ff5780601f106114d4576101008083540402835291602001916114ff565b820191906000526020600020905b8154815290600101906020018083116114e257829003601f168201915b5050505050905090565b816115138161232c565b61151d8383612a1e565b505050565b600080611530868686610c0b565b9050600b60149054906101000a900460ff16611581576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157890614e55565b60405180910390fd5b61158a8161297e565b156115ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c190614ee7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611606573392506116e4565b7f00000000000000000000000000000000000076a84fef008cdabe6409d2fe638b73ffffffffffffffffffffffffffffffffffffffff166390c9a2d03385306040518463ffffffff1660e01b815260040161166393929190614f07565b602060405180830381865afa158015611680573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a49190614f53565b6116e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116da90614fcc565b60405180910390fd5b5b7f000000000000000000000000c78b8e9f12edbc74a708f9b5a0472b33b3b286ce73ffffffffffffffffffffffffffffffffffffffff16636352211e866040518263ffffffff1660e01b815260040161173d9190613c88565b602060405180830381865afa15801561175a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177e9190615001565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146117eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e2906150a0565b60405180910390fd5b7f000000000000000000000000275af81cd01c435898ebf243df609cb923c362ee73ffffffffffffffffffffffffffffffffffffffff166369f5f4758488876040518463ffffffff1660e01b8152600401611848939291906150c0565b600060405180830381600087803b15801561186257600080fd5b505af1158015611876573d6000803e3d6000fd5b505050506118848382612a34565b857f678cc07094b4c79dfd50d9fb3c626d2afc803355ebb1df9ddaab84fc3d3345068686846040516118b893929190614427565b60405180910390a280915050949350505050565b6118d461144e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061195a5750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611999576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119909061453d565b60405180910390fd5b6119a1612c51565b565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146119fd57600080fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000c78b8e9f12edbc74a708f9b5a0472b33b3b286ce81565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ac957611ac83361232c565b5b611ad585858585612c9e565b5050505050565b611ae4611ea7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b48576040517f5fc483c500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f9f513fe86dc42fdbac355fa4d9b1d5be7b5e6cd2df67e30db8003766568de47681604051611bb89190613b0f565b60405180910390a150565b611bcb61283c565b611bd481611adc565b50565b60008060006201869f8411611c1a5760009250612710600a85611bfa919061465d565b611c0491906150f7565b9150600a84611c1391906150f7565b9050611c90565b620186a08410158015611c305750620f423f8411155b80611c4d5750620f42408410158015611c4c57506298967f8411155b5b15611c8f57620186a084611c61919061465d565b9250612710600a85611c73919061465d565b611c7d91906150f7565b9150600a84611c8c91906150f7565b90505b5b9193909250565b600d6020528060005260406000206000915090508054611cb69061458c565b80601f0160208091040260200160405190810160405280929190818152602001828054611ce29061458c565b8015611d2f5780601f10611d0457610100808354040283529160200191611d2f565b820191906000526020600020905b815481529060010190602001808311611d1257829003601f168201915b505050505081565b6060611d428261297e565b611d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7890615174565b60405180910390fd5b6000611d8c83611bd7565b505090506000600d60008381526020019081526020016000208054611db09061458c565b905011611dcc5760405180602001604052806000815250611e09565b600d6000828152602001908152602001600020611de884612d00565b604051602001611df9929190615253565b6040516020818303038152906040525b915050919050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611e3f61283c565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000275af81cd01c435898ebf243df609cb923c362ee81565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f6d61144e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611ff35750600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612032576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120299061453d565b60405180910390fd5b80600b60146101000a81548160ff02191690831515021790555050565b61205761283c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036120c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bd906152e9565b60405180910390fd5b6120cf816128ba565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612145575061214482612dce565b5b9050919050565b6121546125e5565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156121b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a99061537b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612221576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612218906153e7565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6122ea8161297e565b612329576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232090614c9e565b60405180910390fd5b50565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156123a7575060008173ffffffffffffffffffffffffffffffffffffffff163b115b1561246a578073ffffffffffffffffffffffffffffffffffffffff1663c617113430846040518363ffffffff1660e01b81526004016123e7929190615407565b602060405180830381865afa158015612404573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124289190614f53565b61246957816040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016124609190613b0f565b60405180910390fd5b5b5050565b600061247982610f42565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e0906154a2565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16612508612eb0565b73ffffffffffffffffffffffffffffffffffffffff161480612537575061253681612531612eb0565b611ed1565b5b612576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256d90615534565b60405180910390fd5b6125808383612eb8565b505050565b612596612590612eb0565b82612f71565b6125d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125cc906155c6565b60405180910390fd5b6125e0838383613006565b505050565b6000612710905090565b61260a83838360405180602001604052806000815250611a8b565b505050565b60008082036126215760019050612653565b60005b6000831461264e57808061263790614dc1565b915050600a83612647919061465d565b9250612624565b809150505b919050565b6126606125e5565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156126be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b59061537b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361272d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272490615632565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506008600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b60006003600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b612844612eb0565b73ffffffffffffffffffffffffffffffffffffffff1661286261144e565b73ffffffffffffffffffffffffffffffffffffffff16146128b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128af9061569e565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff166129a0836127ff565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60086000828152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff0219169055505050565b612a30612a29612eb0565b83836132ff565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9a9061570a565b60405180910390fd5b612aac8161297e565b15612aec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ae390615776565b60405180910390fd5b612afa60008383600161346b565b612b038161297e565b15612b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3a90615776565b60405180910390fd5b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c4d600083836001613471565b5050565b6007600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff02191690555050565b612caf612ca9612eb0565b83612f71565b612cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce5906155c6565b60405180910390fd5b612cfa84848484613477565b50505050565b606060006001612d0f846134d3565b01905060008167ffffffffffffffff811115612d2e57612d2d613cad565b5b6040519080825280601f01601f191660200182016040528015612d605781602001600182028036833780820191505090505b509050600082602001820190505b600115612dc3578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612db757612db661462e565b5b04945060008503612d6e575b819350505050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e9957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612ea95750612ea882613626565b5b9050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612f2b83610f42565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612f7d83610f42565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612fbf5750612fbe8185611ed1565b5b80612ffd57508373ffffffffffffffffffffffffffffffffffffffff16612fe584610911565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661302682610f42565b73ffffffffffffffffffffffffffffffffffffffff161461307c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307390615808565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036130eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130e29061589a565b60405180910390fd5b6130f8838383600161346b565b8273ffffffffffffffffffffffffffffffffffffffff1661311882610f42565b73ffffffffffffffffffffffffffffffffffffffff161461316e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316590615808565b60405180910390fd5b6005600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46132fa8383836001613471565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361336d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336490615906565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161345e91906138ee565b60405180910390a3505050565b50505050565b50505050565b613482848484613006565b61348e84848484613690565b6134cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134c490615998565b60405180910390fd5b50505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613531577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816135275761352661462e565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061356e576d04ee2d6d415b85acef810000000083816135645761356361462e565b5b0492506020810190505b662386f26fc10000831061359d57662386f26fc1000083816135935761359261462e565b5b0492506010810190505b6305f5e10083106135c6576305f5e10083816135bc576135bb61462e565b5b0492506008810190505b61271083106135eb5761271083816135e1576135e061462e565b5b0492506004810190505b6064831061360e57606483816136045761360361462e565b5b0492506002810190505b600a831061361d576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60006136b18473ffffffffffffffffffffffffffffffffffffffff16613817565b1561380a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026136da612eb0565b8786866040518563ffffffff1660e01b81526004016136fc9493929190615a0d565b6020604051808303816000875af192505050801561373857506040513d601f19601f820116820180604052508101906137359190615a6e565b60015b6137ba573d8060008114613768576040519150601f19603f3d011682016040523d82523d6000602084013e61376d565b606091505b5060008151036137b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137a990615998565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061380f565b600190505b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6138838161384e565b811461388e57600080fd5b50565b6000813590506138a08161387a565b92915050565b6000602082840312156138bc576138bb613844565b5b60006138ca84828501613891565b91505092915050565b60008115159050919050565b6138e8816138d3565b82525050565b600060208201905061390360008301846138df565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061393482613909565b9050919050565b61394481613929565b811461394f57600080fd5b50565b6000813590506139618161393b565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61398881613967565b811461399357600080fd5b50565b6000813590506139a58161397f565b92915050565b600080604083850312156139c2576139c1613844565b5b60006139d085828601613952565b92505060206139e185828601613996565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a25578082015181840152602081019050613a0a565b60008484015250505050565b6000601f19601f8301169050919050565b6000613a4d826139eb565b613a5781856139f6565b9350613a67818560208601613a07565b613a7081613a31565b840191505092915050565b60006020820190508181036000830152613a958184613a42565b905092915050565b6000819050919050565b613ab081613a9d565b8114613abb57600080fd5b50565b600081359050613acd81613aa7565b92915050565b600060208284031215613ae957613ae8613844565b5b6000613af784828501613abe565b91505092915050565b613b0981613929565b82525050565b6000602082019050613b246000830184613b00565b92915050565b60008060408385031215613b4157613b40613844565b5b6000613b4f85828601613952565b9250506020613b6085828601613abe565b9150509250929050565b600080600060608486031215613b8357613b82613844565b5b6000613b9186828701613952565b9350506020613ba286828701613952565b9250506040613bb386828701613abe565b9150509250925092565b60008060408385031215613bd457613bd3613844565b5b6000613be285828601613abe565b9250506020613bf385828601613abe565b9150509250929050565b613c0681613a9d565b82525050565b6000604082019050613c216000830185613b00565b613c2e6020830184613bfd565b9392505050565b600080600060608486031215613c4e57613c4d613844565b5b6000613c5c86828701613abe565b9350506020613c6d86828701613abe565b9250506040613c7e86828701613abe565b9150509250925092565b6000602082019050613c9d6000830184613bfd565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613ce582613a31565b810181811067ffffffffffffffff82111715613d0457613d03613cad565b5b80604052505050565b6000613d1761383a565b9050613d238282613cdc565b919050565b600067ffffffffffffffff821115613d4357613d42613cad565b5b613d4c82613a31565b9050602081019050919050565b82818337600083830152505050565b6000613d7b613d7684613d28565b613d0d565b905082815260208101848484011115613d9757613d96613ca8565b5b613da2848285613d59565b509392505050565b600082601f830112613dbf57613dbe613ca3565b5b8135613dcf848260208601613d68565b91505092915050565b60008060408385031215613def57613dee613844565b5b6000613dfd85828601613abe565b925050602083013567ffffffffffffffff811115613e1e57613e1d613849565b5b613e2a85828601613daa565b9150509250929050565b600080600060608486031215613e4d57613e4c613844565b5b6000613e5b86828701613abe565b9350506020613e6c86828701613952565b9250506040613e7d86828701613996565b9150509250925092565b600060208284031215613e9d57613e9c613844565b5b6000613eab84828501613952565b91505092915050565b6000819050919050565b6000613ed9613ed4613ecf84613909565b613eb4565b613909565b9050919050565b6000613eeb82613ebe565b9050919050565b6000613efd82613ee0565b9050919050565b613f0d81613ef2565b82525050565b6000602082019050613f286000830184613f04565b92915050565b600067ffffffffffffffff821115613f4957613f48613cad565b5b602082029050602081019050919050565b600080fd5b6000613f72613f6d84613f2e565b613d0d565b90508083825260208201905060208402830185811115613f9557613f94613f5a565b5b835b81811015613fbe5780613faa8882613abe565b845260208401935050602081019050613f97565b5050509392505050565b600082601f830112613fdd57613fdc613ca3565b5b8135613fed848260208601613f5f565b91505092915050565b6000806040838503121561400d5761400c613844565b5b600061401b85828601613abe565b925050602083013567ffffffffffffffff81111561403c5761403b613849565b5b61404885828601613fc8565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6140b3816138d3565b82525050565b60006140c583836140aa565b60208301905092915050565b6000602082019050919050565b60006140e98261407e565b6140f38185614089565b93506140fe8361409a565b8060005b8381101561412f57815161411688826140b9565b9750614121836140d1565b925050600181019050614102565b5085935050505092915050565b600061414883836140de565b905092915050565b6000602082019050919050565b600061416882614052565b614172818561405d565b9350836020820285016141848561406e565b8060005b858110156141c057848403895281516141a1858261413c565b94506141ac83614150565b925060208a01995050600181019050614188565b50829750879550505050505092915050565b600060208201905081810360008301526141ec818461415d565b905092915050565b6141fd816138d3565b811461420857600080fd5b50565b60008135905061421a816141f4565b92915050565b6000806040838503121561423757614236613844565b5b600061424585828601613952565b92505060206142568582860161420b565b9150509250929050565b6000806000806080858703121561427a57614279613844565b5b600061428887828801613abe565b945050602061429987828801613abe565b93505060406142aa87828801613abe565b92505060606142bb87828801613952565b91505092959194509250565b60006142d282613ee0565b9050919050565b6142e2816142c7565b82525050565b60006020820190506142fd60008301846142d9565b92915050565b600067ffffffffffffffff82111561431e5761431d613cad565b5b61432782613a31565b9050602081019050919050565b600061434761434284614303565b613d0d565b90508281526020810184848401111561436357614362613ca8565b5b61436e848285613d59565b509392505050565b600082601f83011261438b5761438a613ca3565b5b813561439b848260208601614334565b91505092915050565b600080600080608085870312156143be576143bd613844565b5b60006143cc87828801613952565b94505060206143dd87828801613952565b93505060406143ee87828801613abe565b925050606085013567ffffffffffffffff81111561440f5761440e613849565b5b61441b87828801614376565b91505092959194509250565b600060608201905061443c6000830186613bfd565b6144496020830185613bfd565b6144566040830184613bfd565b949350505050565b6000806040838503121561447557614474613844565b5b600061448385828601613952565b925050602061449485828601613952565b9150509250929050565b6000602082840312156144b4576144b3613844565b5b60006144c28482850161420b565b91505092915050565b7f43616c6c6572206973206e6f7420746865206f776e6572206e6569746865722060008201527f6d616e6167657221000000000000000000000000000000000000000000000000602082015250565b60006145276028836139f6565b9150614532826144cb565b604082019050919050565b600060208201905081810360008301526145568161451a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806145a457607f821691505b6020821081036145b7576145b661455d565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006145f782613a9d565b915061460283613a9d565b925082820261461081613a9d565b91508282048414831517614627576146266145bd565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061466882613a9d565b915061467383613a9d565b9250826146835761468261462e565b5b828204905092915050565b7f69726f69726f4964206d7573742068617665206e6f206d6f7265207468616e2060008201527f3420646967697473000000000000000000000000000000000000000000000000602082015250565b60006146ea6028836139f6565b91506146f58261468e565b604082019050919050565b60006020820190508181036000830152614719816146dd565b9050919050565b7f4c617267657374205368696b6967616d69204944206973203939000000000000600082015250565b6000614756601a836139f6565b915061476182614720565b602082019050919050565b6000602082019050818103600083015261478581614749565b9050919050565b7f4c6172676573742063686f69636520636f756e74206973203900000000000000600082015250565b60006147c26019836139f6565b91506147cd8261478c565b602082019050919050565b600060208201905081810360008301526147f1816147b5565b9050919050565b600061480382613a9d565b915061480e83613a9d565b9250828203905081811115614826576148256145bd565b5b92915050565b600061483782613a9d565b915061484283613a9d565b925082820190508082111561485a576148596145bd565b5b92915050565b60008160011c9050919050565b6000808291508390505b60018511156148b757808604811115614893576148926145bd565b5b60018516156148a25780820291505b80810290506148b085614860565b9450614877565b94509492505050565b6000826148d0576001905061498c565b816148de576000905061498c565b81600181146148f457600281146148fe5761492d565b600191505061498c565b60ff8411156149105761490f6145bd565b5b8360020a915084821115614927576149266145bd565b5b5061498c565b5060208310610133831016604e8410600b84101617156149625782820a90508381111561495d5761495c6145bd565b5b61498c565b61496f848484600161486d565b92509050818404811115614986576149856145bd565b5b81810290505b9392505050565b600061499e82613a9d565b91506149a983613a9d565b92506149d67fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846148c0565b905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614a407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614a03565b614a4a8683614a03565b95508019841693508086168417925050509392505050565b6000614a7d614a78614a7384613a9d565b613eb4565b613a9d565b9050919050565b6000819050919050565b614a9783614a62565b614aab614aa382614a84565b848454614a10565b825550505050565b600090565b614ac0614ab3565b614acb818484614a8e565b505050565b5b81811015614aef57614ae4600082614ab8565b600181019050614ad1565b5050565b601f821115614b3457614b05816149de565b614b0e846149f3565b81016020851015614b1d578190505b614b31614b29856149f3565b830182614ad0565b50505b505050565b600082821c905092915050565b6000614b5760001984600802614b39565b1980831691505092915050565b6000614b708383614b46565b9150826002028217905092915050565b614b89826139eb565b67ffffffffffffffff811115614ba257614ba1613cad565b5b614bac825461458c565b614bb7828285614af3565b600060209050601f831160018114614bea5760008415614bd8578287015190505b614be28582614b64565b865550614c4a565b601f198416614bf8866149de565b60005b82811015614c2057848901518255600182019150602085019450602081019050614bfb565b86831015614c3d5784890151614c39601f891682614b46565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614c886018836139f6565b9150614c9382614c52565b602082019050919050565b60006020820190508181036000830152614cb781614c7b565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614d1a6029836139f6565b9150614d2582614cbe565b604082019050919050565b60006020820190508181036000830152614d4981614d0d565b9050919050565b600081519050614d5f81613aa7565b92915050565b600060208284031215614d7b57614d7a613844565b5b6000614d8984828501614d50565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614dcc82613a9d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614dfe57614dfd6145bd565b5b600182019050919050565b7f4d696e74206973206e6f74206163746976652100000000000000000000000000600082015250565b6000614e3f6013836139f6565b9150614e4a82614e09565b602082019050919050565b60006020820190508181036000830152614e6e81614e32565b9050919050565b7f596f7527766520616c72656164792072656d6978656420746869732049524f4960008201527f524f20776974682074686973205368696b6967616d6921000000000000000000602082015250565b6000614ed16037836139f6565b9150614edc82614e75565b604082019050919050565b60006020820190508181036000830152614f0081614ec4565b9050919050565b6000606082019050614f1c6000830186613b00565b614f296020830185613b00565b614f366040830184613b00565b949350505050565b600081519050614f4d816141f4565b92915050565b600060208284031215614f6957614f68613844565b5b6000614f7784828501614f3e565b91505092915050565b7f53656e646572206973206e6f742064656c656761746564210000000000000000600082015250565b6000614fb66018836139f6565b9150614fc182614f80565b602082019050919050565b60006020820190508181036000830152614fe581614fa9565b9050919050565b600081519050614ffb8161393b565b92915050565b60006020828403121561501757615016613844565b5b600061502584828501614fec565b91505092915050565b7f4f776e657273686970206f662049524f49524f204964206973206e6f7420636f60008201527f6e6669726d656421000000000000000000000000000000000000000000000000602082015250565b600061508a6028836139f6565b91506150958261502e565b604082019050919050565b600060208201905081810360008301526150b98161507d565b9050919050565b60006060820190506150d56000830186613b00565b6150e26020830185613bfd565b6150ef6040830184613bfd565b949350505050565b600061510282613a9d565b915061510d83613a9d565b92508261511d5761511c61462e565b5b828206905092915050565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b600061515e601f836139f6565b915061516982615128565b602082019050919050565b6000602082019050818103600083015261518d81615151565b9050919050565b600081905092915050565b600081546151ac8161458c565b6151b68186615194565b945060018216600081146151d157600181146151e657615219565b60ff1983168652811515820286019350615219565b6151ef856149de565b60005b83811015615211578154818901526001820191506020810190506151f2565b838801955050505b50505092915050565b600061522d826139eb565b6152378185615194565b9350615247818560208601613a07565b80840191505092915050565b600061525f828561519f565b915061526b8284615222565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006152d36026836139f6565b91506152de82615277565b604082019050919050565b60006020820190508181036000830152615302816152c6565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000615365602a836139f6565b915061537082615309565b604082019050919050565b6000602082019050818103600083015261539481615358565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006153d16019836139f6565b91506153dc8261539b565b602082019050919050565b60006020820190508181036000830152615400816153c4565b9050919050565b600060408201905061541c6000830185613b00565b6154296020830184613b00565b9392505050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061548c6021836139f6565b915061549782615430565b604082019050919050565b600060208201905081810360008301526154bb8161547f565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b600061551e603d836139f6565b9150615529826154c2565b604082019050919050565b6000602082019050818103600083015261554d81615511565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b60006155b0602d836139f6565b91506155bb82615554565b604082019050919050565b600060208201905081810360008301526155df816155a3565b9050919050565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b600061561c601b836139f6565b9150615627826155e6565b602082019050919050565b6000602082019050818103600083015261564b8161560f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006156886020836139f6565b915061569382615652565b602082019050919050565b600060208201905081810360008301526156b78161567b565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006156f46020836139f6565b91506156ff826156be565b602082019050919050565b60006020820190508181036000830152615723816156e7565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615760601c836139f6565b915061576b8261572a565b602082019050919050565b6000602082019050818103600083015261578f81615753565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006157f26025836139f6565b91506157fd82615796565b604082019050919050565b60006020820190508181036000830152615821816157e5565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006158846024836139f6565b915061588f82615828565b604082019050919050565b600060208201905081810360008301526158b381615877565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006158f06019836139f6565b91506158fb826158ba565b602082019050919050565b6000602082019050818103600083015261591f816158e3565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006159826032836139f6565b915061598d82615926565b604082019050919050565b600060208201905081810360008301526159b181615975565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006159df826159b8565b6159e981856159c3565b93506159f9818560208601613a07565b615a0281613a31565b840191505092915050565b6000608082019050615a226000830187613b00565b615a2f6020830186613b00565b615a3c6040830185613bfd565b8181036060830152615a4e81846159d4565b905095945050505050565b600081519050615a688161387a565b92915050565b600060208284031215615a8457615a83613844565b5b6000615a9284828501615a59565b9150509291505056fea2646970667358221220d63d8904a82c75669dc7b7d90bff2e3547711257cc3748893b71925dc6c62cbd64736f6c63430008120033

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

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