ETH Price: $3,477.97 (+4.32%)

Token

Ohayo (OHAYO)
 

Overview

Max Total Supply

0 OHAYO

Holders

246

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
razrbck.eth
Balance
1 OHAYO
0xD5258C2B820d43AC77D42dB0f71B2907a4d076b8
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Ohayo

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion, MIT license
File 1 of 16 : Ohayo.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.21;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

/*
          ___                                    
         (   )                                   
  .--.    | | .-.     .---.   ___  ___    .--.   
 /    \   | |/   \   / .-, \ (   )(   )  /    \  
|  .-. ;  |  .-. .  (__) ; |  | |  | |  |  .-. ; 
| |  | |  | |  | |    .'`  |  | |  | |  | |  | | 
| |  | |  | |  | |   / .'| |  | '  | |  | |  | | 
| |  | |  | |  | |  | /  | |  '  `-' |  | |  | | 
| '  | |  | |  | |  ; |  ; |   `.__. |  | '  | | 
'  `-' /  | |  | |  ' `-'  |   ___ | |  '  `-' / 
 `.__.'  (___)(___) `.__.'_.  (   )' |   `.__.'  
                               ; `-' '           
                                .__.'            
*/

contract Ohayo is ERC721, Ownable, ReentrancyGuard {
    // Merkle Root Variables
    bytes32 public merkleRootGroup1;
    bytes32 public merkleRootGroup2;

    mapping(address => uint256) public wlMintedCount;
    mapping(address => uint256) public publicMintedCount;

    // Contract Variables
    string private baseURI;
    string private unrevealedURI;
    uint256 public mintPrice = 50000000000000000; //0.05 ETH mint price
    uint256 public wlFirstMintPrice = 25000000000000000; //0.025 ETH for first WL mint
    uint256 public constant MAX_WHITELIST_MINT = 2; // Whitelist max mint number
    uint256 public constant MAX_PUBLIC_MINT = 2; // Public max mint number
    uint256 public MAX_SUPPLY = 600; // Maximum number of NFTs
    uint256 public WHITELIST_SALE_SUPPLY = 600; // Number of NFTs available in whitelist sale
    uint256 public totalMinted = 0; // Total number of NFTs minted so far

    // State Variables
    bool public isPaused = false;
    bool public revealed = false;
    bool public whitelistOpen = false;
    bool public publicOpen = false;

    // Events
    event WhitelistMinted(address indexed to, uint256 tokenId);
    event PublicMinted(address indexed to, uint256 tokenId);
    event OwnerMinted(address indexed to, uint256 tokenId);
    event OwnerMintedToFriends(address indexed to, uint256 tokenId);

    event Withdrawn(uint256 amount, address withdrawnTo);
    event BaseURIUpdated(string newBaseURI, address updatedBy);
    event CollectionRevealed(string newBaseURI);
    event EtherReceived(address sender, uint amount);

    // Constructor
    constructor(
        bytes32 merkleRootGroup1_,
        bytes32 merkleRootGroup2_,
        address initialOwner
    ) ERC721("Ohayo", "OHAYO") Ownable(initialOwner) {
        unrevealedURI = "ipfs://QmbLSwALctCxoHFiXgygnThFRGwWpDsncaWPBwfMZkCUuy";
        _setMerkleRootGroup1(merkleRootGroup1_);
        _setMerkleRootGroup2(merkleRootGroup2_);
    }

    // Check if address is whitelisted
    function checkIsWhitelisted(
        bytes32[] calldata _merkleProof
    ) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));

        // Check against the first group's Merkle Root
        if (MerkleProof.verify(_merkleProof, merkleRootGroup1, leaf)) {
            return true;
        }

        // Check against the second group's Merkle Root
        if (MerkleProof.verify(_merkleProof, merkleRootGroup2, leaf)) {
            return true;
        }

        // Address is not whitelisted in either group
        return false;
    }

    // Whitelist Mint
    function whitelistMint(
        bytes32[] calldata _merkleProof,
        uint256 numTokens,
        uint256 group
    ) public payable nonReentrant whenNotPaused {
        require(whitelistOpen, "Whitelist sale is not open");
        require(group == 1 || group == 2, "Invalid group specified");
        require(totalMinted + numTokens <= MAX_SUPPLY, "Exceeds max supply");
        require(
            totalMinted + numTokens <= WHITELIST_SALE_SUPPLY,
            "Minting would exceed whitelist supply"
        );
        require(
            wlMintedCount[msg.sender] + numTokens <= MAX_WHITELIST_MINT,
            "Cannot mint more than 2 tokens for WL"
        );
        require(
            numTokens > 0 && numTokens <= MAX_WHITELIST_MINT,
            "Can mint 1 to 2 tokens"
        );

        // Find Leaf
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        bytes32 merkleRoot = group == 1 ? merkleRootGroup1 : merkleRootGroup2;

        require(
            MerkleProof.verify(_merkleProof, merkleRoot, leaf),
            group == 1
                ? "Invalid Address: Personal Whitelist Group"
                : "Invalid Address: Collab Whitelist Group"
        );

        // Calculate token cost
        uint256 cost = calculateCost(msg.sender, numTokens, group);
        require(msg.value == cost, "Incorrect ETH value sent");

        // Mint tokens
        mintTokens(msg.sender, numTokens, MintType.Whitelist);

        // Update claimed tokens count
        wlMintedCount[msg.sender] += numTokens;
    }

    // Public Mint
    function publicMint(
        uint256 numTokens
    ) public payable nonReentrant whenNotPaused {
        require(publicOpen, "Public sale is not open");
        require(numTokens > 0, "Must mint at least one token");
        require(numTokens <= MAX_PUBLIC_MINT, "Cannot mint more than 2 tokens");
        require(totalMinted + numTokens <= MAX_SUPPLY, "Exceeds max supply");
        require(
            publicMintedCount[msg.sender] + numTokens <= 2,
            "Max 2 NFTs per address in public mint"
        );
        require(msg.value == mintPrice * numTokens, "Insufficient ETH sent");

        mintTokens(msg.sender, numTokens, MintType.Public);

        // Update public minted count
        publicMintedCount[msg.sender] += numTokens;
    }

    // Owner Mint
    function ownerMint(
        address to,
        uint256 numTokens
    ) public onlyOwner whenNotPaused {
        require(
            totalMinted + numTokens <= MAX_SUPPLY,
            "Minting would exceed max supply"
        );
        require(numTokens > 0, "Must mint at least one token");
        require(
            numTokens <= 60,
            "Owner can only mint up to 60 tokens at a time"
        );

        mintTokens(to, numTokens, MintType.Owner);
    }

    // Owner Mint to Multiple Addresses
    function ownerMintToFriends(
        address[] calldata toAddresses
    ) public onlyOwner whenNotPaused {
        require(
            totalMinted + toAddresses.length <= MAX_SUPPLY,
            "Minting would exceed max supply"
        );

        for (uint256 i = 0; i < toAddresses.length; i++) {
            address to = toAddresses[i];
            uint256 newTokenId = totalMinted + 1;

            _mint(to, newTokenId);

            totalMinted++;
            emit OwnerMintedToFriends(to, newTokenId);
        }
    }

    // Withdraw Function
    function withdraw(
        address payable withdrawalAddress,
        uint256 amount
    ) external onlyOwner nonReentrant {
        require(withdrawalAddress != address(0), "Invalid withdrawal address");
        require(amount > 0, "Amount must be greater than 0");
        require(
            address(this).balance >= amount,
            "Insufficient contract balance"
        );

        (bool sent, ) = withdrawalAddress.call{value: amount}("");
        require(sent, "Failed to send Ether");
        emit Withdrawn(amount, withdrawalAddress);
    }

    //Reveal NFTs
    function reveal(string memory _newBaseURI) external onlyOwner {
        revealed = true;
        baseURI = _newBaseURI;
        emit CollectionRevealed(_newBaseURI);
    }

    // Sale State Functions
    function startWhitelistSale() external onlyOwner {
        whitelistOpen = true;
    }

    function startPublicSale() external onlyOwner {
        publicOpen = true;
    }

    function stopWhitelistSale() external onlyOwner {
        whitelistOpen = false;
    }

    function stopPublicSale() external onlyOwner {
        publicOpen = false;
    }

    // Pause Function
    modifier whenNotPaused() {
        require(!isPaused, "Contract is paused");
        _;
    }

    function pause() external onlyOwner {
        isPaused = true;
    }

    function unpause() external onlyOwner {
        isPaused = false;
    }

    // Override Functions
    function tokenURI(
        uint256 tokenId
    ) public view virtual override returns (string memory) {
        _requireOwned(tokenId);
        if (!revealed) {
            return unrevealedURI; // All tokens point to a common unrevealed metadata
        } else {
            return
                string(
                    abi.encodePacked(
                        _baseURI(),
                        Strings.toString(tokenId),
                        ".json"
                    )
                );
        }
    }

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

    // Internal Functions
    function _setMerkleRootGroup1(
        bytes32 merkleRootGroup1_
    ) internal onlyOwner {
        merkleRootGroup1 = merkleRootGroup1_;
    }

    function _setMerkleRootGroup2(
        bytes32 merkleRootGroup2_
    ) internal onlyOwner {
        merkleRootGroup2 = merkleRootGroup2_;
    }

    // WL Helper Functions

    // Calculate cost
    function calculateCost(
        address minter,
        uint256 numTokens,
        uint256 group
    ) private view returns (uint256) {
        uint256 cost = 0;
        // If user is personal WL
        if (group == 1) {
            uint256 tokensAlreadyMinted = wlMintedCount[minter];
            if (tokensAlreadyMinted == 0) {
                cost += wlFirstMintPrice; // .025 ETH for first mint
                if (numTokens > 1) {
                    cost += (numTokens - 1) * mintPrice; // .05 ETH for subsequent mints
                }
            } else {
                cost = numTokens * mintPrice;
            }
            // If user is collab WL
        } else {
            cost = numTokens * mintPrice;
        }
        return cost;
    }

    // Mint tokens
    enum MintType {
        Public,
        Whitelist,
        Owner
    }

    function mintTokens(
        address to,
        uint256 numTokens,
        MintType mintType
    ) private {
        for (uint256 i = 0; i < numTokens; i++) {
            uint256 newTokenId = totalMinted + 1;
            _mint(to, newTokenId);
            totalMinted++;
            if (mintType == MintType.Public) {
                emit PublicMinted(to, newTokenId);
            } else if (mintType == MintType.Whitelist) {
                emit WhitelistMinted(to, newTokenId);
            } else if (mintType == MintType.Owner) {
                emit OwnerMinted(to, newTokenId);
            }
        }
    }

    // Setter Functions
    function setBaseURI(string memory newBaseURI) external onlyOwner {
        baseURI = newBaseURI;
        emit BaseURIUpdated(newBaseURI, msg.sender);
    }

    function setMintPrice(uint256 newMintPrice) external onlyOwner {
        mintPrice = newMintPrice;
    }

    function setWhitelistMintPrice(
        uint256 newWhitelistMintPrice
    ) external onlyOwner {
        wlFirstMintPrice = newWhitelistMintPrice;
    }

    function setMerkleRootGroup1(bytes32 newMerkleRoot) external onlyOwner {
        _setMerkleRootGroup1(newMerkleRoot);
    }

    function setMerkleRootGroup2(bytes32 newMerkleRoot) external onlyOwner {
        _setMerkleRootGroup2(newMerkleRoot);
    }

    function setMaxSupply(uint256 newMaxSupply) external onlyOwner {
        require(
            newMaxSupply >= totalMinted,
            "New max supply must be greater than total minted"
        );
        require(
            newMaxSupply <= 1000,
            "New max supply must be less than or equal to 1000"
        );
        MAX_SUPPLY = newMaxSupply;
    }

    function setWhitelistSupply(
        uint256 newMaxWhitelistSupply
    ) external onlyOwner {
        require(
            newMaxWhitelistSupply >= totalMinted,
            "New max supply must be greater than total minted"
        );
        require(
            newMaxWhitelistSupply <= 1000,
            "New max supply must be less than or equal to 1000"
        );
        WHITELIST_SALE_SUPPLY = newMaxWhitelistSupply;
    }

    // Getter Functions
    function getBaseURI() public view onlyOwner returns (string memory) {
        return baseURI;
    }

    // Recover ERC20 Tokens
    function recoverERC20(
        address tokenAddress,
        uint256 tokenAmount,
        address to
    ) external onlyOwner {
        require(to != address(0), "Cannot send to zero address");
        IERC20(tokenAddress).transfer(to, tokenAmount);
    }

    // Recover ERC721 Tokens
    function recoverERC721(
        address tokenAddress,
        uint256 tokenId,
        address to
    ) external onlyOwner {
        require(to != address(0), "Cannot send to zero address");
        IERC721(tokenAddress).transferFrom(address(this), to, tokenId);
    }

    // Fallback Functions
    fallback() external payable {
        emit EtherReceived(msg.sender, msg.value);
    }

    receive() external payable {
        emit EtherReceived(msg.sender, msg.value);
    }
}

File 2 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

File 3 of 16 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 4 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

File 5 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.20;

import {IERC721} from "./IERC721.sol";
import {IERC721Receiver} from "./IERC721Receiver.sol";
import {IERC721Metadata} from "./extensions/IERC721Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {Strings} from "../../utils/Strings.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";
import {IERC721Errors} from "../../interfaces/draft-IERC6093.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    mapping(uint256 tokenId => address) private _owners;

    mapping(address owner => uint256) private _balances;

    mapping(uint256 tokenId => address) private _tokenApprovals;

    mapping(address owner => mapping(address operator => bool)) private _operatorApprovals;

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual returns (uint256) {
        if (owner == address(0)) {
            revert ERC721InvalidOwner(address(0));
        }
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual returns (address) {
        return _requireOwned(tokenId);
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual {
        _approve(to, tokenId, _msgSender());
    }

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

        return _getApproved(tokenId);
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists
        // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.
        address previousOwner = _update(to, tokenId, _msgSender());
        if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {
        transferFrom(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     *
     * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the
     * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances
     * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by
     * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.
     */
    function _getApproved(uint256 tokenId) internal view virtual returns (address) {
        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in
     * particular (ignoring whether it is owned by `owner`).
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {
        return
            spender != address(0) &&
            (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);
    }

    /**
     * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.
     * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets
     * the `spender` for the specific `tokenId`.
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {
        if (!_isAuthorized(owner, spender, tokenId)) {
            if (owner == address(0)) {
                revert ERC721NonexistentToken(tokenId);
            } else {
                revert ERC721InsufficientApproval(spender, tokenId);
            }
        }
    }

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that
     * a uint256 would ever overflow from increments when these increments are bounded to uint128 values.
     *
     * WARNING: Increasing an account's balance using this function tends to be paired with an override of the
     * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership
     * remain consistent with one another.
     */
    function _increaseBalance(address account, uint128 value) internal virtual {
        unchecked {
            _balances[account] += value;
        }
    }

    /**
     * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner
     * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that
     * `auth` is either the owner of the token, or approved to operate on the token (by the owner).
     *
     * Emits a {Transfer} event.
     *
     * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.
     */
    function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {
        address from = _ownerOf(tokenId);

        // Perform (optional) operator check
        if (auth != address(0)) {
            _checkAuthorized(from, auth, tokenId);
        }

        // Execute the update
        if (from != address(0)) {
            // Clear approval. No need to re-authorize or emit the Approval event
            _approve(address(0), tokenId, address(0), false);

            unchecked {
                _balances[from] -= 1;
            }
        }

        if (to != address(0)) {
            unchecked {
                _balances[to] += 1;
            }
        }

        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        return from;
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner != address(0)) {
            revert ERC721InvalidSender(address(0));
        }
    }

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        } else if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

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

    /**
     * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {
        _transfer(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is
     * either the owner of the token, or approved to operate on all tokens held by this owner.
     *
     * Emits an {Approval} event.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address to, uint256 tokenId, address auth) internal {
        _approve(to, tokenId, auth, true);
    }

    /**
     * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not
     * emitted in the context of transfers.
     */
    function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {
        // Avoid reading the owner unless necessary
        if (emitEvent || auth != address(0)) {
            address owner = _requireOwned(tokenId);

            // We do not use _isAuthorized because single-token approvals should not be able to call approve
            if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {
                revert ERC721InvalidApprover(auth);
            }

            if (emitEvent) {
                emit Approval(owner, to, tokenId);
            }
        }

        _tokenApprovals[tokenId] = to;
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Requirements:
     * - operator can't be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        if (operator == address(0)) {
            revert ERC721InvalidOperator(operator);
        }
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).
     * Returns the owner.
     *
     * Overrides to ownership logic should be done to {_ownerOf}.
     */
    function _requireOwned(uint256 tokenId) internal view returns (address) {
        address owner = _ownerOf(tokenId);
        if (owner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        }
        return owner;
    }

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the
     * recipient doesn't accept the token transfer. The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private {
        if (to.code.length > 0) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                if (retval != IERC721Receiver.onERC721Received.selector) {
                    revert ERC721InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert ERC721InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }
}

File 6 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;

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

File 8 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.20;

import {IERC721} from "../IERC721.sol";

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

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

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

File 9 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

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

File 10 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

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

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

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

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

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

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

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

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

File 11 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

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

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        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_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

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

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

File 12 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.20;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the Merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates Merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     *@dev The multiproof provided is not valid.
     */
    error MerkleProofInvalidMultiproof();

    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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

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

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

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

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

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

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

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

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

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

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Sorts the pair (a, b) and hashes the result.
     */
    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    /**
     * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.
     */
    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 13 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./IERC165.sol";

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

File 14 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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 15 of 16 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    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 subtraction of two unsigned integers, with an overflow flag.
     */
    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.
     */
    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.
     */
    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.
     */
    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 largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

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

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

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

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

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

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

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

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 16 of 16 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

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

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

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

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

Settings
{
  "evmVersion": "paris",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes32","name":"merkleRootGroup1_","type":"bytes32"},{"internalType":"bytes32","name":"merkleRootGroup2_","type":"bytes32"},{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newBaseURI","type":"string"},{"indexed":false,"internalType":"address","name":"updatedBy","type":"address"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newBaseURI","type":"string"}],"name":"CollectionRevealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EtherReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"OwnerMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"OwnerMintedToFriends","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":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"PublicMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"WhitelistMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"withdrawnTo","type":"address"}],"name":"Withdrawn","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_PUBLIC_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WHITELIST_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_SALE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"checkIsWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootGroup1","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootGroup2","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"toAddresses","type":"address[]"}],"name":"ownerMintToFriends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"recoverERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setMerkleRootGroup1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setMerkleRootGroup2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newWhitelistMintPrice","type":"uint256"}],"name":"setWhitelistMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxWhitelistSupply","type":"uint256"}],"name":"setWhitelistSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"numTokens","type":"uint256"},{"internalType":"uint256","name":"group","type":"uint256"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"withdrawalAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlFirstMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wlMintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405266b1a2bc2ec50000600e556658d15e17628000600f5561025860105561025860115560006012556000601360006101000a81548160ff0219169083151502179055506000601360016101000a81548160ff0219169083151502179055506000601360026101000a81548160ff0219169083151502179055506000601360036101000a81548160ff021916908315150217905550348015620000a457600080fd5b5060405162005ed238038062005ed28339818101604052810190620000ca9190620004b5565b806040518060400160405280600581526020017f4f6861796f0000000000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f4f4841594f00000000000000000000000000000000000000000000000000000081525081600090816200014891906200078b565b5080600190816200015a91906200078b565b505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620001d25760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620001c9919062000883565b60405180910390fd5b620001e3816200024260201b60201c565b50600160078190555060405180606001604052806035815260200162005e9d60359139600d90816200021691906200078b565b5062000228836200030860201b60201c565b62000239826200032260201b60201c565b505050620008a0565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003186200033c60201b60201c565b8060088190555050565b620003326200033c60201b60201c565b8060098190555050565b6200034c620003de60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000372620003e660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620003dc576200039e620003de60201b60201c565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401620003d3919062000883565b60405180910390fd5b565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080fd5b6000819050919050565b6200042a8162000415565b81146200043657600080fd5b50565b6000815190506200044a816200041f565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200047d8262000450565b9050919050565b6200048f8162000470565b81146200049b57600080fd5b50565b600081519050620004af8162000484565b92915050565b600080600060608486031215620004d157620004d062000410565b5b6000620004e18682870162000439565b9350506020620004f48682870162000439565b925050604062000507868287016200049e565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200059357607f821691505b602082108103620005a957620005a86200054b565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006137fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005d4565b6200061f8683620005d4565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200066c62000666620006608462000637565b62000641565b62000637565b9050919050565b6000819050919050565b62000688836200064b565b620006a0620006978262000673565b848454620005e1565b825550505050565b600090565b620006b7620006a8565b620006c48184846200067d565b505050565b5b81811015620006ec57620006e0600082620006ad565b600181019050620006ca565b5050565b601f8211156200073b576200070581620005af565b6200071084620005c4565b8101602085101562000720578190505b620007386200072f85620005c4565b830182620006c9565b50505b505050565b600082821c905092915050565b6000620007606000198460080262000740565b1980831691505092915050565b60006200077b83836200074d565b9150826002028217905092915050565b620007968262000511565b67ffffffffffffffff811115620007b257620007b16200051c565b5b620007be82546200057a565b620007cb828285620006f0565b600060209050601f831160018114620008035760008415620007ee578287015190505b620007fa85826200076d565b8655506200086a565b601f1984166200081386620005af565b60005b828110156200083d5784890151825560018201915060208501945060208101905062000816565b868310156200085d578489015162000859601f8916826200074d565b8355505b6001600288020188555050505b505050505050565b6200087d8162000470565b82525050565b60006020820190506200089a600083018462000872565b92915050565b6155ed80620008b06000396000f3fe6080604052600436106103395760003560e01c80636f8b44b0116101ab578063b187bd26116100f7578063e985e9c511610095578063f3fef3a31161006f578063f3fef3a314610c13578063f4a0a52814610c3c578063fb19549014610c65578063ff44e91514610c8157610379565b8063e985e9c514610b84578063f0e9fcd114610bc1578063f2fde38b14610bea57610379565b8063ba70c515116100d1578063ba70c51514610ada578063c08dfd3c14610b05578063c87b56dd14610b30578063da1b91c314610b6d57610379565b8063b187bd2614610a5d578063b51609b414610a88578063b88d4fde14610ab157610379565b80638da5cb5b11610164578063a1e57ac11161013e578063a1e57ac1146109b7578063a22cb465146109e0578063a2309ff814610a09578063a611708e14610a3457610379565b80638da5cb5b146109365780638f0f1a6c1461096157806395d89b411461098c57610379565b80636f8b44b01461084c57806370a0823114610875578063714c5398146108b2578063715018a6146108dd5780637db3aecc146108f45780638456cb591461091f57610379565b80633f4ba83a1161028557806355f804b31161022357806365f13097116101fd57806365f13097146107a05780636817c76c146107cb57806368e076b4146107f65780636e4773301461082157610379565b806355f804b3146106fd5780636352211e14610726578063646318831461076357610379565b806348571b351161025f57806348571b35146106435780634c2612471461068057806351830227146106a957806355a63bf4146106d457610379565b80633f4ba83a146105da57806342842e0e146105f1578063484b973c1461061a57610379565b80630d16d741116102f257806323b872dd116102cc57806323b872dd1461052d5780632db115441461055657806332cb6b0c1461057257806334c489431461059d57610379565b80630d16d741146104b05780630f2de756146104db5780631eb38c431461050457610379565b806301ffc9a7146103b45780630474b696146103f157806306fdde0314610408578063081812fc14610433578063095ea7b3146104705780630c1c972a1461049957610379565b36610379577f1e57e3bb474320be3d2c77138f75b7c3941292d647f5f9634e33a8e94e0e069b333460405161036f929190613979565b60405180910390a1005b7f1e57e3bb474320be3d2c77138f75b7c3941292d647f5f9634e33a8e94e0e069b33346040516103aa929190613979565b60405180910390a1005b3480156103c057600080fd5b506103db60048036038101906103d69190613a0e565b610c98565b6040516103e89190613a56565b60405180910390f35b3480156103fd57600080fd5b50610406610d7a565b005b34801561041457600080fd5b5061041d610d9f565b60405161042a9190613b01565b60405180910390f35b34801561043f57600080fd5b5061045a60048036038101906104559190613b4f565b610e31565b6040516104679190613b7c565b60405180910390f35b34801561047c57600080fd5b5061049760048036038101906104929190613bc3565b610e4d565b005b3480156104a557600080fd5b506104ae610e63565b005b3480156104bc57600080fd5b506104c5610e88565b6040516104d29190613c1c565b60405180910390f35b3480156104e757600080fd5b5061050260048036038101906104fd9190613c63565b610e8e565b005b34801561051057600080fd5b5061052b60048036038101906105269190613c63565b610ea2565b005b34801561053957600080fd5b50610554600480360381019061054f9190613c90565b610eb6565b005b610570600480360381019061056b9190613b4f565b610fb8565b005b34801561057e57600080fd5b50610587611282565b6040516105949190613ce3565b60405180910390f35b3480156105a957600080fd5b506105c460048036038101906105bf9190613cfe565b611288565b6040516105d19190613ce3565b60405180910390f35b3480156105e657600080fd5b506105ef6112a0565b005b3480156105fd57600080fd5b5061061860048036038101906106139190613c90565b6112c5565b005b34801561062657600080fd5b50610641600480360381019061063c9190613bc3565b6112e5565b005b34801561064f57600080fd5b5061066a60048036038101906106659190613d90565b611426565b6040516106779190613a56565b60405180910390f35b34801561068c57600080fd5b506106a760048036038101906106a29190613f0d565b611518565b005b3480156106b557600080fd5b506106be611585565b6040516106cb9190613a56565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f69190613b4f565b611598565b005b34801561070957600080fd5b50610724600480360381019061071f9190613f0d565b611634565b005b34801561073257600080fd5b5061074d60048036038101906107489190613b4f565b611688565b60405161075a9190613b7c565b60405180910390f35b34801561076f57600080fd5b5061078a60048036038101906107859190613cfe565b61169a565b6040516107979190613ce3565b60405180910390f35b3480156107ac57600080fd5b506107b56116b2565b6040516107c29190613ce3565b60405180910390f35b3480156107d757600080fd5b506107e06116b7565b6040516107ed9190613ce3565b60405180910390f35b34801561080257600080fd5b5061080b6116bd565b6040516108189190613ce3565b60405180910390f35b34801561082d57600080fd5b506108366116c3565b6040516108439190613c1c565b60405180910390f35b34801561085857600080fd5b50610873600480360381019061086e9190613b4f565b6116c9565b005b34801561088157600080fd5b5061089c60048036038101906108979190613cfe565b611765565b6040516108a99190613ce3565b60405180910390f35b3480156108be57600080fd5b506108c761181f565b6040516108d49190613b01565b60405180910390f35b3480156108e957600080fd5b506108f26118b9565b005b34801561090057600080fd5b506109096118cd565b6040516109169190613a56565b60405180910390f35b34801561092b57600080fd5b506109346118e0565b005b34801561094257600080fd5b5061094b611905565b6040516109589190613b7c565b60405180910390f35b34801561096d57600080fd5b5061097661192f565b6040516109839190613ce3565b60405180910390f35b34801561099857600080fd5b506109a1611935565b6040516109ae9190613b01565b60405180910390f35b3480156109c357600080fd5b506109de60048036038101906109d99190613fac565b6119c7565b005b3480156109ec57600080fd5b50610a076004803603810190610a029190614025565b611b4b565b005b348015610a1557600080fd5b50610a1e611b61565b604051610a2b9190613ce3565b60405180910390f35b348015610a4057600080fd5b50610a5b6004803603810190610a569190613b4f565b611b67565b005b348015610a6957600080fd5b50610a72611b79565b604051610a7f9190613a56565b60405180910390f35b348015610a9457600080fd5b50610aaf6004803603810190610aaa9190614065565b611b8c565b005b348015610abd57600080fd5b50610ad86004803603810190610ad39190614159565b611c87565b005b348015610ae657600080fd5b50610aef611ca4565b604051610afc9190613a56565b60405180910390f35b348015610b1157600080fd5b50610b1a611cb7565b604051610b279190613ce3565b60405180910390f35b348015610b3c57600080fd5b50610b576004803603810190610b529190613b4f565b611cbc565b604051610b649190613b01565b60405180910390f35b348015610b7957600080fd5b50610b82611da7565b005b348015610b9057600080fd5b50610bab6004803603810190610ba691906141dc565b611dcc565b604051610bb89190613a56565b60405180910390f35b348015610bcd57600080fd5b50610be86004803603810190610be39190614065565b611e60565b005b348015610bf657600080fd5b50610c116004803603810190610c0c9190613cfe565b611f4b565b005b348015610c1f57600080fd5b50610c3a6004803603810190610c35919061425a565b611fd1565b005b348015610c4857600080fd5b50610c636004803603810190610c5e9190613b4f565b6121c8565b005b610c7f6004803603810190610c7a919061429a565b6121da565b005b348015610c8d57600080fd5b50610c96612626565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d6357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610d735750610d728261264b565b5b9050919050565b610d826126b5565b6000601360026101000a81548160ff021916908315150217905550565b606060008054610dae9061433d565b80601f0160208091040260200160405190810160405280929190818152602001828054610dda9061433d565b8015610e275780601f10610dfc57610100808354040283529160200191610e27565b820191906000526020600020905b815481529060010190602001808311610e0a57829003601f168201915b5050505050905090565b6000610e3c8261273c565b50610e46826127c4565b9050919050565b610e5f8282610e5a612801565b612809565b5050565b610e6b6126b5565b6001601360036101000a81548160ff021916908315150217905550565b60095481565b610e966126b5565b610e9f8161281b565b50565b610eaa6126b5565b610eb38161282d565b50565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f285760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610f1f9190613b7c565b60405180910390fd5b6000610f3c8383610f37612801565b61283f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fb2578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610fa99392919061436e565b60405180910390fd5b50505050565b610fc0612a59565b601360009054906101000a900460ff1615611010576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611007906143f1565b60405180910390fd5b601360039054906101000a900460ff1661105f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110569061445d565b60405180910390fd5b600081116110a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611099906144c9565b60405180910390fd5b60028111156110e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dd90614535565b60405180910390fd5b601054816012546110f79190614584565b1115611138576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112f90614604565b60405180910390fd5b600281600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111859190614584565b11156111c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bd90614696565b60405180910390fd5b80600e546111d491906146b6565b3414611215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120c90614744565b60405180910390fd5b61122133826000612a9f565b80600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112709190614584565b9250508190555061127f612c73565b50565b60105481565b600b6020528060005260406000206000915090505481565b6112a86126b5565b6000601360006101000a81548160ff021916908315150217905550565b6112e083838360405180602001604052806000815250611c87565b505050565b6112ed6126b5565b601360009054906101000a900460ff161561133d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611334906143f1565b60405180910390fd5b6010548160125461134e9190614584565b111561138f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611386906147b0565b60405180910390fd5b600081116113d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c9906144c9565b60405180910390fd5b603c811115611416576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140d90614842565b60405180910390fd5b61142282826002612a9f565b5050565b6000803360405160200161143a91906148aa565b6040516020818303038152906040528051906020012090506114a0848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060085483612c7d565b156114af576001915050611512565b6114fd848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060095483612c7d565b1561150c576001915050611512565b60009150505b92915050565b6115206126b5565b6001601360016101000a81548160ff02191690831515021790555080600c908161154a9190614a71565b507f09aeffebf08fc44a38a139bbfafcc95e27b04cc8690c84246a34c2bd67f3d9b98160405161157a9190613b01565b60405180910390a150565b601360019054906101000a900460ff1681565b6115a06126b5565b6012548110156115e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115dc90614bb5565b60405180910390fd5b6103e881111561162a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162190614c47565b60405180910390fd5b8060118190555050565b61163c6126b5565b80600c908161164b9190614a71565b507f287fb35d24416ff0dd04e0934f29883f30a8ed9a5a8aef3bf65d165b01aa0e42813360405161167d929190614c67565b60405180910390a150565b60006116938261273c565b9050919050565b600a6020528060005260406000206000915090505481565b600281565b600e5481565b60115481565b60085481565b6116d16126b5565b601254811015611716576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170d90614bb5565b60405180910390fd5b6103e881111561175b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175290614c47565b60405180910390fd5b8060108190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117d85760006040517f89c62b640000000000000000000000000000000000000000000000000000000081526004016117cf9190613b7c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606118296126b5565b600c80546118369061433d565b80601f01602080910402602001604051908101604052809291908181526020018280546118629061433d565b80156118af5780601f10611884576101008083540402835291602001916118af565b820191906000526020600020905b81548152906001019060200180831161189257829003601f168201915b5050505050905090565b6118c16126b5565b6118cb6000612c94565b565b601360029054906101000a900460ff1681565b6118e86126b5565b6001601360006101000a81548160ff021916908315150217905550565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f5481565b6060600180546119449061433d565b80601f01602080910402602001604051908101604052809291908181526020018280546119709061433d565b80156119bd5780601f10611992576101008083540402835291602001916119bd565b820191906000526020600020905b8154815290600101906020018083116119a057829003601f168201915b5050505050905090565b6119cf6126b5565b601360009054906101000a900460ff1615611a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a16906143f1565b60405180910390fd5b60105482829050601254611a339190614584565b1115611a74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6b906147b0565b60405180910390fd5b60005b82829050811015611b46576000838383818110611a9757611a96614c97565b5b9050602002016020810190611aac9190613cfe565b905060006001601254611abf9190614584565b9050611acb8282612d5a565b60126000815480929190611ade90614cc6565b91905055508173ffffffffffffffffffffffffffffffffffffffff167f8948190f8a410df5d2482307c1bcf45b2452c4c52e341e8bbd80b0190bfb780582604051611b299190613ce3565b60405180910390a250508080611b3e90614cc6565b915050611a77565b505050565b611b5d611b56612801565b8383612e53565b5050565b60125481565b611b6f6126b5565b80600f8190555050565b601360009054906101000a900460ff1681565b611b946126b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfa90614d5a565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82846040518363ffffffff1660e01b8152600401611c3e929190613979565b6020604051808303816000875af1158015611c5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c819190614d8f565b50505050565b611c92848484610eb6565b611c9e84848484612fc2565b50505050565b601360039054906101000a900460ff1681565b600281565b6060611cc78261273c565b50601360019054906101000a900460ff16611d6e57600d8054611ce99061433d565b80601f0160208091040260200160405190810160405280929190818152602001828054611d159061433d565b8015611d625780601f10611d3757610100808354040283529160200191611d62565b820191906000526020600020905b815481529060010190602001808311611d4557829003601f168201915b50505050509050611da2565b611d76613179565b611d7f8361320b565b604051602001611d90929190614e44565b60405160208183030381529060405290505b919050565b611daf6126b5565b6000601360036101000a81548160ff021916908315150217905550565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e686126b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ed7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ece90614d5a565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166323b872dd3083856040518463ffffffff1660e01b8152600401611f1493929190614e73565b600060405180830381600087803b158015611f2e57600080fd5b505af1158015611f42573d6000803e3d6000fd5b50505050505050565b611f536126b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611fc55760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611fbc9190613b7c565b60405180910390fd5b611fce81612c94565b50565b611fd96126b5565b611fe1612a59565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612050576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204790614ef6565b60405180910390fd5b60008111612093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208a90614f62565b60405180910390fd5b804710156120d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120cd90614fce565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516120fc9061501f565b60006040518083038185875af1925050503d8060008114612139576040519150601f19603f3d011682016040523d82523d6000602084013e61213e565b606091505b5050905080612182576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217990615080565b60405180910390fd5b7f8c7cdad0d12a8db3e23561b42da6f10c8137914c97beff202213a410e1f520a382846040516121b39291906150f5565b60405180910390a1506121c4612c73565b5050565b6121d06126b5565b80600e8190555050565b6121e2612a59565b601360009054906101000a900460ff1615612232576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612229906143f1565b60405180910390fd5b601360029054906101000a900460ff16612281576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122789061516a565b60405180910390fd5b60018114806122905750600281145b6122cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c6906151d6565b60405180910390fd5b601054826012546122e09190614584565b1115612321576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231890614604565b60405180910390fd5b601154826012546123329190614584565b1115612373576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236a90615268565b60405180910390fd5b600282600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123c09190614584565b1115612401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f8906152fa565b60405180910390fd5b600082118015612412575060028211155b612451576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244890615366565b60405180910390fd5b60003360405160200161246491906148aa565b60405160208183030381529060405280519060200120905060006001831461248e57600954612492565b6008545b90506124e0868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508284612c7d565b600184146125065760405180606001604052806027815260200161559160279139612520565b604051806060016040528060298152602001615568602991395b90612561576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125589190613b01565b60405180910390fd5b50600061256f3386866132d9565b90508034146125b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125aa906153d2565b60405180910390fd5b6125bf33866001612a9f565b84600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461260e9190614584565b92505081905550505050612620612c73565b50505050565b61262e6126b5565b6001601360026101000a81548160ff021916908315150217905550565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6126bd612801565b73ffffffffffffffffffffffffffffffffffffffff166126db611905565b73ffffffffffffffffffffffffffffffffffffffff161461273a576126fe612801565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016127319190613b7c565b60405180910390fd5b565b600080612748836133ad565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036127bb57826040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016127b29190613ce3565b60405180910390fd5b80915050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600033905090565b61281683838360016133ea565b505050565b6128236126b5565b8060088190555050565b6128356126b5565b8060098190555050565b60008061284b846133ad565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461288d5761288c8184866135af565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461291e576128cf6000856000806133ea565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146129a1576001600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846002600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b600260075403612a95576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600781905550565b60005b82811015612c6d5760006001601254612abb9190614584565b9050612ac78582612d5a565b60126000815480929190612ada90614cc6565b919050555060006002811115612af357612af26153f2565b5b836002811115612b0657612b056153f2565b5b03612b5e578473ffffffffffffffffffffffffffffffffffffffff167fab9980fb1d2916bce9017edd1be458e3f56d0899b3367cb3a8be97483fbe069b82604051612b519190613ce3565b60405180910390a2612c59565b60016002811115612b7257612b716153f2565b5b836002811115612b8557612b846153f2565b5b03612bdd578473ffffffffffffffffffffffffffffffffffffffff167fce77e469b386be007f957632f6f65216f2e74c5daa303aff682e8296f628d01082604051612bd09190613ce3565b60405180910390a2612c58565b600280811115612bf057612bef6153f2565b5b836002811115612c0357612c026153f2565b5b03612c57578473ffffffffffffffffffffffffffffffffffffffff167fb50eb0c1f59aa2c3398e720d868b9224179e36125bff674d6df4bae98b2591a582604051612c4e9190613ce3565b60405180910390a25b5b5b508080612c6590614cc6565b915050612aa2565b50505050565b6001600781905550565b600082612c8a8584613673565b1490509392505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612dcc5760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401612dc39190613b7c565b60405180910390fd5b6000612dda8383600061283f565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612e4e5760006040517f73c6ac6e000000000000000000000000000000000000000000000000000000008152600401612e459190613b7c565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612ec457816040517f5b08ba18000000000000000000000000000000000000000000000000000000008152600401612ebb9190613b7c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612fb59190613a56565b60405180910390a3505050565b60008373ffffffffffffffffffffffffffffffffffffffff163b1115613173578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02613006612801565b8685856040518563ffffffff1660e01b81526004016130289493929190615476565b6020604051808303816000875af192505050801561306457506040513d601f19601f8201168201806040525081019061306191906154d7565b60015b6130e8573d8060008114613094576040519150601f19603f3d011682016040523d82523d6000602084013e613099565b606091505b5060008151036130e057836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016130d79190613b7c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461317157836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016131689190613b7c565b60405180910390fd5b505b50505050565b6060600c80546131889061433d565b80601f01602080910402602001604051908101604052809291908181526020018280546131b49061433d565b80156132015780601f106131d657610100808354040283529160200191613201565b820191906000526020600020905b8154815290600101906020018083116131e457829003601f168201915b5050505050905090565b60606000600161321a846136c9565b01905060008167ffffffffffffffff81111561323957613238613de2565b5b6040519080825280601f01601f19166020018201604052801561326b5781602001600182028036833780820191505090505b509050600082602001820190505b6001156132ce578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816132c2576132c1615504565b5b04945060008503613279575b819350505050919050565b6000806000905060018303613391576000600a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000810361337a57600f54826133429190614584565b9150600185111561337557600e5460018661335d9190615533565b61336791906146b6565b826133729190614584565b91505b61338b565b600e548561338891906146b6565b91505b506133a2565b600e548461339f91906146b6565b90505b809150509392505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b80806134235750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156135575760006134338461273c565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561349e57508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b80156134b157506134af8184611dcc565b155b156134f357826040517fa9fbf51f0000000000000000000000000000000000000000000000000000000081526004016134ea9190613b7c565b60405180910390fd5b811561355557838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836004600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b6135ba83838361381c565b61366e57600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361362f57806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016136269190613ce3565b60405180910390fd5b81816040517f177e802f000000000000000000000000000000000000000000000000000000008152600401613665929190613979565b60405180910390fd5b505050565b60008082905060005b84518110156136be576136a98286838151811061369c5761369b614c97565b5b60200260200101516138dd565b915080806136b690614cc6565b91505061367c565b508091505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613727577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161371d5761371c615504565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613764576d04ee2d6d415b85acef8100000000838161375a57613759615504565b5b0492506020810190505b662386f26fc10000831061379357662386f26fc10000838161378957613788615504565b5b0492506010810190505b6305f5e10083106137bc576305f5e10083816137b2576137b1615504565b5b0492506008810190505b61271083106137e15761271083816137d7576137d6615504565b5b0492506004810190505b6064831061380457606483816137fa576137f9615504565b5b0492506002810190505b600a8310613813576001810190505b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156138d457508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061389557506138948484611dcc565b5b806138d357508273ffffffffffffffffffffffffffffffffffffffff166138bb836127c4565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b60008183106138f5576138f08284613908565b613900565b6138ff8383613908565b5b905092915050565b600082600052816020526040600020905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061394a8261391f565b9050919050565b61395a8161393f565b82525050565b6000819050919050565b61397381613960565b82525050565b600060408201905061398e6000830185613951565b61399b602083018461396a565b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6139eb816139b6565b81146139f657600080fd5b50565b600081359050613a08816139e2565b92915050565b600060208284031215613a2457613a236139ac565b5b6000613a32848285016139f9565b91505092915050565b60008115159050919050565b613a5081613a3b565b82525050565b6000602082019050613a6b6000830184613a47565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613aab578082015181840152602081019050613a90565b60008484015250505050565b6000601f19601f8301169050919050565b6000613ad382613a71565b613add8185613a7c565b9350613aed818560208601613a8d565b613af681613ab7565b840191505092915050565b60006020820190508181036000830152613b1b8184613ac8565b905092915050565b613b2c81613960565b8114613b3757600080fd5b50565b600081359050613b4981613b23565b92915050565b600060208284031215613b6557613b646139ac565b5b6000613b7384828501613b3a565b91505092915050565b6000602082019050613b916000830184613951565b92915050565b613ba08161393f565b8114613bab57600080fd5b50565b600081359050613bbd81613b97565b92915050565b60008060408385031215613bda57613bd96139ac565b5b6000613be885828601613bae565b9250506020613bf985828601613b3a565b9150509250929050565b6000819050919050565b613c1681613c03565b82525050565b6000602082019050613c316000830184613c0d565b92915050565b613c4081613c03565b8114613c4b57600080fd5b50565b600081359050613c5d81613c37565b92915050565b600060208284031215613c7957613c786139ac565b5b6000613c8784828501613c4e565b91505092915050565b600080600060608486031215613ca957613ca86139ac565b5b6000613cb786828701613bae565b9350506020613cc886828701613bae565b9250506040613cd986828701613b3a565b9150509250925092565b6000602082019050613cf8600083018461396a565b92915050565b600060208284031215613d1457613d136139ac565b5b6000613d2284828501613bae565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613d5057613d4f613d2b565b5b8235905067ffffffffffffffff811115613d6d57613d6c613d30565b5b602083019150836020820283011115613d8957613d88613d35565b5b9250929050565b60008060208385031215613da757613da66139ac565b5b600083013567ffffffffffffffff811115613dc557613dc46139b1565b5b613dd185828601613d3a565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613e1a82613ab7565b810181811067ffffffffffffffff82111715613e3957613e38613de2565b5b80604052505050565b6000613e4c6139a2565b9050613e588282613e11565b919050565b600067ffffffffffffffff821115613e7857613e77613de2565b5b613e8182613ab7565b9050602081019050919050565b82818337600083830152505050565b6000613eb0613eab84613e5d565b613e42565b905082815260208101848484011115613ecc57613ecb613ddd565b5b613ed7848285613e8e565b509392505050565b600082601f830112613ef457613ef3613d2b565b5b8135613f04848260208601613e9d565b91505092915050565b600060208284031215613f2357613f226139ac565b5b600082013567ffffffffffffffff811115613f4157613f406139b1565b5b613f4d84828501613edf565b91505092915050565b60008083601f840112613f6c57613f6b613d2b565b5b8235905067ffffffffffffffff811115613f8957613f88613d30565b5b602083019150836020820283011115613fa557613fa4613d35565b5b9250929050565b60008060208385031215613fc357613fc26139ac565b5b600083013567ffffffffffffffff811115613fe157613fe06139b1565b5b613fed85828601613f56565b92509250509250929050565b61400281613a3b565b811461400d57600080fd5b50565b60008135905061401f81613ff9565b92915050565b6000806040838503121561403c5761403b6139ac565b5b600061404a85828601613bae565b925050602061405b85828601614010565b9150509250929050565b60008060006060848603121561407e5761407d6139ac565b5b600061408c86828701613bae565b935050602061409d86828701613b3a565b92505060406140ae86828701613bae565b9150509250925092565b600067ffffffffffffffff8211156140d3576140d2613de2565b5b6140dc82613ab7565b9050602081019050919050565b60006140fc6140f7846140b8565b613e42565b90508281526020810184848401111561411857614117613ddd565b5b614123848285613e8e565b509392505050565b600082601f8301126141405761413f613d2b565b5b81356141508482602086016140e9565b91505092915050565b60008060008060808587031215614173576141726139ac565b5b600061418187828801613bae565b945050602061419287828801613bae565b93505060406141a387828801613b3a565b925050606085013567ffffffffffffffff8111156141c4576141c36139b1565b5b6141d08782880161412b565b91505092959194509250565b600080604083850312156141f3576141f26139ac565b5b600061420185828601613bae565b925050602061421285828601613bae565b9150509250929050565b60006142278261391f565b9050919050565b6142378161421c565b811461424257600080fd5b50565b6000813590506142548161422e565b92915050565b60008060408385031215614271576142706139ac565b5b600061427f85828601614245565b925050602061429085828601613b3a565b9150509250929050565b600080600080606085870312156142b4576142b36139ac565b5b600085013567ffffffffffffffff8111156142d2576142d16139b1565b5b6142de87828801613d3a565b945094505060206142f187828801613b3a565b925050604061430287828801613b3a565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061435557607f821691505b6020821081036143685761436761430e565b5b50919050565b60006060820190506143836000830186613951565b614390602083018561396a565b61439d6040830184613951565b949350505050565b7f436f6e7472616374206973207061757365640000000000000000000000000000600082015250565b60006143db601283613a7c565b91506143e6826143a5565b602082019050919050565b6000602082019050818103600083015261440a816143ce565b9050919050565b7f5075626c69632073616c65206973206e6f74206f70656e000000000000000000600082015250565b6000614447601783613a7c565b915061445282614411565b602082019050919050565b600060208201905081810360008301526144768161443a565b9050919050565b7f4d757374206d696e74206174206c65617374206f6e6520746f6b656e00000000600082015250565b60006144b3601c83613a7c565b91506144be8261447d565b602082019050919050565b600060208201905081810360008301526144e2816144a6565b9050919050565b7f43616e6e6f74206d696e74206d6f7265207468616e203220746f6b656e730000600082015250565b600061451f601e83613a7c565b915061452a826144e9565b602082019050919050565b6000602082019050818103600083015261454e81614512565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061458f82613960565b915061459a83613960565b92508282019050808211156145b2576145b1614555565b5b92915050565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b60006145ee601283613a7c565b91506145f9826145b8565b602082019050919050565b6000602082019050818103600083015261461d816145e1565b9050919050565b7f4d61782032204e46547320706572206164647265737320696e207075626c696360008201527f206d696e74000000000000000000000000000000000000000000000000000000602082015250565b6000614680602583613a7c565b915061468b82614624565b604082019050919050565b600060208201905081810360008301526146af81614673565b9050919050565b60006146c182613960565b91506146cc83613960565b92508282026146da81613960565b915082820484148315176146f1576146f0614555565b5b5092915050565b7f496e73756666696369656e74204554482073656e740000000000000000000000600082015250565b600061472e601583613a7c565b9150614739826146f8565b602082019050919050565b6000602082019050818103600083015261475d81614721565b9050919050565b7f4d696e74696e6720776f756c6420657863656564206d617820737570706c7900600082015250565b600061479a601f83613a7c565b91506147a582614764565b602082019050919050565b600060208201905081810360008301526147c98161478d565b9050919050565b7f4f776e65722063616e206f6e6c79206d696e7420757020746f20363020746f6b60008201527f656e7320617420612074696d6500000000000000000000000000000000000000602082015250565b600061482c602d83613a7c565b9150614837826147d0565b604082019050919050565b6000602082019050818103600083015261485b8161481f565b9050919050565b60008160601b9050919050565b600061487a82614862565b9050919050565b600061488c8261486f565b9050919050565b6148a461489f8261393f565b614881565b82525050565b60006148b68284614893565b60148201915081905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026149277fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826148ea565b61493186836148ea565b95508019841693508086168417925050509392505050565b6000819050919050565b600061496e61496961496484613960565b614949565b613960565b9050919050565b6000819050919050565b61498883614953565b61499c61499482614975565b8484546148f7565b825550505050565b600090565b6149b16149a4565b6149bc81848461497f565b505050565b5b818110156149e0576149d56000826149a9565b6001810190506149c2565b5050565b601f821115614a25576149f6816148c5565b6149ff846148da565b81016020851015614a0e578190505b614a22614a1a856148da565b8301826149c1565b50505b505050565b600082821c905092915050565b6000614a4860001984600802614a2a565b1980831691505092915050565b6000614a618383614a37565b9150826002028217905092915050565b614a7a82613a71565b67ffffffffffffffff811115614a9357614a92613de2565b5b614a9d825461433d565b614aa88282856149e4565b600060209050601f831160018114614adb5760008415614ac9578287015190505b614ad38582614a55565b865550614b3b565b601f198416614ae9866148c5565b60005b82811015614b1157848901518255600182019150602085019450602081019050614aec565b86831015614b2e5784890151614b2a601f891682614a37565b8355505b6001600288020188555050505b505050505050565b7f4e6577206d617820737570706c79206d7573742062652067726561746572207460008201527f68616e20746f74616c206d696e74656400000000000000000000000000000000602082015250565b6000614b9f603083613a7c565b9150614baa82614b43565b604082019050919050565b60006020820190508181036000830152614bce81614b92565b9050919050565b7f4e6577206d617820737570706c79206d757374206265206c657373207468616e60008201527f206f7220657175616c20746f2031303030000000000000000000000000000000602082015250565b6000614c31603183613a7c565b9150614c3c82614bd5565b604082019050919050565b60006020820190508181036000830152614c6081614c24565b9050919050565b60006040820190508181036000830152614c818185613ac8565b9050614c906020830184613951565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614cd182613960565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614d0357614d02614555565b5b600182019050919050565b7f43616e6e6f742073656e6420746f207a65726f20616464726573730000000000600082015250565b6000614d44601b83613a7c565b9150614d4f82614d0e565b602082019050919050565b60006020820190508181036000830152614d7381614d37565b9050919050565b600081519050614d8981613ff9565b92915050565b600060208284031215614da557614da46139ac565b5b6000614db384828501614d7a565b91505092915050565b600081905092915050565b6000614dd282613a71565b614ddc8185614dbc565b9350614dec818560208601613a8d565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614e2e600583614dbc565b9150614e3982614df8565b600582019050919050565b6000614e508285614dc7565b9150614e5c8284614dc7565b9150614e6782614e21565b91508190509392505050565b6000606082019050614e886000830186613951565b614e956020830185613951565b614ea2604083018461396a565b949350505050565b7f496e76616c6964207769746864726177616c2061646472657373000000000000600082015250565b6000614ee0601a83613a7c565b9150614eeb82614eaa565b602082019050919050565b60006020820190508181036000830152614f0f81614ed3565b9050919050565b7f416d6f756e74206d7573742062652067726561746572207468616e2030000000600082015250565b6000614f4c601d83613a7c565b9150614f5782614f16565b602082019050919050565b60006020820190508181036000830152614f7b81614f3f565b9050919050565b7f496e73756666696369656e7420636f6e74726163742062616c616e6365000000600082015250565b6000614fb8601d83613a7c565b9150614fc382614f82565b602082019050919050565b60006020820190508181036000830152614fe781614fab565b9050919050565b600081905092915050565b50565b6000615009600083614fee565b915061501482614ff9565b600082019050919050565b600061502a82614ffc565b9150819050919050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b600061506a601483613a7c565b915061507582615034565b602082019050919050565b600060208201905081810360008301526150998161505d565b9050919050565b60006150bb6150b66150b18461391f565b614949565b61391f565b9050919050565b60006150cd826150a0565b9050919050565b60006150df826150c2565b9050919050565b6150ef816150d4565b82525050565b600060408201905061510a600083018561396a565b61511760208301846150e6565b9392505050565b7f57686974656c6973742073616c65206973206e6f74206f70656e000000000000600082015250565b6000615154601a83613a7c565b915061515f8261511e565b602082019050919050565b6000602082019050818103600083015261518381615147565b9050919050565b7f496e76616c69642067726f757020737065636966696564000000000000000000600082015250565b60006151c0601783613a7c565b91506151cb8261518a565b602082019050919050565b600060208201905081810360008301526151ef816151b3565b9050919050565b7f4d696e74696e6720776f756c64206578636565642077686974656c697374207360008201527f7570706c79000000000000000000000000000000000000000000000000000000602082015250565b6000615252602583613a7c565b915061525d826151f6565b604082019050919050565b6000602082019050818103600083015261528181615245565b9050919050565b7f43616e6e6f74206d696e74206d6f7265207468616e203220746f6b656e73206660008201527f6f7220574c000000000000000000000000000000000000000000000000000000602082015250565b60006152e4602583613a7c565b91506152ef82615288565b604082019050919050565b60006020820190508181036000830152615313816152d7565b9050919050565b7f43616e206d696e74203120746f203220746f6b656e7300000000000000000000600082015250565b6000615350601683613a7c565b915061535b8261531a565b602082019050919050565b6000602082019050818103600083015261537f81615343565b9050919050565b7f496e636f7272656374204554482076616c75652073656e740000000000000000600082015250565b60006153bc601883613a7c565b91506153c782615386565b602082019050919050565b600060208201905081810360008301526153eb816153af565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600081519050919050565b600082825260208201905092915050565b600061544882615421565b615452818561542c565b9350615462818560208601613a8d565b61546b81613ab7565b840191505092915050565b600060808201905061548b6000830187613951565b6154986020830186613951565b6154a5604083018561396a565b81810360608301526154b7818461543d565b905095945050505050565b6000815190506154d1816139e2565b92915050565b6000602082840312156154ed576154ec6139ac565b5b60006154fb848285016154c2565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061553e82613960565b915061554983613960565b925082820390508181111561556157615560614555565b5b9291505056fe496e76616c696420416464726573733a20506572736f6e616c2057686974656c6973742047726f7570496e76616c696420416464726573733a20436f6c6c61622057686974656c6973742047726f7570a2646970667358221220992865db76ece2434c477c456e4bb4bbdb21e74adccb239f22200163de3c3a8664736f6c63430008150033697066733a2f2f516d624c5377414c637443786f484669586779676e546846524777577044736e636157504277664d5a6b435575791fc087266e1fbfa704b4c6396539853f62b5cf94d78536be860fe54091713f85f0b3801a1a0e9b118ff13a53681727a2fdeaa4ffb5b017f92dfbd8043045f3e80000000000000000000000005106ed1aa5e49e9d4ec272c4f248a9116507c8d3

Deployed Bytecode

0x6080604052600436106103395760003560e01c80636f8b44b0116101ab578063b187bd26116100f7578063e985e9c511610095578063f3fef3a31161006f578063f3fef3a314610c13578063f4a0a52814610c3c578063fb19549014610c65578063ff44e91514610c8157610379565b8063e985e9c514610b84578063f0e9fcd114610bc1578063f2fde38b14610bea57610379565b8063ba70c515116100d1578063ba70c51514610ada578063c08dfd3c14610b05578063c87b56dd14610b30578063da1b91c314610b6d57610379565b8063b187bd2614610a5d578063b51609b414610a88578063b88d4fde14610ab157610379565b80638da5cb5b11610164578063a1e57ac11161013e578063a1e57ac1146109b7578063a22cb465146109e0578063a2309ff814610a09578063a611708e14610a3457610379565b80638da5cb5b146109365780638f0f1a6c1461096157806395d89b411461098c57610379565b80636f8b44b01461084c57806370a0823114610875578063714c5398146108b2578063715018a6146108dd5780637db3aecc146108f45780638456cb591461091f57610379565b80633f4ba83a1161028557806355f804b31161022357806365f13097116101fd57806365f13097146107a05780636817c76c146107cb57806368e076b4146107f65780636e4773301461082157610379565b806355f804b3146106fd5780636352211e14610726578063646318831461076357610379565b806348571b351161025f57806348571b35146106435780634c2612471461068057806351830227146106a957806355a63bf4146106d457610379565b80633f4ba83a146105da57806342842e0e146105f1578063484b973c1461061a57610379565b80630d16d741116102f257806323b872dd116102cc57806323b872dd1461052d5780632db115441461055657806332cb6b0c1461057257806334c489431461059d57610379565b80630d16d741146104b05780630f2de756146104db5780631eb38c431461050457610379565b806301ffc9a7146103b45780630474b696146103f157806306fdde0314610408578063081812fc14610433578063095ea7b3146104705780630c1c972a1461049957610379565b36610379577f1e57e3bb474320be3d2c77138f75b7c3941292d647f5f9634e33a8e94e0e069b333460405161036f929190613979565b60405180910390a1005b7f1e57e3bb474320be3d2c77138f75b7c3941292d647f5f9634e33a8e94e0e069b33346040516103aa929190613979565b60405180910390a1005b3480156103c057600080fd5b506103db60048036038101906103d69190613a0e565b610c98565b6040516103e89190613a56565b60405180910390f35b3480156103fd57600080fd5b50610406610d7a565b005b34801561041457600080fd5b5061041d610d9f565b60405161042a9190613b01565b60405180910390f35b34801561043f57600080fd5b5061045a60048036038101906104559190613b4f565b610e31565b6040516104679190613b7c565b60405180910390f35b34801561047c57600080fd5b5061049760048036038101906104929190613bc3565b610e4d565b005b3480156104a557600080fd5b506104ae610e63565b005b3480156104bc57600080fd5b506104c5610e88565b6040516104d29190613c1c565b60405180910390f35b3480156104e757600080fd5b5061050260048036038101906104fd9190613c63565b610e8e565b005b34801561051057600080fd5b5061052b60048036038101906105269190613c63565b610ea2565b005b34801561053957600080fd5b50610554600480360381019061054f9190613c90565b610eb6565b005b610570600480360381019061056b9190613b4f565b610fb8565b005b34801561057e57600080fd5b50610587611282565b6040516105949190613ce3565b60405180910390f35b3480156105a957600080fd5b506105c460048036038101906105bf9190613cfe565b611288565b6040516105d19190613ce3565b60405180910390f35b3480156105e657600080fd5b506105ef6112a0565b005b3480156105fd57600080fd5b5061061860048036038101906106139190613c90565b6112c5565b005b34801561062657600080fd5b50610641600480360381019061063c9190613bc3565b6112e5565b005b34801561064f57600080fd5b5061066a60048036038101906106659190613d90565b611426565b6040516106779190613a56565b60405180910390f35b34801561068c57600080fd5b506106a760048036038101906106a29190613f0d565b611518565b005b3480156106b557600080fd5b506106be611585565b6040516106cb9190613a56565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f69190613b4f565b611598565b005b34801561070957600080fd5b50610724600480360381019061071f9190613f0d565b611634565b005b34801561073257600080fd5b5061074d60048036038101906107489190613b4f565b611688565b60405161075a9190613b7c565b60405180910390f35b34801561076f57600080fd5b5061078a60048036038101906107859190613cfe565b61169a565b6040516107979190613ce3565b60405180910390f35b3480156107ac57600080fd5b506107b56116b2565b6040516107c29190613ce3565b60405180910390f35b3480156107d757600080fd5b506107e06116b7565b6040516107ed9190613ce3565b60405180910390f35b34801561080257600080fd5b5061080b6116bd565b6040516108189190613ce3565b60405180910390f35b34801561082d57600080fd5b506108366116c3565b6040516108439190613c1c565b60405180910390f35b34801561085857600080fd5b50610873600480360381019061086e9190613b4f565b6116c9565b005b34801561088157600080fd5b5061089c60048036038101906108979190613cfe565b611765565b6040516108a99190613ce3565b60405180910390f35b3480156108be57600080fd5b506108c761181f565b6040516108d49190613b01565b60405180910390f35b3480156108e957600080fd5b506108f26118b9565b005b34801561090057600080fd5b506109096118cd565b6040516109169190613a56565b60405180910390f35b34801561092b57600080fd5b506109346118e0565b005b34801561094257600080fd5b5061094b611905565b6040516109589190613b7c565b60405180910390f35b34801561096d57600080fd5b5061097661192f565b6040516109839190613ce3565b60405180910390f35b34801561099857600080fd5b506109a1611935565b6040516109ae9190613b01565b60405180910390f35b3480156109c357600080fd5b506109de60048036038101906109d99190613fac565b6119c7565b005b3480156109ec57600080fd5b50610a076004803603810190610a029190614025565b611b4b565b005b348015610a1557600080fd5b50610a1e611b61565b604051610a2b9190613ce3565b60405180910390f35b348015610a4057600080fd5b50610a5b6004803603810190610a569190613b4f565b611b67565b005b348015610a6957600080fd5b50610a72611b79565b604051610a7f9190613a56565b60405180910390f35b348015610a9457600080fd5b50610aaf6004803603810190610aaa9190614065565b611b8c565b005b348015610abd57600080fd5b50610ad86004803603810190610ad39190614159565b611c87565b005b348015610ae657600080fd5b50610aef611ca4565b604051610afc9190613a56565b60405180910390f35b348015610b1157600080fd5b50610b1a611cb7565b604051610b279190613ce3565b60405180910390f35b348015610b3c57600080fd5b50610b576004803603810190610b529190613b4f565b611cbc565b604051610b649190613b01565b60405180910390f35b348015610b7957600080fd5b50610b82611da7565b005b348015610b9057600080fd5b50610bab6004803603810190610ba691906141dc565b611dcc565b604051610bb89190613a56565b60405180910390f35b348015610bcd57600080fd5b50610be86004803603810190610be39190614065565b611e60565b005b348015610bf657600080fd5b50610c116004803603810190610c0c9190613cfe565b611f4b565b005b348015610c1f57600080fd5b50610c3a6004803603810190610c35919061425a565b611fd1565b005b348015610c4857600080fd5b50610c636004803603810190610c5e9190613b4f565b6121c8565b005b610c7f6004803603810190610c7a919061429a565b6121da565b005b348015610c8d57600080fd5b50610c96612626565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d6357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610d735750610d728261264b565b5b9050919050565b610d826126b5565b6000601360026101000a81548160ff021916908315150217905550565b606060008054610dae9061433d565b80601f0160208091040260200160405190810160405280929190818152602001828054610dda9061433d565b8015610e275780601f10610dfc57610100808354040283529160200191610e27565b820191906000526020600020905b815481529060010190602001808311610e0a57829003601f168201915b5050505050905090565b6000610e3c8261273c565b50610e46826127c4565b9050919050565b610e5f8282610e5a612801565b612809565b5050565b610e6b6126b5565b6001601360036101000a81548160ff021916908315150217905550565b60095481565b610e966126b5565b610e9f8161281b565b50565b610eaa6126b5565b610eb38161282d565b50565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f285760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401610f1f9190613b7c565b60405180910390fd5b6000610f3c8383610f37612801565b61283f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fb2578382826040517f64283d7b000000000000000000000000000000000000000000000000000000008152600401610fa99392919061436e565b60405180910390fd5b50505050565b610fc0612a59565b601360009054906101000a900460ff1615611010576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611007906143f1565b60405180910390fd5b601360039054906101000a900460ff1661105f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110569061445d565b60405180910390fd5b600081116110a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611099906144c9565b60405180910390fd5b60028111156110e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dd90614535565b60405180910390fd5b601054816012546110f79190614584565b1115611138576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112f90614604565b60405180910390fd5b600281600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111859190614584565b11156111c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bd90614696565b60405180910390fd5b80600e546111d491906146b6565b3414611215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120c90614744565b60405180910390fd5b61122133826000612a9f565b80600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112709190614584565b9250508190555061127f612c73565b50565b60105481565b600b6020528060005260406000206000915090505481565b6112a86126b5565b6000601360006101000a81548160ff021916908315150217905550565b6112e083838360405180602001604052806000815250611c87565b505050565b6112ed6126b5565b601360009054906101000a900460ff161561133d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611334906143f1565b60405180910390fd5b6010548160125461134e9190614584565b111561138f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611386906147b0565b60405180910390fd5b600081116113d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c9906144c9565b60405180910390fd5b603c811115611416576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140d90614842565b60405180910390fd5b61142282826002612a9f565b5050565b6000803360405160200161143a91906148aa565b6040516020818303038152906040528051906020012090506114a0848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060085483612c7d565b156114af576001915050611512565b6114fd848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060095483612c7d565b1561150c576001915050611512565b60009150505b92915050565b6115206126b5565b6001601360016101000a81548160ff02191690831515021790555080600c908161154a9190614a71565b507f09aeffebf08fc44a38a139bbfafcc95e27b04cc8690c84246a34c2bd67f3d9b98160405161157a9190613b01565b60405180910390a150565b601360019054906101000a900460ff1681565b6115a06126b5565b6012548110156115e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115dc90614bb5565b60405180910390fd5b6103e881111561162a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162190614c47565b60405180910390fd5b8060118190555050565b61163c6126b5565b80600c908161164b9190614a71565b507f287fb35d24416ff0dd04e0934f29883f30a8ed9a5a8aef3bf65d165b01aa0e42813360405161167d929190614c67565b60405180910390a150565b60006116938261273c565b9050919050565b600a6020528060005260406000206000915090505481565b600281565b600e5481565b60115481565b60085481565b6116d16126b5565b601254811015611716576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170d90614bb5565b60405180910390fd5b6103e881111561175b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175290614c47565b60405180910390fd5b8060108190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117d85760006040517f89c62b640000000000000000000000000000000000000000000000000000000081526004016117cf9190613b7c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606118296126b5565b600c80546118369061433d565b80601f01602080910402602001604051908101604052809291908181526020018280546118629061433d565b80156118af5780601f10611884576101008083540402835291602001916118af565b820191906000526020600020905b81548152906001019060200180831161189257829003601f168201915b5050505050905090565b6118c16126b5565b6118cb6000612c94565b565b601360029054906101000a900460ff1681565b6118e86126b5565b6001601360006101000a81548160ff021916908315150217905550565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f5481565b6060600180546119449061433d565b80601f01602080910402602001604051908101604052809291908181526020018280546119709061433d565b80156119bd5780601f10611992576101008083540402835291602001916119bd565b820191906000526020600020905b8154815290600101906020018083116119a057829003601f168201915b5050505050905090565b6119cf6126b5565b601360009054906101000a900460ff1615611a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a16906143f1565b60405180910390fd5b60105482829050601254611a339190614584565b1115611a74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6b906147b0565b60405180910390fd5b60005b82829050811015611b46576000838383818110611a9757611a96614c97565b5b9050602002016020810190611aac9190613cfe565b905060006001601254611abf9190614584565b9050611acb8282612d5a565b60126000815480929190611ade90614cc6565b91905055508173ffffffffffffffffffffffffffffffffffffffff167f8948190f8a410df5d2482307c1bcf45b2452c4c52e341e8bbd80b0190bfb780582604051611b299190613ce3565b60405180910390a250508080611b3e90614cc6565b915050611a77565b505050565b611b5d611b56612801565b8383612e53565b5050565b60125481565b611b6f6126b5565b80600f8190555050565b601360009054906101000a900460ff1681565b611b946126b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bfa90614d5a565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82846040518363ffffffff1660e01b8152600401611c3e929190613979565b6020604051808303816000875af1158015611c5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c819190614d8f565b50505050565b611c92848484610eb6565b611c9e84848484612fc2565b50505050565b601360039054906101000a900460ff1681565b600281565b6060611cc78261273c565b50601360019054906101000a900460ff16611d6e57600d8054611ce99061433d565b80601f0160208091040260200160405190810160405280929190818152602001828054611d159061433d565b8015611d625780601f10611d3757610100808354040283529160200191611d62565b820191906000526020600020905b815481529060010190602001808311611d4557829003601f168201915b50505050509050611da2565b611d76613179565b611d7f8361320b565b604051602001611d90929190614e44565b60405160208183030381529060405290505b919050565b611daf6126b5565b6000601360036101000a81548160ff021916908315150217905550565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e686126b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ed7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ece90614d5a565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff166323b872dd3083856040518463ffffffff1660e01b8152600401611f1493929190614e73565b600060405180830381600087803b158015611f2e57600080fd5b505af1158015611f42573d6000803e3d6000fd5b50505050505050565b611f536126b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611fc55760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611fbc9190613b7c565b60405180910390fd5b611fce81612c94565b50565b611fd96126b5565b611fe1612a59565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612050576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204790614ef6565b60405180910390fd5b60008111612093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208a90614f62565b60405180910390fd5b804710156120d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120cd90614fce565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516120fc9061501f565b60006040518083038185875af1925050503d8060008114612139576040519150601f19603f3d011682016040523d82523d6000602084013e61213e565b606091505b5050905080612182576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217990615080565b60405180910390fd5b7f8c7cdad0d12a8db3e23561b42da6f10c8137914c97beff202213a410e1f520a382846040516121b39291906150f5565b60405180910390a1506121c4612c73565b5050565b6121d06126b5565b80600e8190555050565b6121e2612a59565b601360009054906101000a900460ff1615612232576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612229906143f1565b60405180910390fd5b601360029054906101000a900460ff16612281576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122789061516a565b60405180910390fd5b60018114806122905750600281145b6122cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c6906151d6565b60405180910390fd5b601054826012546122e09190614584565b1115612321576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231890614604565b60405180910390fd5b601154826012546123329190614584565b1115612373576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236a90615268565b60405180910390fd5b600282600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123c09190614584565b1115612401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f8906152fa565b60405180910390fd5b600082118015612412575060028211155b612451576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244890615366565b60405180910390fd5b60003360405160200161246491906148aa565b60405160208183030381529060405280519060200120905060006001831461248e57600954612492565b6008545b90506124e0868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050508284612c7d565b600184146125065760405180606001604052806027815260200161559160279139612520565b604051806060016040528060298152602001615568602991395b90612561576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125589190613b01565b60405180910390fd5b50600061256f3386866132d9565b90508034146125b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125aa906153d2565b60405180910390fd5b6125bf33866001612a9f565b84600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461260e9190614584565b92505081905550505050612620612c73565b50505050565b61262e6126b5565b6001601360026101000a81548160ff021916908315150217905550565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6126bd612801565b73ffffffffffffffffffffffffffffffffffffffff166126db611905565b73ffffffffffffffffffffffffffffffffffffffff161461273a576126fe612801565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016127319190613b7c565b60405180910390fd5b565b600080612748836133ad565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036127bb57826040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016127b29190613ce3565b60405180910390fd5b80915050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600033905090565b61281683838360016133ea565b505050565b6128236126b5565b8060088190555050565b6128356126b5565b8060098190555050565b60008061284b846133ad565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461288d5761288c8184866135af565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461291e576128cf6000856000806133ea565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146129a1576001600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846002600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b600260075403612a95576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600781905550565b60005b82811015612c6d5760006001601254612abb9190614584565b9050612ac78582612d5a565b60126000815480929190612ada90614cc6565b919050555060006002811115612af357612af26153f2565b5b836002811115612b0657612b056153f2565b5b03612b5e578473ffffffffffffffffffffffffffffffffffffffff167fab9980fb1d2916bce9017edd1be458e3f56d0899b3367cb3a8be97483fbe069b82604051612b519190613ce3565b60405180910390a2612c59565b60016002811115612b7257612b716153f2565b5b836002811115612b8557612b846153f2565b5b03612bdd578473ffffffffffffffffffffffffffffffffffffffff167fce77e469b386be007f957632f6f65216f2e74c5daa303aff682e8296f628d01082604051612bd09190613ce3565b60405180910390a2612c58565b600280811115612bf057612bef6153f2565b5b836002811115612c0357612c026153f2565b5b03612c57578473ffffffffffffffffffffffffffffffffffffffff167fb50eb0c1f59aa2c3398e720d868b9224179e36125bff674d6df4bae98b2591a582604051612c4e9190613ce3565b60405180910390a25b5b5b508080612c6590614cc6565b915050612aa2565b50505050565b6001600781905550565b600082612c8a8584613673565b1490509392505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612dcc5760006040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401612dc39190613b7c565b60405180910390fd5b6000612dda8383600061283f565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612e4e5760006040517f73c6ac6e000000000000000000000000000000000000000000000000000000008152600401612e459190613b7c565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612ec457816040517f5b08ba18000000000000000000000000000000000000000000000000000000008152600401612ebb9190613b7c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612fb59190613a56565b60405180910390a3505050565b60008373ffffffffffffffffffffffffffffffffffffffff163b1115613173578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02613006612801565b8685856040518563ffffffff1660e01b81526004016130289493929190615476565b6020604051808303816000875af192505050801561306457506040513d601f19601f8201168201806040525081019061306191906154d7565b60015b6130e8573d8060008114613094576040519150601f19603f3d011682016040523d82523d6000602084013e613099565b606091505b5060008151036130e057836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016130d79190613b7c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461317157836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016131689190613b7c565b60405180910390fd5b505b50505050565b6060600c80546131889061433d565b80601f01602080910402602001604051908101604052809291908181526020018280546131b49061433d565b80156132015780601f106131d657610100808354040283529160200191613201565b820191906000526020600020905b8154815290600101906020018083116131e457829003601f168201915b5050505050905090565b60606000600161321a846136c9565b01905060008167ffffffffffffffff81111561323957613238613de2565b5b6040519080825280601f01601f19166020018201604052801561326b5781602001600182028036833780820191505090505b509050600082602001820190505b6001156132ce578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816132c2576132c1615504565b5b04945060008503613279575b819350505050919050565b6000806000905060018303613391576000600a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000810361337a57600f54826133429190614584565b9150600185111561337557600e5460018661335d9190615533565b61336791906146b6565b826133729190614584565b91505b61338b565b600e548561338891906146b6565b91505b506133a2565b600e548461339f91906146b6565b90505b809150509392505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b80806134235750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156135575760006134338461273c565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561349e57508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b80156134b157506134af8184611dcc565b155b156134f357826040517fa9fbf51f0000000000000000000000000000000000000000000000000000000081526004016134ea9190613b7c565b60405180910390fd5b811561355557838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836004600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b6135ba83838361381c565b61366e57600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361362f57806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016136269190613ce3565b60405180910390fd5b81816040517f177e802f000000000000000000000000000000000000000000000000000000008152600401613665929190613979565b60405180910390fd5b505050565b60008082905060005b84518110156136be576136a98286838151811061369c5761369b614c97565b5b60200260200101516138dd565b915080806136b690614cc6565b91505061367c565b508091505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613727577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161371d5761371c615504565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613764576d04ee2d6d415b85acef8100000000838161375a57613759615504565b5b0492506020810190505b662386f26fc10000831061379357662386f26fc10000838161378957613788615504565b5b0492506010810190505b6305f5e10083106137bc576305f5e10083816137b2576137b1615504565b5b0492506008810190505b61271083106137e15761271083816137d7576137d6615504565b5b0492506004810190505b6064831061380457606483816137fa576137f9615504565b5b0492506002810190505b600a8310613813576001810190505b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156138d457508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061389557506138948484611dcc565b5b806138d357508273ffffffffffffffffffffffffffffffffffffffff166138bb836127c4565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b60008183106138f5576138f08284613908565b613900565b6138ff8383613908565b5b905092915050565b600082600052816020526040600020905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061394a8261391f565b9050919050565b61395a8161393f565b82525050565b6000819050919050565b61397381613960565b82525050565b600060408201905061398e6000830185613951565b61399b602083018461396a565b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6139eb816139b6565b81146139f657600080fd5b50565b600081359050613a08816139e2565b92915050565b600060208284031215613a2457613a236139ac565b5b6000613a32848285016139f9565b91505092915050565b60008115159050919050565b613a5081613a3b565b82525050565b6000602082019050613a6b6000830184613a47565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613aab578082015181840152602081019050613a90565b60008484015250505050565b6000601f19601f8301169050919050565b6000613ad382613a71565b613add8185613a7c565b9350613aed818560208601613a8d565b613af681613ab7565b840191505092915050565b60006020820190508181036000830152613b1b8184613ac8565b905092915050565b613b2c81613960565b8114613b3757600080fd5b50565b600081359050613b4981613b23565b92915050565b600060208284031215613b6557613b646139ac565b5b6000613b7384828501613b3a565b91505092915050565b6000602082019050613b916000830184613951565b92915050565b613ba08161393f565b8114613bab57600080fd5b50565b600081359050613bbd81613b97565b92915050565b60008060408385031215613bda57613bd96139ac565b5b6000613be885828601613bae565b9250506020613bf985828601613b3a565b9150509250929050565b6000819050919050565b613c1681613c03565b82525050565b6000602082019050613c316000830184613c0d565b92915050565b613c4081613c03565b8114613c4b57600080fd5b50565b600081359050613c5d81613c37565b92915050565b600060208284031215613c7957613c786139ac565b5b6000613c8784828501613c4e565b91505092915050565b600080600060608486031215613ca957613ca86139ac565b5b6000613cb786828701613bae565b9350506020613cc886828701613bae565b9250506040613cd986828701613b3a565b9150509250925092565b6000602082019050613cf8600083018461396a565b92915050565b600060208284031215613d1457613d136139ac565b5b6000613d2284828501613bae565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613d5057613d4f613d2b565b5b8235905067ffffffffffffffff811115613d6d57613d6c613d30565b5b602083019150836020820283011115613d8957613d88613d35565b5b9250929050565b60008060208385031215613da757613da66139ac565b5b600083013567ffffffffffffffff811115613dc557613dc46139b1565b5b613dd185828601613d3a565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613e1a82613ab7565b810181811067ffffffffffffffff82111715613e3957613e38613de2565b5b80604052505050565b6000613e4c6139a2565b9050613e588282613e11565b919050565b600067ffffffffffffffff821115613e7857613e77613de2565b5b613e8182613ab7565b9050602081019050919050565b82818337600083830152505050565b6000613eb0613eab84613e5d565b613e42565b905082815260208101848484011115613ecc57613ecb613ddd565b5b613ed7848285613e8e565b509392505050565b600082601f830112613ef457613ef3613d2b565b5b8135613f04848260208601613e9d565b91505092915050565b600060208284031215613f2357613f226139ac565b5b600082013567ffffffffffffffff811115613f4157613f406139b1565b5b613f4d84828501613edf565b91505092915050565b60008083601f840112613f6c57613f6b613d2b565b5b8235905067ffffffffffffffff811115613f8957613f88613d30565b5b602083019150836020820283011115613fa557613fa4613d35565b5b9250929050565b60008060208385031215613fc357613fc26139ac565b5b600083013567ffffffffffffffff811115613fe157613fe06139b1565b5b613fed85828601613f56565b92509250509250929050565b61400281613a3b565b811461400d57600080fd5b50565b60008135905061401f81613ff9565b92915050565b6000806040838503121561403c5761403b6139ac565b5b600061404a85828601613bae565b925050602061405b85828601614010565b9150509250929050565b60008060006060848603121561407e5761407d6139ac565b5b600061408c86828701613bae565b935050602061409d86828701613b3a565b92505060406140ae86828701613bae565b9150509250925092565b600067ffffffffffffffff8211156140d3576140d2613de2565b5b6140dc82613ab7565b9050602081019050919050565b60006140fc6140f7846140b8565b613e42565b90508281526020810184848401111561411857614117613ddd565b5b614123848285613e8e565b509392505050565b600082601f8301126141405761413f613d2b565b5b81356141508482602086016140e9565b91505092915050565b60008060008060808587031215614173576141726139ac565b5b600061418187828801613bae565b945050602061419287828801613bae565b93505060406141a387828801613b3a565b925050606085013567ffffffffffffffff8111156141c4576141c36139b1565b5b6141d08782880161412b565b91505092959194509250565b600080604083850312156141f3576141f26139ac565b5b600061420185828601613bae565b925050602061421285828601613bae565b9150509250929050565b60006142278261391f565b9050919050565b6142378161421c565b811461424257600080fd5b50565b6000813590506142548161422e565b92915050565b60008060408385031215614271576142706139ac565b5b600061427f85828601614245565b925050602061429085828601613b3a565b9150509250929050565b600080600080606085870312156142b4576142b36139ac565b5b600085013567ffffffffffffffff8111156142d2576142d16139b1565b5b6142de87828801613d3a565b945094505060206142f187828801613b3a565b925050604061430287828801613b3a565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061435557607f821691505b6020821081036143685761436761430e565b5b50919050565b60006060820190506143836000830186613951565b614390602083018561396a565b61439d6040830184613951565b949350505050565b7f436f6e7472616374206973207061757365640000000000000000000000000000600082015250565b60006143db601283613a7c565b91506143e6826143a5565b602082019050919050565b6000602082019050818103600083015261440a816143ce565b9050919050565b7f5075626c69632073616c65206973206e6f74206f70656e000000000000000000600082015250565b6000614447601783613a7c565b915061445282614411565b602082019050919050565b600060208201905081810360008301526144768161443a565b9050919050565b7f4d757374206d696e74206174206c65617374206f6e6520746f6b656e00000000600082015250565b60006144b3601c83613a7c565b91506144be8261447d565b602082019050919050565b600060208201905081810360008301526144e2816144a6565b9050919050565b7f43616e6e6f74206d696e74206d6f7265207468616e203220746f6b656e730000600082015250565b600061451f601e83613a7c565b915061452a826144e9565b602082019050919050565b6000602082019050818103600083015261454e81614512565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061458f82613960565b915061459a83613960565b92508282019050808211156145b2576145b1614555565b5b92915050565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b60006145ee601283613a7c565b91506145f9826145b8565b602082019050919050565b6000602082019050818103600083015261461d816145e1565b9050919050565b7f4d61782032204e46547320706572206164647265737320696e207075626c696360008201527f206d696e74000000000000000000000000000000000000000000000000000000602082015250565b6000614680602583613a7c565b915061468b82614624565b604082019050919050565b600060208201905081810360008301526146af81614673565b9050919050565b60006146c182613960565b91506146cc83613960565b92508282026146da81613960565b915082820484148315176146f1576146f0614555565b5b5092915050565b7f496e73756666696369656e74204554482073656e740000000000000000000000600082015250565b600061472e601583613a7c565b9150614739826146f8565b602082019050919050565b6000602082019050818103600083015261475d81614721565b9050919050565b7f4d696e74696e6720776f756c6420657863656564206d617820737570706c7900600082015250565b600061479a601f83613a7c565b91506147a582614764565b602082019050919050565b600060208201905081810360008301526147c98161478d565b9050919050565b7f4f776e65722063616e206f6e6c79206d696e7420757020746f20363020746f6b60008201527f656e7320617420612074696d6500000000000000000000000000000000000000602082015250565b600061482c602d83613a7c565b9150614837826147d0565b604082019050919050565b6000602082019050818103600083015261485b8161481f565b9050919050565b60008160601b9050919050565b600061487a82614862565b9050919050565b600061488c8261486f565b9050919050565b6148a461489f8261393f565b614881565b82525050565b60006148b68284614893565b60148201915081905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026149277fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826148ea565b61493186836148ea565b95508019841693508086168417925050509392505050565b6000819050919050565b600061496e61496961496484613960565b614949565b613960565b9050919050565b6000819050919050565b61498883614953565b61499c61499482614975565b8484546148f7565b825550505050565b600090565b6149b16149a4565b6149bc81848461497f565b505050565b5b818110156149e0576149d56000826149a9565b6001810190506149c2565b5050565b601f821115614a25576149f6816148c5565b6149ff846148da565b81016020851015614a0e578190505b614a22614a1a856148da565b8301826149c1565b50505b505050565b600082821c905092915050565b6000614a4860001984600802614a2a565b1980831691505092915050565b6000614a618383614a37565b9150826002028217905092915050565b614a7a82613a71565b67ffffffffffffffff811115614a9357614a92613de2565b5b614a9d825461433d565b614aa88282856149e4565b600060209050601f831160018114614adb5760008415614ac9578287015190505b614ad38582614a55565b865550614b3b565b601f198416614ae9866148c5565b60005b82811015614b1157848901518255600182019150602085019450602081019050614aec565b86831015614b2e5784890151614b2a601f891682614a37565b8355505b6001600288020188555050505b505050505050565b7f4e6577206d617820737570706c79206d7573742062652067726561746572207460008201527f68616e20746f74616c206d696e74656400000000000000000000000000000000602082015250565b6000614b9f603083613a7c565b9150614baa82614b43565b604082019050919050565b60006020820190508181036000830152614bce81614b92565b9050919050565b7f4e6577206d617820737570706c79206d757374206265206c657373207468616e60008201527f206f7220657175616c20746f2031303030000000000000000000000000000000602082015250565b6000614c31603183613a7c565b9150614c3c82614bd5565b604082019050919050565b60006020820190508181036000830152614c6081614c24565b9050919050565b60006040820190508181036000830152614c818185613ac8565b9050614c906020830184613951565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614cd182613960565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614d0357614d02614555565b5b600182019050919050565b7f43616e6e6f742073656e6420746f207a65726f20616464726573730000000000600082015250565b6000614d44601b83613a7c565b9150614d4f82614d0e565b602082019050919050565b60006020820190508181036000830152614d7381614d37565b9050919050565b600081519050614d8981613ff9565b92915050565b600060208284031215614da557614da46139ac565b5b6000614db384828501614d7a565b91505092915050565b600081905092915050565b6000614dd282613a71565b614ddc8185614dbc565b9350614dec818560208601613a8d565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614e2e600583614dbc565b9150614e3982614df8565b600582019050919050565b6000614e508285614dc7565b9150614e5c8284614dc7565b9150614e6782614e21565b91508190509392505050565b6000606082019050614e886000830186613951565b614e956020830185613951565b614ea2604083018461396a565b949350505050565b7f496e76616c6964207769746864726177616c2061646472657373000000000000600082015250565b6000614ee0601a83613a7c565b9150614eeb82614eaa565b602082019050919050565b60006020820190508181036000830152614f0f81614ed3565b9050919050565b7f416d6f756e74206d7573742062652067726561746572207468616e2030000000600082015250565b6000614f4c601d83613a7c565b9150614f5782614f16565b602082019050919050565b60006020820190508181036000830152614f7b81614f3f565b9050919050565b7f496e73756666696369656e7420636f6e74726163742062616c616e6365000000600082015250565b6000614fb8601d83613a7c565b9150614fc382614f82565b602082019050919050565b60006020820190508181036000830152614fe781614fab565b9050919050565b600081905092915050565b50565b6000615009600083614fee565b915061501482614ff9565b600082019050919050565b600061502a82614ffc565b9150819050919050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b600061506a601483613a7c565b915061507582615034565b602082019050919050565b600060208201905081810360008301526150998161505d565b9050919050565b60006150bb6150b66150b18461391f565b614949565b61391f565b9050919050565b60006150cd826150a0565b9050919050565b60006150df826150c2565b9050919050565b6150ef816150d4565b82525050565b600060408201905061510a600083018561396a565b61511760208301846150e6565b9392505050565b7f57686974656c6973742073616c65206973206e6f74206f70656e000000000000600082015250565b6000615154601a83613a7c565b915061515f8261511e565b602082019050919050565b6000602082019050818103600083015261518381615147565b9050919050565b7f496e76616c69642067726f757020737065636966696564000000000000000000600082015250565b60006151c0601783613a7c565b91506151cb8261518a565b602082019050919050565b600060208201905081810360008301526151ef816151b3565b9050919050565b7f4d696e74696e6720776f756c64206578636565642077686974656c697374207360008201527f7570706c79000000000000000000000000000000000000000000000000000000602082015250565b6000615252602583613a7c565b915061525d826151f6565b604082019050919050565b6000602082019050818103600083015261528181615245565b9050919050565b7f43616e6e6f74206d696e74206d6f7265207468616e203220746f6b656e73206660008201527f6f7220574c000000000000000000000000000000000000000000000000000000602082015250565b60006152e4602583613a7c565b91506152ef82615288565b604082019050919050565b60006020820190508181036000830152615313816152d7565b9050919050565b7f43616e206d696e74203120746f203220746f6b656e7300000000000000000000600082015250565b6000615350601683613a7c565b915061535b8261531a565b602082019050919050565b6000602082019050818103600083015261537f81615343565b9050919050565b7f496e636f7272656374204554482076616c75652073656e740000000000000000600082015250565b60006153bc601883613a7c565b91506153c782615386565b602082019050919050565b600060208201905081810360008301526153eb816153af565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600081519050919050565b600082825260208201905092915050565b600061544882615421565b615452818561542c565b9350615462818560208601613a8d565b61546b81613ab7565b840191505092915050565b600060808201905061548b6000830187613951565b6154986020830186613951565b6154a5604083018561396a565b81810360608301526154b7818461543d565b905095945050505050565b6000815190506154d1816139e2565b92915050565b6000602082840312156154ed576154ec6139ac565b5b60006154fb848285016154c2565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061553e82613960565b915061554983613960565b925082820390508181111561556157615560614555565b5b9291505056fe496e76616c696420416464726573733a20506572736f6e616c2057686974656c6973742047726f7570496e76616c696420416464726573733a20436f6c6c61622057686974656c6973742047726f7570a2646970667358221220992865db76ece2434c477c456e4bb4bbdb21e74adccb239f22200163de3c3a8664736f6c63430008150033

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

1fc087266e1fbfa704b4c6396539853f62b5cf94d78536be860fe54091713f85f0b3801a1a0e9b118ff13a53681727a2fdeaa4ffb5b017f92dfbd8043045f3e80000000000000000000000005106ed1aa5e49e9d4ec272c4f248a9116507c8d3

-----Decoded View---------------
Arg [0] : merkleRootGroup1_ (bytes32): 0x1fc087266e1fbfa704b4c6396539853f62b5cf94d78536be860fe54091713f85
Arg [1] : merkleRootGroup2_ (bytes32): 0xf0b3801a1a0e9b118ff13a53681727a2fdeaa4ffb5b017f92dfbd8043045f3e8
Arg [2] : initialOwner (address): 0x5106ed1aA5e49E9D4eC272C4F248a9116507c8d3

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 1fc087266e1fbfa704b4c6396539853f62b5cf94d78536be860fe54091713f85
Arg [1] : f0b3801a1a0e9b118ff13a53681727a2fdeaa4ffb5b017f92dfbd8043045f3e8
Arg [2] : 0000000000000000000000005106ed1aa5e49e9d4ec272c4f248a9116507c8d3


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

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