ETH Price: $3,699.11 (+1.76%)
 

Overview

Max Total Supply

300 POWPOW

Holders

95

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 POWPOW
0x8eCbAD4833FFe28125fF23C9ed80F4C4765246DC
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:
PowPow

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : PowPow.sol
// SPDX-License-Identifier: MIT

// Made with love by pr0xy

pragma solidity ^0.8.7;

import './ERC721A.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/common/ERC2981.sol';
import '@openzeppelin/contracts/finance/PaymentSplitter.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';

contract PowPow is ERC721A, ERC2981, Ownable, ReentrancyGuard, PaymentSplitter {
    // Recipients of funds from token sales.
    address[] private payees;

    // Root for merkle tree containing presale participants.
    bytes32 public merkleRoot;

    // Reference to metadata.
    string public baseURI;

    // Amount of ether required for a single token.
    uint public price;

    // Sale controller.
    uint public status;

    // Tokens per wallet limit for public sale.
    uint public walletLimit;

    // Max supply of tokens.
    uint public constant MAX_SUPPLY = 2222;

    constructor(address[] memory _payees, uint[] memory _shares) ERC721A('PowPow', 'POWPOW') PaymentSplitter(_payees, _shares) {
        payees = _payees;
    }

    /**
      @dev Override for the reference to metadata.
    */
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    /**
      @dev Override to begin token id at 1.
    */
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    /**
      @dev Sets reference to the metadata.
    */
    function setBaseURI(string memory baseURI_) external onlyOwner {
        baseURI = baseURI_;
    }

    /**
      @dev Sets the merkle root to be used in presale.
    */
    function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        merkleRoot = _merkleRoot;
    }

    /**
      @dev Sets the price to be used in presale and public mint functions.
    */
    function setPrice(uint _price) external onlyOwner {
        price = _price;
    }

    /**
      @dev Sets the royalty fee and recieving address for the collection.
    */
    function setRoyalty(address receiver, uint96 feeBasisPoints) external onlyOwner {
        _setDefaultRoyalty(receiver, feeBasisPoints);
    }

    /**
      @dev Sets the status to change between minting periods.
    */
    function setStatus(uint _status) external onlyOwner {
        status = _status;
    }

    /**
      @dev Sets the token limit per wallet for public sale. 
    */
    function setWalletLimit(uint _walletLimit) external onlyOwner {
        walletLimit = _walletLimit;
    }

    /**
      @dev Returns tokens minted by an address.
    */
    function numberMinted(address owner) external view returns (uint) {
        return _numberMinted(owner);
    }

    /**
      @dev Presale minting function that is limited to the participants included within the merkle tree.
    */
    function presale(bytes32[] calldata _merkleProof, uint _amount, uint _max) external nonReentrant payable {
        require(status == 1, 'POW: presale period is not open');
        require(msg.value == price * _amount, 'POW: insufficent ether provided');
        require(tx.origin == msg.sender, 'POW: contract interactions are not permitted');
        require(_totalMinted() + _amount <= MAX_SUPPLY, 'POW: all tokens have been minted');
        require(_numberMinted(msg.sender) + _amount <= _max, 'POW: provided amount exceeds allocated mints');
        require(MerkleProof.verify(_merkleProof, merkleRoot, keccak256(abi.encodePacked(msg.sender, _max))), 'POW: leaf is not a member of the merkle tree');

        _safeMint(msg.sender, _amount);
    }

    /**
      @dev Public minting function that is limited to a mint amount of 2 tokens per wallet.
    */
    function mint(uint _amount) external nonReentrant payable {
        require(status == 2, 'POW: public sale period is not open');
        require(msg.value == price * _amount, 'POW: insufficent ether provided');
        require(tx.origin == msg.sender, 'POW: contract interactions are not permitted');
        require(_amount + _numberMinted(msg.sender) <= walletLimit, 'POW: provided amount exceeds allocated mints');
        require(_totalMinted() + _amount <= MAX_SUPPLY, 'POW: all tokens have been minted');

        _safeMint(msg.sender, _amount);
    }

   /**
      @dev Releases ether from contract. 
    */
    function releaseTotal() external nonReentrant {
        for(uint256 i; i < payees.length; i++){
            release(payable(payees[i]));
        }
    }
   
   /**
      @dev Releases provided token from contract. 
    */
    function releaseTotal(IERC20 token) external nonReentrant {
        for(uint256 i; i < payees.length; i++){
            release(token, payable(payees[i]));
        }
    }

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

File 2 of 19 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * 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.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

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

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

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

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

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

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

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

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

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

File 3 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 4 of 19 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned. The distribution of shares is set at the
 * time of contract deployment and can't be updated thereafter.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Getter for the amount of payee's releasable Ether.
     */
    function releasable(address account) public view returns (uint256) {
        uint256 totalReceived = address(this).balance + totalReleased();
        return _pendingPayment(account, totalReceived, released(account));
    }

    /**
     * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an
     * IERC20 contract.
     */
    function releasable(IERC20 token, address account) public view returns (uint256) {
        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        return _pendingPayment(account, totalReceived, released(token, account));
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 payment = releasable(account);

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 payment = releasable(token, account);

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 5 of 19 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 6 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 7 of 19 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 9 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 10 of 19 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 11 of 19 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

File 14 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

File 15 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

File 16 of 19 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

File 18 of 19 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 19 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @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 amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` 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 amount
    ) external returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","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":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"presale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseTotal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"releaseTotal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeBasisPoints","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_status","type":"uint256"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_walletLimit","type":"uint256"}],"name":"setWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b506040516200662338038062006623833981810160405281019062000037919062000812565b81816040518060400160405280600681526020017f506f77506f7700000000000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f504f57504f5700000000000000000000000000000000000000000000000000008152508160029080519060200190620000bd92919062000549565b508060039080519060200190620000d692919062000549565b50620000e76200023860201b60201c565b60008190555050506200010f620001036200024160201b60201c565b6200024960201b60201c565b6001600b8190555080518251146200015e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200015590620009cb565b60405180910390fd5b6000825111620001a5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200019c9062000a0f565b60405180910390fd5b60005b82518110156200021457620001fe838281518110620001cc57620001cb62000c9e565b5b6020026020010151838381518110620001ea57620001e962000c9e565b5b60200260200101516200030f60201b60201c565b80806200020b9062000bf2565b915050620001a8565b50505081601390805190602001906200022f929190620005da565b50505062000e94565b60006001905090565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000382576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200037990620009a9565b60405180910390fd5b60008111620003c8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003bf9062000a31565b60405180910390fd5b6000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054146200044d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200044490620009ed565b60405180910390fd5b6010829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600c5462000504919062000aeb565b600c819055507f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac82826040516200053d9291906200097c565b60405180910390a15050565b828054620005579062000b86565b90600052602060002090601f0160209004810192826200057b5760008555620005c7565b82601f106200059657805160ff1916838001178555620005c7565b82800160010185558215620005c7579182015b82811115620005c6578251825591602001919060010190620005a9565b5b509050620005d6919062000669565b5090565b82805482825590600052602060002090810192821562000656579160200282015b82811115620006555782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190620005fb565b5b50905062000665919062000669565b5090565b5b80821115620006845760008160009055506001016200066a565b5090565b60006200069f620006998462000a7c565b62000a53565b90508083825260208201905082856020860282011115620006c557620006c462000d01565b5b60005b85811015620006f95781620006de88826200077e565b845260208401935060208301925050600181019050620006c8565b5050509392505050565b60006200071a620007148462000aab565b62000a53565b9050808382526020820190508285602086028201111562000740576200073f62000d01565b5b60005b85811015620007745781620007598882620007fb565b84526020840193506020830192505060018101905062000743565b5050509392505050565b6000815190506200078f8162000e60565b92915050565b600082601f830112620007ad57620007ac62000cfc565b5b8151620007bf84826020860162000688565b91505092915050565b600082601f830112620007e057620007df62000cfc565b5b8151620007f284826020860162000703565b91505092915050565b6000815190506200080c8162000e7a565b92915050565b600080604083850312156200082c576200082b62000d0b565b5b600083015167ffffffffffffffff8111156200084d576200084c62000d06565b5b6200085b8582860162000795565b925050602083015167ffffffffffffffff8111156200087f576200087e62000d06565b5b6200088d85828601620007c8565b9150509250929050565b620008a28162000b48565b82525050565b6000620008b7602c8362000ada565b9150620008c48262000d21565b604082019050919050565b6000620008de60328362000ada565b9150620008eb8262000d70565b604082019050919050565b600062000905602b8362000ada565b9150620009128262000dbf565b604082019050919050565b60006200092c601a8362000ada565b9150620009398262000e0e565b602082019050919050565b600062000953601d8362000ada565b9150620009608262000e37565b602082019050919050565b620009768162000b7c565b82525050565b600060408201905062000993600083018562000897565b620009a260208301846200096b565b9392505050565b60006020820190508181036000830152620009c481620008a8565b9050919050565b60006020820190508181036000830152620009e681620008cf565b9050919050565b6000602082019050818103600083015262000a0881620008f6565b9050919050565b6000602082019050818103600083015262000a2a816200091d565b9050919050565b6000602082019050818103600083015262000a4c8162000944565b9050919050565b600062000a5f62000a72565b905062000a6d828262000bbc565b919050565b6000604051905090565b600067ffffffffffffffff82111562000a9a5762000a9962000ccd565b5b602082029050602081019050919050565b600067ffffffffffffffff82111562000ac95762000ac862000ccd565b5b602082029050602081019050919050565b600082825260208201905092915050565b600062000af88262000b7c565b915062000b058362000b7c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000b3d5762000b3c62000c40565b5b828201905092915050565b600062000b558262000b5c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000600282049050600182168062000b9f57607f821691505b6020821081141562000bb65762000bb562000c6f565b5b50919050565b62000bc78262000d10565b810181811067ffffffffffffffff8211171562000be95762000be862000ccd565b5b80604052505050565b600062000bff8262000b7c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141562000c355762000c3462000c40565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061796d656e7453706c69747465723a206163636f756e74206973207468652060008201527f7a65726f20616464726573730000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a2070617965657320616e64207368617260008201527f6573206c656e677468206d69736d617463680000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960008201527f2068617320736861726573000000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206e6f20706179656573000000000000600082015250565b7f5061796d656e7453706c69747465723a20736861726573206172652030000000600082015250565b62000e6b8162000b48565b811462000e7757600080fd5b50565b62000e858162000b7c565b811462000e9157600080fd5b50565b61577f8062000ea46000396000f3fe6080604052600436106102815760003560e01c80637cb647591161014f578063b3fee00f116100c1578063d79779b21161007a578063d79779b2146109fe578063dc33e68114610a3b578063e33b7de314610a78578063e985e9c514610aa3578063f1d5f51714610ae0578063f2fde38b14610b09576102c8565b8063b3fee00f146108d9578063b88d4fde146108f5578063c45ac0501461091e578063c87b56dd1461095b578063cb8ce9a114610998578063ce7c2ac2146109c1576102c8565b806395d89b411161011357806395d89b41146107c45780639852595c146107ef578063a035b1fe1461082c578063a0712d6814610857578063a22cb46514610873578063a3f8eace1461089c576102c8565b80637cb64759146106e15780638b83209b1461070a5780638da5cb5b146107475780638f2fc60b1461077257806391b7f5ed1461079b576102c8565b80633a98ef39116101f35780636352211e116101ac5780636352211e146105e5578063656d677e1461062257806369ba1a75146106395780636c0360eb1461066257806370a082311461068d578063715018a6146106ca576102c8565b80633a98ef39146104d75780633c8463a114610502578063406072a91461052d57806342842e0e1461056a57806348b750441461059357806355f804b3146105bc576102c8565b8063191655871161024557806319165587146103c6578063200d2ed2146103ef57806323b872dd1461041a5780632a55205a146104435780632eb4a7ab1461048157806332cb6b0c146104ac576102c8565b806301ffc9a7146102cd57806306fdde031461030a578063081812fc14610335578063095ea7b31461037257806318160ddd1461039b576102c8565b366102c8577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706102af610b32565b346040516102be929190614997565b60405180910390a1005b600080fd5b3480156102d957600080fd5b506102f460048036038101906102ef91906142d8565b610b3a565b60405161030191906149c0565b60405180910390f35b34801561031657600080fd5b5061031f610b4c565b60405161032c91906149f6565b60405180910390f35b34801561034157600080fd5b5061035c600480360381019061035791906143e8565b610bde565b6040516103699190614907565b60405180910390f35b34801561037e57600080fd5b506103996004803603810190610394919061418a565b610c5a565b005b3480156103a757600080fd5b506103b0610d65565b6040516103bd9190614c78565b60405180910390f35b3480156103d257600080fd5b506103ed60048036038101906103e89190614007565b610d7c565b005b3480156103fb57600080fd5b50610404610f05565b6040516104119190614c78565b60405180910390f35b34801561042657600080fd5b50610441600480360381019061043c9190614074565b610f0b565b005b34801561044f57600080fd5b5061046a60048036038101906104659190614442565b610f1b565b604051610478929190614997565b60405180910390f35b34801561048d57600080fd5b50610496611106565b6040516104a391906149db565b60405180910390f35b3480156104b857600080fd5b506104c161110c565b6040516104ce9190614c78565b60405180910390f35b3480156104e357600080fd5b506104ec611112565b6040516104f99190614c78565b60405180910390f35b34801561050e57600080fd5b5061051761111c565b6040516105249190614c78565b60405180910390f35b34801561053957600080fd5b50610554600480360381019061054f919061435f565b611122565b6040516105619190614c78565b60405180910390f35b34801561057657600080fd5b50610591600480360381019061058c9190614074565b6111a9565b005b34801561059f57600080fd5b506105ba60048036038101906105b5919061435f565b6111c9565b005b3480156105c857600080fd5b506105e360048036038101906105de919061439f565b6113e6565b005b3480156105f157600080fd5b5061060c600480360381019061060791906143e8565b611408565b6040516106199190614907565b60405180910390f35b34801561062e57600080fd5b5061063761141e565b005b34801561064557600080fd5b50610660600480360381019061065b91906143e8565b6114e1565b005b34801561066e57600080fd5b506106776114f3565b60405161068491906149f6565b60405180910390f35b34801561069957600080fd5b506106b460048036038101906106af9190613fda565b611581565b6040516106c19190614c78565b60405180910390f35b3480156106d657600080fd5b506106df611651565b005b3480156106ed57600080fd5b50610708600480360381019061070391906142ab565b611665565b005b34801561071657600080fd5b50610731600480360381019061072c91906143e8565b611677565b60405161073e9190614907565b60405180910390f35b34801561075357600080fd5b5061075c6116bf565b6040516107699190614907565b60405180910390f35b34801561077e57600080fd5b50610799600480360381019061079491906141ca565b6116e9565b005b3480156107a757600080fd5b506107c260048036038101906107bd91906143e8565b6116ff565b005b3480156107d057600080fd5b506107d9611711565b6040516107e691906149f6565b60405180910390f35b3480156107fb57600080fd5b5061081660048036038101906108119190613fda565b6117a3565b6040516108239190614c78565b60405180910390f35b34801561083857600080fd5b506108416117ec565b60405161084e9190614c78565b60405180910390f35b610871600480360381019061086c91906143e8565b6117f2565b005b34801561087f57600080fd5b5061089a6004803603810190610895919061414a565b611a06565b005b3480156108a857600080fd5b506108c360048036038101906108be9190613fda565b611b7e565b6040516108d09190614c78565b60405180910390f35b6108f360048036038101906108ee919061420a565b611bb1565b005b34801561090157600080fd5b5061091c600480360381019061091791906140c7565b611e7b565b005b34801561092a57600080fd5b506109456004803603810190610940919061435f565b611ef7565b6040516109529190614c78565b60405180910390f35b34801561096757600080fd5b50610982600480360381019061097d91906143e8565b611fb5565b60405161098f91906149f6565b60405180910390f35b3480156109a457600080fd5b506109bf60048036038101906109ba9190614332565b612054565b005b3480156109cd57600080fd5b506109e860048036038101906109e39190613fda565b612119565b6040516109f59190614c78565b60405180910390f35b348015610a0a57600080fd5b50610a256004803603810190610a209190614332565b612162565b604051610a329190614c78565b60405180910390f35b348015610a4757600080fd5b50610a626004803603810190610a5d9190613fda565b6121ab565b604051610a6f9190614c78565b60405180910390f35b348015610a8457600080fd5b50610a8d6121bd565b604051610a9a9190614c78565b60405180910390f35b348015610aaf57600080fd5b50610aca6004803603810190610ac59190614034565b6121c7565b604051610ad791906149c0565b60405180910390f35b348015610aec57600080fd5b50610b076004803603810190610b0291906143e8565b61225b565b005b348015610b1557600080fd5b50610b306004803603810190610b2b9190613fda565b61226d565b005b600033905090565b6000610b45826122f1565b9050919050565b606060028054610b5b90614faf565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8790614faf565b8015610bd45780601f10610ba957610100808354040283529160200191610bd4565b820191906000526020600020905b815481529060010190602001808311610bb757829003601f168201915b5050505050905090565b6000610be98261236b565b610c1f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c6582611408565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ccd576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cec610b32565b73ffffffffffffffffffffffffffffffffffffffff1614158015610d1e5750610d1c81610d17610b32565b6121c7565b155b15610d55576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d608383836123b9565b505050565b6000610d6f61246b565b6001546000540303905090565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610dfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df590614a78565b60405180910390fd5b6000610e0982611b7e565b90506000811415610e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4690614af8565b60405180910390fd5b80600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e9e9190614d68565b9250508190555080600d6000828254610eb79190614d68565b92505081905550610ec88282612474565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568282604051610ef9929190614922565b60405180910390a15050565b60175481565b610f16838383612568565b505050565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614156110b15760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006110bb612a1e565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866110e79190614def565b6110f19190614dbe565b90508160000151819350935050509250929050565b60145481565b6108ae81565b6000600c54905090565b60185481565b6000601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6111c483838360405180602001604052806000815250611e7b565b505050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541161124b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124290614a78565b60405180910390fd5b60006112578383611ef7565b9050600081141561129d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129490614af8565b60405180910390fd5b80601260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113299190614d68565b9250508190555080601160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461137f9190614d68565b92505081905550611391838383612a28565b8273ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a83836040516113d9929190614997565b60405180910390a2505050565b6113ee612aae565b8060159080519060200190611404929190613cd7565b5050565b600061141382612b2c565b600001519050919050565b6002600b541415611464576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145b90614c18565b60405180910390fd5b6002600b8190555060005b6013805490508110156114d6576114c36013828154811061149357611492615147565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610d7c565b80806114ce90615012565b91505061146f565b506001600b81905550565b6114e9612aae565b8060178190555050565b6015805461150090614faf565b80601f016020809104026020016040519081016040528092919081815260200182805461152c90614faf565b80156115795780601f1061154e57610100808354040283529160200191611579565b820191906000526020600020905b81548152906001019060200180831161155c57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115e9576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611659612aae565b6116636000612dbb565b565b61166d612aae565b8060148190555050565b60006010828154811061168d5761168c615147565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6116f1612aae565b6116fb8282612e81565b5050565b611707612aae565b8060168190555050565b60606003805461172090614faf565b80601f016020809104026020016040519081016040528092919081815260200182805461174c90614faf565b80156117995780601f1061176e57610100808354040283529160200191611799565b820191906000526020600020905b81548152906001019060200180831161177c57829003601f168201915b5050505050905090565b6000600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60165481565b6002600b541415611838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182f90614c18565b60405180910390fd5b6002600b81905550600260175414611885576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187c90614b98565b60405180910390fd5b806016546118939190614def565b34146118d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cb90614a18565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611942576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193990614c38565b60405180910390fd5b60185461194e33613017565b826119599190614d68565b111561199a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199190614a58565b60405180910390fd5b6108ae816119a6613081565b6119b09190614d68565b11156119f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e890614b18565b60405180910390fd5b6119fb3382613094565b6001600b8190555050565b611a0e610b32565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a73576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611a80610b32565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b2d610b32565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b7291906149c0565b60405180910390a35050565b600080611b896121bd565b47611b949190614d68565b9050611ba98382611ba4866117a3565b6130b2565b915050919050565b6002600b541415611bf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bee90614c18565b60405180910390fd5b6002600b81905550600160175414611c44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3b90614b38565b60405180910390fd5b81601654611c529190614def565b3414611c93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8a90614a18565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611d01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf890614c38565b60405180910390fd5b6108ae82611d0d613081565b611d179190614d68565b1115611d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4f90614b18565b60405180910390fd5b8082611d6333613017565b611d6d9190614d68565b1115611dae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da590614a58565b60405180910390fd5b611e24848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506014543384604051602001611e0992919061488b565b60405160208183030381529060405280519060200120613120565b611e63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5a90614b78565b60405180910390fd5b611e6d3383613094565b6001600b8190555050505050565b611e86848484612568565b611ea58373ffffffffffffffffffffffffffffffffffffffff16613137565b8015611eba5750611eb88484848461315a565b155b15611ef1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600080611f0384612162565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611f3c9190614907565b60206040518083038186803b158015611f5457600080fd5b505afa158015611f68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8c9190614415565b611f969190614d68565b9050611fac8382611fa78787611122565b6130b2565b91505092915050565b6060611fc08261236b565b611ff6576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006120006132ba565b9050600081511415612021576040518060200160405280600081525061204c565b8061202b8461334c565b60405160200161203c9291906148ce565b6040516020818303038152906040525b915050919050565b6002600b54141561209a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209190614c18565b60405180910390fd5b6002600b8190555060005b60138054905081101561210d576120fa82601383815481106120ca576120c9615147565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166111c9565b808061210590615012565b9150506120a5565b506001600b8190555050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006121b682613017565b9050919050565b6000600d54905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612263612aae565b8060188190555050565b612275612aae565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122dc90614a38565b60405180910390fd5b6122ee81612dbb565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123645750612363826134ad565b5b9050919050565b60008161237661246b565b11158015612385575060005482105b80156123b2575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b804710156124b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ae90614ab8565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516124dd906148f2565b60006040518083038185875af1925050503d806000811461251a576040519150601f19603f3d011682016040523d82523d6000602084013e61251f565b606091505b5050905080612563576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255a90614a98565b60405180910390fd5b505050565b600061257382612b2c565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146125de576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166125ff610b32565b73ffffffffffffffffffffffffffffffffffffffff16148061262e575061262d85612628610b32565b6121c7565b5b80612673575061263c610b32565b73ffffffffffffffffffffffffffffffffffffffff1661265b84610bde565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806126ac576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612713576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612720858585600161358f565b61272c600084876123b9565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156129ac5760005482146129ab57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a178585856001613595565b5050505050565b6000612710905090565b612aa98363a9059cbb60e01b8484604051602401612a47929190614997565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061359b565b505050565b612ab6610b32565b73ffffffffffffffffffffffffffffffffffffffff16612ad46116bf565b73ffffffffffffffffffffffffffffffffffffffff1614612b2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2190614b58565b60405180910390fd5b565b612b34613d5d565b600082905080612b4261246b565b11158015612b51575060005481105b15612d84576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612d8257600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612c66578092505050612db6565b5b600115612d8157818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612d7c578092505050612db6565b612c67565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612e89612a1e565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ede90614bd8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4e90614c58565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b600061308b61246b565b60005403905090565b6130ae828260405180602001604052806000815250613662565b5050565b600081600c54600e60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054856131039190614def565b61310d9190614dbe565b6131179190614e49565b90509392505050565b60008261312d8584613674565b1490509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613180610b32565b8786866040518563ffffffff1660e01b81526004016131a2949392919061494b565b602060405180830381600087803b1580156131bc57600080fd5b505af19250505080156131ed57506040513d601f19601f820116820180604052508101906131ea9190614305565b60015b613267573d806000811461321d576040519150601f19603f3d011682016040523d82523d6000602084013e613222565b606091505b5060008151141561325f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060601580546132c990614faf565b80601f01602080910402602001604051908101604052809291908181526020018280546132f590614faf565b80156133425780601f1061331757610100808354040283529160200191613342565b820191906000526020600020905b81548152906001019060200180831161332557829003601f168201915b5050505050905090565b60606000821415613394576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506134a8565b600082905060005b600082146133c65780806133af90615012565b915050600a826133bf9190614dbe565b915061339c565b60008167ffffffffffffffff8111156133e2576133e1615176565b5b6040519080825280601f01601f1916602001820160405280156134145781602001600182028036833780820191505090505b5090505b600085146134a15760018261342d9190614e49565b9150600a8561343c9190615089565b60306134489190614d68565b60f81b81838151811061345e5761345d615147565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561349a9190614dbe565b9450613418565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061357857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806135885750613587826136ca565b5b9050919050565b50505050565b50505050565b60006135fd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166137349092919063ffffffff16565b905060008151111561365d578080602001905181019061361d919061427e565b61365c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161365390614bf8565b60405180910390fd5b5b505050565b61366f838383600161374c565b505050565b60008082905060005b84518110156136bf576136aa8286838151811061369d5761369c615147565b5b6020026020010151613b1a565b915080806136b790615012565b91505061367d565b508091505092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606137438484600085613b45565b90509392505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156137b9576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008414156137f4576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613801600086838761358f565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600085820190508380156139cb57506139ca8773ffffffffffffffffffffffffffffffffffffffff16613137565b5b15613a91575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613a40600088848060010195508861315a565b613a76576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808214156139d1578260005414613a8c57600080fd5b613afd565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613a92575b816000819055505050613b136000868387613595565b5050505050565b6000818310613b3257613b2d8284613c59565b613b3d565b613b3c8383613c59565b5b905092915050565b606082471015613b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b8190614ad8565b60405180910390fd5b613b9385613137565b613bd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bc990614bb8565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613bfb91906148b7565b60006040518083038185875af1925050503d8060008114613c38576040519150601f19603f3d011682016040523d82523d6000602084013e613c3d565b606091505b5091509150613c4d828286613c70565b92505050949350505050565b600082600052816020526040600020905092915050565b60608315613c8057829050613cd0565b600083511115613c935782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cc791906149f6565b60405180910390fd5b9392505050565b828054613ce390614faf565b90600052602060002090601f016020900481019282613d055760008555613d4c565b82601f10613d1e57805160ff1916838001178555613d4c565b82800160010185558215613d4c579182015b82811115613d4b578251825591602001919060010190613d30565b5b509050613d599190613da0565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613db9576000816000905550600101613da1565b5090565b6000613dd0613dcb84614cb8565b614c93565b905082815260208101848484011115613dec57613deb6151b4565b5b613df7848285614f6d565b509392505050565b6000613e12613e0d84614ce9565b614c93565b905082815260208101848484011115613e2e57613e2d6151b4565b5b613e39848285614f6d565b509392505050565b600081359050613e5081615691565b92915050565b600081359050613e65816156a8565b92915050565b60008083601f840112613e8157613e806151aa565b5b8235905067ffffffffffffffff811115613e9e57613e9d6151a5565b5b602083019150836020820283011115613eba57613eb96151af565b5b9250929050565b600081359050613ed0816156bf565b92915050565b600081519050613ee5816156bf565b92915050565b600081359050613efa816156d6565b92915050565b600081359050613f0f816156ed565b92915050565b600081519050613f24816156ed565b92915050565b600082601f830112613f3f57613f3e6151aa565b5b8135613f4f848260208601613dbd565b91505092915050565b600081359050613f6781615704565b92915050565b600082601f830112613f8257613f816151aa565b5b8135613f92848260208601613dff565b91505092915050565b600081359050613faa8161571b565b92915050565b600081519050613fbf8161571b565b92915050565b600081359050613fd481615732565b92915050565b600060208284031215613ff057613fef6151be565b5b6000613ffe84828501613e41565b91505092915050565b60006020828403121561401d5761401c6151be565b5b600061402b84828501613e56565b91505092915050565b6000806040838503121561404b5761404a6151be565b5b600061405985828601613e41565b925050602061406a85828601613e41565b9150509250929050565b60008060006060848603121561408d5761408c6151be565b5b600061409b86828701613e41565b93505060206140ac86828701613e41565b92505060406140bd86828701613f9b565b9150509250925092565b600080600080608085870312156140e1576140e06151be565b5b60006140ef87828801613e41565b945050602061410087828801613e41565b935050604061411187828801613f9b565b925050606085013567ffffffffffffffff811115614132576141316151b9565b5b61413e87828801613f2a565b91505092959194509250565b60008060408385031215614161576141606151be565b5b600061416f85828601613e41565b925050602061418085828601613ec1565b9150509250929050565b600080604083850312156141a1576141a06151be565b5b60006141af85828601613e41565b92505060206141c085828601613f9b565b9150509250929050565b600080604083850312156141e1576141e06151be565b5b60006141ef85828601613e41565b925050602061420085828601613fc5565b9150509250929050565b60008060008060608587031215614224576142236151be565b5b600085013567ffffffffffffffff811115614242576142416151b9565b5b61424e87828801613e6b565b9450945050602061426187828801613f9b565b925050604061427287828801613f9b565b91505092959194509250565b600060208284031215614294576142936151be565b5b60006142a284828501613ed6565b91505092915050565b6000602082840312156142c1576142c06151be565b5b60006142cf84828501613eeb565b91505092915050565b6000602082840312156142ee576142ed6151be565b5b60006142fc84828501613f00565b91505092915050565b60006020828403121561431b5761431a6151be565b5b600061432984828501613f15565b91505092915050565b600060208284031215614348576143476151be565b5b600061435684828501613f58565b91505092915050565b60008060408385031215614376576143756151be565b5b600061438485828601613f58565b925050602061439585828601613e41565b9150509250929050565b6000602082840312156143b5576143b46151be565b5b600082013567ffffffffffffffff8111156143d3576143d26151b9565b5b6143df84828501613f6d565b91505092915050565b6000602082840312156143fe576143fd6151be565b5b600061440c84828501613f9b565b91505092915050565b60006020828403121561442b5761442a6151be565b5b600061443984828501613fb0565b91505092915050565b60008060408385031215614459576144586151be565b5b600061446785828601613f9b565b925050602061447885828601613f9b565b9150509250929050565b61448b81614f37565b82525050565b61449a81614e7d565b82525050565b6144b16144ac82614e7d565b61505b565b82525050565b6144c081614ea1565b82525050565b6144cf81614ead565b82525050565b60006144e082614d1a565b6144ea8185614d30565b93506144fa818560208601614f7c565b614503816151c3565b840191505092915050565b600061451982614d1a565b6145238185614d41565b9350614533818560208601614f7c565b80840191505092915050565b600061454a82614d25565b6145548185614d4c565b9350614564818560208601614f7c565b61456d816151c3565b840191505092915050565b600061458382614d25565b61458d8185614d5d565b935061459d818560208601614f7c565b80840191505092915050565b60006145b6601f83614d4c565b91506145c1826151e1565b602082019050919050565b60006145d9602683614d4c565b91506145e48261520a565b604082019050919050565b60006145fc602c83614d4c565b915061460782615259565b604082019050919050565b600061461f602683614d4c565b915061462a826152a8565b604082019050919050565b6000614642603a83614d4c565b915061464d826152f7565b604082019050919050565b6000614665601d83614d4c565b915061467082615346565b602082019050919050565b6000614688602683614d4c565b91506146938261536f565b604082019050919050565b60006146ab602b83614d4c565b91506146b6826153be565b604082019050919050565b60006146ce602083614d4c565b91506146d98261540d565b602082019050919050565b60006146f1601f83614d4c565b91506146fc82615436565b602082019050919050565b6000614714602083614d4c565b915061471f8261545f565b602082019050919050565b6000614737602c83614d4c565b915061474282615488565b604082019050919050565b600061475a602383614d4c565b9150614765826154d7565b604082019050919050565b600061477d600083614d41565b915061478882615526565b600082019050919050565b60006147a0601d83614d4c565b91506147ab82615529565b602082019050919050565b60006147c3602a83614d4c565b91506147ce82615552565b604082019050919050565b60006147e6602a83614d4c565b91506147f1826155a1565b604082019050919050565b6000614809601f83614d4c565b9150614814826155f0565b602082019050919050565b600061482c602c83614d4c565b915061483782615619565b604082019050919050565b600061484f601983614d4c565b915061485a82615668565b602082019050919050565b61486e81614f15565b82525050565b61488561488082614f15565b61507f565b82525050565b600061489782856144a0565b6014820191506148a78284614874565b6020820191508190509392505050565b60006148c3828461450e565b915081905092915050565b60006148da8285614578565b91506148e68284614578565b91508190509392505050565b60006148fd82614770565b9150819050919050565b600060208201905061491c6000830184614491565b92915050565b60006040820190506149376000830185614482565b6149446020830184614865565b9392505050565b60006080820190506149606000830187614491565b61496d6020830186614491565b61497a6040830185614865565b818103606083015261498c81846144d5565b905095945050505050565b60006040820190506149ac6000830185614491565b6149b96020830184614865565b9392505050565b60006020820190506149d560008301846144b7565b92915050565b60006020820190506149f060008301846144c6565b92915050565b60006020820190508181036000830152614a10818461453f565b905092915050565b60006020820190508181036000830152614a31816145a9565b9050919050565b60006020820190508181036000830152614a51816145cc565b9050919050565b60006020820190508181036000830152614a71816145ef565b9050919050565b60006020820190508181036000830152614a9181614612565b9050919050565b60006020820190508181036000830152614ab181614635565b9050919050565b60006020820190508181036000830152614ad181614658565b9050919050565b60006020820190508181036000830152614af18161467b565b9050919050565b60006020820190508181036000830152614b118161469e565b9050919050565b60006020820190508181036000830152614b31816146c1565b9050919050565b60006020820190508181036000830152614b51816146e4565b9050919050565b60006020820190508181036000830152614b7181614707565b9050919050565b60006020820190508181036000830152614b918161472a565b9050919050565b60006020820190508181036000830152614bb18161474d565b9050919050565b60006020820190508181036000830152614bd181614793565b9050919050565b60006020820190508181036000830152614bf1816147b6565b9050919050565b60006020820190508181036000830152614c11816147d9565b9050919050565b60006020820190508181036000830152614c31816147fc565b9050919050565b60006020820190508181036000830152614c518161481f565b9050919050565b60006020820190508181036000830152614c7181614842565b9050919050565b6000602082019050614c8d6000830184614865565b92915050565b6000614c9d614cae565b9050614ca98282614fe1565b919050565b6000604051905090565b600067ffffffffffffffff821115614cd357614cd2615176565b5b614cdc826151c3565b9050602081019050919050565b600067ffffffffffffffff821115614d0457614d03615176565b5b614d0d826151c3565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614d7382614f15565b9150614d7e83614f15565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614db357614db26150ba565b5b828201905092915050565b6000614dc982614f15565b9150614dd483614f15565b925082614de457614de36150e9565b5b828204905092915050565b6000614dfa82614f15565b9150614e0583614f15565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614e3e57614e3d6150ba565b5b828202905092915050565b6000614e5482614f15565b9150614e5f83614f15565b925082821015614e7257614e716150ba565b5b828203905092915050565b6000614e8882614ef5565b9050919050565b6000614e9a82614ef5565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614eee82614e7d565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006bffffffffffffffffffffffff82169050919050565b6000614f4282614f49565b9050919050565b6000614f5482614f5b565b9050919050565b6000614f6682614ef5565b9050919050565b82818337600083830152505050565b60005b83811015614f9a578082015181840152602081019050614f7f565b83811115614fa9576000848401525b50505050565b60006002820490506001821680614fc757607f821691505b60208210811415614fdb57614fda615118565b5b50919050565b614fea826151c3565b810181811067ffffffffffffffff8211171561500957615008615176565b5b80604052505050565b600061501d82614f15565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156150505761504f6150ba565b5b600182019050919050565b60006150668261506d565b9050919050565b6000615078826151d4565b9050919050565b6000819050919050565b600061509482614f15565b915061509f83614f15565b9250826150af576150ae6150e9565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f504f573a20696e737566666963656e742065746865722070726f766964656400600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f504f573a2070726f766964656420616d6f756e74206578636565647320616c6c60008201527f6f6361746564206d696e74730000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b7f504f573a20616c6c20746f6b656e732068617665206265656e206d696e746564600082015250565b7f504f573a2070726573616c6520706572696f64206973206e6f74206f70656e00600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f504f573a206c656166206973206e6f742061206d656d626572206f662074686560008201527f206d65726b6c6520747265650000000000000000000000000000000000000000602082015250565b7f504f573a207075626c69632073616c6520706572696f64206973206e6f74206f60008201527f70656e0000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f504f573a20636f6e747261637420696e746572616374696f6e7320617265206e60008201527f6f74207065726d69747465640000000000000000000000000000000000000000602082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b61569a81614e7d565b81146156a557600080fd5b50565b6156b181614e8f565b81146156bc57600080fd5b50565b6156c881614ea1565b81146156d357600080fd5b50565b6156df81614ead565b81146156ea57600080fd5b50565b6156f681614eb7565b811461570157600080fd5b50565b61570d81614ee3565b811461571857600080fd5b50565b61572481614f15565b811461572f57600080fd5b50565b61573b81614f1f565b811461574657600080fd5b5056fea2646970667358221220467a70039ffdae35699d8b8792917c7fa3b25428e74cf60165b98a014ed26d3164736f6c63430008070033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000d2aa676eee2aa80655446f30294e44b20c817684000000000000000000000000188b44ee5bc9dce3fafbd51e6a977c362d71034c000000000000000000000000238c89f77cccef603372bc2924b74190113f82dc000000000000000000000000b8ad035de7a570e0198c2d2c5d825ab40f61c2b70000000000000000000000008b88130e3b6d99ac05e382c17bd28dcad2f86d4100000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000005

Deployed Bytecode

0x6080604052600436106102815760003560e01c80637cb647591161014f578063b3fee00f116100c1578063d79779b21161007a578063d79779b2146109fe578063dc33e68114610a3b578063e33b7de314610a78578063e985e9c514610aa3578063f1d5f51714610ae0578063f2fde38b14610b09576102c8565b8063b3fee00f146108d9578063b88d4fde146108f5578063c45ac0501461091e578063c87b56dd1461095b578063cb8ce9a114610998578063ce7c2ac2146109c1576102c8565b806395d89b411161011357806395d89b41146107c45780639852595c146107ef578063a035b1fe1461082c578063a0712d6814610857578063a22cb46514610873578063a3f8eace1461089c576102c8565b80637cb64759146106e15780638b83209b1461070a5780638da5cb5b146107475780638f2fc60b1461077257806391b7f5ed1461079b576102c8565b80633a98ef39116101f35780636352211e116101ac5780636352211e146105e5578063656d677e1461062257806369ba1a75146106395780636c0360eb1461066257806370a082311461068d578063715018a6146106ca576102c8565b80633a98ef39146104d75780633c8463a114610502578063406072a91461052d57806342842e0e1461056a57806348b750441461059357806355f804b3146105bc576102c8565b8063191655871161024557806319165587146103c6578063200d2ed2146103ef57806323b872dd1461041a5780632a55205a146104435780632eb4a7ab1461048157806332cb6b0c146104ac576102c8565b806301ffc9a7146102cd57806306fdde031461030a578063081812fc14610335578063095ea7b31461037257806318160ddd1461039b576102c8565b366102c8577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7706102af610b32565b346040516102be929190614997565b60405180910390a1005b600080fd5b3480156102d957600080fd5b506102f460048036038101906102ef91906142d8565b610b3a565b60405161030191906149c0565b60405180910390f35b34801561031657600080fd5b5061031f610b4c565b60405161032c91906149f6565b60405180910390f35b34801561034157600080fd5b5061035c600480360381019061035791906143e8565b610bde565b6040516103699190614907565b60405180910390f35b34801561037e57600080fd5b506103996004803603810190610394919061418a565b610c5a565b005b3480156103a757600080fd5b506103b0610d65565b6040516103bd9190614c78565b60405180910390f35b3480156103d257600080fd5b506103ed60048036038101906103e89190614007565b610d7c565b005b3480156103fb57600080fd5b50610404610f05565b6040516104119190614c78565b60405180910390f35b34801561042657600080fd5b50610441600480360381019061043c9190614074565b610f0b565b005b34801561044f57600080fd5b5061046a60048036038101906104659190614442565b610f1b565b604051610478929190614997565b60405180910390f35b34801561048d57600080fd5b50610496611106565b6040516104a391906149db565b60405180910390f35b3480156104b857600080fd5b506104c161110c565b6040516104ce9190614c78565b60405180910390f35b3480156104e357600080fd5b506104ec611112565b6040516104f99190614c78565b60405180910390f35b34801561050e57600080fd5b5061051761111c565b6040516105249190614c78565b60405180910390f35b34801561053957600080fd5b50610554600480360381019061054f919061435f565b611122565b6040516105619190614c78565b60405180910390f35b34801561057657600080fd5b50610591600480360381019061058c9190614074565b6111a9565b005b34801561059f57600080fd5b506105ba60048036038101906105b5919061435f565b6111c9565b005b3480156105c857600080fd5b506105e360048036038101906105de919061439f565b6113e6565b005b3480156105f157600080fd5b5061060c600480360381019061060791906143e8565b611408565b6040516106199190614907565b60405180910390f35b34801561062e57600080fd5b5061063761141e565b005b34801561064557600080fd5b50610660600480360381019061065b91906143e8565b6114e1565b005b34801561066e57600080fd5b506106776114f3565b60405161068491906149f6565b60405180910390f35b34801561069957600080fd5b506106b460048036038101906106af9190613fda565b611581565b6040516106c19190614c78565b60405180910390f35b3480156106d657600080fd5b506106df611651565b005b3480156106ed57600080fd5b50610708600480360381019061070391906142ab565b611665565b005b34801561071657600080fd5b50610731600480360381019061072c91906143e8565b611677565b60405161073e9190614907565b60405180910390f35b34801561075357600080fd5b5061075c6116bf565b6040516107699190614907565b60405180910390f35b34801561077e57600080fd5b50610799600480360381019061079491906141ca565b6116e9565b005b3480156107a757600080fd5b506107c260048036038101906107bd91906143e8565b6116ff565b005b3480156107d057600080fd5b506107d9611711565b6040516107e691906149f6565b60405180910390f35b3480156107fb57600080fd5b5061081660048036038101906108119190613fda565b6117a3565b6040516108239190614c78565b60405180910390f35b34801561083857600080fd5b506108416117ec565b60405161084e9190614c78565b60405180910390f35b610871600480360381019061086c91906143e8565b6117f2565b005b34801561087f57600080fd5b5061089a6004803603810190610895919061414a565b611a06565b005b3480156108a857600080fd5b506108c360048036038101906108be9190613fda565b611b7e565b6040516108d09190614c78565b60405180910390f35b6108f360048036038101906108ee919061420a565b611bb1565b005b34801561090157600080fd5b5061091c600480360381019061091791906140c7565b611e7b565b005b34801561092a57600080fd5b506109456004803603810190610940919061435f565b611ef7565b6040516109529190614c78565b60405180910390f35b34801561096757600080fd5b50610982600480360381019061097d91906143e8565b611fb5565b60405161098f91906149f6565b60405180910390f35b3480156109a457600080fd5b506109bf60048036038101906109ba9190614332565b612054565b005b3480156109cd57600080fd5b506109e860048036038101906109e39190613fda565b612119565b6040516109f59190614c78565b60405180910390f35b348015610a0a57600080fd5b50610a256004803603810190610a209190614332565b612162565b604051610a329190614c78565b60405180910390f35b348015610a4757600080fd5b50610a626004803603810190610a5d9190613fda565b6121ab565b604051610a6f9190614c78565b60405180910390f35b348015610a8457600080fd5b50610a8d6121bd565b604051610a9a9190614c78565b60405180910390f35b348015610aaf57600080fd5b50610aca6004803603810190610ac59190614034565b6121c7565b604051610ad791906149c0565b60405180910390f35b348015610aec57600080fd5b50610b076004803603810190610b0291906143e8565b61225b565b005b348015610b1557600080fd5b50610b306004803603810190610b2b9190613fda565b61226d565b005b600033905090565b6000610b45826122f1565b9050919050565b606060028054610b5b90614faf565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8790614faf565b8015610bd45780601f10610ba957610100808354040283529160200191610bd4565b820191906000526020600020905b815481529060010190602001808311610bb757829003601f168201915b5050505050905090565b6000610be98261236b565b610c1f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c6582611408565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ccd576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cec610b32565b73ffffffffffffffffffffffffffffffffffffffff1614158015610d1e5750610d1c81610d17610b32565b6121c7565b155b15610d55576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d608383836123b9565b505050565b6000610d6f61246b565b6001546000540303905090565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610dfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df590614a78565b60405180910390fd5b6000610e0982611b7e565b90506000811415610e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4690614af8565b60405180910390fd5b80600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e9e9190614d68565b9250508190555080600d6000828254610eb79190614d68565b92505081905550610ec88282612474565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568282604051610ef9929190614922565b60405180910390a15050565b60175481565b610f16838383612568565b505050565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614156110b15760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006110bb612a1e565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866110e79190614def565b6110f19190614dbe565b90508160000151819350935050509250929050565b60145481565b6108ae81565b6000600c54905090565b60185481565b6000601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6111c483838360405180602001604052806000815250611e7b565b505050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541161124b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124290614a78565b60405180910390fd5b60006112578383611ef7565b9050600081141561129d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129490614af8565b60405180910390fd5b80601260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113299190614d68565b9250508190555080601160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461137f9190614d68565b92505081905550611391838383612a28565b8273ffffffffffffffffffffffffffffffffffffffff167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a83836040516113d9929190614997565b60405180910390a2505050565b6113ee612aae565b8060159080519060200190611404929190613cd7565b5050565b600061141382612b2c565b600001519050919050565b6002600b541415611464576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145b90614c18565b60405180910390fd5b6002600b8190555060005b6013805490508110156114d6576114c36013828154811061149357611492615147565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610d7c565b80806114ce90615012565b91505061146f565b506001600b81905550565b6114e9612aae565b8060178190555050565b6015805461150090614faf565b80601f016020809104026020016040519081016040528092919081815260200182805461152c90614faf565b80156115795780601f1061154e57610100808354040283529160200191611579565b820191906000526020600020905b81548152906001019060200180831161155c57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115e9576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611659612aae565b6116636000612dbb565b565b61166d612aae565b8060148190555050565b60006010828154811061168d5761168c615147565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6116f1612aae565b6116fb8282612e81565b5050565b611707612aae565b8060168190555050565b60606003805461172090614faf565b80601f016020809104026020016040519081016040528092919081815260200182805461174c90614faf565b80156117995780601f1061176e57610100808354040283529160200191611799565b820191906000526020600020905b81548152906001019060200180831161177c57829003601f168201915b5050505050905090565b6000600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60165481565b6002600b541415611838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182f90614c18565b60405180910390fd5b6002600b81905550600260175414611885576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187c90614b98565b60405180910390fd5b806016546118939190614def565b34146118d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cb90614a18565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611942576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193990614c38565b60405180910390fd5b60185461194e33613017565b826119599190614d68565b111561199a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199190614a58565b60405180910390fd5b6108ae816119a6613081565b6119b09190614d68565b11156119f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e890614b18565b60405180910390fd5b6119fb3382613094565b6001600b8190555050565b611a0e610b32565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a73576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611a80610b32565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b2d610b32565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b7291906149c0565b60405180910390a35050565b600080611b896121bd565b47611b949190614d68565b9050611ba98382611ba4866117a3565b6130b2565b915050919050565b6002600b541415611bf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bee90614c18565b60405180910390fd5b6002600b81905550600160175414611c44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3b90614b38565b60405180910390fd5b81601654611c529190614def565b3414611c93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8a90614a18565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611d01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf890614c38565b60405180910390fd5b6108ae82611d0d613081565b611d179190614d68565b1115611d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4f90614b18565b60405180910390fd5b8082611d6333613017565b611d6d9190614d68565b1115611dae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da590614a58565b60405180910390fd5b611e24848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506014543384604051602001611e0992919061488b565b60405160208183030381529060405280519060200120613120565b611e63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5a90614b78565b60405180910390fd5b611e6d3383613094565b6001600b8190555050505050565b611e86848484612568565b611ea58373ffffffffffffffffffffffffffffffffffffffff16613137565b8015611eba5750611eb88484848461315a565b155b15611ef1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b600080611f0384612162565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611f3c9190614907565b60206040518083038186803b158015611f5457600080fd5b505afa158015611f68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8c9190614415565b611f969190614d68565b9050611fac8382611fa78787611122565b6130b2565b91505092915050565b6060611fc08261236b565b611ff6576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006120006132ba565b9050600081511415612021576040518060200160405280600081525061204c565b8061202b8461334c565b60405160200161203c9291906148ce565b6040516020818303038152906040525b915050919050565b6002600b54141561209a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209190614c18565b60405180910390fd5b6002600b8190555060005b60138054905081101561210d576120fa82601383815481106120ca576120c9615147565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166111c9565b808061210590615012565b9150506120a5565b506001600b8190555050565b6000600e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006121b682613017565b9050919050565b6000600d54905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612263612aae565b8060188190555050565b612275612aae565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122dc90614a38565b60405180910390fd5b6122ee81612dbb565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123645750612363826134ad565b5b9050919050565b60008161237661246b565b11158015612385575060005482105b80156123b2575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b804710156124b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ae90614ab8565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516124dd906148f2565b60006040518083038185875af1925050503d806000811461251a576040519150601f19603f3d011682016040523d82523d6000602084013e61251f565b606091505b5050905080612563576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255a90614a98565b60405180910390fd5b505050565b600061257382612b2c565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146125de576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166125ff610b32565b73ffffffffffffffffffffffffffffffffffffffff16148061262e575061262d85612628610b32565b6121c7565b5b80612673575061263c610b32565b73ffffffffffffffffffffffffffffffffffffffff1661265b84610bde565b73ffffffffffffffffffffffffffffffffffffffff16145b9050806126ac576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612713576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612720858585600161358f565b61272c600084876123b9565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156129ac5760005482146129ab57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a178585856001613595565b5050505050565b6000612710905090565b612aa98363a9059cbb60e01b8484604051602401612a47929190614997565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061359b565b505050565b612ab6610b32565b73ffffffffffffffffffffffffffffffffffffffff16612ad46116bf565b73ffffffffffffffffffffffffffffffffffffffff1614612b2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b2190614b58565b60405180910390fd5b565b612b34613d5d565b600082905080612b4261246b565b11158015612b51575060005481105b15612d84576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612d8257600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612c66578092505050612db6565b5b600115612d8157818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612d7c578092505050612db6565b612c67565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612e89612a1e565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ede90614bd8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4e90614c58565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b600061308b61246b565b60005403905090565b6130ae828260405180602001604052806000815250613662565b5050565b600081600c54600e60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054856131039190614def565b61310d9190614dbe565b6131179190614e49565b90509392505050565b60008261312d8584613674565b1490509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613180610b32565b8786866040518563ffffffff1660e01b81526004016131a2949392919061494b565b602060405180830381600087803b1580156131bc57600080fd5b505af19250505080156131ed57506040513d601f19601f820116820180604052508101906131ea9190614305565b60015b613267573d806000811461321d576040519150601f19603f3d011682016040523d82523d6000602084013e613222565b606091505b5060008151141561325f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060601580546132c990614faf565b80601f01602080910402602001604051908101604052809291908181526020018280546132f590614faf565b80156133425780601f1061331757610100808354040283529160200191613342565b820191906000526020600020905b81548152906001019060200180831161332557829003601f168201915b5050505050905090565b60606000821415613394576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506134a8565b600082905060005b600082146133c65780806133af90615012565b915050600a826133bf9190614dbe565b915061339c565b60008167ffffffffffffffff8111156133e2576133e1615176565b5b6040519080825280601f01601f1916602001820160405280156134145781602001600182028036833780820191505090505b5090505b600085146134a15760018261342d9190614e49565b9150600a8561343c9190615089565b60306134489190614d68565b60f81b81838151811061345e5761345d615147565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561349a9190614dbe565b9450613418565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061357857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806135885750613587826136ca565b5b9050919050565b50505050565b50505050565b60006135fd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166137349092919063ffffffff16565b905060008151111561365d578080602001905181019061361d919061427e565b61365c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161365390614bf8565b60405180910390fd5b5b505050565b61366f838383600161374c565b505050565b60008082905060005b84518110156136bf576136aa8286838151811061369d5761369c615147565b5b6020026020010151613b1a565b915080806136b790615012565b91505061367d565b508091505092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60606137438484600085613b45565b90509392505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156137b9576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008414156137f4576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613801600086838761358f565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600085820190508380156139cb57506139ca8773ffffffffffffffffffffffffffffffffffffffff16613137565b5b15613a91575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613a40600088848060010195508861315a565b613a76576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808214156139d1578260005414613a8c57600080fd5b613afd565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613a92575b816000819055505050613b136000868387613595565b5050505050565b6000818310613b3257613b2d8284613c59565b613b3d565b613b3c8383613c59565b5b905092915050565b606082471015613b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b8190614ad8565b60405180910390fd5b613b9385613137565b613bd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bc990614bb8565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613bfb91906148b7565b60006040518083038185875af1925050503d8060008114613c38576040519150601f19603f3d011682016040523d82523d6000602084013e613c3d565b606091505b5091509150613c4d828286613c70565b92505050949350505050565b600082600052816020526040600020905092915050565b60608315613c8057829050613cd0565b600083511115613c935782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cc791906149f6565b60405180910390fd5b9392505050565b828054613ce390614faf565b90600052602060002090601f016020900481019282613d055760008555613d4c565b82601f10613d1e57805160ff1916838001178555613d4c565b82800160010185558215613d4c579182015b82811115613d4b578251825591602001919060010190613d30565b5b509050613d599190613da0565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613db9576000816000905550600101613da1565b5090565b6000613dd0613dcb84614cb8565b614c93565b905082815260208101848484011115613dec57613deb6151b4565b5b613df7848285614f6d565b509392505050565b6000613e12613e0d84614ce9565b614c93565b905082815260208101848484011115613e2e57613e2d6151b4565b5b613e39848285614f6d565b509392505050565b600081359050613e5081615691565b92915050565b600081359050613e65816156a8565b92915050565b60008083601f840112613e8157613e806151aa565b5b8235905067ffffffffffffffff811115613e9e57613e9d6151a5565b5b602083019150836020820283011115613eba57613eb96151af565b5b9250929050565b600081359050613ed0816156bf565b92915050565b600081519050613ee5816156bf565b92915050565b600081359050613efa816156d6565b92915050565b600081359050613f0f816156ed565b92915050565b600081519050613f24816156ed565b92915050565b600082601f830112613f3f57613f3e6151aa565b5b8135613f4f848260208601613dbd565b91505092915050565b600081359050613f6781615704565b92915050565b600082601f830112613f8257613f816151aa565b5b8135613f92848260208601613dff565b91505092915050565b600081359050613faa8161571b565b92915050565b600081519050613fbf8161571b565b92915050565b600081359050613fd481615732565b92915050565b600060208284031215613ff057613fef6151be565b5b6000613ffe84828501613e41565b91505092915050565b60006020828403121561401d5761401c6151be565b5b600061402b84828501613e56565b91505092915050565b6000806040838503121561404b5761404a6151be565b5b600061405985828601613e41565b925050602061406a85828601613e41565b9150509250929050565b60008060006060848603121561408d5761408c6151be565b5b600061409b86828701613e41565b93505060206140ac86828701613e41565b92505060406140bd86828701613f9b565b9150509250925092565b600080600080608085870312156140e1576140e06151be565b5b60006140ef87828801613e41565b945050602061410087828801613e41565b935050604061411187828801613f9b565b925050606085013567ffffffffffffffff811115614132576141316151b9565b5b61413e87828801613f2a565b91505092959194509250565b60008060408385031215614161576141606151be565b5b600061416f85828601613e41565b925050602061418085828601613ec1565b9150509250929050565b600080604083850312156141a1576141a06151be565b5b60006141af85828601613e41565b92505060206141c085828601613f9b565b9150509250929050565b600080604083850312156141e1576141e06151be565b5b60006141ef85828601613e41565b925050602061420085828601613fc5565b9150509250929050565b60008060008060608587031215614224576142236151be565b5b600085013567ffffffffffffffff811115614242576142416151b9565b5b61424e87828801613e6b565b9450945050602061426187828801613f9b565b925050604061427287828801613f9b565b91505092959194509250565b600060208284031215614294576142936151be565b5b60006142a284828501613ed6565b91505092915050565b6000602082840312156142c1576142c06151be565b5b60006142cf84828501613eeb565b91505092915050565b6000602082840312156142ee576142ed6151be565b5b60006142fc84828501613f00565b91505092915050565b60006020828403121561431b5761431a6151be565b5b600061432984828501613f15565b91505092915050565b600060208284031215614348576143476151be565b5b600061435684828501613f58565b91505092915050565b60008060408385031215614376576143756151be565b5b600061438485828601613f58565b925050602061439585828601613e41565b9150509250929050565b6000602082840312156143b5576143b46151be565b5b600082013567ffffffffffffffff8111156143d3576143d26151b9565b5b6143df84828501613f6d565b91505092915050565b6000602082840312156143fe576143fd6151be565b5b600061440c84828501613f9b565b91505092915050565b60006020828403121561442b5761442a6151be565b5b600061443984828501613fb0565b91505092915050565b60008060408385031215614459576144586151be565b5b600061446785828601613f9b565b925050602061447885828601613f9b565b9150509250929050565b61448b81614f37565b82525050565b61449a81614e7d565b82525050565b6144b16144ac82614e7d565b61505b565b82525050565b6144c081614ea1565b82525050565b6144cf81614ead565b82525050565b60006144e082614d1a565b6144ea8185614d30565b93506144fa818560208601614f7c565b614503816151c3565b840191505092915050565b600061451982614d1a565b6145238185614d41565b9350614533818560208601614f7c565b80840191505092915050565b600061454a82614d25565b6145548185614d4c565b9350614564818560208601614f7c565b61456d816151c3565b840191505092915050565b600061458382614d25565b61458d8185614d5d565b935061459d818560208601614f7c565b80840191505092915050565b60006145b6601f83614d4c565b91506145c1826151e1565b602082019050919050565b60006145d9602683614d4c565b91506145e48261520a565b604082019050919050565b60006145fc602c83614d4c565b915061460782615259565b604082019050919050565b600061461f602683614d4c565b915061462a826152a8565b604082019050919050565b6000614642603a83614d4c565b915061464d826152f7565b604082019050919050565b6000614665601d83614d4c565b915061467082615346565b602082019050919050565b6000614688602683614d4c565b91506146938261536f565b604082019050919050565b60006146ab602b83614d4c565b91506146b6826153be565b604082019050919050565b60006146ce602083614d4c565b91506146d98261540d565b602082019050919050565b60006146f1601f83614d4c565b91506146fc82615436565b602082019050919050565b6000614714602083614d4c565b915061471f8261545f565b602082019050919050565b6000614737602c83614d4c565b915061474282615488565b604082019050919050565b600061475a602383614d4c565b9150614765826154d7565b604082019050919050565b600061477d600083614d41565b915061478882615526565b600082019050919050565b60006147a0601d83614d4c565b91506147ab82615529565b602082019050919050565b60006147c3602a83614d4c565b91506147ce82615552565b604082019050919050565b60006147e6602a83614d4c565b91506147f1826155a1565b604082019050919050565b6000614809601f83614d4c565b9150614814826155f0565b602082019050919050565b600061482c602c83614d4c565b915061483782615619565b604082019050919050565b600061484f601983614d4c565b915061485a82615668565b602082019050919050565b61486e81614f15565b82525050565b61488561488082614f15565b61507f565b82525050565b600061489782856144a0565b6014820191506148a78284614874565b6020820191508190509392505050565b60006148c3828461450e565b915081905092915050565b60006148da8285614578565b91506148e68284614578565b91508190509392505050565b60006148fd82614770565b9150819050919050565b600060208201905061491c6000830184614491565b92915050565b60006040820190506149376000830185614482565b6149446020830184614865565b9392505050565b60006080820190506149606000830187614491565b61496d6020830186614491565b61497a6040830185614865565b818103606083015261498c81846144d5565b905095945050505050565b60006040820190506149ac6000830185614491565b6149b96020830184614865565b9392505050565b60006020820190506149d560008301846144b7565b92915050565b60006020820190506149f060008301846144c6565b92915050565b60006020820190508181036000830152614a10818461453f565b905092915050565b60006020820190508181036000830152614a31816145a9565b9050919050565b60006020820190508181036000830152614a51816145cc565b9050919050565b60006020820190508181036000830152614a71816145ef565b9050919050565b60006020820190508181036000830152614a9181614612565b9050919050565b60006020820190508181036000830152614ab181614635565b9050919050565b60006020820190508181036000830152614ad181614658565b9050919050565b60006020820190508181036000830152614af18161467b565b9050919050565b60006020820190508181036000830152614b118161469e565b9050919050565b60006020820190508181036000830152614b31816146c1565b9050919050565b60006020820190508181036000830152614b51816146e4565b9050919050565b60006020820190508181036000830152614b7181614707565b9050919050565b60006020820190508181036000830152614b918161472a565b9050919050565b60006020820190508181036000830152614bb18161474d565b9050919050565b60006020820190508181036000830152614bd181614793565b9050919050565b60006020820190508181036000830152614bf1816147b6565b9050919050565b60006020820190508181036000830152614c11816147d9565b9050919050565b60006020820190508181036000830152614c31816147fc565b9050919050565b60006020820190508181036000830152614c518161481f565b9050919050565b60006020820190508181036000830152614c7181614842565b9050919050565b6000602082019050614c8d6000830184614865565b92915050565b6000614c9d614cae565b9050614ca98282614fe1565b919050565b6000604051905090565b600067ffffffffffffffff821115614cd357614cd2615176565b5b614cdc826151c3565b9050602081019050919050565b600067ffffffffffffffff821115614d0457614d03615176565b5b614d0d826151c3565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614d7382614f15565b9150614d7e83614f15565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614db357614db26150ba565b5b828201905092915050565b6000614dc982614f15565b9150614dd483614f15565b925082614de457614de36150e9565b5b828204905092915050565b6000614dfa82614f15565b9150614e0583614f15565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614e3e57614e3d6150ba565b5b828202905092915050565b6000614e5482614f15565b9150614e5f83614f15565b925082821015614e7257614e716150ba565b5b828203905092915050565b6000614e8882614ef5565b9050919050565b6000614e9a82614ef5565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000614eee82614e7d565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006bffffffffffffffffffffffff82169050919050565b6000614f4282614f49565b9050919050565b6000614f5482614f5b565b9050919050565b6000614f6682614ef5565b9050919050565b82818337600083830152505050565b60005b83811015614f9a578082015181840152602081019050614f7f565b83811115614fa9576000848401525b50505050565b60006002820490506001821680614fc757607f821691505b60208210811415614fdb57614fda615118565b5b50919050565b614fea826151c3565b810181811067ffffffffffffffff8211171561500957615008615176565b5b80604052505050565b600061501d82614f15565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156150505761504f6150ba565b5b600182019050919050565b60006150668261506d565b9050919050565b6000615078826151d4565b9050919050565b6000819050919050565b600061509482614f15565b915061509f83614f15565b9250826150af576150ae6150e9565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f504f573a20696e737566666963656e742065746865722070726f766964656400600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f504f573a2070726f766964656420616d6f756e74206578636565647320616c6c60008201527f6f6361746564206d696e74730000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060008201527f7368617265730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060008201527f647565207061796d656e74000000000000000000000000000000000000000000602082015250565b7f504f573a20616c6c20746f6b656e732068617665206265656e206d696e746564600082015250565b7f504f573a2070726573616c6520706572696f64206973206e6f74206f70656e00600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f504f573a206c656166206973206e6f742061206d656d626572206f662074686560008201527f206d65726b6c6520747265650000000000000000000000000000000000000000602082015250565b7f504f573a207075626c69632073616c6520706572696f64206973206e6f74206f60008201527f70656e0000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f504f573a20636f6e747261637420696e746572616374696f6e7320617265206e60008201527f6f74207065726d69747465640000000000000000000000000000000000000000602082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b61569a81614e7d565b81146156a557600080fd5b50565b6156b181614e8f565b81146156bc57600080fd5b50565b6156c881614ea1565b81146156d357600080fd5b50565b6156df81614ead565b81146156ea57600080fd5b50565b6156f681614eb7565b811461570157600080fd5b50565b61570d81614ee3565b811461571857600080fd5b50565b61572481614f15565b811461572f57600080fd5b50565b61573b81614f1f565b811461574657600080fd5b5056fea2646970667358221220467a70039ffdae35699d8b8792917c7fa3b25428e74cf60165b98a014ed26d3164736f6c63430008070033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000d2aa676eee2aa80655446f30294e44b20c817684000000000000000000000000188b44ee5bc9dce3fafbd51e6a977c362d71034c000000000000000000000000238c89f77cccef603372bc2924b74190113f82dc000000000000000000000000b8ad035de7a570e0198c2d2c5d825ab40f61c2b70000000000000000000000008b88130e3b6d99ac05e382c17bd28dcad2f86d4100000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000005

-----Decoded View---------------
Arg [0] : _payees (address[]): 0xd2AA676EEe2aA80655446f30294e44B20C817684,0x188B44Ee5BC9dCe3fafbd51e6a977c362d71034c,0x238C89F77cCcef603372bC2924B74190113f82dC,0xB8ad035de7A570E0198C2d2c5D825aB40f61c2B7,0x8b88130e3B6d99aC05e382C17bD28dcaD2F86D41
Arg [1] : _shares (uint256[]): 70,15,5,5,5

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 000000000000000000000000d2aa676eee2aa80655446f30294e44b20c817684
Arg [4] : 000000000000000000000000188b44ee5bc9dce3fafbd51e6a977c362d71034c
Arg [5] : 000000000000000000000000238c89f77cccef603372bc2924b74190113f82dc
Arg [6] : 000000000000000000000000b8ad035de7a570e0198c2d2c5d825ab40f61c2b7
Arg [7] : 0000000000000000000000008b88130e3b6d99ac05e382c17bd28dcad2f86d41
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000046
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000005


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.