ETH Price: $3,441.00 (-2.15%)
Gas: 3 Gwei

Contract

0x4E475806fBc814d6B7B8426d5e183722B2603d4b
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Safe Transfer Fr...203236732024-07-17 3:51:236 days ago1721188283IN
0x4E475806...2B2603d4b
0 ETH0.000355656.12359477
Safe Transfer Fr...203236602024-07-17 3:48:476 days ago1721188127IN
0x4E475806...2B2603d4b
0 ETH0.000370336.37634339
Set Approval For...203197362024-07-16 14:41:596 days ago1721140919IN
0x4E475806...2B2603d4b
0 ETH0.000353069.39563824
Set Approval For...202826792024-07-11 10:30:5911 days ago1720693859IN
0x4E475806...2B2603d4b
0 ETH0.000257954.34229422
Set Approval For...202668482024-07-09 5:27:4714 days ago1720502867IN
0x4E475806...2B2603d4b
0 ETH0.000187753.15615313
Set Approval For...202653892024-07-09 0:34:5914 days ago1720485299IN
0x4E475806...2B2603d4b
0 ETH0.000133462.24345656
Set Approval For...202422782024-07-05 19:04:4717 days ago1720206287IN
0x4E475806...2B2603d4b
0 ETH0.000194763.27392858
Set Approval For...202422682024-07-05 19:02:4717 days ago1720206167IN
0x4E475806...2B2603d4b
0 ETH0.000245054.1250542
Set Approval For...202390632024-07-05 8:18:3517 days ago1720167515IN
0x4E475806...2B2603d4b
0 ETH0.0008240213.85146347
Set Approval For...202021492024-06-30 4:35:3523 days ago1719722135IN
0x4E475806...2B2603d4b
0 ETH0.000171892.89356385
Set Approval For...200651902024-06-11 1:05:1142 days ago1718067911IN
0x4E475806...2B2603d4b
0 ETH0.000185824.94511744
Set Approval For...200651712024-06-11 1:01:2342 days ago1718067683IN
0x4E475806...2B2603d4b
0 ETH0.000217075.78963097
Set Approval For...200462702024-06-08 9:38:5944 days ago1717839539IN
0x4E475806...2B2603d4b
0 ETH0.000336715.66008608
Set Approval For...198698782024-05-14 18:01:3569 days ago1715709695IN
0x4E475806...2B2603d4b
0 ETH0.0006698811.26040538
Set Approval For...198524182024-05-12 7:20:5971 days ago1715498459IN
0x4E475806...2B2603d4b
0 ETH0.000175684.68568968
Set Approval For...197948722024-05-04 6:12:2379 days ago1714803143IN
0x4E475806...2B2603d4b
0 ETH0.000194485.18703427
Set Approval For...197947752024-05-04 5:52:5980 days ago1714801979IN
0x4E475806...2B2603d4b
0 ETH0.00018865.01899758
Set Approval For...197903242024-05-03 14:56:5980 days ago1714748219IN
0x4E475806...2B2603d4b
0 ETH0.0007200612.12115353
Set Approval For...196974842024-04-20 15:21:4793 days ago1713626507IN
0x4E475806...2B2603d4b
0 ETH0.000592049.96606282
Set Approval For...196455542024-04-13 8:46:23100 days ago1712997983IN
0x4E475806...2B2603d4b
0 ETH0.0007669212.90983421
Set Approval For...196440912024-04-13 3:51:23101 days ago1712980283IN
0x4E475806...2B2603d4b
0 ETH0.0007002911.78354155
Set Approval For...196200762024-04-09 19:10:11104 days ago1712689811IN
0x4E475806...2B2603d4b
0 ETH0.0014094723.72614669
Set Approval For...194891772024-03-22 9:08:47122 days ago1711098527IN
0x4E475806...2B2603d4b
0 ETH0.0008706423.16908087
Set Approval For...194891772024-03-22 9:08:47122 days ago1711098527IN
0x4E475806...2B2603d4b
0 ETH0.000868723.16908087
Safe Transfer Fr...194795112024-03-21 0:34:11124 days ago1710981251IN
0x4E475806...2B2603d4b
0 ETH0.0013360132.6025
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FusionistBetaBrawlerNFT

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 100000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-05-30
*/

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

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


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

pragma solidity ^0.8.0;

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

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


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


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

pragma solidity ^0.8.0;

/**
 * @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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

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

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


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


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

pragma solidity ^0.8.0;

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


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


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

pragma solidity ^0.8.0;

/**
 * @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)

pragma solidity ^0.8.0;

/**
 * @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.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;


/**
 * @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/ERC721/[email protected]


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

pragma solidity ^0.8.0;

/**
 * @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)

pragma solidity ^0.8.0;

/**
 * @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)

pragma solidity ^0.8.0;

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


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


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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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


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

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 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 10, 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 * 8) < value ? 1 : 0);
        }
    }
}


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


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

pragma solidity ^0.8.0;

/**
 * @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 `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);
    }
}


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


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

pragma solidity ^0.8.0;







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


// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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


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


// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

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

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

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

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

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

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


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


pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;


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


pragma solidity ^0.8.13;

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 operator-filter-registry/src/[email protected]


pragma solidity ^0.8.13;


/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // 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(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an 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 an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_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 (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}


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


pragma solidity ^0.8.13;


/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}


// File contracts/FusionistBetaBrawlerNFT.sol


pragma solidity ^0.8.19;
/** 
          / \
         /-^-\
        /_/_\_\
       /_/_/_\_\
       | Fusion|
       |  ist  |
       |   *   |
       |       |
       |       |
       |  /-\  |
       |  | |  |
       | /   \ |
       | \   / |
       |  \ /  |
       |   |   |
       |   |   |
       |___|___|
      [ [ [ [ [ ]
*/
///@author Charles
contract FusionistBetaBrawlerNFT is
    ERC2981,
    Ownable,
    ReentrancyGuard,
    DefaultOperatorFilterer,
    ERC721
{
    error IncorrectProof();
    error AllNFTsMinted();
    error CannotSetZeroAddress();
    error ShouldInHighIDRange();
    error YouAreNotOwner();
    error YouHaveMinted();

    uint256 public constant MAX_SUPPLY = 300;
    uint32 private constant KEY_ID_OFFSET = 10000;

    address public treasuryAddress;
    bytes32 public merkleRootForKeys;
    bytes32 public merkleRootForMedals;

    string private _baseTokenURI;
    uint16 private _totalMinted;
    mapping(address => bool) private _claimedKeys;
    mapping(address => bool) private _claimedMedals;

    constructor(
        address defaultTreasury,
        string memory defaultBaseURI
    ) ERC721("Pioneer of Fusionist", "POF") {
        setBaseURI(defaultBaseURI);
        setRoyaltyInfo(payable(defaultTreasury), 0);
    }

    //User Write ===========================

    ///@dev get the NFT for airdropping steam access
    function mintTheKey(
        bytes32[] calldata proof
    ) external payable nonReentrant {
        address account = msg.sender;
        if (_claimedKeys[account] == true) {
            revert YouHaveMinted();
        }        
        if (_totalMinted >= MAX_SUPPLY) {
            revert AllNFTsMinted();
        }
        if (_verify(_leaf(account), proof,merkleRootForKeys) == false) revert IncorrectProof();

        _claimedKeys[account] = true;
        uint256 tokenID = _totalMinted + KEY_ID_OFFSET + 1;//start from 10001
        ++_totalMinted;
        _mint(account, tokenID);
    }

    ///@dev burn a nft and get medal
    function mintTheMedal(
        uint256 theKeyNFTID,
        bytes32[] calldata proof
    ) external nonReentrant {
        address account = msg.sender;
        if (ownerOf(theKeyNFTID) != account) {
            revert YouAreNotOwner();
        }
        if(_claimedMedals[account] == true) {
            revert YouHaveMinted();
        }
        if (_verify(_leaf(account), proof, merkleRootForMedals) == false) revert IncorrectProof();

        _claimedMedals[account] = true;
        burnKeyAndMintMedal(account, theKeyNFTID);
    }

    // User Read ========================================================

    function totalSupply() external view returns (uint256) {
        return _totalMinted;
    }

    function hasClaimedKeysAndMedals(address who) external view returns (bool, bool) {
        return (_claimedKeys[who], _claimedMedals[who]);
    }

    ///@dev helper function for frontend
    function getAllNFTIDsOf(
        address who
    ) external view returns (uint256[] memory) {
        uint256 total = balanceOf(who);
        uint256[] memory nfts = new uint256[](total);
        uint256 count = 0;
        uint256 startIndex = 1;
        uint256 endIndex = startIndex + MAX_SUPPLY;
        for (uint256 i = startIndex; i < endIndex; ++i) {
            if( count == total ) break;
            if( _exists(i) == false ) continue;
            if(_ownerOf(i) == who){
                nfts[count] = i;
                ++count;
            }
        }

        startIndex = KEY_ID_OFFSET + 1;
        endIndex = startIndex + MAX_SUPPLY;
        for (uint256 i = startIndex; i < endIndex; ++i) {
            if( count == total ) break;
            if( _exists(i) == false ) continue;
            if(_ownerOf(i) == who){
                nfts[count] = i;
                ++count;
            }
        }
        return nfts;
    }
    // onlyOwner =======================================================
    function setBaseURI(string memory newBaseURI) public onlyOwner {
        _baseTokenURI = newBaseURI;
    }

    function setRoyaltyInfo(
        address payable newAddress,
        uint96 newRoyaltyPercentage
    ) public onlyOwner {
        if (newAddress == address(0)) revert CannotSetZeroAddress();
        treasuryAddress = newAddress;
        _setDefaultRoyalty(treasuryAddress, newRoyaltyPercentage);
    }
    function cannotMintKeysAnymore() public onlyOwner {
        setMerkeRootForKeys(0x0);
    }
    function setMerkeRootForKeys(bytes32 newRoot) public onlyOwner {
        merkleRootForKeys = newRoot;
    }

    function setMerkeRootForMedals(bytes32 newRoot) public onlyOwner {
        cannotMintKeysAnymore();
        merkleRootForMedals = newRoot;
    }
    //internal ===============================================
    function burnKeyAndMintMedal(
        address account,
        uint256 keyID
    ) internal returns (uint256) {
        if (keyID < KEY_ID_OFFSET) {
            revert ShouldInHighIDRange();
        }
        _burn(keyID);
        uint256 medalID = keyID - KEY_ID_OFFSET;
        _mint(account, medalID);
        return medalID;
    }

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

    function _verify(
        bytes32 leaf,
        bytes32[] calldata proof,
        bytes32 merkleRoot
    ) internal pure returns (bool) {
        return MerkleProof.verifyCalldata(proof, merkleRoot, leaf);
    }

    function _leaf(address account) internal pure returns (bytes32) {
        return keccak256(bytes.concat(keccak256(abi.encode(account))));
    }

    //===================== please don't touch them below =======================================
    function supportsInterface(
        bytes4 interfaceId
    ) public view override(ERC2981,ERC721) returns (bool) {
        return
            ERC2981.supportsInterface(interfaceId) ||
            super.supportsInterface(interfaceId);
    }

    function setApprovalForAll(
        address operator,
        bool approved
    ) public override( ERC721) onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(
        address operator,
        uint256 tokenId
    ) public override( ERC721) onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override( ERC721) onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override( ERC721) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public override( ERC721) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"defaultTreasury","type":"address"},{"internalType":"string","name":"defaultBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllNFTsMinted","type":"error"},{"inputs":[],"name":"CannotSetZeroAddress","type":"error"},{"inputs":[],"name":"IncorrectProof","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"ShouldInHighIDRange","type":"error"},{"inputs":[],"name":"YouAreNotOwner","type":"error"},{"inputs":[],"name":"YouHaveMinted","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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"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":"cannotMintKeysAnymore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"getAllNFTIDsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"hasClaimedKeysAndMedals","outputs":[{"internalType":"bool","name":"","type":"bool"},{"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":"merkleRootForKeys","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootForMedals","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintTheKey","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"theKeyNFTID","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintTheMedal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"setMerkeRootForKeys","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"setMerkeRootForMedals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newAddress","type":"address"},{"internalType":"uint96","name":"newRoyaltyPercentage","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040516200396a3803806200396a833981016040819052620000349162000491565b6040518060400160405280601481526020017f50696f6e656572206f6620467573696f6e697374000000000000000000000000815250604051806040016040528060038152602001622827a360e91b815250733cc6cdda760b79bafa08df41ecfa224f810dceb66001620000b7620000b16200024a60201b60201c565b6200024e565b60016003556daaeb6d7670e522a718067333cd4e3b15620002015780156200014f57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200013057600080fd5b505af115801562000145573d6000803e3d6000fd5b5050505062000201565b6001600160a01b03821615620001a05760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000115565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001e757600080fd5b505af1158015620001fc573d6000803e3d6000fd5b505050505b506004905062000212838262000616565b50600562000221828262000616565b5050506200023581620002a060201b60201c565b62000242826000620002bc565b5050620006e2565b3390565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002aa62000318565b600d620002b8828262000616565b5050565b620002c662000318565b6001600160a01b038216620002ee57604051632969679960e11b815260040160405180910390fd5b600a80546001600160a01b0319166001600160a01b038416908117909155620002b890826200037a565b6002546001600160a01b03163314620003785760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b6127106001600160601b0382161115620003ea5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084016200036f565b6001600160a01b038216620004425760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200036f565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215620004a557600080fd5b82516001600160a01b0381168114620004bd57600080fd5b602084810151919350906001600160401b0380821115620004dd57600080fd5b818601915086601f830112620004f257600080fd5b8151818111156200050757620005076200047b565b604051601f8201601f19908116603f011681019083821181831017156200053257620005326200047b565b8160405282815289868487010111156200054b57600080fd5b600093505b828410156200056f578484018601518185018701529285019262000550565b60008684830101528096505050505050509250929050565b600181811c908216806200059c57607f821691505b602082108103620005bd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200061157600081815260208120601f850160051c81016020861015620005ec5750805b601f850160051c820191505b818110156200060d57828155600101620005f8565b5050505b505050565b81516001600160401b038111156200063257620006326200047b565b6200064a8162000643845462000587565b84620005c3565b602080601f831160018114620006825760008415620006695750858301515b600019600386901b1c1916600185901b1785556200060d565b600085815260208120601f198616915b82811015620006b35788860151825594840194600190910190840162000692565b5085821015620006d25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61327880620006f26000396000f3fe6080604052600436106101e35760003560e01c806356ae7fe811610102578063a71f728411610095578063e985e9c511610064578063e985e9c5146105ba578063f2fde38b14610610578063fb495add14610630578063ff3086231461064657600080fd5b8063a71f728414610538578063b88d4fde1461054d578063c5f956af1461056d578063c87b56dd1461059a57600080fd5b80638da5cb5b116100d15780638da5cb5b146104b857806394c845a0146104e357806395d89b4114610503578063a22cb4651461051857600080fd5b806356ae7fe8146104505780636352211e1461046357806370a0823114610483578063715018a6146104a357600080fd5b80632801973e1161017a57806341f434341161014957806341f43434146103d857806342842e0e146103fa5780634f0729ed1461041a57806355f804b31461043057600080fd5b80632801973e146103365780632a55205a1461035657806332cb6b0c146103a257806337cc8d16146103b857600080fd5b8063095ea7b3116101b6578063095ea7b3146102a657806318160ddd146102c65780631d346483146102e957806323b872dd1461031657600080fd5b806301ffc9a7146101e857806302fa7c471461021d57806306fdde031461023f578063081812fc14610261575b600080fd5b3480156101f457600080fd5b506102086102033660046129a6565b6106b4565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b5061023d6102383660046129e5565b6106d4565b005b34801561024b57600080fd5b5061025461077a565b6040516102149190612a9d565b34801561026d57600080fd5b5061028161027c366004612ab0565b61080c565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610214565b3480156102b257600080fd5b5061023d6102c1366004612ac9565b610840565b3480156102d257600080fd5b50600e5461ffff165b604051908152602001610214565b3480156102f557600080fd5b50610309610304366004612af5565b610859565b6040516102149190612b12565b34801561032257600080fd5b5061023d610331366004612b56565b610a38565b34801561034257600080fd5b5061023d610351366004612bdc565b610a70565b34801561036257600080fd5b50610376610371366004612c28565b610c5f565b6040805173ffffffffffffffffffffffffffffffffffffffff9093168352602083019190915201610214565b3480156103ae57600080fd5b506102db61012c81565b3480156103c457600080fd5b5061023d6103d3366004612ab0565b610d58565b3480156103e457600080fd5b506102816daaeb6d7670e522a718067333cd4e81565b34801561040657600080fd5b5061023d610415366004612b56565b610d65565b34801561042657600080fd5b506102db600b5481565b34801561043c57600080fd5b5061023d61044b366004612d0d565b610d97565b61023d61045e366004612d56565b610dab565b34801561046f57600080fd5b5061028161047e366004612ab0565b610fc8565b34801561048f57600080fd5b506102db61049e366004612af5565b611059565b3480156104af57600080fd5b5061023d611127565b3480156104c457600080fd5b5060025473ffffffffffffffffffffffffffffffffffffffff16610281565b3480156104ef57600080fd5b5061023d6104fe366004612ab0565b61113b565b34801561050f57600080fd5b50610254611150565b34801561052457600080fd5b5061023d610533366004612da6565b61115f565b34801561054457600080fd5b5061023d611173565b34801561055957600080fd5b5061023d610568366004612dd4565b611185565b34801561057957600080fd5b50600a546102819073ffffffffffffffffffffffffffffffffffffffff1681565b3480156105a657600080fd5b506102546105b5366004612ab0565b6111bf565b3480156105c657600080fd5b506102086105d5366004612e54565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260096020908152604080832093909416825291909152205460ff1690565b34801561061c57600080fd5b5061023d61062b366004612af5565b611226565b34801561063c57600080fd5b506102db600c5481565b34801561065257600080fd5b5061069d610661366004612af5565b73ffffffffffffffffffffffffffffffffffffffff166000908152600f602090815260408083205460109092529091205460ff91821692911690565b604080519215158352901515602083015201610214565b60006106bf826112dd565b806106ce57506106ce82611374565b92915050565b6106dc611416565b73ffffffffffffffffffffffffffffffffffffffff8216610729576040517f52d2cf3200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091556107769082611497565b5050565b60606004805461078990612e82565b80601f01602080910402602001604051908101604052809291908181526020018280546107b590612e82565b80156108025780601f106107d757610100808354040283529160200191610802565b820191906000526020600020905b8154815290600101906020018083116107e557829003601f168201915b5050505050905090565b600061081782611610565b5060009081526008602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b8161084a8161169b565b61085483836117a0565b505050565b6060600061086683611059565b905060008167ffffffffffffffff81111561088357610883612c4a565b6040519080825280602002602001820160405280156108ac578160200160208202803683370190505b50905060006001816108c061012c83612f04565b9050815b81811015610965578386146109655760008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff16156109555760008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff898116911603610955578085858151811061093e5761093e612f17565b602090810291909101015261095284612f46565b93505b61095e81612f46565b90506108c4565b506109736127106001612f7e565b63ffffffff16915061098761012c83612f04565b9050815b81811015610a2c57838614610a2c5760008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1615610a1c5760008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff898116911603610a1c5780858581518110610a0557610a05612f17565b6020908102919091010152610a1984612f46565b93505b610a2581612f46565b905061098b565b50929695505050505050565b8273ffffffffffffffffffffffffffffffffffffffff81163314610a5f57610a5f3361169b565b610a6a848484611952565b50505050565b610a786119f3565b3380610a8385610fc8565b73ffffffffffffffffffffffffffffffffffffffff1614610ad0576040517fd57632ce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff161515600103610b34576040517f14ecb7ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bc1610bb7826040805173ffffffffffffffffffffffffffffffffffffffff8316602082015260009101604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201209083015201604051602081830303815290604052805190602001209050919050565b8484600c54611a66565b1515600003610bfb576040517e27b15500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610c538185611a7f565b50506108546001600355565b600082815260016020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610d1a57506040805180820190915260005473ffffffffffffffffffffffffffffffffffffffff811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610d3e906bffffffffffffffffffffffff1687612fa2565b610d489190612fb9565b91519350909150505b9250929050565b610d60611416565b600b55565b8273ffffffffffffffffffffffffffffffffffffffff81163314610d8c57610d8c3361169b565b610a6a848484611ae0565b610d9f611416565b600d6107768282613042565b610db36119f3565b336000818152600f602052604090205460ff161515600103610e01576040517f14ecb7ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e5461012c61ffff90911610610e44576040517fe51add9900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ed1610ec7826040805173ffffffffffffffffffffffffffffffffffffffff8316602082015260009101604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201209083015201604051602081830303815290604052805190602001209050919050565b8484600b54611a66565b1515600003610f0b576040517e27b15500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600e54610f6d906127109061ffff16612f7e565b610f78906001612f7e565b600e805463ffffffff92909216925090600090610f989061ffff1661315c565b91906101000a81548161ffff021916908361ffff160217905550610fbc8282611afb565b50506107766001600355565b60008181526006602052604081205473ffffffffffffffffffffffffffffffffffffffff16806106ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064015b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82166110fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401611050565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526007602052604090205490565b61112f611416565b6111396000611d20565b565b611143611416565b61114b611173565b600c55565b60606005805461078990612e82565b816111698161169b565b6108548383611d97565b61117b611416565b6111396000610d58565b8373ffffffffffffffffffffffffffffffffffffffff811633146111ac576111ac3361169b565b6111b885858585611da2565b5050505050565b60606111ca82611610565b60006111d4611e44565b905060008151116111f4576040518060200160405280600081525061121f565b806111fe84611e53565b60405160200161120f92919061317d565b6040516020818303038152906040525b9392505050565b61122e611416565b73ffffffffffffffffffffffffffffffffffffffff81166112d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401611050565b6112da81611d20565b50565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806106ce57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146106ce565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061140757507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106ce57506106ce826112dd565b60025473ffffffffffffffffffffffffffffffffffffffff163314611139576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611050565b6127106bffffffffffffffffffffffff82161115611537576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401611050565b73ffffffffffffffffffffffffffffffffffffffff82166115b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401611050565b6040805180820190915273ffffffffffffffffffffffffffffffffffffffff9092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600055565b60008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff166112da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401611050565b6daaeb6d7670e522a718067333cd4e3b156112da576040517fc617113400000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561172e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175291906131ac565b6112da576040517fede71dcc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82166004820152602401611050565b60006117ab82610fc8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611868576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401611050565b3373ffffffffffffffffffffffffffffffffffffffff821614806118bc575073ffffffffffffffffffffffffffffffffffffffff8116600090815260096020908152604080832033845290915290205460ff165b611948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401611050565b6108548383611f11565b61195c3382611fb1565b6119e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401611050565b610854838383612070565b600260035403611a5f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611050565b6002600355565b6000611a748484848861236b565b90505b949350505050565b6000612710821015611abd576040517fc824a12900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ac682612383565b6000611ad4612710846131c9565b905061121f8482611afb565b61085483838360405180602001604052806000815250611185565b73ffffffffffffffffffffffffffffffffffffffff8216611b78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401611050565b60008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1615611c04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401611050565b60008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1615611c90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401611050565b73ffffffffffffffffffffffffffffffffffffffff8216600081815260076020908152604080832080546001019055848352600690915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6002805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61077633838361245b565b611dac3383611fb1565b611e38576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401611050565b610a6a84848484612588565b6060600d805461078990612e82565b60606000611e608361262b565b600101905060008167ffffffffffffffff811115611e8057611e80612c4a565b6040519080825280601f01601f191660200182016040528015611eaa576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084611eb457509392505050565b600081815260086020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190611f6b82610fc8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611fbd83610fc8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061202b575073ffffffffffffffffffffffffffffffffffffffff80821660009081526009602090815260408083209388168352929052205460ff165b80611a7757508373ffffffffffffffffffffffffffffffffffffffff166120518461080c565b73ffffffffffffffffffffffffffffffffffffffff1614949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661209082610fc8565b73ffffffffffffffffffffffffffffffffffffffff1614612133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401611050565b73ffffffffffffffffffffffffffffffffffffffff82166121d5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401611050565b8273ffffffffffffffffffffffffffffffffffffffff166121f582610fc8565b73ffffffffffffffffffffffffffffffffffffffff1614612298576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401611050565b600081815260086020908152604080832080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915573ffffffffffffffffffffffffffffffffffffffff8781168086526007855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600690945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008261237986868561270d565b1495945050505050565b600061238e82610fc8565b905061239982610fc8565b600083815260086020908152604080832080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915573ffffffffffffffffffffffffffffffffffffffff85168085526007845282852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190558785526006909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401611050565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526009602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612593848484612070565b61259f84848484612759565b610a6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401611050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612674577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106126a0576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106126be57662386f26fc10000830492506010015b6305f5e10083106126d6576305f5e100830492506008015b61271083106126ea57612710830492506004015b606483106126fc576064830492506002015b600a83106106ce5760010192915050565b600081815b848110156127505761273c8287878481811061273057612730612f17565b90506020020135612949565b91508061274881612f46565b915050612712565b50949350505050565b600073ffffffffffffffffffffffffffffffffffffffff84163b15612941576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906127d09033908990889088906004016131dc565b6020604051808303816000875af1925050508015612829575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261282691810190613225565b60015b6128f6573d808015612857576040519150601f19603f3d011682016040523d82523d6000602084013e61285c565b606091505b5080516000036128ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401611050565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611a77565b506001611a77565b600081831061296557600082815260208490526040902061121f565b600083815260208390526040902061121f565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146112da57600080fd5b6000602082840312156129b857600080fd5b813561121f81612978565b73ffffffffffffffffffffffffffffffffffffffff811681146112da57600080fd5b600080604083850312156129f857600080fd5b8235612a03816129c3565b915060208301356bffffffffffffffffffffffff81168114612a2457600080fd5b809150509250929050565b60005b83811015612a4a578181015183820152602001612a32565b50506000910152565b60008151808452612a6b816020860160208601612a2f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061121f6020830184612a53565b600060208284031215612ac257600080fd5b5035919050565b60008060408385031215612adc57600080fd5b8235612ae7816129c3565b946020939093013593505050565b600060208284031215612b0757600080fd5b813561121f816129c3565b6020808252825182820181905260009190848201906040850190845b81811015612b4a57835183529284019291840191600101612b2e565b50909695505050505050565b600080600060608486031215612b6b57600080fd5b8335612b76816129c3565b92506020840135612b86816129c3565b929592945050506040919091013590565b60008083601f840112612ba957600080fd5b50813567ffffffffffffffff811115612bc157600080fd5b6020830191508360208260051b8501011115610d5157600080fd5b600080600060408486031215612bf157600080fd5b83359250602084013567ffffffffffffffff811115612c0f57600080fd5b612c1b86828701612b97565b9497909650939450505050565b60008060408385031215612c3b57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115612c9457612c94612c4a565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715612cda57612cda612c4a565b81604052809350858152868686011115612cf357600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612d1f57600080fd5b813567ffffffffffffffff811115612d3657600080fd5b8201601f81018413612d4757600080fd5b611a7784823560208401612c79565b60008060208385031215612d6957600080fd5b823567ffffffffffffffff811115612d8057600080fd5b612d8c85828601612b97565b90969095509350505050565b80151581146112da57600080fd5b60008060408385031215612db957600080fd5b8235612dc4816129c3565b91506020830135612a2481612d98565b60008060008060808587031215612dea57600080fd5b8435612df5816129c3565b93506020850135612e05816129c3565b925060408501359150606085013567ffffffffffffffff811115612e2857600080fd5b8501601f81018713612e3957600080fd5b612e4887823560208401612c79565b91505092959194509250565b60008060408385031215612e6757600080fd5b8235612e72816129c3565b91506020830135612a24816129c3565b600181811c90821680612e9657607f821691505b602082108103612ecf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808201808211156106ce576106ce612ed5565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612f7757612f77612ed5565b5060010190565b63ffffffff818116838216019080821115612f9b57612f9b612ed5565b5092915050565b80820281158282048414176106ce576106ce612ed5565b600082612fef577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b601f82111561085457600081815260208120601f850160051c8101602086101561301b5750805b601f850160051c820191505b8181101561303a57828155600101613027565b505050505050565b815167ffffffffffffffff81111561305c5761305c612c4a565b6130708161306a8454612e82565b84612ff4565b602080601f8311600181146130c3576000841561308d5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b17855561303a565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015613110578886015182559484019460019091019084016130f1565b508582101561314c57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600061ffff80831681810361317357613173612ed5565b6001019392505050565b6000835161318f818460208801612a2f565b8351908301906131a3818360208801612a2f565b01949350505050565b6000602082840312156131be57600080fd5b815161121f81612d98565b818103818111156106ce576106ce612ed5565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261321b6080830184612a53565b9695505050505050565b60006020828403121561323757600080fd5b815161121f8161297856fea26469706673582212203f548d9a5bec267976bbb2dcca63f83a552d473e886170130ff48a44f2bf3f6964736f6c63430008130033000000000000000000000000459c5440e65dc8db5287eccf86080f7a66b0f17600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696467686e686768776e63766a66687935366177367a6a6661746a6861717232686f77757a666e70376537337775686b76376534342f0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101e35760003560e01c806356ae7fe811610102578063a71f728411610095578063e985e9c511610064578063e985e9c5146105ba578063f2fde38b14610610578063fb495add14610630578063ff3086231461064657600080fd5b8063a71f728414610538578063b88d4fde1461054d578063c5f956af1461056d578063c87b56dd1461059a57600080fd5b80638da5cb5b116100d15780638da5cb5b146104b857806394c845a0146104e357806395d89b4114610503578063a22cb4651461051857600080fd5b806356ae7fe8146104505780636352211e1461046357806370a0823114610483578063715018a6146104a357600080fd5b80632801973e1161017a57806341f434341161014957806341f43434146103d857806342842e0e146103fa5780634f0729ed1461041a57806355f804b31461043057600080fd5b80632801973e146103365780632a55205a1461035657806332cb6b0c146103a257806337cc8d16146103b857600080fd5b8063095ea7b3116101b6578063095ea7b3146102a657806318160ddd146102c65780631d346483146102e957806323b872dd1461031657600080fd5b806301ffc9a7146101e857806302fa7c471461021d57806306fdde031461023f578063081812fc14610261575b600080fd5b3480156101f457600080fd5b506102086102033660046129a6565b6106b4565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b5061023d6102383660046129e5565b6106d4565b005b34801561024b57600080fd5b5061025461077a565b6040516102149190612a9d565b34801561026d57600080fd5b5061028161027c366004612ab0565b61080c565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610214565b3480156102b257600080fd5b5061023d6102c1366004612ac9565b610840565b3480156102d257600080fd5b50600e5461ffff165b604051908152602001610214565b3480156102f557600080fd5b50610309610304366004612af5565b610859565b6040516102149190612b12565b34801561032257600080fd5b5061023d610331366004612b56565b610a38565b34801561034257600080fd5b5061023d610351366004612bdc565b610a70565b34801561036257600080fd5b50610376610371366004612c28565b610c5f565b6040805173ffffffffffffffffffffffffffffffffffffffff9093168352602083019190915201610214565b3480156103ae57600080fd5b506102db61012c81565b3480156103c457600080fd5b5061023d6103d3366004612ab0565b610d58565b3480156103e457600080fd5b506102816daaeb6d7670e522a718067333cd4e81565b34801561040657600080fd5b5061023d610415366004612b56565b610d65565b34801561042657600080fd5b506102db600b5481565b34801561043c57600080fd5b5061023d61044b366004612d0d565b610d97565b61023d61045e366004612d56565b610dab565b34801561046f57600080fd5b5061028161047e366004612ab0565b610fc8565b34801561048f57600080fd5b506102db61049e366004612af5565b611059565b3480156104af57600080fd5b5061023d611127565b3480156104c457600080fd5b5060025473ffffffffffffffffffffffffffffffffffffffff16610281565b3480156104ef57600080fd5b5061023d6104fe366004612ab0565b61113b565b34801561050f57600080fd5b50610254611150565b34801561052457600080fd5b5061023d610533366004612da6565b61115f565b34801561054457600080fd5b5061023d611173565b34801561055957600080fd5b5061023d610568366004612dd4565b611185565b34801561057957600080fd5b50600a546102819073ffffffffffffffffffffffffffffffffffffffff1681565b3480156105a657600080fd5b506102546105b5366004612ab0565b6111bf565b3480156105c657600080fd5b506102086105d5366004612e54565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260096020908152604080832093909416825291909152205460ff1690565b34801561061c57600080fd5b5061023d61062b366004612af5565b611226565b34801561063c57600080fd5b506102db600c5481565b34801561065257600080fd5b5061069d610661366004612af5565b73ffffffffffffffffffffffffffffffffffffffff166000908152600f602090815260408083205460109092529091205460ff91821692911690565b604080519215158352901515602083015201610214565b60006106bf826112dd565b806106ce57506106ce82611374565b92915050565b6106dc611416565b73ffffffffffffffffffffffffffffffffffffffff8216610729576040517f52d2cf3200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091556107769082611497565b5050565b60606004805461078990612e82565b80601f01602080910402602001604051908101604052809291908181526020018280546107b590612e82565b80156108025780601f106107d757610100808354040283529160200191610802565b820191906000526020600020905b8154815290600101906020018083116107e557829003601f168201915b5050505050905090565b600061081782611610565b5060009081526008602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b8161084a8161169b565b61085483836117a0565b505050565b6060600061086683611059565b905060008167ffffffffffffffff81111561088357610883612c4a565b6040519080825280602002602001820160405280156108ac578160200160208202803683370190505b50905060006001816108c061012c83612f04565b9050815b81811015610965578386146109655760008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff16156109555760008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff898116911603610955578085858151811061093e5761093e612f17565b602090810291909101015261095284612f46565b93505b61095e81612f46565b90506108c4565b506109736127106001612f7e565b63ffffffff16915061098761012c83612f04565b9050815b81811015610a2c57838614610a2c5760008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1615610a1c5760008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff898116911603610a1c5780858581518110610a0557610a05612f17565b6020908102919091010152610a1984612f46565b93505b610a2581612f46565b905061098b565b50929695505050505050565b8273ffffffffffffffffffffffffffffffffffffffff81163314610a5f57610a5f3361169b565b610a6a848484611952565b50505050565b610a786119f3565b3380610a8385610fc8565b73ffffffffffffffffffffffffffffffffffffffff1614610ad0576040517fd57632ce00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff161515600103610b34576040517f14ecb7ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bc1610bb7826040805173ffffffffffffffffffffffffffffffffffffffff8316602082015260009101604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201209083015201604051602081830303815290604052805190602001209050919050565b8484600c54611a66565b1515600003610bfb576040517e27b15500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260106020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055610c538185611a7f565b50506108546001600355565b600082815260016020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff16928201929092528291610d1a57506040805180820190915260005473ffffffffffffffffffffffffffffffffffffffff811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b602081015160009061271090610d3e906bffffffffffffffffffffffff1687612fa2565b610d489190612fb9565b91519350909150505b9250929050565b610d60611416565b600b55565b8273ffffffffffffffffffffffffffffffffffffffff81163314610d8c57610d8c3361169b565b610a6a848484611ae0565b610d9f611416565b600d6107768282613042565b610db36119f3565b336000818152600f602052604090205460ff161515600103610e01576040517f14ecb7ff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e5461012c61ffff90911610610e44576040517fe51add9900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ed1610ec7826040805173ffffffffffffffffffffffffffffffffffffffff8316602082015260009101604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815282825280516020918201209083015201604051602081830303815290604052805190602001209050919050565b8484600b54611a66565b1515600003610f0b576040517e27b15500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055600e54610f6d906127109061ffff16612f7e565b610f78906001612f7e565b600e805463ffffffff92909216925090600090610f989061ffff1661315c565b91906101000a81548161ffff021916908361ffff160217905550610fbc8282611afb565b50506107766001600355565b60008181526006602052604081205473ffffffffffffffffffffffffffffffffffffffff16806106ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e204944000000000000000060448201526064015b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82166110fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401611050565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526007602052604090205490565b61112f611416565b6111396000611d20565b565b611143611416565b61114b611173565b600c55565b60606005805461078990612e82565b816111698161169b565b6108548383611d97565b61117b611416565b6111396000610d58565b8373ffffffffffffffffffffffffffffffffffffffff811633146111ac576111ac3361169b565b6111b885858585611da2565b5050505050565b60606111ca82611610565b60006111d4611e44565b905060008151116111f4576040518060200160405280600081525061121f565b806111fe84611e53565b60405160200161120f92919061317d565b6040516020818303038152906040525b9392505050565b61122e611416565b73ffffffffffffffffffffffffffffffffffffffff81166112d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401611050565b6112da81611d20565b50565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806106ce57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146106ce565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061140757507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106ce57506106ce826112dd565b60025473ffffffffffffffffffffffffffffffffffffffff163314611139576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611050565b6127106bffffffffffffffffffffffff82161115611537576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401611050565b73ffffffffffffffffffffffffffffffffffffffff82166115b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401611050565b6040805180820190915273ffffffffffffffffffffffffffffffffffffffff9092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600055565b60008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff166112da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401611050565b6daaeb6d7670e522a718067333cd4e3b156112da576040517fc617113400000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561172e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175291906131ac565b6112da576040517fede71dcc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82166004820152602401611050565b60006117ab82610fc8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611868576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401611050565b3373ffffffffffffffffffffffffffffffffffffffff821614806118bc575073ffffffffffffffffffffffffffffffffffffffff8116600090815260096020908152604080832033845290915290205460ff165b611948576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401611050565b6108548383611f11565b61195c3382611fb1565b6119e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401611050565b610854838383612070565b600260035403611a5f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611050565b6002600355565b6000611a748484848861236b565b90505b949350505050565b6000612710821015611abd576040517fc824a12900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ac682612383565b6000611ad4612710846131c9565b905061121f8482611afb565b61085483838360405180602001604052806000815250611185565b73ffffffffffffffffffffffffffffffffffffffff8216611b78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401611050565b60008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1615611c04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401611050565b60008181526006602052604090205473ffffffffffffffffffffffffffffffffffffffff1615611c90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401611050565b73ffffffffffffffffffffffffffffffffffffffff8216600081815260076020908152604080832080546001019055848352600690915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6002805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61077633838361245b565b611dac3383611fb1565b611e38576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f766564000000000000000000000000000000000000006064820152608401611050565b610a6a84848484612588565b6060600d805461078990612e82565b60606000611e608361262b565b600101905060008167ffffffffffffffff811115611e8057611e80612c4a565b6040519080825280601f01601f191660200182016040528015611eaa576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084611eb457509392505050565b600081815260086020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190611f6b82610fc8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611fbd83610fc8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061202b575073ffffffffffffffffffffffffffffffffffffffff80821660009081526009602090815260408083209388168352929052205460ff165b80611a7757508373ffffffffffffffffffffffffffffffffffffffff166120518461080c565b73ffffffffffffffffffffffffffffffffffffffff1614949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661209082610fc8565b73ffffffffffffffffffffffffffffffffffffffff1614612133576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401611050565b73ffffffffffffffffffffffffffffffffffffffff82166121d5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401611050565b8273ffffffffffffffffffffffffffffffffffffffff166121f582610fc8565b73ffffffffffffffffffffffffffffffffffffffff1614612298576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401611050565b600081815260086020908152604080832080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915573ffffffffffffffffffffffffffffffffffffffff8781168086526007855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600690945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008261237986868561270d565b1495945050505050565b600061238e82610fc8565b905061239982610fc8565b600083815260086020908152604080832080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915573ffffffffffffffffffffffffffffffffffffffff85168085526007845282852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190558785526006909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401611050565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526009602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612593848484612070565b61259f84848484612759565b610a6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401611050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612674577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106126a0576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106126be57662386f26fc10000830492506010015b6305f5e10083106126d6576305f5e100830492506008015b61271083106126ea57612710830492506004015b606483106126fc576064830492506002015b600a83106106ce5760010192915050565b600081815b848110156127505761273c8287878481811061273057612730612f17565b90506020020135612949565b91508061274881612f46565b915050612712565b50949350505050565b600073ffffffffffffffffffffffffffffffffffffffff84163b15612941576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906127d09033908990889088906004016131dc565b6020604051808303816000875af1925050508015612829575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261282691810190613225565b60015b6128f6573d808015612857576040519150601f19603f3d011682016040523d82523d6000602084013e61285c565b606091505b5080516000036128ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401611050565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050611a77565b506001611a77565b600081831061296557600082815260208490526040902061121f565b600083815260208390526040902061121f565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146112da57600080fd5b6000602082840312156129b857600080fd5b813561121f81612978565b73ffffffffffffffffffffffffffffffffffffffff811681146112da57600080fd5b600080604083850312156129f857600080fd5b8235612a03816129c3565b915060208301356bffffffffffffffffffffffff81168114612a2457600080fd5b809150509250929050565b60005b83811015612a4a578181015183820152602001612a32565b50506000910152565b60008151808452612a6b816020860160208601612a2f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061121f6020830184612a53565b600060208284031215612ac257600080fd5b5035919050565b60008060408385031215612adc57600080fd5b8235612ae7816129c3565b946020939093013593505050565b600060208284031215612b0757600080fd5b813561121f816129c3565b6020808252825182820181905260009190848201906040850190845b81811015612b4a57835183529284019291840191600101612b2e565b50909695505050505050565b600080600060608486031215612b6b57600080fd5b8335612b76816129c3565b92506020840135612b86816129c3565b929592945050506040919091013590565b60008083601f840112612ba957600080fd5b50813567ffffffffffffffff811115612bc157600080fd5b6020830191508360208260051b8501011115610d5157600080fd5b600080600060408486031215612bf157600080fd5b83359250602084013567ffffffffffffffff811115612c0f57600080fd5b612c1b86828701612b97565b9497909650939450505050565b60008060408385031215612c3b57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff80841115612c9457612c94612c4a565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715612cda57612cda612c4a565b81604052809350858152868686011115612cf357600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612d1f57600080fd5b813567ffffffffffffffff811115612d3657600080fd5b8201601f81018413612d4757600080fd5b611a7784823560208401612c79565b60008060208385031215612d6957600080fd5b823567ffffffffffffffff811115612d8057600080fd5b612d8c85828601612b97565b90969095509350505050565b80151581146112da57600080fd5b60008060408385031215612db957600080fd5b8235612dc4816129c3565b91506020830135612a2481612d98565b60008060008060808587031215612dea57600080fd5b8435612df5816129c3565b93506020850135612e05816129c3565b925060408501359150606085013567ffffffffffffffff811115612e2857600080fd5b8501601f81018713612e3957600080fd5b612e4887823560208401612c79565b91505092959194509250565b60008060408385031215612e6757600080fd5b8235612e72816129c3565b91506020830135612a24816129c3565b600181811c90821680612e9657607f821691505b602082108103612ecf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808201808211156106ce576106ce612ed5565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612f7757612f77612ed5565b5060010190565b63ffffffff818116838216019080821115612f9b57612f9b612ed5565b5092915050565b80820281158282048414176106ce576106ce612ed5565b600082612fef577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b601f82111561085457600081815260208120601f850160051c8101602086101561301b5750805b601f850160051c820191505b8181101561303a57828155600101613027565b505050505050565b815167ffffffffffffffff81111561305c5761305c612c4a565b6130708161306a8454612e82565b84612ff4565b602080601f8311600181146130c3576000841561308d5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b17855561303a565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015613110578886015182559484019460019091019084016130f1565b508582101561314c57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b600061ffff80831681810361317357613173612ed5565b6001019392505050565b6000835161318f818460208801612a2f565b8351908301906131a3818360208801612a2f565b01949350505050565b6000602082840312156131be57600080fd5b815161121f81612d98565b818103818111156106ce576106ce612ed5565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261321b6080830184612a53565b9695505050505050565b60006020828403121561323757600080fd5b815161121f8161297856fea26469706673582212203f548d9a5bec267976bbb2dcca63f83a552d473e886170130ff48a44f2bf3f6964736f6c63430008130033

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

000000000000000000000000459c5440e65dc8db5287eccf86080f7a66b0f17600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000043697066733a2f2f626166796265696467686e686768776e63766a66687935366177367a6a6661746a6861717232686f77757a666e70376537337775686b76376534342f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : defaultTreasury (address): 0x459C5440E65Dc8db5287eCcf86080F7A66b0f176
Arg [1] : defaultBaseURI (string): ipfs://bafybeidghnhghwncvjfhy56aw6zjfatjhaqr2howuzfnp7e73wuhkv7e44/

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000459c5440e65dc8db5287eccf86080f7a66b0f176
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [3] : 697066733a2f2f626166796265696467686e686768776e63766a666879353661
Arg [4] : 77367a6a6661746a6861717232686f77757a666e70376537337775686b763765
Arg [5] : 34342f0000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

84012:6854:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89509:245;;;;;;;;;;-1:-1:-1;89509:245:0;;;;;:::i;:::-;;:::i;:::-;;;611:14:1;;604:22;586:41;;574:2;559:18;89509:245:0;;;;;;;;87818:308;;;;;;;;;;-1:-1:-1;87818:308:0;;;;;:::i;:::-;;:::i;:::-;;44674:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;46186:171::-;;;;;;;;;;-1:-1:-1;46186:171:0;;;;;:::i;:::-;;:::i;:::-;;;2437:42:1;2425:55;;;2407:74;;2395:2;2380:18;46186:171:0;2261:226:1;89980:191:0;;;;;;;;;;-1:-1:-1;89980:191:0;;;;;:::i;:::-;;:::i;86358:93::-;;;;;;;;;;-1:-1:-1;86431:12:0;;;;86358:93;;;2966:25:1;;;2954:2;2939:18;86358:93:0;2820:177:1;86656:966:0;;;;;;;;;;-1:-1:-1;86656:966:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;90179:206::-;;;;;;;;;;-1:-1:-1;90179:206:0;;;;;:::i;:::-;;:::i;85723:550::-;;;;;;;;;;-1:-1:-1;85723:550:0;;;;;:::i;:::-;;:::i;8196:442::-;;;;;;;;;;-1:-1:-1;8196:442:0;;;;;:::i;:::-;;:::i;:::-;;;;5715:42:1;5703:55;;;5685:74;;5790:2;5775:18;;5768:34;;;;5658:18;8196:442:0;5511:297:1;84333:40:0;;;;;;;;;;;;84370:3;84333:40;;88231:109;;;;;;;;;;-1:-1:-1;88231:109:0;;;;;:::i;:::-;;:::i;80223:143::-;;;;;;;;;;;;72623:42;80223:143;;90393:214;;;;;;;;;;-1:-1:-1;90393:214:0;;;;;:::i;:::-;;:::i;84471:32::-;;;;;;;;;;;;;;;;87702:108;;;;;;;;;;-1:-1:-1;87702:108:0;;;;;:::i;:::-;;:::i;85069:608::-;;;;;;:::i;:::-;;:::i;44384:223::-;;;;;;;;;;-1:-1:-1;44384:223:0;;;;;:::i;:::-;;:::i;44115:207::-;;;;;;;;;;-1:-1:-1;44115:207:0;;;;;:::i;:::-;;:::i;2853:103::-;;;;;;;;;;;;;:::i;2205:87::-;;;;;;;;;;-1:-1:-1;2278:6:0;;;;2205:87;;88348:147;;;;;;;;;;-1:-1:-1;88348:147:0;;;;;:::i;:::-;;:::i;44843:104::-;;;;;;;;;;;;;:::i;89762:210::-;;;;;;;;;;-1:-1:-1;89762:210:0;;;;;:::i;:::-;;:::i;88132:93::-;;;;;;;;;;;;;:::i;90615:248::-;;;;;;;;;;-1:-1:-1;90615:248:0;;;;;:::i;:::-;;:::i;84434:30::-;;;;;;;;;;-1:-1:-1;84434:30:0;;;;;;;;45018:281;;;;;;;;;;-1:-1:-1;45018:281:0;;;;;:::i;:::-;;:::i;46655:164::-;;;;;;;;;;-1:-1:-1;46655:164:0;;;;;:::i;:::-;46776:25;;;;46752:4;46776:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;46655:164;3111:201;;;;;;;;;;-1:-1:-1;3111:201:0;;;;;:::i;:::-;;:::i;84510:34::-;;;;;;;;;;;;;;;;86459:147;;;;;;;;;;-1:-1:-1;86459:147:0;;;;;:::i;:::-;86559:17;;86528:4;86559:17;;;:12;:17;;;;;;;;;86578:14;:19;;;;;;;86559:17;;;;;86578:19;;;86459:147;;;;;10156:14:1;;10149:22;10131:41;;10215:14;;10208:22;10203:2;10188:18;;10181:50;10104:18;86459:147:0;9969:268:1;89509:245:0;89618:4;89655:38;89681:11;89655:25;:38::i;:::-;:91;;;;89710:36;89734:11;89710:23;:36::i;:::-;89635:111;89509:245;-1:-1:-1;;89509:245:0:o;87818:308::-;2091:13;:11;:13::i;:::-;87956:24:::1;::::0;::::1;87952:59;;87989:22;;;;;;;;;;;;;;87952:59;88022:15;:28:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;88061:57:::1;::::0;88097:20;88061:18:::1;:57::i;:::-;87818:308:::0;;:::o;44674:100::-;44728:13;44761:5;44754:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44674:100;:::o;46186:171::-;46262:7;46282:23;46297:7;46282:14;:23::i;:::-;-1:-1:-1;46325:24:0;;;;:15;:24;;;;;;;;;46186:171::o;89980:191::-;90110:8;82005:30;82026:8;82005:20;:30::i;:::-;90131:32:::1;90145:8;90155:7;90131:13;:32::i;:::-;89980:191:::0;;;:::o;86656:966::-;86732:16;86761:13;86777:14;86787:3;86777:9;:14::i;:::-;86761:30;;86802:21;86840:5;86826:20;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;86826:20:0;-1:-1:-1;86802:44:0;-1:-1:-1;86857:13:0;86906:1;86857:13;86937:23;84370:3;86906:1;86937:23;:::i;:::-;86918:42;-1:-1:-1;86988:10:0;86971:262;87004:8;87000:1;:12;86971:262;;;87034:26;;;87055:5;87034:26;49673:4;49271:16;;;:7;:16;;;;;;;;49697:31;87101:8;87075:34;49244:7;49271:16;;;:7;:16;;;;;;87127:18;;;;49271:16;;87127:18;87124:98;;87179:1;87165:4;87170:5;87165:11;;;;;;;;:::i;:::-;;;;;;;;;;:15;87199:7;;;:::i;:::-;;;87124:98;87014:3;;;:::i;:::-;;;86971:262;;;-1:-1:-1;87258:17:0;84420:5;87274:1;87258:17;:::i;:::-;87245:30;;;-1:-1:-1;87297:23:0;84370:3;87245:30;87297:23;:::i;:::-;87286:34;-1:-1:-1;87348:10:0;87331:262;87364:8;87360:1;:12;87331:262;;;87394:26;;;87415:5;87394:26;49673:4;49271:16;;;:7;:16;;;;;;;;49697:31;87461:8;87435:34;49244:7;49271:16;;;:7;:16;;;;;;87487:18;;;;49271:16;;87487:18;87484:98;;87539:1;87525:4;87530:5;87525:11;;;;;;;;:::i;:::-;;;;;;;;;;:15;87559:7;;;:::i;:::-;;;87484:98;87374:3;;;:::i;:::-;;;87331:262;;;-1:-1:-1;87610:4:0;;86656:966;-1:-1:-1;;;;;;86656:966:0:o;90179:206::-;90323:4;81731:18;;;81739:10;81731:18;81727:83;;81766:32;81787:10;81766:20;:32::i;:::-;90340:37:::1;90359:4;90365:2;90369:7;90340:18;:37::i;:::-;90179:206:::0;;;;:::o;85723:550::-;62294:21;:19;:21::i;:::-;85868:10:::1;::::0;85893:20:::1;85901:11:::0;85893:7:::1;:20::i;:::-;:31;;;85889:87;;85948:16;;;;;;;;;;;;;;85889:87;85989:23;::::0;::::1;;::::0;;;:14:::1;:23;::::0;;;;;::::1;;:31;;:23:::0;:31;85986:85:::1;;86044:15;;;;;;;;;;;;;;85986:85;86085:51;86093:14;86099:7;89372:19:::0;;;2437:42:1;2425:55;;89372:19:0;;;2407:74:1;89312:7:0;;2380:18:1;89372:19:0;;;;;;;;;;;;;89362:30;;89372:19;89362:30;;;;89349:44;;;19909:19:1;19944:12;89349:44:0;;;;;;;;;;;;89339:55;;;;;;89332:62;;89257:145;;;;86093:14:::1;86109:5;;86116:19;;86085:7;:51::i;:::-;:60;;86140:5;86085:60:::0;86081:89:::1;;86154:16;;;;;;;;;;;;;;86081:89;86183:23;::::0;::::1;;::::0;;;:14:::1;:23;::::0;;;;:30;;;::::1;86209:4;86183:30;::::0;;86224:41:::1;86198:7:::0;86253:11;86224:19:::1;:41::i;:::-;;85839:434;62338:20:::0;61732:1;62858:7;:22;62675:213;8196:442;8293:7;8351:27;;;:17;:27;;;;;;;;8322:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;8293:7;;8391:92;;-1:-1:-1;8442:29:0;;;;;;;;;-1:-1:-1;8442:29:0;;;;;;;;;;;;;;;8391:92;8533:23;;;;8495:21;;9004:5;;8520:36;;8519:58;8520:36;:10;:36;:::i;:::-;8519:58;;;;:::i;:::-;8598:16;;;-1:-1:-1;8495:82:0;;-1:-1:-1;;8196:442:0;;;;;;:::o;88231:109::-;2091:13;:11;:13::i;:::-;88305:17:::1;:27:::0;88231:109::o;90393:214::-;90541:4;81731:18;;;81739:10;81731:18;81727:83;;81766:32;81787:10;81766:20;:32::i;:::-;90558:41:::1;90581:4;90587:2;90591:7;90558:22;:41::i;87702:108::-:0;2091:13;:11;:13::i;:::-;87776::::1;:26;87792:10:::0;87776:13;:26:::1;:::i;85069:608::-:0;62294:21;:19;:21::i;:::-;85190:10:::1;85172:15;85215:21:::0;;;:12:::1;:21;::::0;;;;;::::1;;:29;;:21:::0;:29;85211:84:::1;;85268:15;;;;;;;;;;;;;;85211:84;85317:12;::::0;84370:3:::1;85317:12;::::0;;::::1;:26;85313:81;;85367:15;;;;;;;;;;;;;;85313:81;85408:48;85416:14;85422:7;89372:19:::0;;;2437:42:1;2425:55;;89372:19:0;;;2407:74:1;89312:7:0;;2380:18:1;89372:19:0;;;;;;;;;;;;;89362:30;;89372:19;89362:30;;;;89349:44;;;19909:19:1;19944:12;89349:44:0;;;;;;;;;;;;89339:55;;;;;;89332:62;;89257:145;;;;85416:14:::1;85432:5;;85438:17;;85408:7;:48::i;:::-;:57;;85460:5;85408:57:::0;85404:86:::1;;85474:16;;;;;;;;;;;;;;85404:86;85503:21;::::0;::::1;;::::0;;;:12:::1;:21;::::0;;;;:28;;;::::1;85527:4;85503:28;::::0;;85560:12:::1;::::0;:28:::1;::::0;84420:5:::1;::::0;85560:12:::1;;:28;:::i;:::-;:32;::::0;85591:1:::1;85560:32;:::i;:::-;85623:12;85621:14:::0;;85542:50:::1;::::0;;;::::1;::::0;-1:-1:-1;85623:12:0;::::1;::::0;85621:14:::1;::::0;::::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;85646:23;85652:7;85661;85646:5;:23::i;:::-;85161:516;;62338:20:::0;61732:1;62858:7;:22;62675:213;44384:223;44456:7;49271:16;;;:7;:16;;;;;;;;;44520:56;;;;;;;14997:2:1;44520:56:0;;;14979:21:1;15036:2;15016:18;;;15009:30;15075:26;15055:18;;;15048:54;15119:18;;44520:56:0;;;;;;;;44115:207;44187:7;44215:19;;;44207:73;;;;;;;15350:2:1;44207:73:0;;;15332:21:1;15389:2;15369:18;;;15362:30;15428:34;15408:18;;;15401:62;15499:11;15479:18;;;15472:39;15528:19;;44207:73:0;15148:405:1;44207:73:0;-1:-1:-1;44298:16:0;;;;;;:9;:16;;;;;;;44115:207::o;2853:103::-;2091:13;:11;:13::i;:::-;2918:30:::1;2945:1;2918:18;:30::i;:::-;2853:103::o:0;88348:147::-;2091:13;:11;:13::i;:::-;88424:23:::1;:21;:23::i;:::-;88458:19;:29:::0;88348:147::o;44843:104::-;44899:13;44932:7;44925:14;;;;;:::i;89762:210::-;89900:8;82005:30;82026:8;82005:20;:30::i;:::-;89921:43:::1;89945:8;89955;89921:23;:43::i;88132:93::-:0;2091:13;:11;:13::i;:::-;88193:24:::1;88213:3;88193:19;:24::i;90615:248::-:0;90791:4;81731:18;;;81739:10;81731:18;81727:83;;81766:32;81787:10;81766:20;:32::i;:::-;90808:47:::1;90831:4;90837:2;90841:7;90850:4;90808:22;:47::i;:::-;90615:248:::0;;;;;:::o;45018:281::-;45091:13;45117:23;45132:7;45117:14;:23::i;:::-;45153:21;45177:10;:8;:10::i;:::-;45153:34;;45229:1;45211:7;45205:21;:25;:86;;;;;;;;;;;;;;;;;45257:7;45266:18;:7;:16;:18::i;:::-;45240:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;45205:86;45198:93;45018:281;-1:-1:-1;;;45018:281:0:o;3111:201::-;2091:13;:11;:13::i;:::-;3200:22:::1;::::0;::::1;3192:73;;;::::0;::::1;::::0;;16261:2:1;3192:73:0::1;::::0;::::1;16243:21:1::0;16300:2;16280:18;;;16273:30;16339:34;16319:18;;;16312:62;16410:8;16390:18;;;16383:36;16436:19;;3192:73:0::1;16059:402:1::0;3192:73:0::1;3276:28;3295:8;3276:18;:28::i;:::-;3111:201:::0;:::o;7926:215::-;8028:4;8052:41;;;8067:26;8052:41;;:81;;-1:-1:-1;6494:25:0;6479:40;;;;8097:36;6370:157;43746:305;43848:4;43885:40;;;43900:25;43885:40;;:105;;-1:-1:-1;43942:48:0;;;43957:33;43942:48;43885:105;:158;;;;44007:36;44031:11;44007:23;:36::i;2370:132::-;2278:6;;2434:23;2278:6;830:10;2434:23;2426:68;;;;;;;16668:2:1;2426:68:0;;;16650:21:1;;;16687:18;;;16680:30;16746:34;16726:18;;;16719:62;16798:18;;2426:68:0;16466:356:1;9288:332:0;9004:5;9391:33;;;;;9383:88;;;;;;;17029:2:1;9383:88:0;;;17011:21:1;17068:2;17048:18;;;17041:30;17107:34;17087:18;;;17080:62;17178:12;17158:18;;;17151:40;17208:19;;9383:88:0;16827:406:1;9383:88:0;9490:22;;;9482:60;;;;;;;17440:2:1;9482:60:0;;;17422:21:1;17479:2;17459:18;;;17452:30;17518:27;17498:18;;;17491:55;17563:18;;9482:60:0;17238:349:1;9482:60:0;9577:35;;;;;;;;;;;;;;;;;;;;;;;;;;;9555:57;;;;;-1:-1:-1;9555:57:0;9288:332::o;56005:135::-;49673:4;49271:16;;;:7;:16;;;;;;;;56079:53;;;;;;;14997:2:1;56079:53:0;;;14979:21:1;15036:2;15016:18;;;15009:30;15075:26;15055:18;;;15048:54;15119:18;;56079:53:0;14795:348:1;82148:647:0;72623:42;82339:45;:49;82335:453;;82638:67;;;;;82689:4;82638:67;;;17827:34:1;17776:42;17897:15;;17877:18;;;17870:43;72623:42:0;;82638;;17739:18:1;;82638:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;82633:144;;82733:28;;;;;2437:42:1;2425:55;;82733:28:0;;;2407:74:1;2380:18;;82733:28:0;2261:226:1;45704:416:0;45785:13;45801:23;45816:7;45801:14;:23::i;:::-;45785:39;;45849:5;45843:11;;:2;:11;;;45835:57;;;;;;;18376:2:1;45835:57:0;;;18358:21:1;18415:2;18395:18;;;18388:30;18454:34;18434:18;;;18427:62;18525:3;18505:18;;;18498:31;18546:19;;45835:57:0;18174:397:1;45835:57:0;830:10;45927:21;;;;;:62;;-1:-1:-1;46776:25:0;;;46752:4;46776:25;;;:18;:25;;;;;;;;830:10;46776:35;;;;;;;;;;45952:37;45905:173;;;;;;;18778:2:1;45905:173:0;;;18760:21:1;18817:2;18797:18;;;18790:30;18856:34;18836:18;;;18829:62;18927:31;18907:18;;;18900:59;18976:19;;45905:173:0;18576:425:1;45905:173:0;46091:21;46100:2;46104:7;46091:8;:21::i;46886:335::-;47081:41;830:10;47114:7;47081:18;:41::i;:::-;47073:99;;;;;;;19208:2:1;47073:99:0;;;19190:21:1;19247:2;19227:18;;;19220:30;19286:34;19266:18;;;19259:62;19357:15;19337:18;;;19330:43;19390:19;;47073:99:0;19006:409:1;47073:99:0;47185:28;47195:4;47201:2;47205:7;47185:9;:28::i;62374:293::-;61776:1;62508:7;;:19;62500:63;;;;;;;19622:2:1;62500:63:0;;;19604:21:1;19661:2;19641:18;;;19634:30;19700:33;19680:18;;;19673:61;19751:18;;62500:63:0;19420:355:1;62500:63:0;61776:1;62641:7;:18;62374:293::o;89032:217::-;89166:4;89190:51;89217:5;;89224:10;89236:4;89190:26;:51::i;:::-;89183:58;;89032:217;;;;;;;:::o;88565:345::-;88669:7;84420:5;88693:21;;88689:82;;;88738:21;;;;;;;;;;;;;;88689:82;88781:12;88787:5;88781;:12::i;:::-;88804:15;88822:21;84420:5;88822;:21;:::i;:::-;88804:39;;88854:23;88860:7;88869;88854:5;:23::i;47292:185::-;47430:39;47447:4;47453:2;47457:7;47430:39;;;;;;;;;;;;:16;:39::i;51501:942::-;51581:16;;;51573:61;;;;;;;20302:2:1;51573:61:0;;;20284:21:1;;;20321:18;;;20314:30;20380:34;20360:18;;;20353:62;20432:18;;51573:61:0;20100:356:1;51573:61:0;49673:4;49271:16;;;:7;:16;;;;;;;;49697:31;51645:58;;;;;;;20663:2:1;51645:58:0;;;20645:21:1;20702:2;20682:18;;;20675:30;20741;20721:18;;;20714:58;20789:18;;51645:58:0;20461:352:1;51645:58:0;49673:4;49271:16;;;:7;:16;;;;;;;;49697:31;51854:58;;;;;;;20663:2:1;51854:58:0;;;20645:21:1;20702:2;20682:18;;;20675:30;20741;20721:18;;;20714:58;20789:18;;51854:58:0;20461:352:1;51854:58:0;52261:13;;;;;;;:9;:13;;;;;;;;:18;;52278:1;52261:18;;;52303:16;;;:7;:16;;;;;;:21;;;;;;;;52342:33;52311:7;;52261:13;;52342:33;;52261:13;;52342:33;87818:308;;:::o;3472:191::-;3565:6;;;;3582:17;;;;;;;;;;;3615:40;;3565:6;;;3582:17;3565:6;;3615:40;;3546:16;;3615:40;3535:128;3472:191;:::o;46429:155::-;46524:52;830:10;46557:8;46567;46524:18;:52::i;47548:322::-;47722:41;830:10;47755:7;47722:18;:41::i;:::-;47714:99;;;;;;;19208:2:1;47714:99:0;;;19190:21:1;19247:2;19227:18;;;19220:30;19286:34;19266:18;;;19259:62;19357:15;19337:18;;;19330:43;19390:19;;47714:99:0;19006:409:1;47714:99:0;47824:38;47838:4;47844:2;47848:7;47857:4;47824:13;:38::i;88918:106::-;88970:13;89003;88996:20;;;;;:::i;40439:716::-;40495:13;40546:14;40563:17;40574:5;40563:10;:17::i;:::-;40583:1;40563:21;40546:38;;40599:20;40633:6;40622:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40622:18:0;-1:-1:-1;40599:41:0;-1:-1:-1;40764:28:0;;;40780:2;40764:28;40821:288;40853:5;;40995:8;40990:2;40979:14;;40974:30;40853:5;40961:44;41051:2;41042:11;;;-1:-1:-1;41072:21:0;40821:288;41072:21;-1:-1:-1;41130:6:0;40439:716;-1:-1:-1;;;40439:716:0:o;55284:174::-;55359:24;;;;:15;:24;;;;;:29;;;;;;;;;;;;;:24;;55413:23;55359:24;55413:14;:23::i;:::-;55404:46;;;;;;;;;;;;55284:174;;:::o;49903:264::-;49996:4;50013:13;50029:23;50044:7;50029:14;:23::i;:::-;50013:39;;50082:5;50071:16;;:7;:16;;;:52;;;-1:-1:-1;46776:25:0;;;;46752:4;46776:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;50091:32;50071:87;;;;50151:7;50127:31;;:20;50139:7;50127:11;:20::i;:::-;:31;;;50063:96;49903:264;-1:-1:-1;;;;49903:264:0:o;53902:1263::-;54061:4;54034:31;;:23;54049:7;54034:14;:23::i;:::-;:31;;;54026:81;;;;;;;21020:2:1;54026:81:0;;;21002:21:1;21059:2;21039:18;;;21032:30;21098:34;21078:18;;;21071:62;21169:7;21149:18;;;21142:35;21194:19;;54026:81:0;20818:401:1;54026:81:0;54126:16;;;54118:65;;;;;;;21426:2:1;54118:65:0;;;21408:21:1;21465:2;21445:18;;;21438:30;21504:34;21484:18;;;21477:62;21575:6;21555:18;;;21548:34;21599:19;;54118:65:0;21224:400:1;54118:65:0;54368:4;54341:31;;:23;54356:7;54341:14;:23::i;:::-;:31;;;54333:81;;;;;;;21020:2:1;54333:81:0;;;21002:21:1;21059:2;21039:18;;;21032:30;21098:34;21078:18;;;21071:62;21169:7;21149:18;;;21142:35;21194:19;;54333:81:0;20818:401:1;54333:81:0;54486:24;;;;:15;:24;;;;;;;;54479:31;;;;;;;;;;54962:15;;;;;;:9;:15;;;;;:20;;;;;;54997:13;;;;;;;;;:18;;54479:31;54997:18;;;55037:16;;;:7;:16;;;;;;:21;;;;;;;;;;55076:27;;54502:7;;55076:27;;;89980:191;;;:::o;64423:208::-;64558:4;64619;64582:33;64603:5;;64610:4;64582:20;:33::i;:::-;:41;;64423:208;-1:-1:-1;;;;;64423:208:0:o;52782:783::-;52842:13;52858:23;52873:7;52858:14;:23::i;:::-;52842:39;;53058:23;53073:7;53058:14;:23::i;:::-;53129:24;;;;:15;:24;;;;;;;;53122:31;;;;;;;;;;53374:16;;;;;:9;:16;;;;;:21;;;;;;53424:16;;;:7;:16;;;;;;53417:23;;;;;;;53458:36;53050:31;;-1:-1:-1;53145:7:0;;53458:36;;53129:24;;53458:36;87818:308;;:::o;55601:315::-;55756:8;55747:17;;:5;:17;;;55739:55;;;;;;;21831:2:1;55739:55:0;;;21813:21:1;21870:2;21850:18;;;21843:30;21909:27;21889:18;;;21882:55;21954:18;;55739:55:0;21629:349:1;55739:55:0;55805:25;;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;;;;;;;;;;;;55867:41;;586::1;;;55867::0;;559:18:1;55867:41:0;;;;;;;55601:315;;;:::o;48751:313::-;48907:28;48917:4;48923:2;48927:7;48907:9;:28::i;:::-;48954:47;48977:4;48983:2;48987:7;48996:4;48954:22;:47::i;:::-;48946:110;;;;;;;22185:2:1;48946:110:0;;;22167:21:1;22224:2;22204:18;;;22197:30;22263:34;22243:18;;;22236:62;22334:20;22314:18;;;22307:48;22372:19;;48946:110:0;21983:414:1;37299:922:0;37352:7;;37439:6;37430:15;;37426:102;;37475:6;37466:15;;;-1:-1:-1;37510:2:0;37500:12;37426:102;37555:6;37546:5;:15;37542:102;;37591:6;37582:15;;;-1:-1:-1;37626:2:0;37616:12;37542:102;37671:6;37662:5;:15;37658:102;;37707:6;37698:15;;;-1:-1:-1;37742:2:0;37732:12;37658:102;37787:5;37778;:14;37774:99;;37822:5;37813:14;;;-1:-1:-1;37856:1:0;37846:11;37774:99;37900:5;37891;:14;37887:99;;37935:5;37926:14;;;-1:-1:-1;37969:1:0;37959:11;37887:99;38013:5;38004;:14;38000:99;;38048:5;38039:14;;;-1:-1:-1;38082:1:0;38072:11;38000:99;38126:5;38117;:14;38113:66;;38162:1;38152:11;38207:6;37299:922;-1:-1:-1;;37299:922:0:o;65402:306::-;65495:7;65538:4;65495:7;65553:118;65573:16;;;65553:118;;;65626:33;65636:12;65650:5;;65656:1;65650:8;;;;;;;:::i;:::-;;;;;;;65626:9;:33::i;:::-;65611:48;-1:-1:-1;65591:3:0;;;;:::i;:::-;;;;65553:118;;;-1:-1:-1;65688:12:0;65402:306;-1:-1:-1;;;;65402:306:0:o;56704:853::-;56858:4;56879:13;;;19220:19;:23;56875:675;;56915:71;;;;;:36;;;;;;:71;;830:10;;56966:4;;56972:7;;56981:4;;56915:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56915:71:0;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;56911:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57156:6;:13;57173:1;57156:18;57152:328;;57199:60;;;;;22185:2:1;57199:60:0;;;22167:21:1;22224:2;22204:18;;;22197:30;22263:34;22243:18;;;22236:62;22334:20;22314:18;;;22307:48;22372:19;;57199:60:0;21983:414:1;57152:328:0;57430:6;57424:13;57415:6;57411:2;57407:15;57400:38;56911:584;57037:51;;57047:41;57037:51;;-1:-1:-1;57030:58:0;;56875:675;-1:-1:-1;57534:4:0;57527:11;;72032:149;72095:7;72126:1;72122;:5;:51;;72257:13;72351:15;;;72387:4;72380:15;;;72434:4;72418:21;;72122:51;;;72257:13;72351:15;;;72387:4;72380:15;;;72434:4;72418:21;;72130:20;72189:268;14:177:1;99:66;92:5;88:78;81:5;78:89;68:117;;181:1;178;171:12;196:245;254:6;307:2;295:9;286:7;282:23;278:32;275:52;;;323:1;320;313:12;275:52;362:9;349:23;381:30;405:5;381:30;:::i;638:162::-;732:42;725:5;721:54;714:5;711:65;701:93;;790:1;787;780:12;805:451;880:6;888;941:2;929:9;920:7;916:23;912:32;909:52;;;957:1;954;947:12;909:52;996:9;983:23;1015:39;1048:5;1015:39;:::i;:::-;1073:5;-1:-1:-1;1130:2:1;1115:18;;1102:32;1178:26;1165:40;;1153:53;;1143:81;;1220:1;1217;1210:12;1143:81;1243:7;1233:17;;;805:451;;;;;:::o;1261:250::-;1346:1;1356:113;1370:6;1367:1;1364:13;1356:113;;;1446:11;;;1440:18;1427:11;;;1420:39;1392:2;1385:10;1356:113;;;-1:-1:-1;;1503:1:1;1485:16;;1478:27;1261:250::o;1516:330::-;1558:3;1596:5;1590:12;1623:6;1618:3;1611:19;1639:76;1708:6;1701:4;1696:3;1692:14;1685:4;1678:5;1674:16;1639:76;:::i;:::-;1760:2;1748:15;1765:66;1744:88;1735:98;;;;1835:4;1731:109;;1516:330;-1:-1:-1;;1516:330:1:o;1851:220::-;2000:2;1989:9;1982:21;1963:4;2020:45;2061:2;2050:9;2046:18;2038:6;2020:45;:::i;2076:180::-;2135:6;2188:2;2176:9;2167:7;2163:23;2159:32;2156:52;;;2204:1;2201;2194:12;2156:52;-1:-1:-1;2227:23:1;;2076:180;-1:-1:-1;2076:180:1:o;2492:323::-;2560:6;2568;2621:2;2609:9;2600:7;2596:23;2592:32;2589:52;;;2637:1;2634;2627:12;2589:52;2676:9;2663:23;2695:39;2728:5;2695:39;:::i;:::-;2753:5;2805:2;2790:18;;;;2777:32;;-1:-1:-1;;;2492:323:1:o;3002:255::-;3061:6;3114:2;3102:9;3093:7;3089:23;3085:32;3082:52;;;3130:1;3127;3120:12;3082:52;3169:9;3156:23;3188:39;3221:5;3188:39;:::i;3262:632::-;3433:2;3485:21;;;3555:13;;3458:18;;;3577:22;;;3404:4;;3433:2;3656:15;;;;3630:2;3615:18;;;3404:4;3699:169;3713:6;3710:1;3707:13;3699:169;;;3774:13;;3762:26;;3843:15;;;;3808:12;;;;3735:1;3728:9;3699:169;;;-1:-1:-1;3885:3:1;;3262:632;-1:-1:-1;;;;;;3262:632:1:o;3899:472::-;3976:6;3984;3992;4045:2;4033:9;4024:7;4020:23;4016:32;4013:52;;;4061:1;4058;4051:12;4013:52;4100:9;4087:23;4119:39;4152:5;4119:39;:::i;:::-;4177:5;-1:-1:-1;4234:2:1;4219:18;;4206:32;4247:41;4206:32;4247:41;:::i;:::-;3899:472;;4307:7;;-1:-1:-1;;;4361:2:1;4346:18;;;;4333:32;;3899:472::o;4376:367::-;4439:8;4449:6;4503:3;4496:4;4488:6;4484:17;4480:27;4470:55;;4521:1;4518;4511:12;4470:55;-1:-1:-1;4544:20:1;;4587:18;4576:30;;4573:50;;;4619:1;4616;4609:12;4573:50;4656:4;4648:6;4644:17;4632:29;;4716:3;4709:4;4699:6;4696:1;4692:14;4684:6;4680:27;4676:38;4673:47;4670:67;;;4733:1;4730;4723:12;4748:505;4843:6;4851;4859;4912:2;4900:9;4891:7;4887:23;4883:32;4880:52;;;4928:1;4925;4918:12;4880:52;4964:9;4951:23;4941:33;;5025:2;5014:9;5010:18;4997:32;5052:18;5044:6;5041:30;5038:50;;;5084:1;5081;5074:12;5038:50;5123:70;5185:7;5176:6;5165:9;5161:22;5123:70;:::i;:::-;4748:505;;5212:8;;-1:-1:-1;5097:96:1;;-1:-1:-1;;;;4748:505:1:o;5258:248::-;5326:6;5334;5387:2;5375:9;5366:7;5362:23;5358:32;5355:52;;;5403:1;5400;5393:12;5355:52;-1:-1:-1;;5426:23:1;;;5496:2;5481:18;;;5468:32;;-1:-1:-1;5258:248:1:o;6443:184::-;6495:77;6492:1;6485:88;6592:4;6589:1;6582:15;6616:4;6613:1;6606:15;6632:691;6697:5;6727:18;6768:2;6760:6;6757:14;6754:40;;;6774:18;;:::i;:::-;6908:2;6902:9;6974:2;6962:15;;6813:66;6958:24;;;6984:2;6954:33;6950:42;6938:55;;;7008:18;;;7028:22;;;7005:46;7002:72;;;7054:18;;:::i;:::-;7094:10;7090:2;7083:22;7123:6;7114:15;;7153:6;7145;7138:22;7193:3;7184:6;7179:3;7175:16;7172:25;7169:45;;;7210:1;7207;7200:12;7169:45;7260:6;7255:3;7248:4;7240:6;7236:17;7223:44;7315:1;7308:4;7299:6;7291;7287:19;7283:30;7276:41;;;;6632:691;;;;;:::o;7328:451::-;7397:6;7450:2;7438:9;7429:7;7425:23;7421:32;7418:52;;;7466:1;7463;7456:12;7418:52;7506:9;7493:23;7539:18;7531:6;7528:30;7525:50;;;7571:1;7568;7561:12;7525:50;7594:22;;7647:4;7639:13;;7635:27;-1:-1:-1;7625:55:1;;7676:1;7673;7666:12;7625:55;7699:74;7765:7;7760:2;7747:16;7742:2;7738;7734:11;7699:74;:::i;7784:437::-;7870:6;7878;7931:2;7919:9;7910:7;7906:23;7902:32;7899:52;;;7947:1;7944;7937:12;7899:52;7987:9;7974:23;8020:18;8012:6;8009:30;8006:50;;;8052:1;8049;8042:12;8006:50;8091:70;8153:7;8144:6;8133:9;8129:22;8091:70;:::i;:::-;8180:8;;8065:96;;-1:-1:-1;7784:437:1;-1:-1:-1;;;;7784:437:1:o;8226:118::-;8312:5;8305:13;8298:21;8291:5;8288:32;8278:60;;8334:1;8331;8324:12;8349:390;8414:6;8422;8475:2;8463:9;8454:7;8450:23;8446:32;8443:52;;;8491:1;8488;8481:12;8443:52;8530:9;8517:23;8549:39;8582:5;8549:39;:::i;:::-;8607:5;-1:-1:-1;8664:2:1;8649:18;;8636:32;8677:30;8636:32;8677:30;:::i;8744:811::-;8839:6;8847;8855;8863;8916:3;8904:9;8895:7;8891:23;8887:33;8884:53;;;8933:1;8930;8923:12;8884:53;8972:9;8959:23;8991:39;9024:5;8991:39;:::i;:::-;9049:5;-1:-1:-1;9106:2:1;9091:18;;9078:32;9119:41;9078:32;9119:41;:::i;:::-;9179:7;-1:-1:-1;9233:2:1;9218:18;;9205:32;;-1:-1:-1;9288:2:1;9273:18;;9260:32;9315:18;9304:30;;9301:50;;;9347:1;9344;9337:12;9301:50;9370:22;;9423:4;9415:13;;9411:27;-1:-1:-1;9401:55:1;;9452:1;9449;9442:12;9401:55;9475:74;9541:7;9536:2;9523:16;9518:2;9514;9510:11;9475:74;:::i;:::-;9465:84;;;8744:811;;;;;;;:::o;9560:404::-;9628:6;9636;9689:2;9677:9;9668:7;9664:23;9660:32;9657:52;;;9705:1;9702;9695:12;9657:52;9744:9;9731:23;9763:39;9796:5;9763:39;:::i;:::-;9821:5;-1:-1:-1;9878:2:1;9863:18;;9850:32;9891:41;9850:32;9891:41;:::i;10242:437::-;10321:1;10317:12;;;;10364;;;10385:61;;10439:4;10431:6;10427:17;10417:27;;10385:61;10492:2;10484:6;10481:14;10461:18;10458:38;10455:218;;10529:77;10526:1;10519:88;10630:4;10627:1;10620:15;10658:4;10655:1;10648:15;10455:218;;10242:437;;;:::o;10684:184::-;10736:77;10733:1;10726:88;10833:4;10830:1;10823:15;10857:4;10854:1;10847:15;10873:125;10938:9;;;10959:10;;;10956:36;;;10972:18;;:::i;11003:184::-;11055:77;11052:1;11045:88;11152:4;11149:1;11142:15;11176:4;11173:1;11166:15;11192:195;11231:3;11262:66;11255:5;11252:77;11249:103;;11332:18;;:::i;:::-;-1:-1:-1;11379:1:1;11368:13;;11192:195::o;11392:172::-;11459:10;11489;;;11501;;;11485:27;;11524:11;;;11521:37;;;11538:18;;:::i;:::-;11521:37;11392:172;;;;:::o;11569:168::-;11642:9;;;11673;;11690:15;;;11684:22;;11670:37;11660:71;;11711:18;;:::i;11931:274::-;11971:1;11997;11987:189;;12032:77;12029:1;12022:88;12133:4;12130:1;12123:15;12161:4;12158:1;12151:15;11987:189;-1:-1:-1;12190:9:1;;11931:274::o;12336:545::-;12438:2;12433:3;12430:11;12427:448;;;12474:1;12499:5;12495:2;12488:17;12544:4;12540:2;12530:19;12614:2;12602:10;12598:19;12595:1;12591:27;12585:4;12581:38;12650:4;12638:10;12635:20;12632:47;;;-1:-1:-1;12673:4:1;12632:47;12728:2;12723:3;12719:12;12716:1;12712:20;12706:4;12702:31;12692:41;;12783:82;12801:2;12794:5;12791:13;12783:82;;;12846:17;;;12827:1;12816:13;12783:82;;;12787:3;;;12336:545;;;:::o;13117:1471::-;13243:3;13237:10;13270:18;13262:6;13259:30;13256:56;;;13292:18;;:::i;:::-;13321:97;13411:6;13371:38;13403:4;13397:11;13371:38;:::i;:::-;13365:4;13321:97;:::i;:::-;13473:4;;13537:2;13526:14;;13554:1;13549:782;;;;14375:1;14392:6;14389:89;;;-1:-1:-1;14444:19:1;;;14438:26;14389:89;13023:66;13014:1;13010:11;;;13006:84;13002:89;12992:100;13098:1;13094:11;;;12989:117;14491:81;;13519:1063;;13549:782;12283:1;12276:14;;;12320:4;12307:18;;13597:66;13585:79;;;13762:236;13776:7;13773:1;13770:14;13762:236;;;13865:19;;;13859:26;13844:42;;13957:27;;;;13925:1;13913:14;;;;13792:19;;13762:236;;;13766:3;14026:6;14017:7;14014:19;14011:261;;;14087:19;;;14081:26;14188:66;14170:1;14166:14;;;14182:3;14162:24;14158:97;14154:102;14139:118;14124:134;;14011:261;-1:-1:-1;;;;;14318:1:1;14302:14;;;14298:22;14285:36;;-1:-1:-1;13117:1471:1:o;14593:197::-;14631:3;14659:6;14700:2;14693:5;14689:14;14727:2;14718:7;14715:15;14712:41;;14733:18;;:::i;:::-;14782:1;14769:15;;14593:197;-1:-1:-1;;;14593:197:1:o;15558:496::-;15737:3;15775:6;15769:13;15791:66;15850:6;15845:3;15838:4;15830:6;15826:17;15791:66;:::i;:::-;15920:13;;15879:16;;;;15942:70;15920:13;15879:16;15989:4;15977:17;;15942:70;:::i;:::-;16028:20;;15558:496;-1:-1:-1;;;;15558:496:1:o;17924:245::-;17991:6;18044:2;18032:9;18023:7;18019:23;18015:32;18012:52;;;18060:1;18057;18050:12;18012:52;18092:9;18086:16;18111:28;18133:5;18111:28;:::i;19967:128::-;20034:9;;;20055:11;;;20052:37;;;20069:18;;:::i;22402:512::-;22596:4;22625:42;22706:2;22698:6;22694:15;22683:9;22676:34;22758:2;22750:6;22746:15;22741:2;22730:9;22726:18;22719:43;;22798:6;22793:2;22782:9;22778:18;22771:34;22841:3;22836:2;22825:9;22821:18;22814:31;22862:46;22903:3;22892:9;22888:19;22880:6;22862:46;:::i;:::-;22854:54;22402:512;-1:-1:-1;;;;;;22402:512:1:o;22919:249::-;22988:6;23041:2;23029:9;23020:7;23016:23;23012:32;23009:52;;;23057:1;23054;23047:12;23009:52;23089:9;23083:16;23108:30;23132:5;23108:30;:::i

Swarm Source

ipfs://3f548d9a5bec267976bbb2dcca63f83a552d473e886170130ff48a44f2bf3f69

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.