ETH Price: $3,257.58 (-0.80%)
Gas: 1 Gwei

Contract

0xDa660f57B9dF79e1A4b56156427DBB6862EB715E
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...200891262024-06-14 9:24:1144 days ago1718357051IN
0xDa660f57...862EB715E
0 ETH0.000315386.83722303
Set Approval For...200674252024-06-11 8:34:3547 days ago1718094875IN
0xDa660f57...862EB715E
0 ETH0.000308946.69767188
Safe Transfer Fr...197486132024-04-27 18:59:4792 days ago1714244387IN
0xDa660f57...862EB715E
0 ETH0.000281145.3930641
Safe Transfer Fr...197485532024-04-27 18:47:4792 days ago1714243667IN
0xDa660f57...862EB715E
0 ETH0.000285435.4767344
Set Approval For...196181432024-04-09 12:40:11110 days ago1712666411IN
0xDa660f57...862EB715E
0 ETH0.0013379829.00664549
Set Approval For...195176262024-03-26 9:08:23124 days ago1711444103IN
0xDa660f57...862EB715E
0 ETH0.000961420.81017603
Set Approval For...193553422024-03-03 14:48:35147 days ago1709477315IN
0xDa660f57...862EB715E
0 ETH0.002742159.44679358
Set Approval For...188684502023-12-26 7:42:23215 days ago1703576543IN
0xDa660f57...862EB715E
0 ETH0.000665114.41897781
Set Approval For...188608612023-12-25 6:05:35216 days ago1703484335IN
0xDa660f57...862EB715E
0 ETH0.0005813412.59662073
Set Approval For...188407412023-12-22 10:18:35219 days ago1703240315IN
0xDa660f57...862EB715E
0 ETH0.0016106734.91819274
Set Approval For...174473672023-06-10 4:21:11414 days ago1686370871IN
0xDa660f57...862EB715E
0 ETH0.0010440822.6349863
Set Approval For...174436892023-06-09 15:54:23415 days ago1686326063IN
0xDa660f57...862EB715E
0 ETH0.0009713521.05817765
Set Approval For...168231912023-03-14 2:22:23502 days ago1678760543IN
0xDa660f57...862EB715E
0 ETH0.0012272326.60554869
Set Approval For...166800292023-02-21 23:04:59522 days ago1677020699IN
0xDa660f57...862EB715E
0 ETH0.0008137933.60690389
Set Approval For...166800262023-02-21 23:04:23522 days ago1677020663IN
0xDa660f57...862EB715E
0 ETH0.0008255833.97625693
Set Approval For...166691972023-02-20 10:35:23524 days ago1676889323IN
0xDa660f57...862EB715E
0 ETH0.0011416724.75078771
Set Approval For...165971052023-02-10 8:16:47534 days ago1676017007IN
0xDa660f57...862EB715E
0 ETH0.0009876521.41155264
Set Approval For...165918082023-02-09 14:31:35535 days ago1675953095IN
0xDa660f57...862EB715E
0 ETH0.0015667133.9652191
Set Approval For...165661822023-02-06 0:31:59538 days ago1675643519IN
0xDa660f57...862EB715E
0 ETH0.0009087819.70172234
Set Approval For...163502912023-01-06 21:00:47569 days ago1673038847IN
0xDa660f57...862EB715E
0 ETH0.0012232726.51962934
Set Approval For...163075592022-12-31 21:53:23574 days ago1672523603IN
0xDa660f57...862EB715E
0 ETH0.0007784516.87626682
Set Approval For...162648292022-12-25 22:44:35580 days ago1672008275IN
0xDa660f57...862EB715E
0 ETH0.0004618510.01272021
Safe Transfer Fr...159224692022-11-08 2:56:59628 days ago1667876219IN
0xDa660f57...862EB715E
0 ETH0.001673732.19654018
Safe Transfer Fr...159224622022-11-08 2:55:35628 days ago1667876135IN
0xDa660f57...862EB715E
0 ETH0.0014675328.23053461
Safe Transfer Fr...159224562022-11-08 2:54:23628 days ago1667876063IN
0xDa660f57...862EB715E
0 ETH0.0011238121.61849794
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:
BabyMoody

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-02-27
*/

/**
 *Submitted for verification at Etherscan.io on 2021-12-08
 */

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

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() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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"
        );
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/utils/Address.sol

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return
            functionCallWithValue(
                target,
                data,
                value,
                "Address: low-level call with value failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(
            address(this).balance >= value,
            "Address: insufficient balance for call"
        );
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(
            data
        );
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol

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

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol

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

// File: @openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol

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

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

// File: @openzeppelin/contracts/token/ERC1155/IERC1155.sol

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol

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

// File: @openzeppelin/contracts/token/ERC1155/ERC1155.sol

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

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

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

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

    /**
     * @dev See {_setURI}.
     */
    constructor() {}

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

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

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

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

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

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

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(
            _msgSender() != operator,
            "ERC1155: setting approval status for self"
        );

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

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

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

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

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

        address operator = _msgSender();

        _beforeTokenTransfer(
            operator,
            from,
            to,
            _asSingletonArray(id),
            _asSingletonArray(amount),
            data
        );

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

        _beforeTokenTransfer(
            operator,
            address(0),
            account,
            _asSingletonArray(id),
            _asSingletonArray(amount),
            data
        );

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

        _beforeTokenTransfer(
            operator,
            account,
            address(0),
            _asSingletonArray(id),
            _asSingletonArray(amount),
            ""
        );

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

        emit TransferSingle(operator, account, address(0), id, amount);
    }

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

        address operator = _msgSender();

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

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

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

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

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

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

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

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

        return array;
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length)
        internal
        pure
        returns (string memory)
    {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

abstract contract MoodyApeInterface {
    function balanceOf(address owner, uint256 tokenId)
        external
        view
        virtual
        returns (uint256);
}

contract BabyMoody is ERC1155, Ownable {
    string public constant name = "Baby Moody";
    string public constant symbol = "BMAC";

    using SafeMath for uint256;
    using Strings for uint256;
    uint256 public totalSupply = 0;
    uint256 public NFTPrice = 200000000000000000; // 0.2 ETH;
    uint256 public constant BUY_LIMIT_PER_TX = 5;
    uint256 public constant WHITELIST_MAX_MINT = 2;
    uint256 public MAX_NFT = 1810;
    bytes32 public root;
    bool public isReveal;
    bool public isActive;
    bool public isFreeMintActive;
    bool public isPublicSaleActive;
    bool public isPresaleActive;
    string private baseURI;
    mapping(uint256 => bool) public tokenIdUsedForGiveaway;
    mapping(address => uint256) public whiteListClaimed;

    address moodyApeContractAddress;

    /*
    Function to activate the contract
    */
    function toggleActive() external onlyOwner {
        isActive = !isActive;
    }

    /*
    Function to activate the free mint
    */
    function setFreeMint() external onlyOwner {
        isFreeMintActive = !isFreeMintActive;
    }

    /*
    Function to activate public sale
    */
    function setPublicSaleActive() external onlyOwner {
        isPublicSaleActive = !isPublicSaleActive;
    }

    /*
     * Function toggleReveal to change NFT metadata
    */
    function toggleReveal() external onlyOwner {
        isReveal = !isReveal;
    }

    /*
    Function to activate the presale mint
    */
    function togglePresale() external onlyOwner {
        isPresaleActive = !isPresaleActive;
    }

    /*
     * Function to set ERC1155 contract
     */
    function setMoodyApeContract(address _contractAddress) external onlyOwner {
        moodyApeContractAddress = _contractAddress;
    }

    /*
    Function to change the nft price
    */
    function setNFTPrice(uint256 _NFTPrice) external onlyOwner {
        NFTPrice = _NFTPrice;
    }

    /*
    Function to change the nft supply
    */
    function setSupply(uint256 _MAX_NFT) external onlyOwner {
        MAX_NFT = _MAX_NFT;
    }

    /*
     * Function to get Base URI for a given tokenID
     */
    function uri(uint256 _tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_tokenId < totalSupply, "ERC1155Metadata: URI query for nonexistent token"
        );

        if (!isReveal) {
            return string(abi.encodePacked(baseURI));
        } else {
            return string(abi.encodePacked(baseURI, _tokenId.toString()));
        }
    }

    /*
     * Function to set Base URI
     */
    function setURI(string memory _URI) external onlyOwner {
        baseURI = _URI;
    }

    /*
     * Function to withdraw collected amount during minting by the owner
     */
    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "Balance should be more than zero");
        payable(address(owner())).transfer(balance);
    }

    /*
     * Function to mint NFTs
     */
    function mint(address to, uint256 count) internal {
        if (count > 1) {
            uint256[] memory ids = new uint256[](uint256(count));
            uint256[] memory amounts = new uint256[](uint256(count));

            for (uint32 i = 0; i < count; i++) {
                ids[i] = totalSupply + i;
                amounts[i] = 1;
            }

            _mintBatch(to, ids, amounts, "");
        } else {
            _mint(to, totalSupply, 1, "");
        }

        totalSupply += count;
    }

    /*
     * Function to mint new NFTs during the public sale
     * It is payable. Amount is calculated as per (NFTPrice.mul(_numOfTokens))
     */
    function mintPublicSale(uint256 _numOfTokens) public payable {
        require(isActive, "Contract is not active");
        require(isPublicSaleActive, "Public sale is not open yet");
        require(_numOfTokens <= BUY_LIMIT_PER_TX, "Cannot mint above limit");
        require(totalSupply.add(_numOfTokens) <= MAX_NFT,"Purchase would exceed max public supply of NFTs");
        require(NFTPrice.mul(_numOfTokens) >= msg.value,"Ether value sent is not correct");

        mint(msg.sender, _numOfTokens);
    }

    /*
     * Function to mint new NFTs during the presale
     * It is payable. Amount is calculated as per (NFTPrice.mul(_numOfTokens))
     */
    function presaleMint(uint256 _numOfTokens, bytes32[] memory _proof) public payable {
        require(isActive, "Contract is not active");
        require(isPresaleActive, "Presale is not open yet");
        require(verify(_proof, bytes32(uint256(uint160(msg.sender)))), "Not whitelisted");
        require(totalSupply.add(_numOfTokens) <= MAX_NFT,"Purchase would exceed max public supply of NFTs");
        require(whiteListClaimed[msg.sender].add(_numOfTokens) <= WHITELIST_MAX_MINT, 'Purchase exceeds max whiteed');
        require(NFTPrice.mul(_numOfTokens) >= msg.value,"Ether value sent is not correct");

        mint(msg.sender, _numOfTokens);
        whiteListClaimed[msg.sender] = whiteListClaimed[msg.sender].add(_numOfTokens);
    }

    /*
     * Function to mint new NFTs for Free
     */
    function freeMint(uint256 _moodyApeTokenId, bytes32[] memory _proof) public payable{
        require(isActive, "Contract is not active");
        require(isFreeMintActive, "Free mint is not open yet");
        require(verify(_proof, sha256(abi.encodePacked(Strings.toString(_moodyApeTokenId)))), "Not whitelisted");
        require(!tokenIdUsedForGiveaway[_moodyApeTokenId], "Already claimed giveaway");

        MoodyApeInterface moodyContract = MoodyApeInterface(moodyApeContractAddress);

        require(moodyContract.balanceOf(msg.sender, _moodyApeTokenId) > 0, "You are not the owner of this NFT");
        require(totalSupply.add(1) <= MAX_NFT, "Purchase would exceed max public supply of NFTs");

        tokenIdUsedForGiveaway[_moodyApeTokenId] = true;

        mint(msg.sender, 1);
    }

    /*
     * Function to mint all NFTs for giveaway
     */
    function mintByOwner(address _to) public onlyOwner {
        mint(_to, 1);
    }

    /*
     * Function to mint all NFTs for giveaway
     */
    function mintMultipleByOwner(address[] memory _to) public onlyOwner {
        for (uint256 i = 0; i < _to.length; i++) {
            mint(_to[i], 1);
        }
    }

    // Set Root for whitelist
    function setRoot(uint256 _root) public onlyOwner {
        root = bytes32(_root);
    }

    // Verify MerkleProof
    function verify(bytes32[] memory proof, bytes32 leaf)
        public
        view
        returns (bool)
    {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = sha256(
                    abi.encodePacked(computedHash, proofElement)
                );
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = sha256(
                    abi.encodePacked(proofElement, computedHash)
                );
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"BUY_LIMIT_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFTPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_MAX_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_moodyApeTokenId","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"freeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFreeMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isReveal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mintByOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"}],"name":"mintMultipleByOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numOfTokens","type":"uint256"}],"name":"mintPublicSale","outputs":[],"stateMutability":"payable","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":"_numOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":[],"name":"setFreeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"setMoodyApeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_NFTPrice","type":"uint256"}],"name":"setNFTPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_root","type":"uint256"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_NFT","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"setURI","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":[],"name":"toggleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdUsedForGiveaway","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteListClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006004556702c68af0bb14000060055561071260065534801561002757600080fd5b5061003133610036565b610088565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612f7b80620000986000396000f3fe60806040526004361061025b5760003560e01c806360d938dc11610144578063b533731d116100b6578063e985e9c51161007a578063e985e9c5146106e4578063ebf0c7171461072d578063f242432a14610743578063f2f5a7e514610763578063f2fde38b14610783578063fae4c7f9146107a357600080fd5b8063b533731d14610674578063e1f3763b14610694578063e2f36dce146106a9578063e3e1e8ef146106bc578063e748e07c146106cf57600080fd5b80638da5cb5b116101085780638da5cb5b146105b157806395d89b41146105d9578063972a2a6214610609578063a22cb46514610629578063a38bffda14610649578063aeb167681461065f57600080fd5b806360d938dc146105245780636fdaddf114610546578063715018a61461055c5780637a5b85c11461057157806381530b681461059157600080fd5b806329c68dc1116101dd5780633e11ab3f116101a15780633e11ab3f1461047a5780634cdb44001461048f5780634e1273f4146104af5780635217a3dc146104dc5780635a5e5d58146104fc5780635b8ad4291461050f57600080fd5b806329c68dc1146103fb5780632eb2c2d61461041057806334393743146104305780633b4c4b25146104455780633ccfd60b1461046557600080fd5b80630e89341c116102245780630e89341c1461035857806318160ddd146103785780631e84c4131461038e57806322f3e2d4146103af5780632333f3c4146103ce57600080fd5b8062fdd58e1461026057806301ffc9a71461029357806302fe5305146102c357806305720296146102e557806306fdde0314610315575b600080fd5b34801561026c57600080fd5b5061028061027b366004612675565b6107bd565b6040519081526020015b60405180910390f35b34801561029f57600080fd5b506102b36102ae366004612793565b610854565b604051901515815260200161028a565b3480156102cf57600080fd5b506102e36102de3660046127cd565b6108a6565b005b3480156102f157600080fd5b506102b3610300366004612815565b600a6020526000908152604090205460ff1681565b34801561032157600080fd5b5061034b6040518060400160405280600a81526020016942616279204d6f6f647960b01b81525081565b60405161028a9190612a9c565b34801561036457600080fd5b5061034b610373366004612815565b6108e7565b34801561038457600080fd5b5061028060045481565b34801561039a57600080fd5b506008546102b3906301000000900460ff1681565b3480156103bb57600080fd5b506008546102b390610100900460ff1681565b3480156103da57600080fd5b506102806103e93660046124de565b600b6020526000908152604090205481565b34801561040757600080fd5b506102e36109a6565b34801561041c57600080fd5b506102e361042b36600461252c565b6109ed565b34801561043c57600080fd5b506102e3610a84565b34801561045157600080fd5b506102e3610460366004612815565b610ad1565b34801561047157600080fd5b506102e3610b00565b34801561048657600080fd5b506102e3610bb2565b34801561049b57600080fd5b506102e36104aa36600461269f565b610bfd565b3480156104bb57600080fd5b506104cf6104ca3660046126d3565b610c69565b60405161028a9190612a5b565b3480156104e857600080fd5b506102e36104f73660046124de565b610d92565b6102e361050a366004612815565b610dde565b34801561051b57600080fd5b506102e3610f47565b34801561053057600080fd5b506008546102b390640100000000900460ff1681565b34801561055257600080fd5b5061028060065481565b34801561056857600080fd5b506102e3610f85565b34801561057d57600080fd5b506008546102b39062010000900460ff1681565b34801561059d57600080fd5b506102e36105ac366004612815565b610fbb565b3480156105bd57600080fd5b506003546040516001600160a01b03909116815260200161028a565b3480156105e557600080fd5b5061034b60405180604001604052806004815260200163424d414360e01b81525081565b34801561061557600080fd5b506102b3610624366004612736565b610fea565b34801561063557600080fd5b506102e3610644366004612639565b611128565b34801561065557600080fd5b5061028060055481565b34801561066b57600080fd5b50610280600281565b34801561068057600080fd5b506102e361068f3660046124de565b6111ff565b3480156106a057600080fd5b506102e3611234565b6102e36106b736600461282e565b61127d565b6102e36106ca36600461282e565b611549565b3480156106db57600080fd5b50610280600581565b3480156106f057600080fd5b506102b36106ff3660046124f9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561073957600080fd5b5061028060075481565b34801561074f57600080fd5b506102e361075e3660046125d5565b611740565b34801561076f57600080fd5b506102e361077e366004612815565b6117c7565b34801561078f57600080fd5b506102e361079e3660046124de565b6117f6565b3480156107af57600080fd5b506008546102b39060ff1681565b60006001600160a01b03831661082e5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061088557506001600160e01b031982166303a24d0760e21b145b806108a057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6003546001600160a01b031633146108d05760405162461bcd60e51b815260040161082590612bb6565b80516108e39060099060208401906122c9565b5050565b606060045482106109535760405162461bcd60e51b815260206004820152603060248201527f455243313135354d657461646174613a2055524920717565727920666f72206e60448201526f37b732bc34b9ba32b73a103a37b5b2b760811b6064820152608401610825565b60085460ff1661098557600960405160200161096f9190612987565b6040516020818303038152906040529050919050565b60096109908361188e565b60405160200161096f929190612993565b919050565b6003546001600160a01b031633146109d05760405162461bcd60e51b815260040161082590612bb6565b6008805461ff001981166101009182900460ff1615909102179055565b6001600160a01b038516331480610a095750610a0985336106ff565b610a705760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610825565b610a7d8585858585611993565b5050505050565b6003546001600160a01b03163314610aae5760405162461bcd60e51b815260040161082590612bb6565b6008805464ff000000001981166401000000009182900460ff1615909102179055565b6003546001600160a01b03163314610afb5760405162461bcd60e51b815260040161082590612bb6565b600655565b6003546001600160a01b03163314610b2a5760405162461bcd60e51b815260040161082590612bb6565b4780610b785760405162461bcd60e51b815260206004820181905260248201527f42616c616e63652073686f756c64206265206d6f7265207468616e207a65726f6044820152606401610825565b6003546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156108e3573d6000803e3d6000fd5b6003546001600160a01b03163314610bdc5760405162461bcd60e51b815260040161082590612bb6565b6008805463ff00000019811663010000009182900460ff1615909102179055565b6003546001600160a01b03163314610c275760405162461bcd60e51b815260040161082590612bb6565b60005b81518110156108e357610c57828281518110610c4857610c48612e5e565b60200260200101516001611b2f565b80610c6181612ddf565b915050610c2a565b60608151835114610cce5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610825565b600083516001600160401b03811115610ce957610ce9612e74565b604051908082528060200260200182016040528015610d12578160200160208202803683370190505b50905060005b8451811015610d8a57610d5d858281518110610d3657610d36612e5e565b6020026020010151858381518110610d5057610d50612e5e565b60200260200101516107bd565b828281518110610d6f57610d6f612e5e565b6020908102919091010152610d8381612ddf565b9050610d18565b509392505050565b6003546001600160a01b03163314610dbc5760405162461bcd60e51b815260040161082590612bb6565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600854610100900460ff16610e055760405162461bcd60e51b815260040161082590612b86565b6008546301000000900460ff16610e5e5760405162461bcd60e51b815260206004820152601b60248201527f5075626c69632073616c65206973206e6f74206f70656e2079657400000000006044820152606401610825565b6005811115610eaf5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74206d696e742061626f7665206c696d69740000000000000000006044820152606401610825565b600654600454610ebf9083611ca0565b1115610edd5760405162461bcd60e51b815260040161082590612beb565b6005543490610eec9083611cb3565b1015610f3a5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610825565b610f443382611b2f565b50565b6003546001600160a01b03163314610f715760405162461bcd60e51b815260040161082590612bb6565b6008805460ff19811660ff90911615179055565b6003546001600160a01b03163314610faf5760405162461bcd60e51b815260040161082590612bb6565b610fb96000611cbf565b565b6003546001600160a01b03163314610fe55760405162461bcd60e51b815260040161082590612bb6565b600555565b600081815b845181101561111c57600085828151811061100c5761100c612e5e565b6020026020010151905080831161109557604080516020810185905290810182905260029060600160408051601f198184030181529082905261104e9161296b565b602060405180830381855afa15801561106b573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061108e919061277a565b9250611109565b604080516020810183905290810184905260029060600160408051601f19818403018152908290526110c69161296b565b602060405180830381855afa1580156110e3573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611106919061277a565b92505b508061111481612ddf565b915050610fef565b50600754149392505050565b336001600160a01b03831614156111935760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610825565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6003546001600160a01b031633146112295760405162461bcd60e51b815260040161082590612bb6565b610f44816001611b2f565b6003546001600160a01b0316331461125e5760405162461bcd60e51b815260040161082590612bb6565b6008805462ff0000198116620100009182900460ff1615909102179055565b600854610100900460ff166112a45760405162461bcd60e51b815260040161082590612b86565b60085462010000900460ff166112fc5760405162461bcd60e51b815260206004820152601960248201527f46726565206d696e74206973206e6f74206f70656e20796574000000000000006044820152606401610825565b61137581600261130b8561188e565b60405160200161131b919061296b565b60408051601f19818403018152908290526113359161296b565b602060405180830381855afa158015611352573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610624919061277a565b6113b35760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610825565b6000828152600a602052604090205460ff16156114125760405162461bcd60e51b815260206004820152601860248201527f416c726561647920636c61696d656420676976656177617900000000000000006044820152606401610825565b600c54604051627eeac760e11b8152336004820152602481018490526001600160a01b0390911690600090829062fdd58e9060440160206040518083038186803b15801561145f57600080fd5b505afa158015611473573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611497919061277a565b116114ee5760405162461bcd60e51b815260206004820152602160248201527f596f7520617265206e6f7420746865206f776e6572206f662074686973204e466044820152601560fa1b6064820152608401610825565b6006546004546114ff906001611ca0565b111561151d5760405162461bcd60e51b815260040161082590612beb565b6000838152600a60205260409020805460ff19166001908117909155611544903390611b2f565b505050565b600854610100900460ff166115705760405162461bcd60e51b815260040161082590612b86565b600854640100000000900460ff166115ca5760405162461bcd60e51b815260206004820152601760248201527f50726573616c65206973206e6f74206f70656e207965740000000000000000006044820152606401610825565b6115d48133610fea565b6116125760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610825565b6006546004546116229084611ca0565b11156116405760405162461bcd60e51b815260040161082590612beb565b336000908152600b602052604090205460029061165d9084611ca0565b11156116ab5760405162461bcd60e51b815260206004820152601c60248201527f50757263686173652065786365656473206d61782077686974656564000000006044820152606401610825565b60055434906116ba9084611cb3565b10156117085760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610825565b6117123383611b2f565b336000908152600b602052604090205461172c9083611ca0565b336000908152600b60205260409020555050565b6001600160a01b03851633148061175c575061175c85336106ff565b6117ba5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610825565b610a7d8585858585611d11565b6003546001600160a01b031633146117f15760405162461bcd60e51b815260040161082590612bb6565b600755565b6003546001600160a01b031633146118205760405162461bcd60e51b815260040161082590612bb6565b6001600160a01b0381166118855760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610825565b610f4481611cbf565b6060816118b25750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118dc57806118c681612ddf565b91506118d59050600a83612cfe565b91506118b6565b6000816001600160401b038111156118f6576118f6612e74565b6040519080825280601f01601f191660200182016040528015611920576020820181803683370190505b5090505b841561198b57611935600183612d31565b9150611942600a86612e1e565b61194d906030612ce6565b60f81b81838151811061196257611962612e5e565b60200101906001600160f81b031916908160001a905350611984600a86612cfe565b9450611924565b949350505050565b81518351146119b45760405162461bcd60e51b815260040161082590612c3a565b6001600160a01b0384166119da5760405162461bcd60e51b815260040161082590612af7565b3360005b8451811015611ac15760008582815181106119fb576119fb612e5e565b602002602001015190506000858381518110611a1957611a19612e5e565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a695760405162461bcd60e51b815260040161082590612b3c565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611aa6908490612ce6565b9250508190555050505080611aba90612ddf565b90506119de565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b11929190612a6e565b60405180910390a4611b27818787878787611e37565b505050505050565b6001811115611c67576000816001600160401b03811115611b5257611b52612e74565b604051908082528060200260200182016040528015611b7b578160200160208202803683370190505b5090506000826001600160401b03811115611b9857611b98612e74565b604051908082528060200260200182016040528015611bc1578160200160208202803683370190505b50905060005b838163ffffffff161015611c44578063ffffffff16600454611be99190612ce6565b838263ffffffff1681518110611c0157611c01612e5e565b6020026020010181815250506001828263ffffffff1681518110611c2757611c27612e5e565b602090810291909101015280611c3c81612dfa565b915050611bc7565b50611c6084838360405180602001604052806000815250611fa2565b5050611c85565b611c85826004546001604051806020016040528060008152506120ed565b8060046000828254611c979190612ce6565b90915550505050565b6000611cac8284612ce6565b9392505050565b6000611cac8284612d12565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416611d375760405162461bcd60e51b815260040161082590612af7565b33611d50818787611d47886121b4565b610a7d886121b4565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611d915760405162461bcd60e51b815260040161082590612b3c565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611dce908490612ce6565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611e2e8288888888886121ff565b50505050505050565b6001600160a01b0384163b15611b275760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611e7b90899089908890889088906004016129b8565b602060405180830381600087803b158015611e9557600080fd5b505af1925050508015611ec5575060408051601f3d908101601f19168201909252611ec2918101906127b0565b60015b611f7257611ed1612e8a565b806308c379a01415611f0b5750611ee6612ea6565b80611ef15750611f0d565b8060405162461bcd60e51b81526004016108259190612a9c565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610825565b6001600160e01b0319811663bc197c8160e01b14611e2e5760405162461bcd60e51b815260040161082590612aaf565b6001600160a01b038416611fc85760405162461bcd60e51b815260040161082590612c82565b8151835114611fe95760405162461bcd60e51b815260040161082590612c3a565b3360005b84518110156120855783818151811061200857612008612e5e565b602002602001015160008087848151811061202557612025612e5e565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461206d9190612ce6565b9091555081905061207d81612ddf565b915050611fed565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516120d6929190612a6e565b60405180910390a4610a7d81600087878787611e37565b6001600160a01b0384166121135760405162461bcd60e51b815260040161082590612c82565b3361212481600087611d47886121b4565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612154908490612ce6565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a7d816000878787876121ff565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106121ee576121ee612e5e565b602090810291909101015292915050565b6001600160a01b0384163b15611b275760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906122439089908990889088908890600401612a16565b602060405180830381600087803b15801561225d57600080fd5b505af192505050801561228d575060408051601f3d908101601f1916820190925261228a918101906127b0565b60015b61229957611ed1612e8a565b6001600160e01b0319811663f23a6e6160e01b14611e2e5760405162461bcd60e51b815260040161082590612aaf565b8280546122d590612d78565b90600052602060002090601f0160209004810192826122f7576000855561233d565b82601f1061231057805160ff191683800117855561233d565b8280016001018555821561233d579182015b8281111561233d578251825591602001919060010190612322565b5061234992915061234d565b5090565b5b80821115612349576000815560010161234e565b60006001600160401b0383111561237b5761237b612e74565b604051612392601f8501601f191660200182612db3565b8091508381528484840111156123a757600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b03811681146109a157600080fd5b600082601f8301126123e757600080fd5b813560206123f482612cc3565b6040516124018282612db3565b8381528281019150858301600585901b8701840188101561242157600080fd5b60005b8581101561244757612435826123bf565b84529284019290840190600101612424565b5090979650505050505050565b600082601f83011261246557600080fd5b8135602061247282612cc3565b60405161247f8282612db3565b8381528281019150858301600585901b8701840188101561249f57600080fd5b60005b85811015612447578135845292840192908401906001016124a2565b600082601f8301126124cf57600080fd5b611cac83833560208501612362565b6000602082840312156124f057600080fd5b611cac826123bf565b6000806040838503121561250c57600080fd5b612515836123bf565b9150612523602084016123bf565b90509250929050565b600080600080600060a0868803121561254457600080fd5b61254d866123bf565b945061255b602087016123bf565b935060408601356001600160401b038082111561257757600080fd5b61258389838a01612454565b9450606088013591508082111561259957600080fd5b6125a589838a01612454565b935060808801359150808211156125bb57600080fd5b506125c8888289016124be565b9150509295509295909350565b600080600080600060a086880312156125ed57600080fd5b6125f6866123bf565b9450612604602087016123bf565b9350604086013592506060860135915060808601356001600160401b0381111561262d57600080fd5b6125c8888289016124be565b6000806040838503121561264c57600080fd5b612655836123bf565b91506020830135801515811461266a57600080fd5b809150509250929050565b6000806040838503121561268857600080fd5b612691836123bf565b946020939093013593505050565b6000602082840312156126b157600080fd5b81356001600160401b038111156126c757600080fd5b61198b848285016123d6565b600080604083850312156126e657600080fd5b82356001600160401b03808211156126fd57600080fd5b612709868387016123d6565b9350602085013591508082111561271f57600080fd5b5061272c85828601612454565b9150509250929050565b6000806040838503121561274957600080fd5b82356001600160401b0381111561275f57600080fd5b61276b85828601612454565b95602094909401359450505050565b60006020828403121561278c57600080fd5b5051919050565b6000602082840312156127a557600080fd5b8135611cac81612f2f565b6000602082840312156127c257600080fd5b8151611cac81612f2f565b6000602082840312156127df57600080fd5b81356001600160401b038111156127f557600080fd5b8201601f8101841361280657600080fd5b61198b84823560208401612362565b60006020828403121561282757600080fd5b5035919050565b6000806040838503121561284157600080fd5b8235915060208301356001600160401b0381111561285e57600080fd5b61272c85828601612454565b600081518084526020808501945080840160005b8381101561289a5781518752958201959082019060010161287e565b509495945050505050565b600081518084526128bd816020860160208601612d48565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806128eb57607f831692505b602080841082141561290d57634e487b7160e01b600052602260045260246000fd5b81801561292157600181146129325761295f565b60ff1986168952848901965061295f565b60008881526020902060005b868110156129575781548b82015290850190830161293e565b505084890196505b50505050505092915050565b6000825161297d818460208701612d48565b9190910192915050565b6000611cac82846128d1565b600061299f82856128d1565b83516129af818360208801612d48565b01949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906129e49083018661286a565b82810360608401526129f6818661286a565b90508281036080840152612a0a81856128a5565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612a50908301846128a5565b979650505050505050565b602081526000611cac602083018461286a565b604081526000612a81604083018561286a565b8281036020840152612a93818561286a565b95945050505050565b602081526000611cac60208301846128a5565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b602080825260169082015275436f6e7472616374206973206e6f742061637469766560501b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f507572636861736520776f756c6420657863656564206d6178207075626c696360408201526e20737570706c79206f66204e46547360881b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b03821115612cdc57612cdc612e74565b5060051b60200190565b60008219821115612cf957612cf9612e32565b500190565b600082612d0d57612d0d612e48565b500490565b6000816000190483118215151615612d2c57612d2c612e32565b500290565b600082821015612d4357612d43612e32565b500390565b60005b83811015612d63578181015183820152602001612d4b565b83811115612d72576000848401525b50505050565b600181811c90821680612d8c57607f821691505b60208210811415612dad57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715612dd857612dd8612e74565b6040525050565b6000600019821415612df357612df3612e32565b5060010190565b600063ffffffff80831681811415612e1457612e14612e32565b6001019392505050565b600082612e2d57612e2d612e48565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115612ea35760046000803e5060005160e01c5b90565b600060443d1015612eb45790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612ee357505050505090565b8285019150815181811115612efb5750505050505090565b843d8701016020828501011115612f155750505050505090565b612f2460208286010187612db3565b509095945050505050565b6001600160e01b031981168114610f4457600080fdfea264697066735822122082b7b0b9640b1735f7ce9df2f964eac77bf8798c14df44fc926d970dad9108ed64736f6c63430008070033

Deployed Bytecode

0x60806040526004361061025b5760003560e01c806360d938dc11610144578063b533731d116100b6578063e985e9c51161007a578063e985e9c5146106e4578063ebf0c7171461072d578063f242432a14610743578063f2f5a7e514610763578063f2fde38b14610783578063fae4c7f9146107a357600080fd5b8063b533731d14610674578063e1f3763b14610694578063e2f36dce146106a9578063e3e1e8ef146106bc578063e748e07c146106cf57600080fd5b80638da5cb5b116101085780638da5cb5b146105b157806395d89b41146105d9578063972a2a6214610609578063a22cb46514610629578063a38bffda14610649578063aeb167681461065f57600080fd5b806360d938dc146105245780636fdaddf114610546578063715018a61461055c5780637a5b85c11461057157806381530b681461059157600080fd5b806329c68dc1116101dd5780633e11ab3f116101a15780633e11ab3f1461047a5780634cdb44001461048f5780634e1273f4146104af5780635217a3dc146104dc5780635a5e5d58146104fc5780635b8ad4291461050f57600080fd5b806329c68dc1146103fb5780632eb2c2d61461041057806334393743146104305780633b4c4b25146104455780633ccfd60b1461046557600080fd5b80630e89341c116102245780630e89341c1461035857806318160ddd146103785780631e84c4131461038e57806322f3e2d4146103af5780632333f3c4146103ce57600080fd5b8062fdd58e1461026057806301ffc9a71461029357806302fe5305146102c357806305720296146102e557806306fdde0314610315575b600080fd5b34801561026c57600080fd5b5061028061027b366004612675565b6107bd565b6040519081526020015b60405180910390f35b34801561029f57600080fd5b506102b36102ae366004612793565b610854565b604051901515815260200161028a565b3480156102cf57600080fd5b506102e36102de3660046127cd565b6108a6565b005b3480156102f157600080fd5b506102b3610300366004612815565b600a6020526000908152604090205460ff1681565b34801561032157600080fd5b5061034b6040518060400160405280600a81526020016942616279204d6f6f647960b01b81525081565b60405161028a9190612a9c565b34801561036457600080fd5b5061034b610373366004612815565b6108e7565b34801561038457600080fd5b5061028060045481565b34801561039a57600080fd5b506008546102b3906301000000900460ff1681565b3480156103bb57600080fd5b506008546102b390610100900460ff1681565b3480156103da57600080fd5b506102806103e93660046124de565b600b6020526000908152604090205481565b34801561040757600080fd5b506102e36109a6565b34801561041c57600080fd5b506102e361042b36600461252c565b6109ed565b34801561043c57600080fd5b506102e3610a84565b34801561045157600080fd5b506102e3610460366004612815565b610ad1565b34801561047157600080fd5b506102e3610b00565b34801561048657600080fd5b506102e3610bb2565b34801561049b57600080fd5b506102e36104aa36600461269f565b610bfd565b3480156104bb57600080fd5b506104cf6104ca3660046126d3565b610c69565b60405161028a9190612a5b565b3480156104e857600080fd5b506102e36104f73660046124de565b610d92565b6102e361050a366004612815565b610dde565b34801561051b57600080fd5b506102e3610f47565b34801561053057600080fd5b506008546102b390640100000000900460ff1681565b34801561055257600080fd5b5061028060065481565b34801561056857600080fd5b506102e3610f85565b34801561057d57600080fd5b506008546102b39062010000900460ff1681565b34801561059d57600080fd5b506102e36105ac366004612815565b610fbb565b3480156105bd57600080fd5b506003546040516001600160a01b03909116815260200161028a565b3480156105e557600080fd5b5061034b60405180604001604052806004815260200163424d414360e01b81525081565b34801561061557600080fd5b506102b3610624366004612736565b610fea565b34801561063557600080fd5b506102e3610644366004612639565b611128565b34801561065557600080fd5b5061028060055481565b34801561066b57600080fd5b50610280600281565b34801561068057600080fd5b506102e361068f3660046124de565b6111ff565b3480156106a057600080fd5b506102e3611234565b6102e36106b736600461282e565b61127d565b6102e36106ca36600461282e565b611549565b3480156106db57600080fd5b50610280600581565b3480156106f057600080fd5b506102b36106ff3660046124f9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561073957600080fd5b5061028060075481565b34801561074f57600080fd5b506102e361075e3660046125d5565b611740565b34801561076f57600080fd5b506102e361077e366004612815565b6117c7565b34801561078f57600080fd5b506102e361079e3660046124de565b6117f6565b3480156107af57600080fd5b506008546102b39060ff1681565b60006001600160a01b03831661082e5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061088557506001600160e01b031982166303a24d0760e21b145b806108a057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6003546001600160a01b031633146108d05760405162461bcd60e51b815260040161082590612bb6565b80516108e39060099060208401906122c9565b5050565b606060045482106109535760405162461bcd60e51b815260206004820152603060248201527f455243313135354d657461646174613a2055524920717565727920666f72206e60448201526f37b732bc34b9ba32b73a103a37b5b2b760811b6064820152608401610825565b60085460ff1661098557600960405160200161096f9190612987565b6040516020818303038152906040529050919050565b60096109908361188e565b60405160200161096f929190612993565b919050565b6003546001600160a01b031633146109d05760405162461bcd60e51b815260040161082590612bb6565b6008805461ff001981166101009182900460ff1615909102179055565b6001600160a01b038516331480610a095750610a0985336106ff565b610a705760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610825565b610a7d8585858585611993565b5050505050565b6003546001600160a01b03163314610aae5760405162461bcd60e51b815260040161082590612bb6565b6008805464ff000000001981166401000000009182900460ff1615909102179055565b6003546001600160a01b03163314610afb5760405162461bcd60e51b815260040161082590612bb6565b600655565b6003546001600160a01b03163314610b2a5760405162461bcd60e51b815260040161082590612bb6565b4780610b785760405162461bcd60e51b815260206004820181905260248201527f42616c616e63652073686f756c64206265206d6f7265207468616e207a65726f6044820152606401610825565b6003546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156108e3573d6000803e3d6000fd5b6003546001600160a01b03163314610bdc5760405162461bcd60e51b815260040161082590612bb6565b6008805463ff00000019811663010000009182900460ff1615909102179055565b6003546001600160a01b03163314610c275760405162461bcd60e51b815260040161082590612bb6565b60005b81518110156108e357610c57828281518110610c4857610c48612e5e565b60200260200101516001611b2f565b80610c6181612ddf565b915050610c2a565b60608151835114610cce5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610825565b600083516001600160401b03811115610ce957610ce9612e74565b604051908082528060200260200182016040528015610d12578160200160208202803683370190505b50905060005b8451811015610d8a57610d5d858281518110610d3657610d36612e5e565b6020026020010151858381518110610d5057610d50612e5e565b60200260200101516107bd565b828281518110610d6f57610d6f612e5e565b6020908102919091010152610d8381612ddf565b9050610d18565b509392505050565b6003546001600160a01b03163314610dbc5760405162461bcd60e51b815260040161082590612bb6565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600854610100900460ff16610e055760405162461bcd60e51b815260040161082590612b86565b6008546301000000900460ff16610e5e5760405162461bcd60e51b815260206004820152601b60248201527f5075626c69632073616c65206973206e6f74206f70656e2079657400000000006044820152606401610825565b6005811115610eaf5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74206d696e742061626f7665206c696d69740000000000000000006044820152606401610825565b600654600454610ebf9083611ca0565b1115610edd5760405162461bcd60e51b815260040161082590612beb565b6005543490610eec9083611cb3565b1015610f3a5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610825565b610f443382611b2f565b50565b6003546001600160a01b03163314610f715760405162461bcd60e51b815260040161082590612bb6565b6008805460ff19811660ff90911615179055565b6003546001600160a01b03163314610faf5760405162461bcd60e51b815260040161082590612bb6565b610fb96000611cbf565b565b6003546001600160a01b03163314610fe55760405162461bcd60e51b815260040161082590612bb6565b600555565b600081815b845181101561111c57600085828151811061100c5761100c612e5e565b6020026020010151905080831161109557604080516020810185905290810182905260029060600160408051601f198184030181529082905261104e9161296b565b602060405180830381855afa15801561106b573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061108e919061277a565b9250611109565b604080516020810183905290810184905260029060600160408051601f19818403018152908290526110c69161296b565b602060405180830381855afa1580156110e3573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190611106919061277a565b92505b508061111481612ddf565b915050610fef565b50600754149392505050565b336001600160a01b03831614156111935760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610825565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6003546001600160a01b031633146112295760405162461bcd60e51b815260040161082590612bb6565b610f44816001611b2f565b6003546001600160a01b0316331461125e5760405162461bcd60e51b815260040161082590612bb6565b6008805462ff0000198116620100009182900460ff1615909102179055565b600854610100900460ff166112a45760405162461bcd60e51b815260040161082590612b86565b60085462010000900460ff166112fc5760405162461bcd60e51b815260206004820152601960248201527f46726565206d696e74206973206e6f74206f70656e20796574000000000000006044820152606401610825565b61137581600261130b8561188e565b60405160200161131b919061296b565b60408051601f19818403018152908290526113359161296b565b602060405180830381855afa158015611352573d6000803e3d6000fd5b5050506040513d601f19601f82011682018060405250810190610624919061277a565b6113b35760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610825565b6000828152600a602052604090205460ff16156114125760405162461bcd60e51b815260206004820152601860248201527f416c726561647920636c61696d656420676976656177617900000000000000006044820152606401610825565b600c54604051627eeac760e11b8152336004820152602481018490526001600160a01b0390911690600090829062fdd58e9060440160206040518083038186803b15801561145f57600080fd5b505afa158015611473573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611497919061277a565b116114ee5760405162461bcd60e51b815260206004820152602160248201527f596f7520617265206e6f7420746865206f776e6572206f662074686973204e466044820152601560fa1b6064820152608401610825565b6006546004546114ff906001611ca0565b111561151d5760405162461bcd60e51b815260040161082590612beb565b6000838152600a60205260409020805460ff19166001908117909155611544903390611b2f565b505050565b600854610100900460ff166115705760405162461bcd60e51b815260040161082590612b86565b600854640100000000900460ff166115ca5760405162461bcd60e51b815260206004820152601760248201527f50726573616c65206973206e6f74206f70656e207965740000000000000000006044820152606401610825565b6115d48133610fea565b6116125760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610825565b6006546004546116229084611ca0565b11156116405760405162461bcd60e51b815260040161082590612beb565b336000908152600b602052604090205460029061165d9084611ca0565b11156116ab5760405162461bcd60e51b815260206004820152601c60248201527f50757263686173652065786365656473206d61782077686974656564000000006044820152606401610825565b60055434906116ba9084611cb3565b10156117085760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610825565b6117123383611b2f565b336000908152600b602052604090205461172c9083611ca0565b336000908152600b60205260409020555050565b6001600160a01b03851633148061175c575061175c85336106ff565b6117ba5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610825565b610a7d8585858585611d11565b6003546001600160a01b031633146117f15760405162461bcd60e51b815260040161082590612bb6565b600755565b6003546001600160a01b031633146118205760405162461bcd60e51b815260040161082590612bb6565b6001600160a01b0381166118855760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610825565b610f4481611cbf565b6060816118b25750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118dc57806118c681612ddf565b91506118d59050600a83612cfe565b91506118b6565b6000816001600160401b038111156118f6576118f6612e74565b6040519080825280601f01601f191660200182016040528015611920576020820181803683370190505b5090505b841561198b57611935600183612d31565b9150611942600a86612e1e565b61194d906030612ce6565b60f81b81838151811061196257611962612e5e565b60200101906001600160f81b031916908160001a905350611984600a86612cfe565b9450611924565b949350505050565b81518351146119b45760405162461bcd60e51b815260040161082590612c3a565b6001600160a01b0384166119da5760405162461bcd60e51b815260040161082590612af7565b3360005b8451811015611ac15760008582815181106119fb576119fb612e5e565b602002602001015190506000858381518110611a1957611a19612e5e565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a695760405162461bcd60e51b815260040161082590612b3c565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611aa6908490612ce6565b9250508190555050505080611aba90612ddf565b90506119de565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b11929190612a6e565b60405180910390a4611b27818787878787611e37565b505050505050565b6001811115611c67576000816001600160401b03811115611b5257611b52612e74565b604051908082528060200260200182016040528015611b7b578160200160208202803683370190505b5090506000826001600160401b03811115611b9857611b98612e74565b604051908082528060200260200182016040528015611bc1578160200160208202803683370190505b50905060005b838163ffffffff161015611c44578063ffffffff16600454611be99190612ce6565b838263ffffffff1681518110611c0157611c01612e5e565b6020026020010181815250506001828263ffffffff1681518110611c2757611c27612e5e565b602090810291909101015280611c3c81612dfa565b915050611bc7565b50611c6084838360405180602001604052806000815250611fa2565b5050611c85565b611c85826004546001604051806020016040528060008152506120ed565b8060046000828254611c979190612ce6565b90915550505050565b6000611cac8284612ce6565b9392505050565b6000611cac8284612d12565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416611d375760405162461bcd60e51b815260040161082590612af7565b33611d50818787611d47886121b4565b610a7d886121b4565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611d915760405162461bcd60e51b815260040161082590612b3c565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611dce908490612ce6565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611e2e8288888888886121ff565b50505050505050565b6001600160a01b0384163b15611b275760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190611e7b90899089908890889088906004016129b8565b602060405180830381600087803b158015611e9557600080fd5b505af1925050508015611ec5575060408051601f3d908101601f19168201909252611ec2918101906127b0565b60015b611f7257611ed1612e8a565b806308c379a01415611f0b5750611ee6612ea6565b80611ef15750611f0d565b8060405162461bcd60e51b81526004016108259190612a9c565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610825565b6001600160e01b0319811663bc197c8160e01b14611e2e5760405162461bcd60e51b815260040161082590612aaf565b6001600160a01b038416611fc85760405162461bcd60e51b815260040161082590612c82565b8151835114611fe95760405162461bcd60e51b815260040161082590612c3a565b3360005b84518110156120855783818151811061200857612008612e5e565b602002602001015160008087848151811061202557612025612e5e565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020600082825461206d9190612ce6565b9091555081905061207d81612ddf565b915050611fed565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516120d6929190612a6e565b60405180910390a4610a7d81600087878787611e37565b6001600160a01b0384166121135760405162461bcd60e51b815260040161082590612c82565b3361212481600087611d47886121b4565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612154908490612ce6565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610a7d816000878787876121ff565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106121ee576121ee612e5e565b602090810291909101015292915050565b6001600160a01b0384163b15611b275760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906122439089908990889088908890600401612a16565b602060405180830381600087803b15801561225d57600080fd5b505af192505050801561228d575060408051601f3d908101601f1916820190925261228a918101906127b0565b60015b61229957611ed1612e8a565b6001600160e01b0319811663f23a6e6160e01b14611e2e5760405162461bcd60e51b815260040161082590612aaf565b8280546122d590612d78565b90600052602060002090601f0160209004810192826122f7576000855561233d565b82601f1061231057805160ff191683800117855561233d565b8280016001018555821561233d579182015b8281111561233d578251825591602001919060010190612322565b5061234992915061234d565b5090565b5b80821115612349576000815560010161234e565b60006001600160401b0383111561237b5761237b612e74565b604051612392601f8501601f191660200182612db3565b8091508381528484840111156123a757600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b03811681146109a157600080fd5b600082601f8301126123e757600080fd5b813560206123f482612cc3565b6040516124018282612db3565b8381528281019150858301600585901b8701840188101561242157600080fd5b60005b8581101561244757612435826123bf565b84529284019290840190600101612424565b5090979650505050505050565b600082601f83011261246557600080fd5b8135602061247282612cc3565b60405161247f8282612db3565b8381528281019150858301600585901b8701840188101561249f57600080fd5b60005b85811015612447578135845292840192908401906001016124a2565b600082601f8301126124cf57600080fd5b611cac83833560208501612362565b6000602082840312156124f057600080fd5b611cac826123bf565b6000806040838503121561250c57600080fd5b612515836123bf565b9150612523602084016123bf565b90509250929050565b600080600080600060a0868803121561254457600080fd5b61254d866123bf565b945061255b602087016123bf565b935060408601356001600160401b038082111561257757600080fd5b61258389838a01612454565b9450606088013591508082111561259957600080fd5b6125a589838a01612454565b935060808801359150808211156125bb57600080fd5b506125c8888289016124be565b9150509295509295909350565b600080600080600060a086880312156125ed57600080fd5b6125f6866123bf565b9450612604602087016123bf565b9350604086013592506060860135915060808601356001600160401b0381111561262d57600080fd5b6125c8888289016124be565b6000806040838503121561264c57600080fd5b612655836123bf565b91506020830135801515811461266a57600080fd5b809150509250929050565b6000806040838503121561268857600080fd5b612691836123bf565b946020939093013593505050565b6000602082840312156126b157600080fd5b81356001600160401b038111156126c757600080fd5b61198b848285016123d6565b600080604083850312156126e657600080fd5b82356001600160401b03808211156126fd57600080fd5b612709868387016123d6565b9350602085013591508082111561271f57600080fd5b5061272c85828601612454565b9150509250929050565b6000806040838503121561274957600080fd5b82356001600160401b0381111561275f57600080fd5b61276b85828601612454565b95602094909401359450505050565b60006020828403121561278c57600080fd5b5051919050565b6000602082840312156127a557600080fd5b8135611cac81612f2f565b6000602082840312156127c257600080fd5b8151611cac81612f2f565b6000602082840312156127df57600080fd5b81356001600160401b038111156127f557600080fd5b8201601f8101841361280657600080fd5b61198b84823560208401612362565b60006020828403121561282757600080fd5b5035919050565b6000806040838503121561284157600080fd5b8235915060208301356001600160401b0381111561285e57600080fd5b61272c85828601612454565b600081518084526020808501945080840160005b8381101561289a5781518752958201959082019060010161287e565b509495945050505050565b600081518084526128bd816020860160208601612d48565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806128eb57607f831692505b602080841082141561290d57634e487b7160e01b600052602260045260246000fd5b81801561292157600181146129325761295f565b60ff1986168952848901965061295f565b60008881526020902060005b868110156129575781548b82015290850190830161293e565b505084890196505b50505050505092915050565b6000825161297d818460208701612d48565b9190910192915050565b6000611cac82846128d1565b600061299f82856128d1565b83516129af818360208801612d48565b01949350505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906129e49083018661286a565b82810360608401526129f6818661286a565b90508281036080840152612a0a81856128a5565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612a50908301846128a5565b979650505050505050565b602081526000611cac602083018461286a565b604081526000612a81604083018561286a565b8281036020840152612a93818561286a565b95945050505050565b602081526000611cac60208301846128a5565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b602080825260169082015275436f6e7472616374206973206e6f742061637469766560501b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f507572636861736520776f756c6420657863656564206d6178207075626c696360408201526e20737570706c79206f66204e46547360881b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60006001600160401b03821115612cdc57612cdc612e74565b5060051b60200190565b60008219821115612cf957612cf9612e32565b500190565b600082612d0d57612d0d612e48565b500490565b6000816000190483118215151615612d2c57612d2c612e32565b500290565b600082821015612d4357612d43612e32565b500390565b60005b83811015612d63578181015183820152602001612d4b565b83811115612d72576000848401525b50505050565b600181811c90821680612d8c57607f821691505b60208210811415612dad57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715612dd857612dd8612e74565b6040525050565b6000600019821415612df357612df3612e32565b5060010190565b600063ffffffff80831681811415612e1457612e14612e32565b6001019392505050565b600082612e2d57612e2d612e48565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115612ea35760046000803e5060005160e01c5b90565b600060443d1015612eb45790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612ee357505050505090565b8285019150815181811115612efb5750505050505090565b843d8701016020828501011115612f155750505050505090565b612f2460208286010187612db3565b509095945050505050565b6001600160e01b031981168114610f4457600080fdfea264697066735822122082b7b0b9640b1735f7ce9df2f964eac77bf8798c14df44fc926d970dad9108ed64736f6c63430008070033

Deployed Bytecode Sourcemap

45398:7596:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21633:318;;;;;;;;;;-1:-1:-1;21633:318:0;;;;;:::i;:::-;;:::i;:::-;;;15091:25:1;;;15079:2;15064:18;21633:318:0;;;;;;;;20606:360;;;;;;;;;;-1:-1:-1;20606:360:0;;;;;:::i;:::-;;:::i;:::-;;;14918:14:1;;14911:22;14893:41;;14881:2;14866:18;20606:360:0;14753:187:1;48100:88:0;;;;;;;;;;-1:-1:-1;48100:88:0;;;;;:::i;:::-;;:::i;:::-;;46060:54;;;;;;;;;;-1:-1:-1;46060:54:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;45444:42;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;45444:42:0;;;;;;;;;;;;:::i;47608:434::-;;;;;;;;;;-1:-1:-1;47608:434:0;;;;;:::i;:::-;;:::i;45605:30::-;;;;;;;;;;;;;;;;45960;;;;;;;;;;-1:-1:-1;45960:30:0;;;;;;;;;;;45898:20;;;;;;;;;;-1:-1:-1;45898:20:0;;;;;;;;;;;46121:51;;;;;;;;;;-1:-1:-1;46121:51:0;;;;;:::i;:::-;;;;;;;;;;;;;;46276:82;;;;;;;;;;;;;:::i;23971:442::-;;;;;;;;;;-1:-1:-1;23971:442:0;;;;;:::i;:::-;;:::i;46916:97::-;;;;;;;;;;;;;:::i;47437:93::-;;;;;;;;;;-1:-1:-1;47437:93:0;;;;;:::i;:::-;;:::i;48287:216::-;;;;;;;;;;;;;:::i;46581:109::-;;;;;;;;;;;;;:::i;51773:169::-;;;;;;;;;;-1:-1:-1;51773:169:0;;;;;:::i;:::-;;:::i;22117:561::-;;;;;;;;;;-1:-1:-1;22117:561:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;47079:135::-;;;;;;;;;;-1:-1:-1;47079:135:0;;;;;:::i;:::-;;:::i;49240:517::-;;;;;;:::i;:::-;;:::i;46767:82::-;;;;;;;;;;;;;:::i;45997:27::-;;;;;;;;;;-1:-1:-1;45997:27:0;;;;;;;;;;;45809:29;;;;;;;;;;;;;;;;1460:94;;;;;;;;;;;;;:::i;45925:28::-;;;;;;;;;;-1:-1:-1;45925:28:0;;;;;;;;;;;47276:98;;;;;;;;;;-1:-1:-1;47276:98:0;;;;;:::i;:::-;;:::i;809:87::-;;;;;;;;;;-1:-1:-1;882:6:0;;809:87;;-1:-1:-1;;;;;882:6:0;;;12280:51:1;;12268:2;12253:18;809:87:0;12134:203:1;45493:38:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;45493:38:0;;;;;52105:886;;;;;;;;;;-1:-1:-1;52105:886:0;;;;;:::i;:::-;;:::i;22751:380::-;;;;;;;;;;-1:-1:-1;22751:380:0;;;;;:::i;:::-;;:::i;45642:44::-;;;;;;;;;;;;;;;;45756:46;;;;;;;;;;;;45801:1;45756:46;;51619:82;;;;;;;;;;-1:-1:-1;51619:82:0;;;;;:::i;:::-;;:::i;46422:97::-;;;;;;;;;;;;;:::i;50736:811::-;;;;;;:::i;:::-;;:::i;49915:753::-;;;;;;:::i;:::-;;:::i;45705:44::-;;;;;;;;;;;;45748:1;45705:44;;23203:218;;;;;;;;;;-1:-1:-1;23203:218:0;;;;;:::i;:::-;-1:-1:-1;;;;;23376:27:0;;;23347:4;23376:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;23203:218;45845:19;;;;;;;;;;;;;;;;23493:401;;;;;;;;;;-1:-1:-1;23493:401:0;;;;;:::i;:::-;;:::i;51981:89::-;;;;;;;;;;-1:-1:-1;51981:89:0;;;;;:::i;:::-;;:::i;1709:229::-;;;;;;;;;;-1:-1:-1;1709:229:0;;;;;:::i;:::-;;:::i;45871:20::-;;;;;;;;;;-1:-1:-1;45871:20:0;;;;;;;;21633:318;21764:7;-1:-1:-1;;;;;21811:21:0;;21789:114;;;;-1:-1:-1;;;21789:114:0;;16383:2:1;21789:114:0;;;16365:21:1;16422:2;16402:18;;;16395:30;16461:34;16441:18;;;16434:62;-1:-1:-1;;;16512:18:1;;;16505:41;16563:19;;21789:114:0;;;;;;;;;-1:-1:-1;21921:9:0;:13;;;;;;;;;;;-1:-1:-1;;;;;21921:22:0;;;;;;;;;;;;21633:318::o;20606:360::-;20753:4;-1:-1:-1;;;;;;20795:41:0;;-1:-1:-1;;;20795:41:0;;:110;;-1:-1:-1;;;;;;;20853:52:0;;-1:-1:-1;;;20853:52:0;20795:110;:163;;;-1:-1:-1;;;;;;;;;;12401:40:0;;;20922:36;20775:183;20606:360;-1:-1:-1;;20606:360:0:o;48100:88::-;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;48166:14;;::::1;::::0;:7:::1;::::0;:14:::1;::::0;::::1;::::0;::::1;:::i;:::-;;48100:88:::0;:::o;47608:434::-;47722:13;47772:11;;47761:8;:22;47753:93;;;;-1:-1:-1;;;47753:93:0;;22085:2:1;47753:93:0;;;22067:21:1;22124:2;22104:18;;;22097:30;22163:34;22143:18;;;22136:62;-1:-1:-1;;;22214:18:1;;;22207:46;22270:19;;47753:93:0;21883:412:1;47753:93:0;47864:8;;;;47859:176;;47920:7;47903:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;47889:40;;47608:434;;;:::o;47859:176::-;47993:7;48002:19;:8;:17;:19::i;:::-;47976:46;;;;;;;;;:::i;47859:176::-;47608:434;;;:::o;46276:82::-;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;46342:8:::1;::::0;;-1:-1:-1;;46330:20:0;::::1;46342:8;::::0;;;::::1;;;46341:9;46330:20:::0;;::::1;;::::0;;46276:82::o;23971:442::-;-1:-1:-1;;;;;24204:20:0;;247:10;24204:20;;:60;;-1:-1:-1;24228:36:0;24245:4;247:10;23203:218;:::i;24228:36::-;24182:160;;;;-1:-1:-1;;;24182:160:0;;19797:2:1;24182:160:0;;;19779:21:1;19836:2;19816:18;;;19809:30;19875:34;19855:18;;;19848:62;-1:-1:-1;;;19926:18:1;;;19919:48;19984:19;;24182:160:0;19595:414:1;24182:160:0;24353:52;24376:4;24382:2;24386:3;24391:7;24400:4;24353:22;:52::i;:::-;23971:442;;;;;:::o;46916:97::-;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;46990:15:::1;::::0;;-1:-1:-1;;46971:34:0;::::1;46990:15:::0;;;;::::1;;;46989:16;46971:34:::0;;::::1;;::::0;;46916:97::o;47437:93::-;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;47504:7:::1;:18:::0;47437:93::o;48287:216::-;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;48353:21:::1;48393:11:::0;48385:56:::1;;;::::0;-1:-1:-1;;;48385:56:0;;22854:2:1;48385:56:0::1;::::0;::::1;22836:21:1::0;;;22873:18;;;22866:30;22932:34;22912:18;;;22905:62;22984:18;;48385:56:0::1;22652:356:1::0;48385:56:0::1;882:6:::0;;48452:43:::1;::::0;-1:-1:-1;;;;;882:6:0;;;;48452:43;::::1;;;::::0;48487:7;;48452:43:::1;::::0;;;48487:7;882:6;48452:43;::::1;;;;;;;;;;;;;::::0;::::1;;;;46581:109:::0;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;46664:18:::1;::::0;;-1:-1:-1;;46642:40:0;::::1;46664:18:::0;;;;::::1;;;46663:19;46642:40:::0;;::::1;;::::0;;46581:109::o;51773:169::-;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;51857:9:::1;51852:83;51876:3;:10;51872:1;:14;51852:83;;;51908:15;51913:3;51917:1;51913:6;;;;;;;;:::i;:::-;;;;;;;51921:1;51908:4;:15::i;:::-;51888:3:::0;::::1;::::0;::::1;:::i;:::-;;;;51852:83;;22117:561:::0;22273:16;22348:3;:10;22329:8;:15;:29;22307:120;;;;-1:-1:-1;;;22307:120:0;;24041:2:1;22307:120:0;;;24023:21:1;24080:2;24060:18;;;24053:30;24119:34;24099:18;;;24092:62;-1:-1:-1;;;24170:18:1;;;24163:39;24219:19;;22307:120:0;23839:405:1;22307:120:0;22440:30;22487:8;:15;-1:-1:-1;;;;;22473:30:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22473:30:0;;22440:63;;22521:9;22516:122;22540:8;:15;22536:1;:19;22516:122;;;22596:30;22606:8;22615:1;22606:11;;;;;;;;:::i;:::-;;;;;;;22619:3;22623:1;22619:6;;;;;;;;:::i;:::-;;;;;;;22596:9;:30::i;:::-;22577:13;22591:1;22577:16;;;;;;;;:::i;:::-;;;;;;;;;;:49;22557:3;;;:::i;:::-;;;22516:122;;;-1:-1:-1;22657:13:0;22117:561;-1:-1:-1;;;22117:561:0:o;47079:135::-;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;47164:23:::1;:42:::0;;-1:-1:-1;;;;;;47164:42:0::1;-1:-1:-1::0;;;;;47164:42:0;;;::::1;::::0;;;::::1;::::0;;47079:135::o;49240:517::-;49320:8;;;;;;;49312:43;;;;-1:-1:-1;;;49312:43:0;;;;;;;:::i;:::-;49374:18;;;;;;;49366:58;;;;-1:-1:-1;;;49366:58:0;;19035:2:1;49366:58:0;;;19017:21:1;19074:2;19054:18;;;19047:30;19113:29;19093:18;;;19086:57;19160:18;;49366:58:0;18833:351:1;49366:58:0;45748:1;49443:12;:32;;49435:68;;;;-1:-1:-1;;;49435:68:0;;18323:2:1;49435:68:0;;;18305:21:1;18362:2;18342:18;;;18335:30;18401:25;18381:18;;;18374:53;18444:18;;49435:68:0;18121:347:1;49435:68:0;49555:7;;49522:11;;:29;;49538:12;49522:15;:29::i;:::-;:40;;49514:99;;;;-1:-1:-1;;;49514:99:0;;;;;;;:::i;:::-;49632:8;;49662:9;;49632:26;;49645:12;49632;:26::i;:::-;:39;;49624:82;;;;-1:-1:-1;;;49624:82:0;;18675:2:1;49624:82:0;;;18657:21:1;18714:2;18694:18;;;18687:30;18753:33;18733:18;;;18726:61;18804:18;;49624:82:0;18473:355:1;49624:82:0;49719:30;49724:10;49736:12;49719:4;:30::i;:::-;49240:517;:::o;46767:82::-;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;46833:8:::1;::::0;;-1:-1:-1;;46821:20:0;::::1;46833:8;::::0;;::::1;46832:9;46821:20;::::0;;46767:82::o;1460:94::-;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;1525:21:::1;1543:1;1525:9;:21::i;:::-;1460:94::o:0;47276:98::-;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;47346:8:::1;:20:::0;47276:98::o;52105:886::-;52207:4;52252;52207;52269:599;52293:5;:12;52289:1;:16;52269:599;;;52327:20;52350:5;52356:1;52350:8;;;;;;;;:::i;:::-;;;;;;;52327:31;;52395:12;52379;:28;52375:482;;52551:44;;;;;;10896:19:1;;;10931:12;;;10924:28;;;52522:92:0;;10968:12:1;;52551:44:0;;;-1:-1:-1;;52551:44:0;;;;;;;;;;52522:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;52507:107;;52375:482;;;52778:44;;;;;;10896:19:1;;;10931:12;;;10924:28;;;52749:92:0;;10968:12:1;;52778:44:0;;;-1:-1:-1;;52778:44:0;;;;;;;;;;52749:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;52734:107;;52375:482;-1:-1:-1;52307:3:0;;;;:::i;:::-;;;;52269:599;;;-1:-1:-1;52979:4:0;;52963:20;;52105:886;-1:-1:-1;;;52105:886:0:o;22751:380::-;247:10;-1:-1:-1;;;;;22900:24:0;;;;22878:115;;;;-1:-1:-1;;;22878:115:0;;23631:2:1;22878:115:0;;;23613:21:1;23670:2;23650:18;;;23643:30;23709:34;23689:18;;;23682:62;-1:-1:-1;;;23760:18:1;;;23753:39;23809:19;;22878:115:0;23429:405:1;22878:115:0;247:10;23006:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;23006:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;23006:53:0;;;;;;;;;;23075:48;;14893:41:1;;;23006:42:0;;247:10;23075:48;;14866:18:1;23075:48:0;;;;;;;22751:380;;:::o;51619:82::-;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;51681:12:::1;51686:3;51691:1;51681:4;:12::i;46422:97::-:0;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;46495:16:::1;::::0;;-1:-1:-1;;46475:36:0;::::1;46495:16:::0;;;;::::1;;;46494:17;46475:36:::0;;::::1;;::::0;;46422:97::o;50736:811::-;50838:8;;;;;;;50830:43;;;;-1:-1:-1;;;50830:43:0;;;;;;;:::i;:::-;50892:16;;;;;;;50884:54;;;;-1:-1:-1;;;50884:54:0;;17559:2:1;50884:54:0;;;17541:21:1;17598:2;17578:18;;;17571:30;17637:27;17617:18;;;17610:55;17682:18;;50884:54:0;17357:349:1;50884:54:0;50957:76;50964:6;50972:60;50996:34;51013:16;50996;:34::i;:::-;50979:52;;;;;;;;:::i;:::-;;;;-1:-1:-1;;50979:52:0;;;;;;;;;;50972:60;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;50957:76::-;50949:104;;;;-1:-1:-1;;;50949:104:0;;20216:2:1;50949:104:0;;;20198:21:1;20255:2;20235:18;;;20228:30;-1:-1:-1;;;20274:18:1;;;20267:45;20329:18;;50949:104:0;20014:339:1;50949:104:0;51073:40;;;;:22;:40;;;;;;;;51072:41;51064:78;;;;-1:-1:-1;;;51064:78:0;;25262:2:1;51064:78:0;;;25244:21:1;25301:2;25281:18;;;25274:30;25340:26;25320:18;;;25313:54;25384:18;;51064:78:0;25060:348:1;51064:78:0;51207:23;;51252:53;;-1:-1:-1;;;51252:53:0;;51276:10;51252:53;;;13912:51:1;13979:18;;;13972:34;;;-1:-1:-1;;;;;51207:23:0;;;;51155:31;;51207:23;;51252;;13885:18:1;;51252:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:57;51244:103;;;;-1:-1:-1;;;51244:103:0;;21683:2:1;51244:103:0;;;21665:21:1;21722:2;21702:18;;;21695:30;21761:34;21741:18;;;21734:62;-1:-1:-1;;;21812:18:1;;;21805:31;21853:19;;51244:103:0;21481:397:1;51244:103:0;51388:7;;51366:11;;:18;;51382:1;51366:15;:18::i;:::-;:29;;51358:89;;;;-1:-1:-1;;;51358:89:0;;;;;;;:::i;:::-;51460:40;;;;:22;:40;;;;;:47;;-1:-1:-1;;51460:47:0;51503:4;51460:47;;;;;;51520:19;;51525:10;;51520:4;:19::i;:::-;50819:728;50736:811;;:::o;49915:753::-;50017:8;;;;;;;50009:43;;;;-1:-1:-1;;;50009:43:0;;;;;;;:::i;:::-;50071:15;;;;;;;50063:51;;;;-1:-1:-1;;;50063:51:0;;22502:2:1;50063:51:0;;;22484:21:1;22541:2;22521:18;;;22514:30;22580:25;22560:18;;;22553:53;22623:18;;50063:51:0;22300:347:1;50063:51:0;50133:53;50140:6;50172:10;50133:6;:53::i;:::-;50125:81;;;;-1:-1:-1;;;50125:81:0;;20216:2:1;50125:81:0;;;20198:21:1;20255:2;20235:18;;;20228:30;-1:-1:-1;;;20274:18:1;;;20267:45;20329:18;;50125:81:0;20014:339:1;50125:81:0;50258:7;;50225:11;;:29;;50241:12;50225:15;:29::i;:::-;:40;;50217:99;;;;-1:-1:-1;;;50217:99:0;;;;;;;:::i;:::-;50352:10;50335:28;;;;:16;:28;;;;;;45801:1;;50335:46;;50368:12;50335:32;:46::i;:::-;:68;;50327:109;;;;-1:-1:-1;;;50327:109:0;;16795:2:1;50327:109:0;;;16777:21:1;16834:2;16814:18;;;16807:30;16873;16853:18;;;16846:58;16921:18;;50327:109:0;16593:352:1;50327:109:0;50455:8;;50485:9;;50455:26;;50468:12;50455;:26::i;:::-;:39;;50447:82;;;;-1:-1:-1;;;50447:82:0;;18675:2:1;50447:82:0;;;18657:21:1;18714:2;18694:18;;;18687:30;18753:33;18733:18;;;18726:61;18804:18;;50447:82:0;18473:355:1;50447:82:0;50542:30;50547:10;50559:12;50542:4;:30::i;:::-;50631:10;50614:28;;;;:16;:28;;;;;;:46;;50647:12;50614:32;:46::i;:::-;50600:10;50583:28;;;;:16;:28;;;;;:77;-1:-1:-1;;49915:753:0:o;23493:401::-;-1:-1:-1;;;;;23701:20:0;;247:10;23701:20;;:60;;-1:-1:-1;23725:36:0;23742:4;247:10;23203:218;:::i;23725:36::-;23679:151;;;;-1:-1:-1;;;23679:151:0;;17913:2:1;23679:151:0;;;17895:21:1;17952:2;17932:18;;;17925:30;17991:34;17971:18;;;17964:62;-1:-1:-1;;;18042:18:1;;;18035:39;18091:19;;23679:151:0;17711:405:1;23679:151:0;23841:45;23859:4;23865:2;23869;23873:6;23881:4;23841:17;:45::i;51981:89::-;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;52041:4:::1;:21:::0;51981:89::o;1709:229::-;882:6;;-1:-1:-1;;;;;882:6:0;247:10;1029:23;1021:68;;;;-1:-1:-1;;;1021:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;1812:22:0;::::1;1790:110;;;::::0;-1:-1:-1;;;1790:110:0;;17152:2:1;1790:110:0::1;::::0;::::1;17134:21:1::0;17191:2;17171:18;;;17164:30;17230:34;17210:18;;;17203:62;-1:-1:-1;;;17281:18:1;;;17274:36;17327:19;;1790:110:0::1;16950:402:1::0;1790:110:0::1;1911:19;1921:8;1911:9;:19::i;43430:723::-:0;43486:13;43707:10;43703:53;;-1:-1:-1;;43734:10:0;;;;;;;;;;;;-1:-1:-1;;;43734:10:0;;;;;43430:723::o;43703:53::-;43781:5;43766:12;43822:78;43829:9;;43822:78;;43855:8;;;;:::i;:::-;;-1:-1:-1;43878:10:0;;-1:-1:-1;43886:2:0;43878:10;;:::i;:::-;;;43822:78;;;43910:19;43942:6;-1:-1:-1;;;;;43932:17:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43932:17:0;;43910:39;;43960:154;43967:10;;43960:154;;43994:11;44004:1;43994:11;;:::i;:::-;;-1:-1:-1;44063:10:0;44071:2;44063:5;:10;:::i;:::-;44050:24;;:2;:24;:::i;:::-;44037:39;;44020:6;44027;44020:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;44020:56:0;;;;;;;;-1:-1:-1;44091:11:0;44100:2;44091:11;;:::i;:::-;;;43960:154;;;44138:6;43430:723;-1:-1:-1;;;;43430:723:0:o;26181:1249::-;26422:7;:14;26408:3;:10;:28;26386:118;;;;-1:-1:-1;;;26386:118:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;26523:16:0;;26515:66;;;;-1:-1:-1;;;26515:66:0;;;;;;;:::i;:::-;247:10;26594:16;26711:470;26735:3;:10;26731:1;:14;26711:470;;;26767:10;26780:3;26784:1;26780:6;;;;;;;;:::i;:::-;;;;;;;26767:19;;26801:14;26818:7;26826:1;26818:10;;;;;;;;:::i;:::-;;;;;;;;;;;;26845:19;26867:13;;;;;;;;;;-1:-1:-1;;;;;26867:19:0;;;;;;;;;;;;26818:10;;-1:-1:-1;26927:21:0;;;;26901:125;;;;-1:-1:-1;;;26901:125:0;;;;;;;:::i;:::-;27070:9;:13;;;;;;;;;;;-1:-1:-1;;;;;27070:19:0;;;;;;;;;;27092:20;;;27070:42;;27142:17;;;;;;;:27;;27092:20;;27070:9;27142:27;;27092:20;;27142:27;:::i;:::-;;;;;;;;26752:429;;;26747:3;;;;:::i;:::-;;;26711:470;;;;27228:2;-1:-1:-1;;;;;27198:47:0;27222:4;-1:-1:-1;;;;;27198:47:0;27212:8;-1:-1:-1;;;;;27198:47:0;;27232:3;27237:7;27198:47;;;;;;;:::i;:::-;;;;;;;;27258:164;27308:8;27331:4;27350:2;27367:3;27385:7;27407:4;27258:35;:164::i;:::-;26375:1055;26181:1249;;;;;:::o;48558:520::-;48631:1;48623:5;:9;48619:419;;;48649:20;48694:5;-1:-1:-1;;;;;48672:29:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48672:29:0;;48649:52;;48716:24;48765:5;-1:-1:-1;;;;;48743:29:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48743:29:0;;48716:56;;48794:8;48789:127;48812:5;48808:1;:9;;;48789:127;;;48866:1;48852:15;;:11;;:15;;;;:::i;:::-;48843:3;48847:1;48843:6;;;;;;;;;;:::i;:::-;;;;;;:24;;;;;48899:1;48886:7;48894:1;48886:10;;;;;;;;;;:::i;:::-;;;;;;;;;;:14;48819:3;;;;:::i;:::-;;;;48789:127;;;;48932:32;48943:2;48947:3;48952:7;48932:32;;;;;;;;;;;;:10;:32::i;:::-;48634:342;;48619:419;;;48997:29;49003:2;49007:11;;49020:1;48997:29;;;;;;;;;;;;:5;:29::i;:::-;49065:5;49050:11;;:20;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;48558:520:0:o;39039:98::-;39097:7;39124:5;39128:1;39124;:5;:::i;:::-;39117:12;39039:98;-1:-1:-1;;;39039:98:0:o;39777:::-;39835:7;39862:5;39866:1;39862;:5;:::i;1946:173::-;2021:6;;;-1:-1:-1;;;;;2038:17:0;;;-1:-1:-1;;;;;;2038:17:0;;;;;;;2071:40;;2021:6;;;2038:17;2021:6;;2071:40;;2002:16;;2071:40;1991:128;1946:173;:::o;24877:946::-;-1:-1:-1;;;;;25065:16:0;;25057:66;;;;-1:-1:-1;;;25057:66:0;;;;;;;:::i;:::-;247:10;25180:185;247:10;25238:4;25257:2;25274:21;25292:2;25274:17;:21::i;:::-;25310:25;25328:6;25310:17;:25::i;25180:185::-;25378:19;25400:13;;;;;;;;;;;-1:-1:-1;;;;;25400:19:0;;;;;;;;;;25452:21;;;;25430:113;;;;-1:-1:-1;;;25430:113:0;;;;;;;:::i;:::-;25579:9;:13;;;;;;;;;;;-1:-1:-1;;;;;25579:19:0;;;;;;;;;;25601:20;;;25579:42;;25643:17;;;;;;;:27;;25601:20;;25579:9;25643:27;;25601:20;;25643:27;:::i;:::-;;;;-1:-1:-1;;25688:46:0;;;25769:25:1;;;25825:2;25810:18;;25803:34;;;-1:-1:-1;;;;;25688:46:0;;;;;;;;;;;;;;25742:18:1;25688:46:0;;;;;;;25747:68;25778:8;25788:4;25794:2;25798;25802:6;25810:4;25747:30;:68::i;:::-;25046:777;;24877:946;;;;;:::o;35115:975::-;-1:-1:-1;;;;;35355:13:0;;3184:20;3232:8;35351:732;;35408:203;;-1:-1:-1;;;35408:203:0;;-1:-1:-1;;;;;35408:43:0;;;;;:203;;35474:8;;35505:4;;35532:3;;35558:7;;35588:4;;35408:203;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35408:203:0;;;;;;;;-1:-1:-1;;35408:203:0;;;;;;;;;;;;:::i;:::-;;;35387:685;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;35945:6;35938:14;;-1:-1:-1;;;35938:14:0;;;;;;;;:::i;35387:685::-;;;35994:62;;-1:-1:-1;;;35994:62:0;;15553:2:1;35994:62:0;;;15535:21:1;15592:2;15572:18;;;15565:30;15631:34;15611:18;;;15604:62;-1:-1:-1;;;15682:18:1;;;15675:50;15742:19;;35994:62:0;15351:416:1;35387:685:0;-1:-1:-1;;;;;;35696:60:0;;-1:-1:-1;;;35696:60:0;35670:199;;35799:50;;-1:-1:-1;;;35799:50:0;;;;;;;:::i;29896:861::-;-1:-1:-1;;;;;30074:16:0;;30066:62;;;;-1:-1:-1;;;30066:62:0;;;;;;;:::i;:::-;30175:7;:14;30161:3;:10;:28;30139:118;;;;-1:-1:-1;;;30139:118:0;;;;;;;:::i;:::-;247:10;30270:16;30393:103;30417:3;:10;30413:1;:14;30393:103;;;30474:7;30482:1;30474:10;;;;;;;;:::i;:::-;;;;;;;30449:9;:17;30459:3;30463:1;30459:6;;;;;;;;:::i;:::-;;;;;;;30449:17;;;;;;;;;;;:21;30467:2;-1:-1:-1;;;;;30449:21:0;-1:-1:-1;;;;;30449:21:0;;;;;;;;;;;;;:35;;;;;;;:::i;:::-;;;;-1:-1:-1;30429:3:0;;-1:-1:-1;30429:3:0;;;:::i;:::-;;;;30393:103;;;;30549:2;-1:-1:-1;;;;;30513:53:0;30545:1;-1:-1:-1;;;;;30513:53:0;30527:8;-1:-1:-1;;;;;30513:53:0;;30553:3;30558:7;30513:53;;;;;;;:::i;:::-;;;;;;;;30579:170;30629:8;30660:1;30677:2;30694:3;30712:7;30734:4;30579:35;:170::i;28763:777::-;-1:-1:-1;;;;;28921:21:0;;28913:67;;;;-1:-1:-1;;;28913:67:0;;;;;;;:::i;:::-;247:10;29037:196;247:10;28993:16;29120:7;29142:21;29160:2;29142:17;:21::i;29037:196::-;29246:9;:13;;;;;;;;;;;-1:-1:-1;;;;;29246:22:0;;;;;;;;;:32;;29272:6;;29246:9;:32;;29272:6;;29246:32;:::i;:::-;;;;-1:-1:-1;;29294:57:0;;;25769:25:1;;;25825:2;25810:18;;25803:34;;;-1:-1:-1;;;;;29294:57:0;;;;29327:1;;29294:57;;;;;;25742:18:1;29294:57:0;;;;;;;29364:168;29409:8;29440:1;29457:7;29479:2;29496:6;29517:4;29364:30;:168::i;36098:230::-;36250:16;;;36264:1;36250:16;;;;;;;;;36191;;36225:22;;36250:16;;;;;;;;;;;;-1:-1:-1;36250:16:0;36225:41;;36288:7;36277:5;36283:1;36277:8;;;;;;;;:::i;:::-;;;;;;;;;;:18;36315:5;36098:230;-1:-1:-1;;36098:230:0:o;34209:898::-;-1:-1:-1;;;;;34424:13:0;;3184:20;3232:8;34420:680;;34477:196;;-1:-1:-1;;;34477:196:0;;-1:-1:-1;;;;;34477:38:0;;;;;:196;;34538:8;;34569:4;;34596:2;;34621:6;;34650:4;;34477:196;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34477:196:0;;;;;;;;-1:-1:-1;;34477:196:0;;;;;;;;;;;;:::i;:::-;;;34456:633;;;;:::i;:::-;-1:-1:-1;;;;;;34736:55:0;;-1:-1:-1;;;34736:55:0;34732:154;;34816:50;;-1:-1:-1;;;34816:50:0;;;;;;;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:468:1;78:5;-1:-1:-1;;;;;104:6:1;101:30;98:56;;;134:18;;:::i;:::-;183:2;177:9;195:69;252:2;231:15;;-1:-1:-1;;227:29:1;258:4;223:40;177:9;195:69;:::i;:::-;282:6;273:15;;312:6;304;297:22;352:3;343:6;338:3;334:16;331:25;328:45;;;369:1;366;359:12;328:45;419:6;414:3;407:4;399:6;395:17;382:44;474:1;467:4;458:6;450;446:19;442:30;435:41;;14:468;;;;;:::o;487:173::-;555:20;;-1:-1:-1;;;;;604:31:1;;594:42;;584:70;;650:1;647;640:12;665:741;719:5;772:3;765:4;757:6;753:17;749:27;739:55;;790:1;787;780:12;739:55;826:6;813:20;852:4;875:43;915:2;875:43;:::i;:::-;947:2;941:9;959:31;987:2;979:6;959:31;:::i;:::-;1025:18;;;1059:15;;;;-1:-1:-1;1094:15:1;;;1144:1;1140:10;;;1128:23;;1124:32;;1121:41;-1:-1:-1;1118:61:1;;;1175:1;1172;1165:12;1118:61;1197:1;1207:169;1221:2;1218:1;1215:9;1207:169;;;1278:23;1297:3;1278:23;:::i;:::-;1266:36;;1322:12;;;;1354;;;;1239:1;1232:9;1207:169;;;-1:-1:-1;1394:6:1;;665:741;-1:-1:-1;;;;;;;665:741:1:o;1411:735::-;1465:5;1518:3;1511:4;1503:6;1499:17;1495:27;1485:55;;1536:1;1533;1526:12;1485:55;1572:6;1559:20;1598:4;1621:43;1661:2;1621:43;:::i;:::-;1693:2;1687:9;1705:31;1733:2;1725:6;1705:31;:::i;:::-;1771:18;;;1805:15;;;;-1:-1:-1;1840:15:1;;;1890:1;1886:10;;;1874:23;;1870:32;;1867:41;-1:-1:-1;1864:61:1;;;1921:1;1918;1911:12;1864:61;1943:1;1953:163;1967:2;1964:1;1961:9;1953:163;;;2024:17;;2012:30;;2062:12;;;;2094;;;;1985:1;1978:9;1953:163;;2891:220;2933:5;2986:3;2979:4;2971:6;2967:17;2963:27;2953:55;;3004:1;3001;2994:12;2953:55;3026:79;3101:3;3092:6;3079:20;3072:4;3064:6;3060:17;3026:79;:::i;3116:186::-;3175:6;3228:2;3216:9;3207:7;3203:23;3199:32;3196:52;;;3244:1;3241;3234:12;3196:52;3267:29;3286:9;3267:29;:::i;3307:260::-;3375:6;3383;3436:2;3424:9;3415:7;3411:23;3407:32;3404:52;;;3452:1;3449;3442:12;3404:52;3475:29;3494:9;3475:29;:::i;:::-;3465:39;;3523:38;3557:2;3546:9;3542:18;3523:38;:::i;:::-;3513:48;;3307:260;;;;;:::o;3572:943::-;3726:6;3734;3742;3750;3758;3811:3;3799:9;3790:7;3786:23;3782:33;3779:53;;;3828:1;3825;3818:12;3779:53;3851:29;3870:9;3851:29;:::i;:::-;3841:39;;3899:38;3933:2;3922:9;3918:18;3899:38;:::i;:::-;3889:48;;3988:2;3977:9;3973:18;3960:32;-1:-1:-1;;;;;4052:2:1;4044:6;4041:14;4038:34;;;4068:1;4065;4058:12;4038:34;4091:61;4144:7;4135:6;4124:9;4120:22;4091:61;:::i;:::-;4081:71;;4205:2;4194:9;4190:18;4177:32;4161:48;;4234:2;4224:8;4221:16;4218:36;;;4250:1;4247;4240:12;4218:36;4273:63;4328:7;4317:8;4306:9;4302:24;4273:63;:::i;:::-;4263:73;;4389:3;4378:9;4374:19;4361:33;4345:49;;4419:2;4409:8;4406:16;4403:36;;;4435:1;4432;4425:12;4403:36;;4458:51;4501:7;4490:8;4479:9;4475:24;4458:51;:::i;:::-;4448:61;;;3572:943;;;;;;;;:::o;4520:606::-;4624:6;4632;4640;4648;4656;4709:3;4697:9;4688:7;4684:23;4680:33;4677:53;;;4726:1;4723;4716:12;4677:53;4749:29;4768:9;4749:29;:::i;:::-;4739:39;;4797:38;4831:2;4820:9;4816:18;4797:38;:::i;:::-;4787:48;;4882:2;4871:9;4867:18;4854:32;4844:42;;4933:2;4922:9;4918:18;4905:32;4895:42;;4988:3;4977:9;4973:19;4960:33;-1:-1:-1;;;;;5008:6:1;5005:30;5002:50;;;5048:1;5045;5038:12;5002:50;5071:49;5112:7;5103:6;5092:9;5088:22;5071:49;:::i;5131:347::-;5196:6;5204;5257:2;5245:9;5236:7;5232:23;5228:32;5225:52;;;5273:1;5270;5263:12;5225:52;5296:29;5315:9;5296:29;:::i;:::-;5286:39;;5375:2;5364:9;5360:18;5347:32;5422:5;5415:13;5408:21;5401:5;5398:32;5388:60;;5444:1;5441;5434:12;5388:60;5467:5;5457:15;;;5131:347;;;;;:::o;5483:254::-;5551:6;5559;5612:2;5600:9;5591:7;5587:23;5583:32;5580:52;;;5628:1;5625;5618:12;5580:52;5651:29;5670:9;5651:29;:::i;:::-;5641:39;5727:2;5712:18;;;;5699:32;;-1:-1:-1;;;5483:254:1:o;5742:348::-;5826:6;5879:2;5867:9;5858:7;5854:23;5850:32;5847:52;;;5895:1;5892;5885:12;5847:52;5935:9;5922:23;-1:-1:-1;;;;;5960:6:1;5957:30;5954:50;;;6000:1;5997;5990:12;5954:50;6023:61;6076:7;6067:6;6056:9;6052:22;6023:61;:::i;6095:595::-;6213:6;6221;6274:2;6262:9;6253:7;6249:23;6245:32;6242:52;;;6290:1;6287;6280:12;6242:52;6330:9;6317:23;-1:-1:-1;;;;;6400:2:1;6392:6;6389:14;6386:34;;;6416:1;6413;6406:12;6386:34;6439:61;6492:7;6483:6;6472:9;6468:22;6439:61;:::i;:::-;6429:71;;6553:2;6542:9;6538:18;6525:32;6509:48;;6582:2;6572:8;6569:16;6566:36;;;6598:1;6595;6588:12;6566:36;;6621:63;6676:7;6665:8;6654:9;6650:24;6621:63;:::i;:::-;6611:73;;;6095:595;;;;;:::o;6695:416::-;6788:6;6796;6849:2;6837:9;6828:7;6824:23;6820:32;6817:52;;;6865:1;6862;6855:12;6817:52;6905:9;6892:23;-1:-1:-1;;;;;6930:6:1;6927:30;6924:50;;;6970:1;6967;6960:12;6924:50;6993:61;7046:7;7037:6;7026:9;7022:22;6993:61;:::i;:::-;6983:71;7101:2;7086:18;;;;7073:32;;-1:-1:-1;;;;6695:416:1:o;7116:184::-;7186:6;7239:2;7227:9;7218:7;7214:23;7210:32;7207:52;;;7255:1;7252;7245:12;7207:52;-1:-1:-1;7278:16:1;;7116:184;-1:-1:-1;7116:184:1:o;7305:245::-;7363:6;7416:2;7404:9;7395:7;7391:23;7387:32;7384:52;;;7432:1;7429;7422:12;7384:52;7471:9;7458:23;7490:30;7514:5;7490:30;:::i;7555:249::-;7624:6;7677:2;7665:9;7656:7;7652:23;7648:32;7645:52;;;7693:1;7690;7683:12;7645:52;7725:9;7719:16;7744:30;7768:5;7744:30;:::i;7809:450::-;7878:6;7931:2;7919:9;7910:7;7906:23;7902:32;7899:52;;;7947:1;7944;7937:12;7899:52;7987:9;7974:23;-1:-1:-1;;;;;8012:6:1;8009:30;8006:50;;;8052:1;8049;8042:12;8006:50;8075:22;;8128:4;8120:13;;8116:27;-1:-1:-1;8106:55:1;;8157:1;8154;8147:12;8106:55;8180:73;8245:7;8240:2;8227:16;8222:2;8218;8214:11;8180:73;:::i;8264:180::-;8323:6;8376:2;8364:9;8355:7;8351:23;8347:32;8344:52;;;8392:1;8389;8382:12;8344:52;-1:-1:-1;8415:23:1;;8264:180;-1:-1:-1;8264:180:1:o;8638:416::-;8731:6;8739;8792:2;8780:9;8771:7;8767:23;8763:32;8760:52;;;8808:1;8805;8798:12;8760:52;8844:9;8831:23;8821:33;;8905:2;8894:9;8890:18;8877:32;-1:-1:-1;;;;;8924:6:1;8921:30;8918:50;;;8964:1;8961;8954:12;8918:50;8987:61;9040:7;9031:6;9020:9;9016:22;8987:61;:::i;9059:435::-;9112:3;9150:5;9144:12;9177:6;9172:3;9165:19;9203:4;9232:2;9227:3;9223:12;9216:19;;9269:2;9262:5;9258:14;9290:1;9300:169;9314:6;9311:1;9308:13;9300:169;;;9375:13;;9363:26;;9409:12;;;;9444:15;;;;9336:1;9329:9;9300:169;;;-1:-1:-1;9485:3:1;;9059:435;-1:-1:-1;;;;;9059:435:1:o;9499:257::-;9540:3;9578:5;9572:12;9605:6;9600:3;9593:19;9621:63;9677:6;9670:4;9665:3;9661:14;9654:4;9647:5;9643:16;9621:63;:::i;:::-;9738:2;9717:15;-1:-1:-1;;9713:29:1;9704:39;;;;9745:4;9700:50;;9499:257;-1:-1:-1;;9499:257:1:o;9761:973::-;9846:12;;9811:3;;9901:1;9921:18;;;;9974;;;;10001:61;;10055:4;10047:6;10043:17;10033:27;;10001:61;10081:2;10129;10121:6;10118:14;10098:18;10095:38;10092:161;;;10175:10;10170:3;10166:20;10163:1;10156:31;10210:4;10207:1;10200:15;10238:4;10235:1;10228:15;10092:161;10269:18;10296:104;;;;10414:1;10409:319;;;;10262:466;;10296:104;-1:-1:-1;;10329:24:1;;10317:37;;10374:16;;;;-1:-1:-1;10296:104:1;;10409:319;26109:1;26102:14;;;26146:4;26133:18;;10503:1;10517:165;10531:6;10528:1;10525:13;10517:165;;;10609:14;;10596:11;;;10589:35;10652:16;;;;10546:10;;10517:165;;;10521:3;;10711:6;10706:3;10702:16;10695:23;;10262:466;;;;;;;9761:973;;;;:::o;10991:274::-;11120:3;11158:6;11152:13;11174:53;11220:6;11215:3;11208:4;11200:6;11196:17;11174:53;:::i;:::-;11243:16;;;;;10991:274;-1:-1:-1;;10991:274:1:o;11551:197::-;11679:3;11704:38;11738:3;11730:6;11704:38;:::i;11753:376::-;11929:3;11957:38;11991:3;11983:6;11957:38;:::i;:::-;12024:6;12018:13;12040:52;12085:6;12081:2;12074:4;12066:6;12062:17;12040:52;:::i;:::-;12108:15;;11753:376;-1:-1:-1;;;;11753:376:1:o;12342:826::-;-1:-1:-1;;;;;12739:15:1;;;12721:34;;12791:15;;12786:2;12771:18;;12764:43;12701:3;12838:2;12823:18;;12816:31;;;12664:4;;12870:57;;12907:19;;12899:6;12870:57;:::i;:::-;12975:9;12967:6;12963:22;12958:2;12947:9;12943:18;12936:50;13009:44;13046:6;13038;13009:44;:::i;:::-;12995:58;;13102:9;13094:6;13090:22;13084:3;13073:9;13069:19;13062:51;13130:32;13155:6;13147;13130:32;:::i;:::-;13122:40;12342:826;-1:-1:-1;;;;;;;;12342:826:1:o;13173:560::-;-1:-1:-1;;;;;13470:15:1;;;13452:34;;13522:15;;13517:2;13502:18;;13495:43;13569:2;13554:18;;13547:34;;;13612:2;13597:18;;13590:34;;;13432:3;13655;13640:19;;13633:32;;;13395:4;;13682:45;;13707:19;;13699:6;13682:45;:::i;:::-;13674:53;13173:560;-1:-1:-1;;;;;;;13173:560:1:o;14017:261::-;14196:2;14185:9;14178:21;14159:4;14216:56;14268:2;14257:9;14253:18;14245:6;14216:56;:::i;14283:465::-;14540:2;14529:9;14522:21;14503:4;14566:56;14618:2;14607:9;14603:18;14595:6;14566:56;:::i;:::-;14670:9;14662:6;14658:22;14653:2;14642:9;14638:18;14631:50;14698:44;14735:6;14727;14698:44;:::i;:::-;14690:52;14283:465;-1:-1:-1;;;;;14283:465:1:o;15127:219::-;15276:2;15265:9;15258:21;15239:4;15296:44;15336:2;15325:9;15321:18;15313:6;15296:44;:::i;15772:404::-;15974:2;15956:21;;;16013:2;15993:18;;;15986:30;16052:34;16047:2;16032:18;;16025:62;-1:-1:-1;;;16118:2:1;16103:18;;16096:38;16166:3;16151:19;;15772:404::o;19189:401::-;19391:2;19373:21;;;19430:2;19410:18;;;19403:30;19469:34;19464:2;19449:18;;19442:62;-1:-1:-1;;;19535:2:1;19520:18;;19513:35;19580:3;19565:19;;19189:401::o;20358:406::-;20560:2;20542:21;;;20599:2;20579:18;;;20572:30;20638:34;20633:2;20618:18;;20611:62;-1:-1:-1;;;20704:2:1;20689:18;;20682:40;20754:3;20739:19;;20358:406::o;20769:346::-;20971:2;20953:21;;;21010:2;20990:18;;;20983:30;-1:-1:-1;;;21044:2:1;21029:18;;21022:52;21106:2;21091:18;;20769:346::o;21120:356::-;21322:2;21304:21;;;21341:18;;;21334:30;21400:34;21395:2;21380:18;;21373:62;21467:2;21452:18;;21120:356::o;23013:411::-;23215:2;23197:21;;;23254:2;23234:18;;;23227:30;23293:34;23288:2;23273:18;;23266:62;-1:-1:-1;;;23359:2:1;23344:18;;23337:45;23414:3;23399:19;;23013:411::o;24249:404::-;24451:2;24433:21;;;24490:2;24470:18;;;24463:30;24529:34;24524:2;24509:18;;24502:62;-1:-1:-1;;;24595:2:1;24580:18;;24573:38;24643:3;24628:19;;24249:404::o;24658:397::-;24860:2;24842:21;;;24899:2;24879:18;;;24872:30;24938:34;24933:2;24918:18;;24911:62;-1:-1:-1;;;25004:2:1;24989:18;;24982:31;25045:3;25030:19;;24658:397::o;25848:183::-;25908:4;-1:-1:-1;;;;;25933:6:1;25930:30;25927:56;;;25963:18;;:::i;:::-;-1:-1:-1;26008:1:1;26004:14;26020:4;26000:25;;25848:183::o;26162:128::-;26202:3;26233:1;26229:6;26226:1;26223:13;26220:39;;;26239:18;;:::i;:::-;-1:-1:-1;26275:9:1;;26162:128::o;26295:120::-;26335:1;26361;26351:35;;26366:18;;:::i;:::-;-1:-1:-1;26400:9:1;;26295:120::o;26420:168::-;26460:7;26526:1;26522;26518:6;26514:14;26511:1;26508:21;26503:1;26496:9;26489:17;26485:45;26482:71;;;26533:18;;:::i;:::-;-1:-1:-1;26573:9:1;;26420:168::o;26593:125::-;26633:4;26661:1;26658;26655:8;26652:34;;;26666:18;;:::i;:::-;-1:-1:-1;26703:9:1;;26593:125::o;26723:258::-;26795:1;26805:113;26819:6;26816:1;26813:13;26805:113;;;26895:11;;;26889:18;26876:11;;;26869:39;26841:2;26834:10;26805:113;;;26936:6;26933:1;26930:13;26927:48;;;26971:1;26962:6;26957:3;26953:16;26946:27;26927:48;;26723:258;;;:::o;26986:380::-;27065:1;27061:12;;;;27108;;;27129:61;;27183:4;27175:6;27171:17;27161:27;;27129:61;27236:2;27228:6;27225:14;27205:18;27202:38;27199:161;;;27282:10;27277:3;27273:20;27270:1;27263:31;27317:4;27314:1;27307:15;27345:4;27342:1;27335:15;27199:161;;26986:380;;;:::o;27371:249::-;27481:2;27462:13;;-1:-1:-1;;27458:27:1;27446:40;;-1:-1:-1;;;;;27501:34:1;;27537:22;;;27498:62;27495:88;;;27563:18;;:::i;:::-;27599:2;27592:22;-1:-1:-1;;27371:249:1:o;27625:135::-;27664:3;-1:-1:-1;;27685:17:1;;27682:43;;;27705:18;;:::i;:::-;-1:-1:-1;27752:1:1;27741:13;;27625:135::o;27765:201::-;27803:3;27831:10;27876:2;27869:5;27865:14;27903:2;27894:7;27891:15;27888:41;;;27909:18;;:::i;:::-;27958:1;27945:15;;27765:201;-1:-1:-1;;;27765:201:1:o;27971:112::-;28003:1;28029;28019:35;;28034:18;;:::i;:::-;-1:-1:-1;28068:9:1;;27971:112::o;28088:127::-;28149:10;28144:3;28140:20;28137:1;28130:31;28180:4;28177:1;28170:15;28204:4;28201:1;28194:15;28220:127;28281:10;28276:3;28272:20;28269:1;28262:31;28312:4;28309:1;28302:15;28336:4;28333:1;28326:15;28352:127;28413:10;28408:3;28404:20;28401:1;28394:31;28444:4;28441:1;28434:15;28468:4;28465:1;28458:15;28484:127;28545:10;28540:3;28536:20;28533:1;28526:31;28576:4;28573:1;28566:15;28600:4;28597:1;28590:15;28616:179;28651:3;28693:1;28675:16;28672:23;28669:120;;;28739:1;28736;28733;28718:23;-1:-1:-1;28776:1:1;28770:8;28765:3;28761:18;28669:120;28616:179;:::o;28800:671::-;28839:3;28881:4;28863:16;28860:26;28857:39;;;28800:671;:::o;28857:39::-;28923:2;28917:9;-1:-1:-1;;28988:16:1;28984:25;;28981:1;28917:9;28960:50;29039:4;29033:11;29063:16;-1:-1:-1;;;;;29169:2:1;29162:4;29154:6;29150:17;29147:25;29142:2;29134:6;29131:14;29128:45;29125:58;;;29176:5;;;;;28800:671;:::o;29125:58::-;29213:6;29207:4;29203:17;29192:28;;29249:3;29243:10;29276:2;29268:6;29265:14;29262:27;;;29282:5;;;;;;28800:671;:::o;29262:27::-;29366:2;29347:16;29341:4;29337:27;29333:36;29326:4;29317:6;29312:3;29308:16;29304:27;29301:69;29298:82;;;29373:5;;;;;;28800:671;:::o;29298:82::-;29389:57;29440:4;29431:6;29423;29419:19;29415:30;29409:4;29389:57;:::i;:::-;-1:-1:-1;29462:3:1;;28800:671;-1:-1:-1;;;;;28800:671:1:o;29476:131::-;-1:-1:-1;;;;;;29550:32:1;;29540:43;;29530:71;;29597:1;29594;29587:12

Swarm Source

ipfs://82b7b0b9640b1735f7ce9df2f964eac77bf8798c14df44fc926d970dad9108ed

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.