ETH Price: $3,239.36 (-0.45%)
Gas: 2.42 Gwei

Token

BattleMancers (BM)
 

Overview

Max Total Supply

160 BM

Holders

54

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
angelamantilla.eth
Balance
1 BM
0x83F80B5E2D5f8d00d5d935DdC6dCa022aC61eE7f
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:
BattleMancers

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-09-07
*/

//SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

/*
  ____        _   _   _        __  __                               
 |  _ \      | | | | | |      |  \/  |                              
 | |_) | __ _| |_| |_| | ___  | \  / | __ _ _ __   ___ ___ _ __ ___ 
 |  _ < / _  | __| __| |/ _ \ | |\/| |/ _  |  _ \ / __/ _ \  __/ __|
 | |_) | (_| | |_| |_| |  __/ | |  | | (_| | | | | (_|  __/ |  \__ \
 |____/ \__,_|\__|\__|_|\___| |_|  |_|\__,_|_| |_|\___\___|_|  |___/

*/



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)
        }
    }
}

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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");
        }
    }
}

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

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);
}

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);
}

interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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`,
     * 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 be 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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

    /**
     * @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 payable;

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _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 {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

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

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

    /**
     * Sets the auxiliary 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 virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    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, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

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

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @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 {}

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

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @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 for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, 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.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev 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 {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // 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 {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

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

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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 _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

error ZeroAddressError();

abstract contract BattleMancersAdministration {
    address public operator;
	mapping(address => bool) private _moderators;
	
    event OperatorSet(address indexed operator);
	event ModeratorSet(address indexed moderator, bool status);

	error AuthorizationError();

    constructor(address _operator) {
		if(_operator == address(0)) revert ZeroAddressError();
        operator = _operator;
    }

    // =============================================================
    //                    MODIFIERS
    // =============================================================
    modifier onlyOperator {
        if( isOperator( msg.sender ) ){
			_;
		}else{
			revert AuthorizationError();
		} 
    }
    modifier onlyModerator{
        if( isOperator( msg.sender ) || isModerator( msg.sender ) ){
			_;
		}else{
			revert AuthorizationError();
		} 
    }
	
    // =============================================================
    //                    GETTERS
    // =============================================================
	function isOperator(address account) public view returns (bool) {
		return account == operator;
	}	
	function isModerator(address account) public view returns (bool) {
		return ( _moderators[account] == true );
	}
	
    // =============================================================
    //                    SETTERS
    // =============================================================
    function setOperator(address account) external onlyOperator {
        if(account == address(0)) revert ZeroAddressError();
		operator = account;
        emit OperatorSet(account);
    }
    function setModerator(address account, bool _status) external onlyOperator{
        if(account == address(0)) revert ZeroAddressError();
		_moderators[account] = _status;
        emit ModeratorSet(account, _status);        
    }
}

contract BattleMancers is ERC721A, BattleMancersAdministration, ReentrancyGuard {

    using SafeERC20 for IERC20;

    uint public constant PRICE = 0.077 ether;

	uint256 public constant MAX_SUPPLY = 3333;
	uint256 public constant RESERVE_SUPPLY = 83;
    uint256 public constant MAX_PUBLIC_MINT = 5;

    uint256 public publicMintTime = 0;
    uint256 public whitelistMintTime = 0;

	mapping(address => bool) private _whitelistClaimed;
    mapping(address => uint256) private _mintedQuantity;
	
    mapping(uint256 => bool) private _lock;
	mapping(address => bool) private _bannedAddress;

	uint256 private _avaliableForUsers;
	uint256 private _reserveMinted = 0;
    string private _baseTokenURI;
	bytes32 private _merkleRoot;

	bool private _soldOut = false;

	error ZeroMint();
	error InvalidEther(uint256 quantity, uint256 sent, uint256 required);
	error SaleNotActive(string saleType);
	error SoldOut();

    // =============================================================
    //                    CONSTRUCTOR
    // =============================================================
    constructor( address _operator ) BattleMancersAdministration(_operator) ERC721A("BattleMancers", "BM") {
		_avaliableForUsers = MAX_SUPPLY - RESERVE_SUPPLY;
	}

    // =============================================================
    //                    MODIFIERS
    // =============================================================
    modifier publicSaleActive {
		if( publicMintTime == 0 || block.timestamp < publicMintTime ) revert SaleNotActive("Public Sale");
        _;		
    }
    modifier whitelistSaleActive {
		if( whitelistMintTime == 0 || block.timestamp < whitelistMintTime ) revert SaleNotActive("Whitelist Sale");
        _;		
    }
    modifier notSoldOut {
		if( _soldOut ) revert SoldOut();
        _;
		// Mark collection as sold out when user supply is exhausted
		if ( (_totalMinted() - _reserveMinted) >= _avaliableForUsers) _soldOut = true;
    }	
    // =============================================================
    //                   MINT FUNCTIONS
    // =============================================================	
    function mint( uint256 quantity ) external payable publicSaleActive notSoldOut nonReentrant {
		// Calculate avaliable mints
		uint256 userMintsRemaining = getRemainingQuantity( msg.sender );
		require ( userMintsRemaining > 0, "No more public mints avaliable for this address" );

		// Actual mint amount
		uint256 toMint = ( quantity > userMintsRemaining ) ? userMintsRemaining : quantity;

		// Cannot mint zero
		if ( toMint == 0 ) revert ZeroMint(); 

		// Get price
		uint256 totalPrice = getPrice( toMint );

		// Check correct ETH sent
		if ( msg.value < totalPrice  ){
	        revert InvalidEther({
				quantity: toMint,
				sent: msg.value,
				required: totalPrice
			});
		}	

		// Increase users mint quantity
		_mintedQuantity[msg.sender] += toMint;

		// Mint
        _mint(msg.sender, toMint);
		
		// Refund excess ETH
		_refundExtraETH( totalPrice );
    }
    function whitelistMint( bytes32[] calldata merkleProof ) external payable whitelistSaleActive notSoldOut nonReentrant {
		// Check if already minted
		require( whitelistClaimed(msg.sender) != true, "Whitelist already claimed" );
		
		// Check correct ETH sent
		if ( msg.value != PRICE  ){
	        revert InvalidEther({
				quantity: 1,
				sent: msg.value,
				required: PRICE
			});
		}
		
		// Check merkle proof
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require( MerkleProof.verify(merkleProof, _merkleRoot, leaf), "Invalid merkle proof" );		
		
		// Set whitelist minted
		_whitelistClaimed[msg.sender] = true;
		
		// Mint
        _mint( msg.sender, 1 );	
    }	

    // =============================================================
    //                   BURN FUNCTIONS
    // =============================================================	
    function burn(uint256 tokenId) external {
        _burn(tokenId, true);
    }
    function totalBurned() external view returns (uint256) {
        return _totalBurned();
    }	
	
    // =============================================================
    //                     VIEW FUNCTIONS
    // =============================================================
	function getPrice( uint256 quantity ) public pure returns (uint256) {
		require( quantity <= MAX_PUBLIC_MINT, "Can not mint that many" );
		return PRICE * quantity;
	}			
    function getRemainingQuantity( address user ) public view returns (uint256) {
		uint256 addressMintsRemaining = MAX_PUBLIC_MINT - _mintedQuantity[user];
		uint256 userMintsRemaining = _avaliableForUsers - ( _totalMinted() - _reserveMinted );
		if ( addressMintsRemaining > userMintsRemaining ){
			return userMintsRemaining;
		}else{
			return addressMintsRemaining;
		}
    }
    function whitelistClaimed( address account ) public view returns (bool) {
        return _whitelistClaimed[account];
    }
    function getLock( uint256 id ) public view returns (bool) {
        return _lock[id];
    } 
    function getBanned( address user ) public view returns (bool) {
        return _bannedAddress[user];
    } 	
	function isSoldOut() external view returns (bool) {
		return _soldOut;
	}
	function verifyWhitelist( address account, bytes32[] calldata merkleProof ) external view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(account));
        return MerkleProof.verify(merkleProof, _merkleRoot, leaf);		
	}
	
    // =============================================================
    //                     ADMIN FUNCTIONS
    // =============================================================	
    function mintReserved( address to, uint256 quantity ) external payable onlyOperator nonReentrant {
		require( (_reserveMinted + quantity) <= RESERVE_SUPPLY, "Not enough reserve mints avaliable" );
		_reserveMinted += quantity;
		_safeMint( to, quantity );
    }		
    function setBaseURI( string memory baseURI ) external onlyOperator {
        _baseTokenURI = baseURI;
    }
    function setMerkleRoot( bytes32 newMerkleRoot ) external onlyOperator {
        _merkleRoot = newMerkleRoot;
    }	
	function setWhitelistStartTime( uint32 timestamp ) external onlyOperator {
		whitelistMintTime = timestamp;
	}
	function setPublicStartTime( uint32 timestamp ) external onlyOperator {
		publicMintTime = timestamp;
	}
    function recoverERC20( address tokenAddress, uint256 tokenAmount, address destination ) external payable onlyOperator nonReentrant {
        IERC20(tokenAddress).safeTransfer(destination, tokenAmount);
    }
    function withdrawETH() external payable onlyOperator nonReentrant {
        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    // =============================================================
    //                     MODERATION FUNCTIONS
    // =============================================================
    function setTransferLock( uint256 id, bool isLocked ) external onlyModerator {
        _lock[id] = isLocked;
    }
    function setBannedAddress( address user, bool isBanned ) external onlyModerator {
		_bannedAddress[user] = isBanned;
    }
	
    // =============================================================
    //                     INTERNAL FUNCTIONS
    // =============================================================	
	function _baseURI() internal view virtual override returns (string memory) {
		return _baseTokenURI;
	}		
	
	function _refundExtraETH( uint256 price ) internal {
		if (msg.value > price) {
			payable(msg.sender).transfer(msg.value - price);
		}
	}	
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual override{
		if ( from != address(0) ){
			require(!getLock(startTokenId), "Token is locked!");
			require(!getBanned(from), "Sender is banned!");
			require(!getBanned(to), "Receiver is banned!");
		}
    }
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual override{
		// Burn all tokens sent to this address
		if ( to == address(this) ){
			_burn(startTokenId, true);
		}
    }	
	
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"AuthorizationError","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"sent","type":"uint256"},{"internalType":"uint256","name":"required","type":"uint256"}],"name":"InvalidEther","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[{"internalType":"string","name":"saleType","type":"string"}],"name":"SaleNotActive","type":"error"},{"inputs":[],"name":"SoldOut","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"},{"inputs":[],"name":"ZeroAddressError","type":"error"},{"inputs":[],"name":"ZeroMint","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"moderator","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"ModeratorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"}],"name":"OperatorSet","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_PUBLIC_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVE_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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getBanned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getLock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getRemainingQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"account","type":"address"}],"name":"isModerator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSoldOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintReserved","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"address","name":"destination","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"payable","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bool","name":"isBanned","type":"bool"}],"name":"setBannedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setModerator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"setPublicStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"isLocked","type":"bool"}],"name":"setTransferLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"setWhitelistStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"verifyWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"whitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMintTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"payable","type":"function"}]

60806040526000600b819055600c8190556012556015805460ff191690553480156200002a57600080fd5b50604051620028eb380380620028eb8339810160408190526200004d91620001c7565b604080518082018252600d81526c426174746c654d616e6365727360981b60208083019182528351808501909452600280855261424d60f01b9185019190915282518594926200009e929162000121565b508051620000b490600390602084019062000121565b506000805550506001600160a01b038116620000e357604051633efa09af60e01b815260040160405180910390fd5b600880546001600160a01b0319166001600160a01b03929092169190911790556001600a55620001176053610d05620001f9565b601155506200025c565b8280546200012f906200021f565b90600052602060002090601f0160209004810192826200015357600085556200019e565b82601f106200016e57805160ff19168380011785556200019e565b828001600101855582156200019e579182015b828111156200019e57825182559160200191906001019062000181565b50620001ac929150620001b0565b5090565b5b80821115620001ac5760008155600101620001b1565b600060208284031215620001da57600080fd5b81516001600160a01b0381168114620001f257600080fd5b9392505050565b6000828210156200021a57634e487b7160e01b600052601160045260246000fd5b500390565b600181811c908216806200023457607f821691505b602082108114156200025657634e487b7160e01b600052602260045260246000fd5b50919050565b61267f806200026c6000396000f3fe6080604052600436106102725760003560e01c80636d70f7ae1161014f578063b3ab15fb116100c1578063d89135cd1161007a578063d89135cd14610710578063db4bec4414610725578063e086e5ec1461075e578063e757223014610766578063e985e9c514610786578063fa6f3936146107cf57600080fd5b8063b3ab15fb1461065a578063b51609b41461067a578063b88d4fde1461068d578063c87b56dd146106a0578063d51d9d16146106c0578063d68f4dd1146106e057600080fd5b806395d89b411161011357806395d89b41146105ae5780639805ee36146105c3578063a0712d68146105fc578063a22cb4651461060f578063a8f72e121461062f578063aa66797b1461064557600080fd5b80636d70f7ae1461051057806370a082311461053f5780637cb647591461055f5780637de55fe11461057f5780638d859f3e1461059257600080fd5b806332cb6b0c116101e857806355f804b3116101ac57806355f804b314610465578063570ca735146104855780635e403472146104a55780636352211e146104bb57806365f13097146104db5780636d3ffee3146104f057600080fd5b806332cb6b0c146103e9578063372f657c146103ff5780633ee2b01d1461041257806342842e0e1461043257806342966c681461044557600080fd5b806315c6cd8f1161023a57806315c6cd8f1461033b57806318160ddd1461035b57806320d4ab5a1461037e57806323b872dd1461039e5780632da5ea17146103b157806332a39409146103c957600080fd5b806301ffc9a71461027757806302118177146102ac57806306fdde03146102ce578063081812fc146102f0578063095ea7b314610328575b600080fd5b34801561028357600080fd5b50610297610292366004612028565b61080d565b60405190151581526020015b60405180910390f35b3480156102b857600080fd5b506102cc6102c736600461206f565b61085f565b005b3480156102da57600080fd5b506102e36108d7565b6040516102a391906120fe565b3480156102fc57600080fd5b5061031061030b366004612111565b610969565b6040516001600160a01b0390911681526020016102a3565b6102cc61033636600461212a565b6109ad565b34801561034757600080fd5b506102976103563660046121a0565b610a4d565b34801561036757600080fd5b50600154600054035b6040519081526020016102a3565b34801561038a57600080fd5b506102cc6103993660046121f3565b610ad3565b6102cc6103ac366004612218565b610b25565b3480156103bd57600080fd5b5060155460ff16610297565b3480156103d557600080fd5b506102cc6103e4366004612254565b610cc8565b3480156103f557600080fd5b50610370610d0581565b6102cc61040d36600461227a565b610ce9565b34801561041e57600080fd5b506102cc61042d36600461206f565b610f25565b6102cc610440366004612218565b610fbe565b34801561045157600080fd5b506102cc610460366004612111565b610fde565b34801561047157600080fd5b506102cc610480366004612348565b610fe9565b34801561049157600080fd5b50600854610310906001600160a01b031681565b3480156104b157600080fd5b50610370600b5481565b3480156104c757600080fd5b506103106104d6366004612111565b61100f565b3480156104e757600080fd5b50610370600581565b3480156104fc57600080fd5b5061037061050b366004612391565b61101a565b34801561051c57600080fd5b5061029761052b366004612391565b6008546001600160a01b0391821691161490565b34801561054b57600080fd5b5061037061055a366004612391565b61107f565b34801561056b57600080fd5b506102cc61057a366004612111565b6110ce565b6102cc61058d36600461212a565b6110e6565b34801561059e57600080fd5b506103706701118f178fb4800081565b3480156105ba57600080fd5b506102e3611196565b3480156105cf57600080fd5b506102976105de366004612391565b6001600160a01b031660009081526010602052604090205460ff1690565b6102cc61060a366004612111565b6111a5565b34801561061b57600080fd5b506102cc61062a36600461206f565b61136e565b34801561063b57600080fd5b50610370600c5481565b34801561065157600080fd5b50610370605381565b34801561066657600080fd5b506102cc610675366004612391565b6113da565b6102cc6106883660046123ac565b61145e565b6102cc61069b3660046123e8565b611497565b3480156106ac57600080fd5b506102e36106bb366004612111565b6114e1565b3480156106cc57600080fd5b506102cc6106db366004612254565b611566565b3480156106ec57600080fd5b506102976106fb366004612111565b6000908152600f602052604090205460ff1690565b34801561071c57600080fd5b50610370611584565b34801561073157600080fd5b50610297610740366004612391565b6001600160a01b03166000908152600d602052604090205460ff1690565b6102cc611594565b34801561077257600080fd5b50610370610781366004612111565b6115ec565b34801561079257600080fd5b506102976107a1366004612464565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156107db57600080fd5b506102976107ea366004612391565b6001600160a01b031660009081526009602052604090205460ff16151560011490565b60006301ffc9a760e01b6001600160e01b03198316148061083e57506380ac58cd60e01b6001600160e01b03198316145b806108595750635b5e139f60e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633148061088c57503360009081526009602052604090205460ff1615156001145b156108bb576001600160a01b0382166000908152601060205260409020805482151560ff199091161790555050565b604051621607ef60ea1b815260040160405180910390fd5b5050565b6060600280546108e690612497565b80601f016020809104026020016040519081016040528092919081815260200182805461091290612497565b801561095f5780601f106109345761010080835404028352916020019161095f565b820191906000526020600020905b81548152906001019060200180831161094257829003601f168201915b5050505050905090565b60006109748261164a565b610991576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109b88261100f565b9050336001600160a01b038216146109f1576109d481336107a1565b6109f1576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050610aca848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506014549150849050611671565b95945050505050565b6008546001600160a01b0316331480610b0057503360009081526009602052604090205460ff1615156001145b156108bb576000828152600f60205260409020805482151560ff199091161790555050565b6000610b3082611687565b9050836001600160a01b0316816001600160a01b031614610b635760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610b8f8187335b6001600160a01b039081169116811491141790565b610bba57610b9d86336107a1565b610bba57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610be157604051633a954ecd60e21b815260040160405180910390fd5b610bee86868660016116e8565b8015610bf957600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610c845760018401600081815260046020526040902054610c82576000548114610c825760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b031660008051602061262a83398151915260405160405180910390a4610cc08686866001611805565b505050505050565b6008546001600160a01b03163314156108bb5763ffffffff16600b55565b50565b600c541580610cf95750600c5442105b15610d3d57604051634255c41360e01b815260206004820152600e60248201526d57686974656c6973742053616c6560901b60448201526064015b60405180910390fd5b60155460ff1615610d61576040516352df9fe560e01b815260040160405180910390fd5b610d69611821565b336000908152600d602052604090205460ff16151560011415610dce5760405162461bcd60e51b815260206004820152601960248201527f57686974656c69737420616c726561647920636c61696d6564000000000000006044820152606401610d34565b6701118f178fb480003414610e0d57604051632190c9f160e21b8152600160048201523460248201526701118f178fb480006044820152606401610d34565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610e87838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506014549150849050611671565b610eca5760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b2b935b63290383937b7b360611b6044820152606401610d34565b336000818152600d60205260409020805460ff19166001908117909155610ef1919061187b565b50610efc6001600a55565b601154601254600054610f0f91906124e8565b106108d3576015805460ff191660011790555050565b6008546001600160a01b03163314156108bb576001600160a01b038216610f5f57604051633efa09af60e01b815260040160405180910390fd5b6001600160a01b038216600081815260096020908152604091829020805460ff191685151590811790915591519182527f0e1c45aff1a1f4055c2bee5eb0020bf064559e9bd1435a6cc044461ae0c68a1a910160405180910390a25050565b610fd983838360405180602001604052806000815250611497565b505050565b610ce6816001611964565b6008546001600160a01b03163314156108bb5780516108d3906013906020840190611f79565b600061085982611687565b6001600160a01b0381166000908152600e602052604081205481906110409060056124e8565b9050600060125461105060005490565b61105a91906124e8565b60115461106791906124e8565b905080821115611078579392505050565b5092915050565b60006001600160a01b0382166110a8576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314156108bb57601455565b6008546001600160a01b03163314156108bb57611101611821565b60538160125461111191906124ff565b111561116a5760405162461bcd60e51b815260206004820152602260248201527f4e6f7420656e6f7567682072657365727665206d696e7473206176616c6961626044820152616c6560f01b6064820152608401610d34565b806012600082825461117c91906124ff565b9091555061118c90508282611ab1565b6108d36001600a55565b6060600380546108e690612497565b600b5415806111b55750600b5442105b156111f157604051634255c41360e01b815260206004820152600b60248201526a5075626c69632053616c6560a81b6044820152606401610d34565b60155460ff1615611215576040516352df9fe560e01b815260040160405180910390fd5b61121d611821565b60006112283361101a565b9050600081116112925760405162461bcd60e51b815260206004820152602f60248201527f4e6f206d6f7265207075626c6963206d696e7473206176616c6961626c65206660448201526e6f722074686973206164647265737360881b6064820152608401610d34565b60008183116112a157826112a3565b815b9050806112c35760405163a776bb4d60e01b815260040160405180910390fd5b60006112ce826115ec565b90508034101561130157604051632190c9f160e21b81526004810183905234602482015260448101829052606401610d34565b336000908152600e6020526040812080548492906113209084906124ff565b909155506113309050338361187b565b61133981611acb565b5050506113466001600a55565b60115460125460005461135991906124e8565b10610ce6576015805460ff1916600117905550565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314156108bb576001600160a01b03811661141457604051633efa09af60e01b815260040160405180910390fd5b600880546001600160a01b0319166001600160a01b0383169081179091556040517f99d737e0adf2c449d71890b86772885ec7959b152ddb265f76325b6e68e105d390600090a250565b6008546001600160a01b03163314156108bb57611479611821565b61148d6001600160a01b0384168284611b09565b610fd96001600a55565b6114a2848484610b25565b6001600160a01b0383163b156114db576114be84848484611b5b565b6114db576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606114ec8261164a565b61150957604051630a14c4b560e41b815260040160405180910390fd5b6000611513611c44565b9050805160001415611534576040518060200160405280600081525061155f565b8061153e84611c53565b60405160200161154f929190612517565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314156108bb5763ffffffff16600c55565b600061158f60015490565b905090565b6008546001600160a01b03163314156108bb576115af611821565b6040514790339082156108fc029083906000818181858888f193505050501580156115de573d6000803e3d6000fd5b50506115ea6001600a55565b565b600060058211156116385760405162461bcd60e51b815260206004820152601660248201527543616e206e6f74206d696e742074686174206d616e7960501b6044820152606401610d34565b610859826701118f178fb48000612546565b6000805482108015610859575050600090815260046020526040902054600160e01b161590565b60008261167e8584611ca1565b14949350505050565b6000816000548110156116cf57600081815260046020526040902054600160e01b81166116cd575b8061155f5750600019016000818152600460205260409020546116af565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b038416156114db576000828152600f602052604090205460ff16156117495760405162461bcd60e51b815260206004820152601060248201526f546f6b656e206973206c6f636b65642160801b6044820152606401610d34565b6001600160a01b03841660009081526010602052604090205460ff16156117a65760405162461bcd60e51b815260206004820152601160248201527053656e6465722069732062616e6e65642160781b6044820152606401610d34565b6001600160a01b03831660009081526010602052604090205460ff16156114db5760405162461bcd60e51b815260206004820152601360248201527252656365697665722069732062616e6e65642160681b6044820152606401610d34565b6001600160a01b0383163014156114db576114db826001611964565b6002600a5414156118745760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d34565b6002600a55565b6000548161189c5760405163b562e8dd60e01b815260040160405180910390fd5b6118a960008483856116e8565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b1783179055828401908390839060008051602061262a8339815191528180a4600183015b818114611934578083600060008051602061262a833981519152600080a460010161190e565b508161195257604051622e076360e81b815260040160405180910390fd5b6000908155610fd99150848385611805565b600061196f83611687565b90508060008061198d86600090815260066020526040902080549091565b9150915084156119cd576119a2818433610b7a565b6119cd576119b083336107a1565b6119cd57604051632ce44b5f60e11b815260040160405180910390fd5b6119db8360008860016116e8565b80156119e657600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040902055600160e11b8416611a6d5760018601600081815260046020526040902054611a6b576000548114611a6b5760008181526004602052604090208590555b505b60405186906000906001600160a01b0386169060008051602061262a833981519152908390a4611aa1836000886001611805565b5050600180548101905550505050565b6108d3828260405180602001604052806000815250611cee565b80341115610ce657336108fc611ae183346124e8565b6040518115909202916000818181858888f193505050501580156108d3573d6000803e3d6000fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610fd9908490611d5b565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611b90903390899088908890600401612565565b6020604051808303816000875af1925050508015611bcb575060408051601f3d908101601f19168201909252611bc8918101906125a2565b60015b611c26573d808015611bf9576040519150601f19603f3d011682016040523d82523d6000602084013e611bfe565b606091505b508051611c1e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060601380546108e690612497565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480611c8a57611c8f565b611c6d565b50819003601f19909101908152919050565b600081815b8451811015611ce657611cd282868381518110611cc557611cc56125bf565b6020026020010151611e2d565b915080611cde816125d5565b915050611ca6565b509392505050565b611cf8838361187b565b6001600160a01b0383163b15610fd9576000548281035b611d226000868380600101945086611b5b565b611d3f576040516368d2bf6b60e11b815260040160405180910390fd5b818110611d0f578160005414611d5457600080fd5b5050505050565b6000611db0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e599092919063ffffffff16565b805190915015610fd95780806020019051810190611dce91906125f0565b610fd95760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610d34565b6000818310611e4957600082815260208490526040902061155f565b5060009182526020526040902090565b6060611c3c848460008585600080866001600160a01b03168587604051611e80919061260d565b60006040518083038185875af1925050503d8060008114611ebd576040519150601f19603f3d011682016040523d82523d6000602084013e611ec2565b606091505b5091509150611ed387838387611ede565b979650505050505050565b60608315611f4a578251611f43576001600160a01b0385163b611f435760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d34565b5081611c3c565b611c3c8383815115611f5f5781518083602001fd5b8060405162461bcd60e51b8152600401610d3491906120fe565b828054611f8590612497565b90600052602060002090601f016020900481019282611fa75760008555611fed565b82601f10611fc057805160ff1916838001178555611fed565b82800160010185558215611fed579182015b82811115611fed578251825591602001919060010190611fd2565b50611ff9929150611ffd565b5090565b5b80821115611ff95760008155600101611ffe565b6001600160e01b031981168114610ce657600080fd5b60006020828403121561203a57600080fd5b813561155f81612012565b80356001600160a01b038116811461205c57600080fd5b919050565b8015158114610ce657600080fd5b6000806040838503121561208257600080fd5b61208b83612045565b9150602083013561209b81612061565b809150509250929050565b60005b838110156120c15781810151838201526020016120a9565b838111156114db5750506000910152565b600081518084526120ea8160208601602086016120a6565b601f01601f19169290920160200192915050565b60208152600061155f60208301846120d2565b60006020828403121561212357600080fd5b5035919050565b6000806040838503121561213d57600080fd5b61214683612045565b946020939093013593505050565b60008083601f84011261216657600080fd5b50813567ffffffffffffffff81111561217e57600080fd5b6020830191508360208260051b850101111561219957600080fd5b9250929050565b6000806000604084860312156121b557600080fd5b6121be84612045565b9250602084013567ffffffffffffffff8111156121da57600080fd5b6121e686828701612154565b9497909650939450505050565b6000806040838503121561220657600080fd5b82359150602083013561209b81612061565b60008060006060848603121561222d57600080fd5b61223684612045565b925061224460208501612045565b9150604084013590509250925092565b60006020828403121561226657600080fd5b813563ffffffff8116811461155f57600080fd5b6000806020838503121561228d57600080fd5b823567ffffffffffffffff8111156122a457600080fd5b6122b085828601612154565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156122ed576122ed6122bc565b604051601f8501601f19908116603f01168101908282118183101715612315576123156122bc565b8160405280935085815286868601111561232e57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561235a57600080fd5b813567ffffffffffffffff81111561237157600080fd5b8201601f8101841361238257600080fd5b611c3c848235602084016122d2565b6000602082840312156123a357600080fd5b61155f82612045565b6000806000606084860312156123c157600080fd5b6123ca84612045565b9250602084013591506123df60408501612045565b90509250925092565b600080600080608085870312156123fe57600080fd5b61240785612045565b935061241560208601612045565b925060408501359150606085013567ffffffffffffffff81111561243857600080fd5b8501601f8101871361244957600080fd5b612458878235602084016122d2565b91505092959194509250565b6000806040838503121561247757600080fd5b61248083612045565b915061248e60208401612045565b90509250929050565b600181811c908216806124ab57607f821691505b602082108114156124cc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156124fa576124fa6124d2565b500390565b60008219821115612512576125126124d2565b500190565b600083516125298184602088016120a6565b83519083019061253d8183602088016120a6565b01949350505050565b6000816000190483118215151615612560576125606124d2565b500290565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612598908301846120d2565b9695505050505050565b6000602082840312156125b457600080fd5b815161155f81612012565b634e487b7160e01b600052603260045260246000fd5b60006000198214156125e9576125e96124d2565b5060010190565b60006020828403121561260257600080fd5b815161155f81612061565b6000825161261f8184602087016120a6565b919091019291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212204826b652a2c92f81b189d5eff3bf6aa2e18520a57a53fa7f461733b73bd3761964736f6c634300080b0033000000000000000000000000d2229f6d56703ae3ffdd92a610e351dde1a7bd32

Deployed Bytecode

0x6080604052600436106102725760003560e01c80636d70f7ae1161014f578063b3ab15fb116100c1578063d89135cd1161007a578063d89135cd14610710578063db4bec4414610725578063e086e5ec1461075e578063e757223014610766578063e985e9c514610786578063fa6f3936146107cf57600080fd5b8063b3ab15fb1461065a578063b51609b41461067a578063b88d4fde1461068d578063c87b56dd146106a0578063d51d9d16146106c0578063d68f4dd1146106e057600080fd5b806395d89b411161011357806395d89b41146105ae5780639805ee36146105c3578063a0712d68146105fc578063a22cb4651461060f578063a8f72e121461062f578063aa66797b1461064557600080fd5b80636d70f7ae1461051057806370a082311461053f5780637cb647591461055f5780637de55fe11461057f5780638d859f3e1461059257600080fd5b806332cb6b0c116101e857806355f804b3116101ac57806355f804b314610465578063570ca735146104855780635e403472146104a55780636352211e146104bb57806365f13097146104db5780636d3ffee3146104f057600080fd5b806332cb6b0c146103e9578063372f657c146103ff5780633ee2b01d1461041257806342842e0e1461043257806342966c681461044557600080fd5b806315c6cd8f1161023a57806315c6cd8f1461033b57806318160ddd1461035b57806320d4ab5a1461037e57806323b872dd1461039e5780632da5ea17146103b157806332a39409146103c957600080fd5b806301ffc9a71461027757806302118177146102ac57806306fdde03146102ce578063081812fc146102f0578063095ea7b314610328575b600080fd5b34801561028357600080fd5b50610297610292366004612028565b61080d565b60405190151581526020015b60405180910390f35b3480156102b857600080fd5b506102cc6102c736600461206f565b61085f565b005b3480156102da57600080fd5b506102e36108d7565b6040516102a391906120fe565b3480156102fc57600080fd5b5061031061030b366004612111565b610969565b6040516001600160a01b0390911681526020016102a3565b6102cc61033636600461212a565b6109ad565b34801561034757600080fd5b506102976103563660046121a0565b610a4d565b34801561036757600080fd5b50600154600054035b6040519081526020016102a3565b34801561038a57600080fd5b506102cc6103993660046121f3565b610ad3565b6102cc6103ac366004612218565b610b25565b3480156103bd57600080fd5b5060155460ff16610297565b3480156103d557600080fd5b506102cc6103e4366004612254565b610cc8565b3480156103f557600080fd5b50610370610d0581565b6102cc61040d36600461227a565b610ce9565b34801561041e57600080fd5b506102cc61042d36600461206f565b610f25565b6102cc610440366004612218565b610fbe565b34801561045157600080fd5b506102cc610460366004612111565b610fde565b34801561047157600080fd5b506102cc610480366004612348565b610fe9565b34801561049157600080fd5b50600854610310906001600160a01b031681565b3480156104b157600080fd5b50610370600b5481565b3480156104c757600080fd5b506103106104d6366004612111565b61100f565b3480156104e757600080fd5b50610370600581565b3480156104fc57600080fd5b5061037061050b366004612391565b61101a565b34801561051c57600080fd5b5061029761052b366004612391565b6008546001600160a01b0391821691161490565b34801561054b57600080fd5b5061037061055a366004612391565b61107f565b34801561056b57600080fd5b506102cc61057a366004612111565b6110ce565b6102cc61058d36600461212a565b6110e6565b34801561059e57600080fd5b506103706701118f178fb4800081565b3480156105ba57600080fd5b506102e3611196565b3480156105cf57600080fd5b506102976105de366004612391565b6001600160a01b031660009081526010602052604090205460ff1690565b6102cc61060a366004612111565b6111a5565b34801561061b57600080fd5b506102cc61062a36600461206f565b61136e565b34801561063b57600080fd5b50610370600c5481565b34801561065157600080fd5b50610370605381565b34801561066657600080fd5b506102cc610675366004612391565b6113da565b6102cc6106883660046123ac565b61145e565b6102cc61069b3660046123e8565b611497565b3480156106ac57600080fd5b506102e36106bb366004612111565b6114e1565b3480156106cc57600080fd5b506102cc6106db366004612254565b611566565b3480156106ec57600080fd5b506102976106fb366004612111565b6000908152600f602052604090205460ff1690565b34801561071c57600080fd5b50610370611584565b34801561073157600080fd5b50610297610740366004612391565b6001600160a01b03166000908152600d602052604090205460ff1690565b6102cc611594565b34801561077257600080fd5b50610370610781366004612111565b6115ec565b34801561079257600080fd5b506102976107a1366004612464565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156107db57600080fd5b506102976107ea366004612391565b6001600160a01b031660009081526009602052604090205460ff16151560011490565b60006301ffc9a760e01b6001600160e01b03198316148061083e57506380ac58cd60e01b6001600160e01b03198316145b806108595750635b5e139f60e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633148061088c57503360009081526009602052604090205460ff1615156001145b156108bb576001600160a01b0382166000908152601060205260409020805482151560ff199091161790555050565b604051621607ef60ea1b815260040160405180910390fd5b5050565b6060600280546108e690612497565b80601f016020809104026020016040519081016040528092919081815260200182805461091290612497565b801561095f5780601f106109345761010080835404028352916020019161095f565b820191906000526020600020905b81548152906001019060200180831161094257829003601f168201915b5050505050905090565b60006109748261164a565b610991576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006109b88261100f565b9050336001600160a01b038216146109f1576109d481336107a1565b6109f1576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6040516bffffffffffffffffffffffff19606085901b1660208201526000908190603401604051602081830303815290604052805190602001209050610aca848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506014549150849050611671565b95945050505050565b6008546001600160a01b0316331480610b0057503360009081526009602052604090205460ff1615156001145b156108bb576000828152600f60205260409020805482151560ff199091161790555050565b6000610b3082611687565b9050836001600160a01b0316816001600160a01b031614610b635760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610b8f8187335b6001600160a01b039081169116811491141790565b610bba57610b9d86336107a1565b610bba57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610be157604051633a954ecd60e21b815260040160405180910390fd5b610bee86868660016116e8565b8015610bf957600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610c845760018401600081815260046020526040902054610c82576000548114610c825760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b031660008051602061262a83398151915260405160405180910390a4610cc08686866001611805565b505050505050565b6008546001600160a01b03163314156108bb5763ffffffff16600b55565b50565b600c541580610cf95750600c5442105b15610d3d57604051634255c41360e01b815260206004820152600e60248201526d57686974656c6973742053616c6560901b60448201526064015b60405180910390fd5b60155460ff1615610d61576040516352df9fe560e01b815260040160405180910390fd5b610d69611821565b336000908152600d602052604090205460ff16151560011415610dce5760405162461bcd60e51b815260206004820152601960248201527f57686974656c69737420616c726561647920636c61696d6564000000000000006044820152606401610d34565b6701118f178fb480003414610e0d57604051632190c9f160e21b8152600160048201523460248201526701118f178fb480006044820152606401610d34565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610e87838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506014549150849050611671565b610eca5760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b2b935b63290383937b7b360611b6044820152606401610d34565b336000818152600d60205260409020805460ff19166001908117909155610ef1919061187b565b50610efc6001600a55565b601154601254600054610f0f91906124e8565b106108d3576015805460ff191660011790555050565b6008546001600160a01b03163314156108bb576001600160a01b038216610f5f57604051633efa09af60e01b815260040160405180910390fd5b6001600160a01b038216600081815260096020908152604091829020805460ff191685151590811790915591519182527f0e1c45aff1a1f4055c2bee5eb0020bf064559e9bd1435a6cc044461ae0c68a1a910160405180910390a25050565b610fd983838360405180602001604052806000815250611497565b505050565b610ce6816001611964565b6008546001600160a01b03163314156108bb5780516108d3906013906020840190611f79565b600061085982611687565b6001600160a01b0381166000908152600e602052604081205481906110409060056124e8565b9050600060125461105060005490565b61105a91906124e8565b60115461106791906124e8565b905080821115611078579392505050565b5092915050565b60006001600160a01b0382166110a8576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314156108bb57601455565b6008546001600160a01b03163314156108bb57611101611821565b60538160125461111191906124ff565b111561116a5760405162461bcd60e51b815260206004820152602260248201527f4e6f7420656e6f7567682072657365727665206d696e7473206176616c6961626044820152616c6560f01b6064820152608401610d34565b806012600082825461117c91906124ff565b9091555061118c90508282611ab1565b6108d36001600a55565b6060600380546108e690612497565b600b5415806111b55750600b5442105b156111f157604051634255c41360e01b815260206004820152600b60248201526a5075626c69632053616c6560a81b6044820152606401610d34565b60155460ff1615611215576040516352df9fe560e01b815260040160405180910390fd5b61121d611821565b60006112283361101a565b9050600081116112925760405162461bcd60e51b815260206004820152602f60248201527f4e6f206d6f7265207075626c6963206d696e7473206176616c6961626c65206660448201526e6f722074686973206164647265737360881b6064820152608401610d34565b60008183116112a157826112a3565b815b9050806112c35760405163a776bb4d60e01b815260040160405180910390fd5b60006112ce826115ec565b90508034101561130157604051632190c9f160e21b81526004810183905234602482015260448101829052606401610d34565b336000908152600e6020526040812080548492906113209084906124ff565b909155506113309050338361187b565b61133981611acb565b5050506113466001600a55565b60115460125460005461135991906124e8565b10610ce6576015805460ff1916600117905550565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314156108bb576001600160a01b03811661141457604051633efa09af60e01b815260040160405180910390fd5b600880546001600160a01b0319166001600160a01b0383169081179091556040517f99d737e0adf2c449d71890b86772885ec7959b152ddb265f76325b6e68e105d390600090a250565b6008546001600160a01b03163314156108bb57611479611821565b61148d6001600160a01b0384168284611b09565b610fd96001600a55565b6114a2848484610b25565b6001600160a01b0383163b156114db576114be84848484611b5b565b6114db576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606114ec8261164a565b61150957604051630a14c4b560e41b815260040160405180910390fd5b6000611513611c44565b9050805160001415611534576040518060200160405280600081525061155f565b8061153e84611c53565b60405160200161154f929190612517565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314156108bb5763ffffffff16600c55565b600061158f60015490565b905090565b6008546001600160a01b03163314156108bb576115af611821565b6040514790339082156108fc029083906000818181858888f193505050501580156115de573d6000803e3d6000fd5b50506115ea6001600a55565b565b600060058211156116385760405162461bcd60e51b815260206004820152601660248201527543616e206e6f74206d696e742074686174206d616e7960501b6044820152606401610d34565b610859826701118f178fb48000612546565b6000805482108015610859575050600090815260046020526040902054600160e01b161590565b60008261167e8584611ca1565b14949350505050565b6000816000548110156116cf57600081815260046020526040902054600160e01b81166116cd575b8061155f5750600019016000818152600460205260409020546116af565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b038416156114db576000828152600f602052604090205460ff16156117495760405162461bcd60e51b815260206004820152601060248201526f546f6b656e206973206c6f636b65642160801b6044820152606401610d34565b6001600160a01b03841660009081526010602052604090205460ff16156117a65760405162461bcd60e51b815260206004820152601160248201527053656e6465722069732062616e6e65642160781b6044820152606401610d34565b6001600160a01b03831660009081526010602052604090205460ff16156114db5760405162461bcd60e51b815260206004820152601360248201527252656365697665722069732062616e6e65642160681b6044820152606401610d34565b6001600160a01b0383163014156114db576114db826001611964565b6002600a5414156118745760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d34565b6002600a55565b6000548161189c5760405163b562e8dd60e01b815260040160405180910390fd5b6118a960008483856116e8565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b1783179055828401908390839060008051602061262a8339815191528180a4600183015b818114611934578083600060008051602061262a833981519152600080a460010161190e565b508161195257604051622e076360e81b815260040160405180910390fd5b6000908155610fd99150848385611805565b600061196f83611687565b90508060008061198d86600090815260066020526040902080549091565b9150915084156119cd576119a2818433610b7a565b6119cd576119b083336107a1565b6119cd57604051632ce44b5f60e11b815260040160405180910390fd5b6119db8360008860016116e8565b80156119e657600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040902055600160e11b8416611a6d5760018601600081815260046020526040902054611a6b576000548114611a6b5760008181526004602052604090208590555b505b60405186906000906001600160a01b0386169060008051602061262a833981519152908390a4611aa1836000886001611805565b5050600180548101905550505050565b6108d3828260405180602001604052806000815250611cee565b80341115610ce657336108fc611ae183346124e8565b6040518115909202916000818181858888f193505050501580156108d3573d6000803e3d6000fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610fd9908490611d5b565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611b90903390899088908890600401612565565b6020604051808303816000875af1925050508015611bcb575060408051601f3d908101601f19168201909252611bc8918101906125a2565b60015b611c26573d808015611bf9576040519150601f19603f3d011682016040523d82523d6000602084013e611bfe565b606091505b508051611c1e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060601380546108e690612497565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480611c8a57611c8f565b611c6d565b50819003601f19909101908152919050565b600081815b8451811015611ce657611cd282868381518110611cc557611cc56125bf565b6020026020010151611e2d565b915080611cde816125d5565b915050611ca6565b509392505050565b611cf8838361187b565b6001600160a01b0383163b15610fd9576000548281035b611d226000868380600101945086611b5b565b611d3f576040516368d2bf6b60e11b815260040160405180910390fd5b818110611d0f578160005414611d5457600080fd5b5050505050565b6000611db0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e599092919063ffffffff16565b805190915015610fd95780806020019051810190611dce91906125f0565b610fd95760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610d34565b6000818310611e4957600082815260208490526040902061155f565b5060009182526020526040902090565b6060611c3c848460008585600080866001600160a01b03168587604051611e80919061260d565b60006040518083038185875af1925050503d8060008114611ebd576040519150601f19603f3d011682016040523d82523d6000602084013e611ec2565b606091505b5091509150611ed387838387611ede565b979650505050505050565b60608315611f4a578251611f43576001600160a01b0385163b611f435760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d34565b5081611c3c565b611c3c8383815115611f5f5781518083602001fd5b8060405162461bcd60e51b8152600401610d3491906120fe565b828054611f8590612497565b90600052602060002090601f016020900481019282611fa75760008555611fed565b82601f10611fc057805160ff1916838001178555611fed565b82800160010185558215611fed579182015b82811115611fed578251825591602001919060010190611fd2565b50611ff9929150611ffd565b5090565b5b80821115611ff95760008155600101611ffe565b6001600160e01b031981168114610ce657600080fd5b60006020828403121561203a57600080fd5b813561155f81612012565b80356001600160a01b038116811461205c57600080fd5b919050565b8015158114610ce657600080fd5b6000806040838503121561208257600080fd5b61208b83612045565b9150602083013561209b81612061565b809150509250929050565b60005b838110156120c15781810151838201526020016120a9565b838111156114db5750506000910152565b600081518084526120ea8160208601602086016120a6565b601f01601f19169290920160200192915050565b60208152600061155f60208301846120d2565b60006020828403121561212357600080fd5b5035919050565b6000806040838503121561213d57600080fd5b61214683612045565b946020939093013593505050565b60008083601f84011261216657600080fd5b50813567ffffffffffffffff81111561217e57600080fd5b6020830191508360208260051b850101111561219957600080fd5b9250929050565b6000806000604084860312156121b557600080fd5b6121be84612045565b9250602084013567ffffffffffffffff8111156121da57600080fd5b6121e686828701612154565b9497909650939450505050565b6000806040838503121561220657600080fd5b82359150602083013561209b81612061565b60008060006060848603121561222d57600080fd5b61223684612045565b925061224460208501612045565b9150604084013590509250925092565b60006020828403121561226657600080fd5b813563ffffffff8116811461155f57600080fd5b6000806020838503121561228d57600080fd5b823567ffffffffffffffff8111156122a457600080fd5b6122b085828601612154565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156122ed576122ed6122bc565b604051601f8501601f19908116603f01168101908282118183101715612315576123156122bc565b8160405280935085815286868601111561232e57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561235a57600080fd5b813567ffffffffffffffff81111561237157600080fd5b8201601f8101841361238257600080fd5b611c3c848235602084016122d2565b6000602082840312156123a357600080fd5b61155f82612045565b6000806000606084860312156123c157600080fd5b6123ca84612045565b9250602084013591506123df60408501612045565b90509250925092565b600080600080608085870312156123fe57600080fd5b61240785612045565b935061241560208601612045565b925060408501359150606085013567ffffffffffffffff81111561243857600080fd5b8501601f8101871361244957600080fd5b612458878235602084016122d2565b91505092959194509250565b6000806040838503121561247757600080fd5b61248083612045565b915061248e60208401612045565b90509250929050565b600181811c908216806124ab57607f821691505b602082108114156124cc57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156124fa576124fa6124d2565b500390565b60008219821115612512576125126124d2565b500190565b600083516125298184602088016120a6565b83519083019061253d8183602088016120a6565b01949350505050565b6000816000190483118215151615612560576125606124d2565b500290565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612598908301846120d2565b9695505050505050565b6000602082840312156125b457600080fd5b815161155f81612012565b634e487b7160e01b600052603260045260246000fd5b60006000198214156125e9576125e96124d2565b5060010190565b60006020828403121561260257600080fd5b815161155f81612061565b6000825161261f8184602087016120a6565b919091019291505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212204826b652a2c92f81b189d5eff3bf6aa2e18520a57a53fa7f461733b73bd3761964736f6c634300080b0033

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

000000000000000000000000d2229f6d56703ae3ffdd92a610e351dde1a7bd32

-----Decoded View---------------
Arg [0] : _operator (address): 0xD2229f6D56703Ae3ffdd92a610E351DDe1a7BD32

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000d2229f6d56703ae3ffdd92a610e351dde1a7bd32


Deployed Bytecode Sourcemap

81627:8511:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46667:639;;;;;;;;;;-1:-1:-1;46667:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;46667:639:0;;;;;;;;88894:124;;;;;;;;;;-1:-1:-1;88894:124:0;;;;;:::i;:::-;;:::i;:::-;;47569:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;54060:218::-;;;;;;;;;;-1:-1:-1;54060:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2313:32:1;;;2295:51;;2283:2;2268:18;54060:218:0;2149:203:1;53493:408:0;;;;;;:::i;:::-;;:::i;87017:242::-;;;;;;;;;;-1:-1:-1;87017:242:0;;;;;:::i;:::-;;:::i;43320:323::-;;;;;;;;;;-1:-1:-1;43594:12:0;;43381:7;43578:13;:28;43320:323;;;3650:25:1;;;3638:2;3623:18;43320:323:0;3504:177:1;88772:116:0;;;;;;;;;;-1:-1:-1;88772:116:0;;;;;:::i;:::-;;:::i;57699:2825::-;;;;;;:::i;:::-;;:::i;86939:75::-;;;;;;;;;;-1:-1:-1;87001:8:0;;;;86939:75;;88076:106;;;;;;;;;;-1:-1:-1;88076:106:0;;;;;:::i;:::-;;:::i;81797:41::-;;;;;;;;;;;;81834:4;81797:41;;84746:720;;;;;;:::i;:::-;;:::i;81387:233::-;;;;;;;;;;-1:-1:-1;81387:233:0;;;;;:::i;:::-;;:::i;60620:193::-;;;;;;:::i;:::-;;:::i;85657:79::-;;;;;;;;;;-1:-1:-1;85657:79:0;;;;;:::i;:::-;;:::i;87726:109::-;;;;;;;;;;-1:-1:-1;87726:109:0;;;;;:::i;:::-;;:::i;79780:23::-;;;;;;;;;;-1:-1:-1;79780:23:0;;;;-1:-1:-1;;;;;79780:23:0;;;81944:33;;;;;;;;;;;;;;;;48962:152;;;;;;;;;;-1:-1:-1;48962:152:0;;;;;:::i;:::-;;:::i;81892:43::-;;;;;;;;;;;;81934:1;81892:43;;86206:384;;;;;;;;;;-1:-1:-1;86206:384:0;;;;;:::i;:::-;;:::i;80790:100::-;;;;;;;;;;-1:-1:-1;80790:100:0;;;;;:::i;:::-;80877:8;;-1:-1:-1;;;;;80866:19:0;;;80877:8;;80866:19;;80790:100;44504:233;;;;;;;;;;-1:-1:-1;44504:233:0;;;;;:::i;:::-;;:::i;87841:116::-;;;;;;;;;;-1:-1:-1;87841:116:0;;;;;:::i;:::-;;:::i;87453:265::-;;;;;;:::i;:::-;;:::i;81751:40::-;;;;;;;;;;;;81780:11;81751:40;;47745:104;;;;;;;;;;;;;:::i;86826:108::-;;;;;;;;;;-1:-1:-1;86826:108:0;;;;;:::i;:::-;-1:-1:-1;;;;;86906:20:0;86882:4;86906:20;;;:14;:20;;;;;;;;;86826:108;83834:906;;;;;;:::i;:::-;;:::i;54618:234::-;;;;;;;;;;-1:-1:-1;54618:234:0;;;;;:::i;:::-;;:::i;81984:36::-;;;;;;;;;;;;;;;;81842:43;;;;;;;;;;;;81883:2;81842:43;;81192:189;;;;;;;;;;-1:-1:-1;81192:189:0;;;;;:::i;:::-;;:::i;88188:209::-;;;;;;:::i;:::-;;:::i;61411:407::-;;;;;;:::i;:::-;;:::i;47955:318::-;;;;;;;;;;-1:-1:-1;47955:318:0;;;;;:::i;:::-;;:::i;87961:112::-;;;;;;;;;;-1:-1:-1;87961:112:0;;;;;:::i;:::-;;:::i;86726:93::-;;;;;;;;;;-1:-1:-1;86726:93:0;;;;;:::i;:::-;86778:4;86802:9;;;:5;:9;;;;;;;;;86726:93;85742:95;;;;;;;;;;;;;:::i;86596:124::-;;;;;;;;;;-1:-1:-1;86596:124:0;;;;;:::i;:::-;-1:-1:-1;;;;;86686:26:0;86662:4;86686:26;;;:17;:26;;;;;;;;;86596:124;88403:172;;;:::i;86027:170::-;;;;;;;;;;-1:-1:-1;86027:170:0;;;;;:::i;:::-;;:::i;55009:164::-;;;;;;;;;;-1:-1:-1;55009:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;55130:25:0;;;55106:4;55130:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;55009:164;80894:114;;;;;;;;;;-1:-1:-1;80894:114:0;;;;;:::i;:::-;-1:-1:-1;;;;;80973:20:0;80953:4;80973:20;;;:11;:20;;;;;;;;:28;;:20;:28;;80894:114;46667:639;46752:4;-1:-1:-1;;;;;;;;;47076:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;47153:25:0;;;47076:102;:179;;;-1:-1:-1;;;;;;;;;;47230:25:0;;;47076:179;47056:199;46667:639;-1:-1:-1;;46667:639:0:o;88894:124::-;80877:8;;-1:-1:-1;;;;;80877:8:0;80502:10;80866:19;80490:53;;;-1:-1:-1;80531:10:0;80953:4;80973:20;;;:11;:20;;;;;;;;:28;;:20;:28;80518:25;80486:115;;;-1:-1:-1;;;;;88979:20:0;::::1;;::::0;;;:14:::1;:20;::::0;;;;:31;;;::::1;;-1:-1:-1::0;;88979:31:0;;::::1;;::::0;;88894:124;;:::o;80486:115::-;80575:20;;-1:-1:-1;;;80575:20:0;;;;;;;;;;;80486:115;88894:124;;:::o;47569:100::-;47623:13;47656:5;47649:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47569:100;:::o;54060:218::-;54136:7;54161:16;54169:7;54161;:16::i;:::-;54156:64;;54186:34;;-1:-1:-1;;;54186:34:0;;;;;;;;;;;54156:64;-1:-1:-1;54240:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;54240:30:0;;54060:218::o;53493:408::-;53582:13;53598:16;53606:7;53598;:16::i;:::-;53582:32;-1:-1:-1;77826:10:0;-1:-1:-1;;;;;53631:28:0;;;53627:175;;53679:44;53696:5;77826:10;55009:164;:::i;53679:44::-;53674:128;;53751:35;;-1:-1:-1;;;53751:35:0;;;;;;;;;;;53674:128;53814:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;53814:35:0;-1:-1:-1;;;;;53814:35:0;;;;;;;;;53865:28;;53814:24;;53865:28;;;;;;;53571:330;53493:408;;:::o;87017:242::-;87158:25;;-1:-1:-1;;8461:2:1;8457:15;;;8453:53;87158:25:0;;;8441:66:1;87116:4:0;;;;8523:12:1;;87158:25:0;;;;;;;;;;;;87148:36;;;;;;87133:51;;87202:50;87221:11;;87202:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;87234:11:0;;;-1:-1:-1;87247:4:0;;-1:-1:-1;87202:18:0;:50::i;:::-;87195:57;87017:242;-1:-1:-1;;;;;87017:242:0:o;88772:116::-;80877:8;;-1:-1:-1;;;;;80877:8:0;80502:10;80866:19;80490:53;;;-1:-1:-1;80531:10:0;80953:4;80973:20;;;:11;:20;;;;;;;;:28;;:20;:28;80518:25;80486:115;;;88860:9:::1;::::0;;;:5:::1;:9;::::0;;;;:20;;;::::1;;-1:-1:-1::0;;88860:20:0;;::::1;;::::0;;88894:124;;:::o;57699:2825::-;57841:27;57871;57890:7;57871:18;:27::i;:::-;57841:57;;57956:4;-1:-1:-1;;;;;57915:45:0;57931:19;-1:-1:-1;;;;;57915:45:0;;57911:86;;57969:28;;-1:-1:-1;;;57969:28:0;;;;;;;;;;;57911:86;58011:27;56807:24;;;:15;:24;;;;;57035:26;;58202:68;57035:26;58244:4;77826:10;58250:19;-1:-1:-1;;;;;56281:32:0;;;56125:28;;56410:20;;56432:30;;56407:56;;55822:659;58202:68;58197:180;;58290:43;58307:4;77826:10;55009:164;:::i;58290:43::-;58285:92;;58342:35;;-1:-1:-1;;;58342:35:0;;;;;;;;;;;58285:92;-1:-1:-1;;;;;58394:16:0;;58390:52;;58419:23;;-1:-1:-1;;;58419:23:0;;;;;;;;;;;58390:52;58455:43;58477:4;58483:2;58487:7;58496:1;58455:21;:43::i;:::-;58591:15;58588:160;;;58731:1;58710:19;58703:30;58588:160;-1:-1:-1;;;;;59128:24:0;;;;;;;:18;:24;;;;;;59126:26;;-1:-1:-1;;59126:26:0;;;59197:22;;;;;;;;;59195:24;;-1:-1:-1;59195:24:0;;;52351:11;52326:23;52322:41;52309:63;-1:-1:-1;;;52309:63:0;59490:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;59785:47:0;;59781:627;;59890:1;59880:11;;59858:19;60013:30;;;:17;:30;;;;;;60009:384;;60151:13;;60136:11;:28;60132:242;;60298:30;;;;:17;:30;;;;;:52;;;60132:242;59839:569;59781:627;60455:7;60451:2;-1:-1:-1;;;;;60436:27:0;60445:4;-1:-1:-1;;;;;60436:27:0;-1:-1:-1;;;;;;;;;;;60436:27:0;;;;;;;;;60474:42;60495:4;60501:2;60505:7;60514:1;60474:20;:42::i;:::-;57830:2694;;;57699:2825;;;:::o;88076:106::-;80877:8;;-1:-1:-1;;;;;80877:8:0;80369:10;80866:19;80353:86;;;88151:26:::1;;:14;:26:::0;88076:106::o;80353:86::-;88076:106;:::o;84746:720::-;83293:17;;:22;;:61;;;83337:17;;83319:15;:35;83293:61;83289:106;;;83364:31;;-1:-1:-1;;;83364:31:0;;8748:2:1;83364:31:0;;;8730:21:1;8787:2;8767:18;;;8760:30;-1:-1:-1;;;8806:18:1;;;8799:44;8860:18;;83364:31:0;;;;;;;;83289:106;83452:8:::1;::::0;::::1;;83448:31;;;83470:9;;-1:-1:-1::0;;;83470:9:0::1;;;;;;;;;;;83448:31;23654:21:::2;:19;:21::i;:::-;84925:10:::3;86662:4:::0;86686:26;;;:17;:26;;;;;;;;84908:36:::3;;84940:4;84908:36;;84899:76;;;::::0;-1:-1:-1;;;84899:76:0;;9091:2:1;84899:76:0::3;::::0;::::3;9073:21:1::0;9130:2;9110:18;;;9103:30;9169:27;9149:18;;;9142:55;9214:18;;84899:76:0::3;8889:349:1::0;84899:76:0::3;81780:11;85018:9;:18;85013:133;;85058:82;::::0;-1:-1:-1;;;85058:82:0;;85088:1:::3;85058:82;::::0;::::3;9453:25:1::0;85102:9:0::3;9494:18:1::0;;;9487:34;81780:11:0::3;9537:18:1::0;;;9530:34;9426:18;;85058:82:0::3;9243:327:1::0;85013:133:0::3;85210:28;::::0;-1:-1:-1;;85227:10:0::3;8461:2:1::0;8457:15;8453:53;85210:28:0::3;::::0;::::3;8441:66:1::0;85185:12:0::3;::::0;8523::1;;85210:28:0::3;;;;;;;;;;;;85200:39;;;;;;85185:54;;85259:50;85278:11;;85259:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::3;::::0;;;;-1:-1:-1;;85291:11:0::3;::::0;;-1:-1:-1;85304:4:0;;-1:-1:-1;85259:18:0::3;:50::i;:::-;85250:85;;;::::0;-1:-1:-1;;;85250:85:0;;9777:2:1;85250:85:0::3;::::0;::::3;9759:21:1::0;9816:2;9796:18;;;9789:30;-1:-1:-1;;;9835:18:1;;;9828:50;9895:18;;85250:85:0::3;9575:344:1::0;85250:85:0::3;85391:10;85373:29;::::0;;;:17:::3;:29;::::0;;;;:36;;-1:-1:-1;;85373:36:0::3;85405:4;85373:36:::0;;::::3;::::0;;;85435:22:::3;::::0;85391:10;85435:5:::3;:22::i;:::-;84864:602;23698:20:::2;23092:1:::0;24214:7;:22;24031:213;23698:20:::2;83602:18:::1;::::0;83583:14:::1;::::0;43796:7;43987:13;83566:31:::1;;;;:::i;:::-;83565:55;83560:77;;83622:8;:15:::0;;-1:-1:-1;;83622:15:0::1;83633:4;83622:15;::::0;;84746:720;;:::o;81387:233::-;80877:8;;-1:-1:-1;;;;;80877:8:0;80369:10;80866:19;80353:86;;;-1:-1:-1;;;;;81475:21:0;::::1;81472:51;;81505:18;;-1:-1:-1::0;;;81505:18:0::1;;;;;;;;;;;81472:51;-1:-1:-1::0;;;;;81528:20:0;::::1;;::::0;;;:11:::1;:20;::::0;;;;;;;;:30;;-1:-1:-1;;81528:30:0::1;::::0;::::1;;::::0;;::::1;::::0;;;81574;;540:41:1;;;81574:30:0::1;::::0;513:18:1;81574:30:0::1;;;;;;;88894:124:::0;;:::o;60620:193::-;60766:39;60783:4;60789:2;60793:7;60766:39;;;;;;;;;;;;:16;:39::i;:::-;60620:193;;;:::o;85657:79::-;85708:20;85714:7;85723:4;85708:5;:20::i;87726:109::-;80877:8;;-1:-1:-1;;;;;80877:8:0;80369:10;80866:19;80353:86;;;87804:23;;::::1;::::0;:13:::1;::::0;:23:::1;::::0;::::1;::::0;::::1;:::i;48962:152::-:0;49034:7;49077:27;49096:7;49077:18;:27::i;86206:384::-;-1:-1:-1;;;;;86337:21:0;;86273:7;86337:21;;;:15;:21;;;;;;86273:7;;86319:39;;81934:1;86319:39;:::i;:::-;86287:71;;86363:26;86432:14;;86415;43796:7;43987:13;;43741:296;86415:14;:31;;;;:::i;:::-;86392:18;;:56;;;;:::i;:::-;86363:85;;86482:18;86458:21;:42;86453:130;;;86515:18;86206:384;-1:-1:-1;;;86206:384:0:o;86453:130::-;-1:-1:-1;86556:21:0;86206:384;-1:-1:-1;;86206:384:0:o;44504:233::-;44576:7;-1:-1:-1;;;;;44600:19:0;;44596:60;;44628:28;;-1:-1:-1;;;44628:28:0;;;;;;;;;;;44596:60;-1:-1:-1;;;;;;44674:25:0;;;;;:18;:25;;;;;;38663:13;44674:55;;44504:233::o;87841:116::-;80877:8;;-1:-1:-1;;;;;80877:8:0;80369:10;80866:19;80353:86;;;87922:11:::1;:27:::0;88076:106::o;87453:265::-;80877:8;;-1:-1:-1;;;;;80877:8:0;80369:10;80866:19;80353:86;;;23654:21:::1;:19;:21::i;:::-;81883:2:::2;87582:8;87565:14;;:25;;;;:::i;:::-;87564:45;;87555:94;;;::::0;-1:-1:-1;;;87555:94:0;;10521:2:1;87555:94:0::2;::::0;::::2;10503:21:1::0;10560:2;10540:18;;;10533:30;10599:34;10579:18;;;10572:62;-1:-1:-1;;;10650:18:1;;;10643:32;10692:19;;87555:94:0::2;10319:398:1::0;87555:94:0::2;87672:8;87654:14;;:26;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;87685:25:0::2;::::0;-1:-1:-1;87696:2:0;87700:8;87685:9:::2;:25::i;:::-;23698:20:::1;23092:1:::0;24214:7;:22;24031:213;47745:104;47801:13;47834:7;47827:14;;;;;:::i;83834:906::-;83134:14;;:19;;:55;;;83175:14;;83157:15;:32;83134:55;83130:97;;;83199:28;;-1:-1:-1;;;83199:28:0;;10924:2:1;83199:28:0;;;10906:21:1;10963:2;10943:18;;;10936:30;-1:-1:-1;;;10982:18:1;;;10975:41;11033:18;;83199:28:0;10722:335:1;83130:97:0;83452:8:::1;::::0;::::1;;83448:31;;;83470:9;;-1:-1:-1::0;;;83470:9:0::1;;;;;;;;;;;83448:31;23654:21:::2;:19;:21::i;:::-;83963:26:::3;83992:34;84014:10;83992:20;:34::i;:::-;83963:63;;84062:1;84041:18;:22;84031:85;;;::::0;-1:-1:-1;;;84031:85:0;;11264:2:1;84031:85:0::3;::::0;::::3;11246:21:1::0;11303:2;11283:18;;;11276:30;11342:34;11322:18;;;11315:62;-1:-1:-1;;;11393:18:1;;;11386:45;11448:19;;84031:85:0::3;11062:411:1::0;84031:85:0::3;84148:14;84178:18;84167:8;:29;84165:65;;84222:8;84165:65;;;84201:18;84165:65;84148:82:::0;-1:-1:-1;84265:11:0;84260:36:::3;;84286:10;;-1:-1:-1::0;;;84286:10:0::3;;;;;;;;;;;84260:36;84320:18;84341;84351:6;84341:8;:18::i;:::-;84320:39;;84412:10;84400:9;:22;84395:147;;;84444:92;::::0;-1:-1:-1;;;84444:92:0;;::::3;::::0;::::3;9453:25:1::0;;;84493:9:0::3;9494:18:1::0;;;9487:34;9537:18;;;9530:34;;;9426:18;;84444:92:0::3;9243:327:1::0;84395:147:0::3;84600:10;84584:27;::::0;;;:15:::3;:27;::::0;;;;:37;;84615:6;;84584:27;:37:::3;::::0;84615:6;;84584:37:::3;:::i;:::-;::::0;;;-1:-1:-1;84645:25:0::3;::::0;-1:-1:-1;84651:10:0::3;84663:6:::0;84645:5:::3;:25::i;:::-;84703:29;84720:10;84703:15;:29::i;:::-;83926:814;;;23698:20:::2;23092:1:::0;24214:7;:22;24031:213;23698:20:::2;83602:18:::1;::::0;83583:14:::1;::::0;43796:7;43987:13;83566:31:::1;;;;:::i;:::-;83565:55;83560:77;;83622:8;:15:::0;;-1:-1:-1;;83622:15:0::1;83633:4;83622:15;::::0;;83834:906;:::o;54618:234::-;77826:10;54713:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;54713:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;54713:60:0;;;;;;;;;;54789:55;;540:41:1;;;54713:49:0;;77826:10;54789:55;;513:18:1;54789:55:0;;;;;;;54618:234;;:::o;81192:189::-;80877:8;;-1:-1:-1;;;;;80877:8:0;80369:10;80866:19;80353:86;;;-1:-1:-1;;;;;81266:21:0;::::1;81263:51;;81296:18;;-1:-1:-1::0;;;81296:18:0::1;;;;;;;;;;;81263:51;81319:8;:18:::0;;-1:-1:-1;;;;;;81319:18:0::1;-1:-1:-1::0;;;;;81319:18:0;::::1;::::0;;::::1;::::0;;;81353:20:::1;::::0;::::1;::::0;-1:-1:-1;;81353:20:0::1;88076:106:::0;:::o;88188:209::-;80877:8;;-1:-1:-1;;;;;80877:8:0;80369:10;80866:19;80353:86;;;23654:21:::1;:19;:21::i;:::-;88330:59:::2;-1:-1:-1::0;;;;;88330:33:0;::::2;88364:11:::0;88377;88330:33:::2;:59::i;:::-;23698:20:::1;23092:1:::0;24214:7;:22;24031:213;61411:407;61586:31;61599:4;61605:2;61609:7;61586:12;:31::i;:::-;-1:-1:-1;;;;;61632:14:0;;;:19;61628:183;;61671:56;61702:4;61708:2;61712:7;61721:5;61671:30;:56::i;:::-;61666:145;;61755:40;;-1:-1:-1;;;61755:40:0;;;;;;;;;;;61666:145;61411:407;;;;:::o;47955:318::-;48028:13;48059:16;48067:7;48059;:16::i;:::-;48054:59;;48084:29;;-1:-1:-1;;;48084:29:0;;;;;;;;;;;48054:59;48126:21;48150:10;:8;:10::i;:::-;48126:34;;48184:7;48178:21;48203:1;48178:26;;:87;;;;;;;;;;;;;;;;;48231:7;48240:18;48250:7;48240:9;:18::i;:::-;48214:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;48178:87;48171:94;47955:318;-1:-1:-1;;;47955:318:0:o;87961:112::-;80877:8;;-1:-1:-1;;;;;80877:8:0;80369:10;80866:19;80353:86;;;88039:29:::1;;:17;:29:::0;88076:106::o;85742:95::-;85788:7;85815:14;44201:12;;;44119:102;85815:14;85808:21;;85742:95;:::o;88403:172::-;80877:8;;-1:-1:-1;;;;;80877:8:0;80369:10;80866:19;80353:86;;;23654:21:::1;:19;:21::i;:::-;88530:37:::2;::::0;88498:21:::2;::::0;88538:10:::2;::::0;88530:37;::::2;;;::::0;88498:21;;88480:15:::2;88530:37:::0;88480:15;88530:37;88498:21;88538:10;88530:37;::::2;;;;;;;;;;;;;::::0;::::2;;;;;;88469:106;23698:20:::1;23092:1:::0;24214:7;:22;24031:213;23698:20:::1;88403:172::o:0;86027:170::-;86086:7;81934:1;86109:8;:27;;86100:64;;;;-1:-1:-1;;;86100:64:0;;12479:2:1;86100:64:0;;;12461:21:1;12518:2;12498:18;;;12491:30;-1:-1:-1;;;12537:18:1;;;12530:52;12599:18;;86100:64:0;12277:346:1;86100:64:0;86176:16;86184:8;81780:11;86176:16;:::i;55431:282::-;55496:4;55586:13;;55576:7;:23;55533:153;;;;-1:-1:-1;;55637:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;55637:44:0;:49;;55431:282::o;856:190::-;981:4;1034;1005:25;1018:5;1025:4;1005:12;:25::i;:::-;:33;;856:190;-1:-1:-1;;;;856:190:0:o;50117:1275::-;50184:7;50219;50321:13;;50314:4;:20;50310:1015;;;50359:14;50376:23;;;:17;:23;;;;;;-1:-1:-1;;;50465:24:0;;50461:845;;51130:113;51137:11;51130:113;;-1:-1:-1;;;51208:6:0;51190:25;;;;:17;:25;;;;;;51130:113;;50461:845;50336:989;50310:1015;51353:31;;-1:-1:-1;;;51353:31:0;;;;;;;;;;;89474:369;-1:-1:-1;;;;;89649:18:0;;;89644:192;;86778:4;86802:9;;;:5;:9;;;;;;;;89683:22;89675:51;;;;-1:-1:-1;;;89675:51:0;;13003:2:1;89675:51:0;;;12985:21:1;13042:2;13022:18;;;13015:30;-1:-1:-1;;;13061:18:1;;;13054:46;13117:18;;89675:51:0;12801:340:1;89675:51:0;-1:-1:-1;;;;;86906:20:0;;86882:4;86906:20;;;:14;:20;;;;;;;;89740:16;89732:46;;;;-1:-1:-1;;;89732:46:0;;13348:2:1;89732:46:0;;;13330:21:1;13387:2;13367:18;;;13360:30;-1:-1:-1;;;13406:18:1;;;13399:47;13463:18;;89732:46:0;13146:341:1;89732:46:0;-1:-1:-1;;;;;86906:20:0;;86882:4;86906:20;;;:14;:20;;;;;;;;89792:14;89784:46;;;;-1:-1:-1;;;89784:46:0;;13694:2:1;89784:46:0;;;13676:21:1;13733:2;13713:18;;;13706:30;-1:-1:-1;;;13752:18:1;;;13745:49;13811:18;;89784:46:0;13492:343:1;89849:282:0;-1:-1:-1;;;;;90066:19:0;;90080:4;90066:19;90061:63;;;90093:25;90099:12;90113:4;90093:5;:25::i;23734:289::-;23136:1;23864:7;;:19;;23856:63;;;;-1:-1:-1;;;23856:63:0;;14042:2:1;23856:63:0;;;14024:21:1;14081:2;14061:18;;;14054:30;14120:33;14100:18;;;14093:61;14171:18;;23856:63:0;13840:355:1;23856:63:0;23136:1;23997:7;:18;23734:289::o;65080:2966::-;65153:20;65176:13;65204;65200:44;;65226:18;;-1:-1:-1;;;65226:18:0;;;;;;;;;;;65200:44;65257:61;65287:1;65291:2;65295:12;65309:8;65257:21;:61::i;:::-;-1:-1:-1;;;;;65732:22:0;;;;;;:18;:22;;;;38801:2;65732:22;;;:71;;65770:32;65758:45;;65732:71;;;66046:31;;;:17;:31;;;;;-1:-1:-1;52782:15:0;;52756:24;52752:46;52351:11;52326:23;52322:41;52319:52;52309:63;;66046:173;;66281:23;;;;66046:31;;65732:22;;-1:-1:-1;;;;;;;;;;;65732:22:0;;66899:335;67560:1;67546:12;67542:20;67500:346;67601:3;67592:7;67589:16;67500:346;;67819:7;67809:8;67806:1;-1:-1:-1;;;;;;;;;;;67776:1:0;67773;67768:59;67654:1;67641:15;67500:346;;;-1:-1:-1;67879:13:0;67875:45;;67901:19;;-1:-1:-1;;;67901:19:0;;;;;;;;;;;67875:45;67937:13;:19;;;67978:60;;-1:-1:-1;68011:2:0;68015:12;68029:8;67978:20;:60::i;72268:3081::-;72348:27;72378;72397:7;72378:18;:27::i;:::-;72348:57;-1:-1:-1;72348:57:0;72418:12;;72540:35;72567:7;56696:27;56807:24;;;:15;:24;;;;;57035:26;;56807:24;;56594:485;72540:35;72483:92;;;;72592:13;72588:316;;;72713:68;72738:15;72755:4;77826:10;72761:19;77739:105;72713:68;72708:184;;72805:43;72822:4;77826:10;55009:164;:::i;72805:43::-;72800:92;;72857:35;;-1:-1:-1;;;72857:35:0;;;;;;;;;;;72800:92;72916:51;72938:4;72952:1;72956:7;72965:1;72916:21;:51::i;:::-;73060:15;73057:160;;;73200:1;73179:19;73172:30;73057:160;-1:-1:-1;;;;;73819:24:0;;;;;;:18;:24;;;;;:60;;73847:32;73819:60;;;52351:11;52326:23;52322:41;52309:63;-1:-1:-1;;;52309:63:0;74117:26;;;;:17;:26;;;;;:205;-1:-1:-1;;;74442:47:0;;74438:627;;74547:1;74537:11;;74515:19;74670:30;;;:17;:30;;;;;;74666:384;;74808:13;;74793:11;:28;74789:242;;74955:30;;;;:17;:30;;;;;:52;;;74789:242;74496:569;74438:627;75093:35;;75120:7;;75116:1;;-1:-1:-1;;;;;75093:35:0;;;-1:-1:-1;;;;;;;;;;;75093:35:0;75116:1;;75093:35;75139:50;75160:4;75174:1;75178:7;75187:1;75139:20;:50::i;:::-;-1:-1:-1;;75316:12:0;:14;;;;;;-1:-1:-1;;;;72268:3081:0:o;71571:112::-;71648:27;71658:2;71662:8;71648:27;;;;;;;;;;;;:9;:27::i;89325:142::-;89397:5;89385:9;:17;89381:82;;;89418:10;89410:47;89439:17;89451:5;89439:9;:17;:::i;:::-;89410:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17695:211;17839:58;;;-1:-1:-1;;;;;14392:32:1;;17839:58:0;;;14374:51:1;14441:18;;;;14434:34;;;17839:58:0;;;;;;;;;;14347:18:1;;;;17839:58:0;;;;;;;;-1:-1:-1;;;;;17839:58:0;-1:-1:-1;;;17839:58:0;;;17812:86;;17832:5;;17812:19;:86::i;63902:716::-;64086:88;;-1:-1:-1;;;64086:88:0;;64065:4;;-1:-1:-1;;;;;64086:45:0;;;;;:88;;77826:10;;64153:4;;64159:7;;64168:5;;64086:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64086:88:0;;;;;;;;-1:-1:-1;;64086:88:0;;;;;;;;;;;;:::i;:::-;;;64082:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;64369:13:0;;64365:235;;64415:40;;-1:-1:-1;;;64415:40:0;;;;;;;;;;;64365:235;64558:6;64552:13;64543:6;64539:2;64535:15;64528:38;64082:529;-1:-1:-1;;;;;;64245:64:0;-1:-1:-1;;;64245:64:0;;-1:-1:-1;64082:529:0;63902:716;;;;;;:::o;89212:105::-;89272:13;89299;89292:20;;;;;:::i;77946:1745::-;78011:17;78445:4;78438;78432:11;78428:22;78537:1;78531:4;78524:15;78612:4;78609:1;78605:12;78598:19;;;78694:1;78689:3;78682:14;78798:3;79037:5;79019:428;79085:1;79080:3;79076:11;79069:18;;79256:2;79250:4;79246:13;79242:2;79238:22;79233:3;79225:36;79350:2;79340:13;;;79407:25;;79425:5;;79407:25;79019:428;;;-1:-1:-1;79477:13:0;;;-1:-1:-1;;79592:14:0;;;79654:19;;;79592:14;77946:1745;-1:-1:-1;77946:1745:0:o;1723:296::-;1806:7;1849:4;1806:7;1864:118;1888:5;:12;1884:1;:16;1864:118;;;1937:33;1947:12;1961:5;1967:1;1961:8;;;;;;;;:::i;:::-;;;;;;;1937:9;:33::i;:::-;1922:48;-1:-1:-1;1902:3:0;;;;:::i;:::-;;;;1864:118;;;-1:-1:-1;1999:12:0;1723:296;-1:-1:-1;;;1723:296:0:o;70798:689::-;70929:19;70935:2;70939:8;70929:5;:19::i;:::-;-1:-1:-1;;;;;70990:14:0;;;:19;70986:483;;71030:11;71044:13;71092:14;;;71125:233;71156:62;71195:1;71199:2;71203:7;;;;;;71212:5;71156:30;:62::i;:::-;71151:167;;71254:40;;-1:-1:-1;;;71254:40:0;;;;;;;;;;;71151:167;71353:3;71345:5;:11;71125:233;;71440:3;71423:13;;:20;71419:34;;71445:8;;;71419:34;71011:458;;70798:689;;;:::o;20762:716::-;21186:23;21212:69;21240:4;21212:69;;;;;;;;;;;;;;;;;21220:5;-1:-1:-1;;;;;21212:27:0;;;:69;;;;;:::i;:::-;21296:17;;21186:95;;-1:-1:-1;21296:21:0;21292:179;;21393:10;21382:30;;;;;;;;;;;;:::i;:::-;21374:85;;;;-1:-1:-1;;;21374:85:0;;15951:2:1;21374:85:0;;;15933:21:1;15990:2;15970:18;;;15963:30;16029:34;16009:18;;;16002:62;-1:-1:-1;;;16080:18:1;;;16073:40;16130:19;;21374:85:0;15749:406:1;7930:149:0;7993:7;8024:1;8020;:5;:51;;8155:13;8249:15;;;8285:4;8278:15;;;8332:4;8316:21;;8020:51;;;-1:-1:-1;8155:13:0;8249:15;;;8285:4;8278:15;8332:4;8316:21;;;7930:149::o;12198:229::-;12335:12;12367:52;12389:6;12397:4;12403:1;12406:12;12335;13606;13620:23;13647:6;-1:-1:-1;;;;;13647:11:0;13666:5;13673:4;13647:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13605:73;;;;13696:69;13723:6;13731:7;13740:10;13752:12;13696:26;:69::i;:::-;13689:76;13318:455;-1:-1:-1;;;;;;;13318:455:0:o;15891:644::-;16076:12;16105:7;16101:427;;;16133:17;;16129:290;;-1:-1:-1;;;;;9736:19:0;;;16343:60;;;;-1:-1:-1;;;16343:60:0;;17048:2:1;16343:60:0;;;17030:21:1;17087:2;17067:18;;;17060:30;17126:31;17106:18;;;17099:59;17175:18;;16343:60:0;16846:353:1;16343:60:0;-1:-1:-1;16440:10:0;16433:17;;16101:427;16483:33;16491:10;16503:12;17238:17;;:21;17234:388;;17470:10;17464:17;17527:15;17514:10;17510:2;17506:19;17499:44;17234:388;17597:12;17590:20;;-1:-1:-1;;;17590:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:173::-;660:20;;-1:-1:-1;;;;;709:31:1;;699:42;;689:70;;755:1;752;745:12;689:70;592:173;;;:::o;770:118::-;856:5;849:13;842:21;835:5;832:32;822:60;;878:1;875;868:12;893:315;958:6;966;1019:2;1007:9;998:7;994:23;990:32;987:52;;;1035:1;1032;1025:12;987:52;1058:29;1077:9;1058:29;:::i;:::-;1048:39;;1137:2;1126:9;1122:18;1109:32;1150:28;1172:5;1150:28;:::i;:::-;1197:5;1187:15;;;893:315;;;;;:::o;1213:258::-;1285:1;1295:113;1309:6;1306:1;1303:13;1295:113;;;1385:11;;;1379:18;1366:11;;;1359:39;1331:2;1324:10;1295:113;;;1426:6;1423:1;1420:13;1417:48;;;-1:-1:-1;;1461:1:1;1443:16;;1436:27;1213:258::o;1476:::-;1518:3;1556:5;1550:12;1583:6;1578:3;1571:19;1599:63;1655:6;1648:4;1643:3;1639:14;1632:4;1625:5;1621:16;1599:63;:::i;:::-;1716:2;1695:15;-1:-1:-1;;1691:29:1;1682:39;;;;1723:4;1678:50;;1476:258;-1:-1:-1;;1476:258:1:o;1739:220::-;1888:2;1877:9;1870:21;1851:4;1908:45;1949:2;1938:9;1934:18;1926:6;1908:45;:::i;1964:180::-;2023:6;2076:2;2064:9;2055:7;2051:23;2047:32;2044:52;;;2092:1;2089;2082:12;2044:52;-1:-1:-1;2115:23:1;;1964:180;-1:-1:-1;1964:180:1:o;2357:254::-;2425:6;2433;2486:2;2474:9;2465:7;2461:23;2457:32;2454:52;;;2502:1;2499;2492:12;2454:52;2525:29;2544:9;2525:29;:::i;:::-;2515:39;2601:2;2586:18;;;;2573:32;;-1:-1:-1;;;2357:254:1:o;2616:367::-;2679:8;2689:6;2743:3;2736:4;2728:6;2724:17;2720:27;2710:55;;2761:1;2758;2751:12;2710:55;-1:-1:-1;2784:20:1;;2827:18;2816:30;;2813:50;;;2859:1;2856;2849:12;2813:50;2896:4;2888:6;2884:17;2872:29;;2956:3;2949:4;2939:6;2936:1;2932:14;2924:6;2920:27;2916:38;2913:47;2910:67;;;2973:1;2970;2963:12;2910:67;2616:367;;;;;:::o;2988:511::-;3083:6;3091;3099;3152:2;3140:9;3131:7;3127:23;3123:32;3120:52;;;3168:1;3165;3158:12;3120:52;3191:29;3210:9;3191:29;:::i;:::-;3181:39;;3271:2;3260:9;3256:18;3243:32;3298:18;3290:6;3287:30;3284:50;;;3330:1;3327;3320:12;3284:50;3369:70;3431:7;3422:6;3411:9;3407:22;3369:70;:::i;:::-;2988:511;;3458:8;;-1:-1:-1;3343:96:1;;-1:-1:-1;;;;2988:511:1:o;3686:309::-;3751:6;3759;3812:2;3800:9;3791:7;3787:23;3783:32;3780:52;;;3828:1;3825;3818:12;3780:52;3864:9;3851:23;3841:33;;3924:2;3913:9;3909:18;3896:32;3937:28;3959:5;3937:28;:::i;4000:328::-;4077:6;4085;4093;4146:2;4134:9;4125:7;4121:23;4117:32;4114:52;;;4162:1;4159;4152:12;4114:52;4185:29;4204:9;4185:29;:::i;:::-;4175:39;;4233:38;4267:2;4256:9;4252:18;4233:38;:::i;:::-;4223:48;;4318:2;4307:9;4303:18;4290:32;4280:42;;4000:328;;;;;:::o;4333:276::-;4391:6;4444:2;4432:9;4423:7;4419:23;4415:32;4412:52;;;4460:1;4457;4450:12;4412:52;4499:9;4486:23;4549:10;4542:5;4538:22;4531:5;4528:33;4518:61;;4575:1;4572;4565:12;4614:437;4700:6;4708;4761:2;4749:9;4740:7;4736:23;4732:32;4729:52;;;4777:1;4774;4767:12;4729:52;4817:9;4804:23;4850:18;4842:6;4839:30;4836:50;;;4882:1;4879;4872:12;4836:50;4921:70;4983:7;4974:6;4963:9;4959:22;4921:70;:::i;:::-;5010:8;;4895:96;;-1:-1:-1;4614:437:1;-1:-1:-1;;;;4614:437:1:o;5056:127::-;5117:10;5112:3;5108:20;5105:1;5098:31;5148:4;5145:1;5138:15;5172:4;5169:1;5162:15;5188:632;5253:5;5283:18;5324:2;5316:6;5313:14;5310:40;;;5330:18;;:::i;:::-;5405:2;5399:9;5373:2;5459:15;;-1:-1:-1;;5455:24:1;;;5481:2;5451:33;5447:42;5435:55;;;5505:18;;;5525:22;;;5502:46;5499:72;;;5551:18;;:::i;:::-;5591:10;5587:2;5580:22;5620:6;5611:15;;5650:6;5642;5635:22;5690:3;5681:6;5676:3;5672:16;5669:25;5666:45;;;5707:1;5704;5697:12;5666:45;5757:6;5752:3;5745:4;5737:6;5733:17;5720:44;5812:1;5805:4;5796:6;5788;5784:19;5780:30;5773:41;;;;5188:632;;;;;:::o;5825:451::-;5894:6;5947:2;5935:9;5926:7;5922:23;5918:32;5915:52;;;5963:1;5960;5953:12;5915:52;6003:9;5990:23;6036:18;6028:6;6025:30;6022:50;;;6068:1;6065;6058:12;6022:50;6091:22;;6144:4;6136:13;;6132:27;-1:-1:-1;6122:55:1;;6173:1;6170;6163:12;6122:55;6196:74;6262:7;6257:2;6244:16;6239:2;6235;6231:11;6196:74;:::i;6281:186::-;6340:6;6393:2;6381:9;6372:7;6368:23;6364:32;6361:52;;;6409:1;6406;6399:12;6361:52;6432:29;6451:9;6432:29;:::i;6657:328::-;6734:6;6742;6750;6803:2;6791:9;6782:7;6778:23;6774:32;6771:52;;;6819:1;6816;6809:12;6771:52;6842:29;6861:9;6842:29;:::i;:::-;6832:39;;6918:2;6907:9;6903:18;6890:32;6880:42;;6941:38;6975:2;6964:9;6960:18;6941:38;:::i;:::-;6931:48;;6657:328;;;;;:::o;6990:667::-;7085:6;7093;7101;7109;7162:3;7150:9;7141:7;7137:23;7133:33;7130:53;;;7179:1;7176;7169:12;7130:53;7202:29;7221:9;7202:29;:::i;:::-;7192:39;;7250:38;7284:2;7273:9;7269:18;7250:38;:::i;:::-;7240:48;;7335:2;7324:9;7320:18;7307:32;7297:42;;7390:2;7379:9;7375:18;7362:32;7417:18;7409:6;7406:30;7403:50;;;7449:1;7446;7439:12;7403:50;7472:22;;7525:4;7517:13;;7513:27;-1:-1:-1;7503:55:1;;7554:1;7551;7544:12;7503:55;7577:74;7643:7;7638:2;7625:16;7620:2;7616;7612:11;7577:74;:::i;:::-;7567:84;;;6990:667;;;;;;;:::o;7662:260::-;7730:6;7738;7791:2;7779:9;7770:7;7766:23;7762:32;7759:52;;;7807:1;7804;7797:12;7759:52;7830:29;7849:9;7830:29;:::i;:::-;7820:39;;7878:38;7912:2;7901:9;7897:18;7878:38;:::i;:::-;7868:48;;7662:260;;;;;:::o;7927:380::-;8006:1;8002:12;;;;8049;;;8070:61;;8124:4;8116:6;8112:17;8102:27;;8070:61;8177:2;8169:6;8166:14;8146:18;8143:38;8140:161;;;8223:10;8218:3;8214:20;8211:1;8204:31;8258:4;8255:1;8248:15;8286:4;8283:1;8276:15;8140:161;;7927:380;;;:::o;9924:127::-;9985:10;9980:3;9976:20;9973:1;9966:31;10016:4;10013:1;10006:15;10040:4;10037:1;10030:15;10056:125;10096:4;10124:1;10121;10118:8;10115:34;;;10129:18;;:::i;:::-;-1:-1:-1;10166:9:1;;10056:125::o;10186:128::-;10226:3;10257:1;10253:6;10250:1;10247:13;10244:39;;;10263:18;;:::i;:::-;-1:-1:-1;10299:9:1;;10186:128::o;11802:470::-;11981:3;12019:6;12013:13;12035:53;12081:6;12076:3;12069:4;12061:6;12057:17;12035:53;:::i;:::-;12151:13;;12110:16;;;;12173:57;12151:13;12110:16;12207:4;12195:17;;12173:57;:::i;:::-;12246:20;;11802:470;-1:-1:-1;;;;11802:470:1:o;12628:168::-;12668:7;12734:1;12730;12726:6;12722:14;12719:1;12716:21;12711:1;12704:9;12697:17;12693:45;12690:71;;;12741:18;;:::i;:::-;-1:-1:-1;12781:9:1;;12628:168::o;14479:489::-;-1:-1:-1;;;;;14748:15:1;;;14730:34;;14800:15;;14795:2;14780:18;;14773:43;14847:2;14832:18;;14825:34;;;14895:3;14890:2;14875:18;;14868:31;;;14673:4;;14916:46;;14942:19;;14934:6;14916:46;:::i;:::-;14908:54;14479:489;-1:-1:-1;;;;;;14479:489:1:o;14973:249::-;15042:6;15095:2;15083:9;15074:7;15070:23;15066:32;15063:52;;;15111:1;15108;15101:12;15063:52;15143:9;15137:16;15162:30;15186:5;15162:30;:::i;15227:127::-;15288:10;15283:3;15279:20;15276:1;15269:31;15319:4;15316:1;15309:15;15343:4;15340:1;15333:15;15359:135;15398:3;-1:-1:-1;;15419:17:1;;15416:43;;;15439:18;;:::i;:::-;-1:-1:-1;15486:1:1;15475:13;;15359:135::o;15499:245::-;15566:6;15619:2;15607:9;15598:7;15594:23;15590:32;15587:52;;;15635:1;15632;15625:12;15587:52;15667:9;15661:16;15686:28;15708:5;15686:28;:::i;16567:274::-;16696:3;16734:6;16728:13;16750:53;16796:6;16791:3;16784:4;16776:6;16772:17;16750:53;:::i;:::-;16819:16;;;;;16567:274;-1:-1:-1;;16567:274:1:o

Swarm Source

ipfs://4826b652a2c92f81b189d5eff3bf6aa2e18520a57a53fa7f461733b73bd37619
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.