ETH Price: $3,493.65 (+0.93%)
Gas: 10 Gwei

Token

Fananees (FUN)
 

Overview

Max Total Supply

2,000 FUN

Holders

352

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
ssick.eth
Balance
1 FUN
0xf2f5da9a4bc63f9aa77ac67f8ca2700e8218deb1
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:
Fananees

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 3 of 13 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 4 of 13 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

File 6 of 13 : Fananees.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;

/*
      _____    _   _   _   _     
     |" ___|U |"|u| | | \ |"|    
    U| |_  u \| |\| |<|  \| |>   
    \|  _|/   | |_| |U| |\  |u   
     |_|     <<\___/  |_| \_|    
     )(\\,- (__) )(   ||   \\,-. 
    (__)(_/     (__)  (_")  (_/  

    Fananees All Rights Reserved 2022
    Developed by DeployLabs.io ([email protected])
*/

import "./library/Neutron.sol";
import "./library/erc721A/extentions/ERC721AQueryable.sol";

import "./staking/IStaking.sol";

error Fananees__ZeroAddressProhibited();
error Fananees__NotAuthorized();

error Fananees__CrossmintNotSupportedOnThatStage();

error Fananees__TokenIsLockedInStaking();

error Fananees__NothingToWithdraw();
error Fananees__WithdrawFailed();

/**
 * @title Fananees
 * @author DeployLabs.io
 *
 * @dev Fananees is a contract for managing airdrops and sales of Fananees NFTs.
 */
contract Fananees is
	Neutron("Fananees", "FUN", 0x01699bb5a7d67fb3, 0x45873Ec03F3B188668E55296f70Fcce656254D3F),
	ERC721AQueryable
{
	uint16 private s_publicSaleStageIndex;
	address private s_crossmintAddress;

	IStaking private s_stakingContract;

	/**
	 * @dev Mint tokens to the specified address through crossmint.io.
	 *
	 * @param mintTo The address to mint the token to.
	 * @param quantity The quantity of tokens to mint.
	 */
	function crossmintMint(address mintTo, uint256 quantity) external payable {
		if (msg.sender != s_crossmintAddress) revert Fananees__NotAuthorized();

		uint16 currentStageIndex = getCurrentSaleStageIndex();
		if (currentStageIndex != s_publicSaleStageIndex)
			revert Fananees__CrossmintNotSupportedOnThatStage();

		uint16 currentStageId = s_saleStageIds[currentStageIndex];
		SaleStageConfig memory config = getSaleStageConfig(currentStageIndex);

		if (msg.value != config.weiTokenPrice * quantity) revert Neutron__WrongEtherAmmount();
		if (totalSupply() + quantity > config.supplyLimitByTheEndOfStage)
			revert Neutron__ExceedingMaxSupply();
		if (
			s_numberMintedDuringStage[currentStageId][mintTo] + quantity > config.maxTokensPerWallet
		) revert Neutron__ExceedingTokensPerStageLimit();

		s_numberMintedDuringStage[currentStageId][mintTo] += quantity;

		_safeMint(mintTo, quantity);
	}

	/**
	 * @dev Set the index of the public sale stage. Used for crossmint sales allowance.
	 *
	 * @param stageIndex The index of the public sale stage.
	 */
	function setPublicSaleStageIndex(uint16 stageIndex) external onlyManager {
		if (stageIndex >= s_saleStageIds.length) revert Neutron__InvalidSaleStageIndex();

		s_publicSaleStageIndex = stageIndex;
	}

	/**
	 * @dev Set the address of the crossmint.io contract.
	 *
	 * @param crossmintAddress The address of the crossmint.io contract.
	 */
	function setCrossmintAddress(address crossmintAddress) external onlyManager {
		if (crossmintAddress == address(0)) revert Fananees__ZeroAddressProhibited();

		s_crossmintAddress = crossmintAddress;
	}

	/**
	 * @dev Set the staking contract.
	 *
	 * @param stakingContract The address of the staking contract.
	 */
	function setStakingContract(IStaking stakingContract) external onlyManager {
		if (address(stakingContract) == address(0)) revert Fananees__ZeroAddressProhibited();

		s_stakingContract = stakingContract;
	}

	/**
	 * @dev Withdraw money from the contract. Only a payout wallet can call this function.
	 *
	 * @param to The address to send the money to.
	 */
	function withdrawMoney(address payable to) external onlyOwner {
		(bool success, ) = to.call{ value: address(this).balance }("");
		if (!success) revert Fananees__WithdrawFailed();
	}

	// Override to prevent tokens from being moved when they are being staked.
	/// @inheritdoc ERC721A
	function _beforeTokenTransfers(
		address from,
		address to,
		uint256 startTokenId,
		uint256 quantity
	) internal override {
		super._beforeTokenTransfers(from, to, startTokenId, quantity);

		bool isStakingContractSet = address(s_stakingContract) != address(0x0);
		if (!isStakingContractSet) return;

		for (uint256 tokenId = startTokenId; tokenId < startTokenId + quantity; tokenId++) {
			if (s_stakingContract.isTokenStaked(tokenId)) revert Fananees__TokenIsLockedInStaking();
		}
	}

	/// @inheritdoc Neutron
	function _startTokenId() internal view virtual override(Neutron, ERC721A) returns (uint256) {
		return super._startTokenId();
	}

	/// @inheritdoc Neutron
	function _baseURI() internal view virtual override(Neutron, ERC721A) returns (string memory) {
		return super._baseURI();
	}
}

File 7 of 13 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @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 {
    // Reference type for token approval.
    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 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 {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        _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]`.
        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 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 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 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.
            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`.
                )

                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 ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

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

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

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

File 8 of 13 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721A Queryable
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
            return ownership;
        }
        ownership = _ownershipAt(tokenId);
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

File 9 of 13 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of an ERC721AQueryable compliant contract.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

File 10 of 13 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

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

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

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

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

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

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

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

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

File 11 of 13 : Manageable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/access/Ownable.sol";

error Manageable__WalletIsNotAManager();
error Manageable__ZeroAddressProhibited();

/**
 * @title Manageable
 * @author DeployLabs.io
 *
 * @dev This module is an extention of {Ownable} contract. It will make available
 * the modifier `onlyManager`, which can be applied to your functions to restrict their use to managers.
 * Managers can be added and removed by the owner.
 * Note, that the owner of the contract is also considered a manager.
 */
abstract contract Manageable is Ownable {
	/// @dev Mapping of wallet to their manager status.
	mapping(address => bool) private s_managers;

	/// @dev Throws if called by any account other than a manager.
	modifier onlyManager() {
		_checkManager();
		_;
	}

	constructor() {}

	/// @dev Add a list of addresses to a list of managers.
	function addManagers(address[] calldata wallets) external onlyOwner {
		for (uint256 index = 0; index < wallets.length; index++) {
			_addManager(wallets[index]);
		}
	}

	/// @dev Remove a list of addresses from a list of managers.
	function removeManagers(address[] calldata wallets) external onlyOwner {
		for (uint256 index = 0; index < wallets.length; index++) {
			_removeManager(wallets[index]);
		}
	}

	/// @dev Check, whether a wallet is a manager or not.
	function isManager(address wallet) public view returns (bool) {
		if (owner() == wallet) return true;
		return s_managers[wallet];
	}

	/// @dev Add an address to a list of managers.
	function _addManager(address wallet) internal {
		if (wallet == address(0)) revert Manageable__ZeroAddressProhibited();

		s_managers[wallet] = true;
	}

	/// @dev Remove an address from a list of managers.
	function _removeManager(address wallet) internal {
		if (!isManager(wallet)) revert Manageable__WalletIsNotAManager();
		if (wallet == address(0)) revert Manageable__ZeroAddressProhibited();

		s_managers[wallet] = false;
	}

	/// @dev Throws if the sender is not a manager.
	function _checkManager() internal view {
		if (!isManager(_msgSender())) revert Manageable__WalletIsNotAManager();
	}
}

File 12 of 13 : Neutron.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "./erc721A/ERC721A.sol";
import "./Manageable.sol";

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

error Neutron__NoSaleStageActive();

error Neutron__InvalidConfiguration();
error Neutron__InvalidSaleStageIndex();
error Neutron__InvalidInput();

error Neutron__WrongEtherAmmount();
error Neutron__ExceedingMaxSupply();
error Neutron__ExceedingTokensPerStageLimit();

error Neutron__HashComparisonFailed();
error Neutron__UntrustedSigner();
error Neutron__SignatureAlreadyUsed();

/**
 * @dev Configuration of a sale stage.
 *
 * @param startTime The start time of the sale stage.
 * @param endTime The end time of the sale stage.
 * @param supplyLimitByTheEndOfStage The maximum number of tokens that can be minted by the end of the sale stage.
 * @param maxTokensPerWallet The maximum number of tokens that can be minted by a single wallet during the sale stage.
 * @param weiTokenPrice The price of a token in wei.
 */
struct SaleStageConfig {
	uint32 startTime;
	uint32 endTime;
	uint16 supplyLimitByTheEndOfStage;
	uint16 maxTokensPerWallet;
	uint256 weiTokenPrice;
}

/**
 * @dev A signature package, that secures the minting of tokens.
 *
 * @param messageHash The hash of the minting operation message.
 * @param signature The signature for the message hash.
 * @param nonce The nonce, that is used to prevent replay attacks.
 */
struct SaleSignaturePackage {
	bytes32 messageHash;
	bytes signature;
	uint64 nonce;
}

/**
 * @title Neutron
 * @author DeployLabs.io
 *
 * @dev Neutron is a contract for managing a token collection.
 * Version 1.1.0
 */
abstract contract Neutron is ERC721A, Manageable {
	bytes8 private immutable i_hashSalt;
	address private immutable i_signerAddress;

	string private s_baseTokenUri;

	uint16[] internal s_saleStageIds;
	uint16 internal s_lastAssignedStageId = 0;

	mapping(uint16 => SaleStageConfig) internal s_saleStageConfigurations;
	mapping(uint16 => mapping(address => uint256)) internal s_numberMintedDuringStage;

	mapping(uint64 => bool) internal s_usedNonces;

	constructor(
		string memory name,
		string memory symbol,
		bytes8 hashSalt,
		address signerAddress
	) ERC721A(name, symbol) {
		i_hashSalt = hashSalt;
		i_signerAddress = signerAddress;
	}

	/**
	 * @dev Mint a token to the caller.
	 *
	 * @param signaturePackage The signature package for security.
	 * @param quantity The quantity of tokens to mint.
	 */
	function mint(
		SaleSignaturePackage calldata signaturePackage,
		uint256 quantity
	) external payable {
		uint16 currentStageIndex = getCurrentSaleStageIndex();
		uint16 currentStageId = s_saleStageIds[currentStageIndex];
		SaleStageConfig memory config = getSaleStageConfig(currentStageIndex);

		if (msg.value != config.weiTokenPrice * quantity) revert Neutron__WrongEtherAmmount();
		if (totalSupply() + quantity > config.supplyLimitByTheEndOfStage)
			revert Neutron__ExceedingMaxSupply();
		if (
			s_numberMintedDuringStage[currentStageId][msg.sender] + quantity >
			config.maxTokensPerWallet
		) revert Neutron__ExceedingTokensPerStageLimit();

		if (!_isCorrectMintOperationHash(signaturePackage, msg.sender, quantity))
			revert Neutron__HashComparisonFailed();
		if (!_isTrustedSigner(signaturePackage.messageHash, signaturePackage.signature))
			revert Neutron__UntrustedSigner();
		if (s_usedNonces[signaturePackage.nonce]) revert Neutron__SignatureAlreadyUsed();

		s_numberMintedDuringStage[currentStageId][msg.sender] += quantity;
		s_usedNonces[signaturePackage.nonce] = true;

		_safeMint(msg.sender, quantity);
	}

	/**
	 * @dev Airdrop tokens to a list of recipients.
	 *
	 * @param airdropTo The list of recipients.
	 * @param quantity The list of quantities.
	 */
	function airdrop(
		address[] calldata airdropTo,
		uint256[] calldata quantity
	) external onlyManager {
		if (airdropTo.length != quantity.length) revert Neutron__InvalidInput();

		for (uint256 i = 0; i < airdropTo.length; i++) {
			_safeMint(airdropTo[i], quantity[i]);
		}
	}

	/**
	 * @dev Add a new sale stage. The sale stage must be added in chronological order.
	 *
	 * @param config The configuration of the sale stage.
	 */
	function addSaleStage(SaleStageConfig calldata config) external onlyManager {
		if (config.startTime >= config.endTime) revert Neutron__InvalidConfiguration();
		if (config.supplyLimitByTheEndOfStage == 0) revert Neutron__InvalidConfiguration();
		if (config.maxTokensPerWallet == 0) revert Neutron__InvalidConfiguration();

		s_lastAssignedStageId += 1;
		s_saleStageIds.push(s_lastAssignedStageId);
		s_saleStageConfigurations[s_lastAssignedStageId] = config;
	}

	/**
	 * @dev Remove a sale stage.
	 *
	 * @param stageIndex The index of the sale stage to remove.
	 */
	function removeSaleStage(uint16 stageIndex) external onlyManager {
		if (stageIndex >= s_saleStageIds.length) revert Neutron__InvalidSaleStageIndex();

		for (uint256 i = stageIndex; i < s_saleStageIds.length - 1; i++) {
			s_saleStageIds[i] = s_saleStageIds[i + 1];
		}

		s_saleStageIds.pop();
	}

	/**
	 * @dev Edit an existing sale stage.
	 *
	 * @param stageIndex The index of the sale stage to edit.
	 * @param config The new configuration of the sale stage.
	 */
	function editSaleStage(
		uint16 stageIndex,
		SaleStageConfig calldata config
	) external onlyManager {
		if (stageIndex >= s_saleStageIds.length) revert Neutron__InvalidSaleStageIndex();
		if (config.startTime >= config.endTime) revert Neutron__InvalidConfiguration();
		if (config.supplyLimitByTheEndOfStage == 0) revert Neutron__InvalidConfiguration();
		if (config.maxTokensPerWallet == 0) revert Neutron__InvalidConfiguration();

		s_saleStageConfigurations[s_saleStageIds[stageIndex]] = config;
	}

	/**
	 * @dev Reset a sale stage. This will increment the stage ID, which will invalidate all previous linked operations.
	 *
	 * @param stageIndex The index of the sale stage to reset.
	 */
	function resetSaleStage(uint16 stageIndex) external onlyManager {
		if (stageIndex >= s_saleStageIds.length) revert Neutron__InvalidSaleStageIndex();

		s_lastAssignedStageId += 1;
		s_saleStageIds[stageIndex] = s_lastAssignedStageId;
	}

	/**
	 * @dev Set base URI for token metadata.
	 *
	 * @param baseUri The base URI for token metadata.
	 */
	function setBaseUri(string calldata baseUri) external onlyManager {
		s_baseTokenUri = baseUri;
	}

	/**
	 * @dev Get the number of sale stages.
	 *
	 * @return saleStagesCount The number of sale stages in the contract.
	 */
	function getSaleStagesCount() external view returns (uint256 saleStagesCount) {
		saleStagesCount = s_saleStageIds.length;
	}

	/**
	 * @dev Get the number of tokens minted during a sale stage.
	 *
	 * @param stageIndex The index of the sale stage.
	 * @param wallet The wallet to get the count for.
	 *
	 * @return countMintedDuringStage The number of tokens minted during the sale stage.
	 */
	function getMintedCountDuringSaleStage(
		uint16 stageIndex,
		address wallet
	) external view returns (uint256 countMintedDuringStage) {
		if (stageIndex >= s_saleStageIds.length) revert Neutron__InvalidSaleStageIndex();

		countMintedDuringStage = s_numberMintedDuringStage[s_saleStageIds[stageIndex]][wallet];
	}

	/**
	 * @dev Get the sale stage configuration.
	 *
	 * @param stageIndex The index of the sale stage.
	 *
	 * @return config The sale stage configuration.
	 */
	function getSaleStageConfig(
		uint16 stageIndex
	) public view returns (SaleStageConfig memory config) {
		if (stageIndex >= s_saleStageIds.length) revert Neutron__InvalidSaleStageIndex();

		config = s_saleStageConfigurations[s_saleStageIds[stageIndex]];
	}

	/**
	 * @dev Get the current sale stage index.
	 *
	 * @return currentStageIndex The current sale stage index.
	 */
	function getCurrentSaleStageIndex() public view returns (uint16 currentStageIndex) {
		uint256 currentTimestamp = block.timestamp;
		uint16[] memory saleStageIds = s_saleStageIds;

		for (; currentStageIndex < saleStageIds.length; currentStageIndex++) {
			SaleStageConfig memory config = s_saleStageConfigurations[
				saleStageIds[currentStageIndex]
			];

			if (currentTimestamp >= config.startTime && currentTimestamp < config.endTime) {
				return currentStageIndex;
			}
		}

		revert Neutron__NoSaleStageActive();
	}

	/**
	 * @dev Get data used to generate the signature.
	 *
	 * @return hashSalt The hash salt.
	 * @return signerAddress The signer address.
	 */
	function getSignatureData() public view returns (bytes8 hashSalt, address signerAddress) {
		return (i_hashSalt, i_signerAddress);
	}

	/**
	 * @dev Starting ID for the tokens.
	 *
	 * @return The starting ID for the tokens.
	 */
	function _startTokenId() internal view virtual override returns (uint256) {
		return 1;
	}

	/**
	 * @dev Get base token URI.
	 *
	 * @return The base token URI.
	 */
	function _baseURI() internal view virtual override returns (string memory) {
		return s_baseTokenUri;
	}

	/**
	 * @dev Check whether a message hash is the one that has been signed.
	 *
	 * @param signaturePackage The signature package.
	 * @param mintTo The address of the minter.
	 * @param quantity The quantity of tokens to mint.
	 *
	 * @return isCorrectMintOperationHash Whether the message hash matches the one that has been signed.
	 */
	function _isCorrectMintOperationHash(
		SaleSignaturePackage calldata signaturePackage,
		address mintTo,
		uint256 quantity
	) internal view returns (bool isCorrectMintOperationHash) {
		uint16 currentSaleStageIndex = getCurrentSaleStageIndex();

		bytes memory message = abi.encodePacked(
			i_hashSalt,
			mintTo,
			uint64(block.chainid),
			currentSaleStageIndex,
			uint64(quantity),
			signaturePackage.nonce
		);
		bytes32 messageHash = keccak256(message);

		isCorrectMintOperationHash = messageHash == signaturePackage.messageHash;
	}

	/**
	 * @dev Check whether a message hash was signed by a trusted address.
	 *
	 * @param messageHash The hash of the opertaion message.
	 * @param signature The signature for the message hash.
	 *
	 * @return isTrustedSigner Whether the message was signed by a trusted address.
	 */
	function _isTrustedSigner(
		bytes32 messageHash,
		bytes memory signature
	) internal view returns (bool isTrustedSigner) {
		isTrustedSigner = i_signerAddress == ECDSA.recover(messageHash, signature);
	}
}

File 13 of 13 : IStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IStaking {
	/// @dev Emitted when a token is staked.
	event TokenStaked(address owner, uint256 indexed tokenId);
	/// @dev Emitted when a token is unstaked.
	event TokenUnstaked(address owner, uint256 indexed tokenId);

	/**
	 * @dev Stake a list of tokens.
	 * Progress is saved on the wallet, so tokens can be unstaked and staked again.
	 * Each extra token should give a bonus of X% or Y% to staking points gain.
	 */
	function stakeTokens(uint256[] calldata tokenIds) external;

	/// @dev Unstake a list of tokens.
	function unstakeTokens(uint256[] calldata tokenIds) external;

	/// @dev Check if a token is currently staked.
	function isTokenStaked(uint256 tokenId) external view returns (bool isStaked);

	/// @dev Get currect staking tier of a wallet.
	function getStakingTier(address wallet) external view returns (uint16 tier);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"Fananees__CrossmintNotSupportedOnThatStage","type":"error"},{"inputs":[],"name":"Fananees__NotAuthorized","type":"error"},{"inputs":[],"name":"Fananees__TokenIsLockedInStaking","type":"error"},{"inputs":[],"name":"Fananees__WithdrawFailed","type":"error"},{"inputs":[],"name":"Fananees__ZeroAddressProhibited","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"Manageable__WalletIsNotAManager","type":"error"},{"inputs":[],"name":"Manageable__ZeroAddressProhibited","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"Neutron__ExceedingMaxSupply","type":"error"},{"inputs":[],"name":"Neutron__ExceedingTokensPerStageLimit","type":"error"},{"inputs":[],"name":"Neutron__HashComparisonFailed","type":"error"},{"inputs":[],"name":"Neutron__InvalidConfiguration","type":"error"},{"inputs":[],"name":"Neutron__InvalidInput","type":"error"},{"inputs":[],"name":"Neutron__InvalidSaleStageIndex","type":"error"},{"inputs":[],"name":"Neutron__NoSaleStageActive","type":"error"},{"inputs":[],"name":"Neutron__SignatureAlreadyUsed","type":"error"},{"inputs":[],"name":"Neutron__UntrustedSigner","type":"error"},{"inputs":[],"name":"Neutron__WrongEtherAmmount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"}],"name":"addManagers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"},{"internalType":"uint16","name":"supplyLimitByTheEndOfStage","type":"uint16"},{"internalType":"uint16","name":"maxTokensPerWallet","type":"uint16"},{"internalType":"uint256","name":"weiTokenPrice","type":"uint256"}],"internalType":"struct SaleStageConfig","name":"config","type":"tuple"}],"name":"addSaleStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"airdropTo","type":"address[]"},{"internalType":"uint256[]","name":"quantity","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"mintTo","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"crossmintMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"stageIndex","type":"uint16"},{"components":[{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"},{"internalType":"uint16","name":"supplyLimitByTheEndOfStage","type":"uint16"},{"internalType":"uint16","name":"maxTokensPerWallet","type":"uint16"},{"internalType":"uint256","name":"weiTokenPrice","type":"uint256"}],"internalType":"struct SaleStageConfig","name":"config","type":"tuple"}],"name":"editSaleStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentSaleStageIndex","outputs":[{"internalType":"uint16","name":"currentStageIndex","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"stageIndex","type":"uint16"},{"internalType":"address","name":"wallet","type":"address"}],"name":"getMintedCountDuringSaleStage","outputs":[{"internalType":"uint256","name":"countMintedDuringStage","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"stageIndex","type":"uint16"}],"name":"getSaleStageConfig","outputs":[{"components":[{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"},{"internalType":"uint16","name":"supplyLimitByTheEndOfStage","type":"uint16"},{"internalType":"uint16","name":"maxTokensPerWallet","type":"uint16"},{"internalType":"uint256","name":"weiTokenPrice","type":"uint256"}],"internalType":"struct SaleStageConfig","name":"config","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleStagesCount","outputs":[{"internalType":"uint256","name":"saleStagesCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSignatureData","outputs":[{"internalType":"bytes8","name":"hashSalt","type":"bytes8"},{"internalType":"address","name":"signerAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"isManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"messageHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint64","name":"nonce","type":"uint64"}],"internalType":"struct SaleSignaturePackage","name":"signaturePackage","type":"tuple"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"}],"name":"removeManagers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"stageIndex","type":"uint16"}],"name":"removeSaleStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"stageIndex","type":"uint16"}],"name":"resetSaleStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"crossmintAddress","type":"address"}],"name":"setCrossmintAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"stageIndex","type":"uint16"}],"name":"setPublicSaleStageIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IStaking","name":"stakingContract","type":"address"}],"name":"setStakingContract","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"}],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526000600c60006101000a81548161ffff021916908361ffff1602179055503480156200002f57600080fd5b506040518060400160405280600881526020017f46616e616e6565730000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f46554e00000000000000000000000000000000000000000000000000000000008152506701699bb5a7d67fb360c01b7345873ec03f3b188668e55296f70fcce656254d3f83838160029081620000d0919062000504565b508060039081620000e2919062000504565b50620000f36200019760201b60201c565b60008190555050506200011b6200010f620001b360201b60201c565b620001bb60201b60201c565b8177ffffffffffffffffffffffffffffffffffffffffffffffff191660808177ffffffffffffffffffffffffffffffffffffffffffffffff1916815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff168152505050505050620005eb565b6000620001ae6200028160201b62002f471760201c565b905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006001905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200030c57607f821691505b602082108103620003225762000321620002c4565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200038c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200034d565b6200039886836200034d565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620003e5620003df620003d984620003b0565b620003ba565b620003b0565b9050919050565b6000819050919050565b6200040183620003c4565b620004196200041082620003ec565b8484546200035a565b825550505050565b600090565b6200043062000421565b6200043d818484620003f6565b505050565b5b8181101562000465576200045960008262000426565b60018101905062000443565b5050565b601f821115620004b4576200047e8162000328565b62000489846200033d565b8101602085101562000499578190505b620004b1620004a8856200033d565b83018262000442565b50505b505050565b600082821c905092915050565b6000620004d960001984600802620004b9565b1980831691505092915050565b6000620004f48383620004c6565b9150826002028217905092915050565b6200050f826200028a565b67ffffffffffffffff8111156200052b576200052a62000295565b5b620005378254620002f3565b6200054482828562000469565b600060209050601f8311600181146200057c576000841562000567578287015190505b620005738582620004e6565b865550620005e3565b601f1984166200058c8662000328565b60005b82811015620005b6578489015182556001820191506020850194506020810190506200058f565b86831015620005d65784890151620005d2601f891682620004c6565b8355505b6001600288020188555050505b505050505050565b60805160a051615f886200061f60003960008181611c9d01526138f3015260008181611c7c01526138540152615f886000f3fe6080604052600436106102465760003560e01c80638c5f9e7411610139578063b88d4fde116100b6578063e749ab2b1161007a578063e749ab2b1461089c578063e7518d10146108b8578063e985e9c5146108e3578063f2fde38b14610920578063f3ae241514610949578063f892b34b1461098657610246565b8063b88d4fde146107a5578063c23dc68f146107ce578063c87b56dd1461080b578063d367dc5814610848578063e52ef8c01461087357610246565b806399a2557a116100fd57806399a2557a146106c45780639a602148146107015780639dd373b91461072a578063a0bcfc7f14610753578063a22cb4651461077c57610246565b80638c5f9e74146105f05780638da5cb5b14610619578063900af1921461064457806395d89b4114610670578063997556241461069b57610246565b806345d2e937116101c75780636c2b14b51161018b5780636c2b14b5146104f957806370a0823114610536578063715018a6146105735780637aad1c461461058a5780638462151c146105b357610246565b806345d2e937146104115780635bbb21771461043a5780636352211e1461047757806367243482146104b457806367ae503b146104dd57610246565b806318160ddd1161020e57806318160ddd1461034257806323b872dd1461036d5780632f40cb45146103965780632f971029146103bf57806342842e0e146103e857610246565b806301ffc9a71461024b57806306fdde0314610288578063081812fc146102b3578063095ea7b3146102f057806310f3ee2914610319575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d91906140b6565b6109c3565b60405161027f91906140fe565b60405180910390f35b34801561029457600080fd5b5061029d610a55565b6040516102aa91906141a9565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d59190614201565b610ae7565b6040516102e7919061426f565b60405180910390f35b3480156102fc57600080fd5b50610317600480360381019061031291906142b6565b610b66565b005b34801561032557600080fd5b50610340600480360381019061033b919061435b565b610caa565b005b34801561034e57600080fd5b50610357610d08565b60405161036491906143b7565b60405180910390f35b34801561037957600080fd5b50610394600480360381019061038f91906143d2565b610d1f565b005b3480156103a257600080fd5b506103bd60048036038101906103b89190614483565b611041565b005b3480156103cb57600080fd5b506103e660048036038101906103e19190614501565b6111fe565b005b3480156103f457600080fd5b5061040f600480360381019061040a91906143d2565b6112ad565b005b34801561041d57600080fd5b506104386004803603810190610433919061452e565b6112cd565b005b34801561044657600080fd5b50610461600480360381019061045c9190614699565b611418565b60405161046e9190614845565b60405180910390f35b34801561048357600080fd5b5061049e60048036038101906104999190614201565b6114d9565b6040516104ab919061426f565b60405180910390f35b3480156104c057600080fd5b506104db60048036038101906104d691906148bd565b6114eb565b005b6104f760048036038101906104f291906142b6565b6115a4565b005b34801561050557600080fd5b50610520600480360381019061051b919061493e565b611896565b60405161052d91906143b7565b60405180910390f35b34801561054257600080fd5b5061055d6004803603810190610558919061497e565b611976565b60405161056a91906143b7565b60405180910390f35b34801561057f57600080fd5b50610588611a2e565b005b34801561059657600080fd5b506105b160048036038101906105ac919061452e565b611a42565b005b3480156105bf57600080fd5b506105da60048036038101906105d5919061497e565b611aac565b6040516105e79190614a69565b60405180910390f35b3480156105fc57600080fd5b506106176004803603810190610612919061435b565b611bef565b005b34801561062557600080fd5b5061062e611c4d565b60405161063b919061426f565b60405180910390f35b34801561065057600080fd5b50610659611c77565b604051610667929190614ac6565b60405180910390f35b34801561067c57600080fd5b50610685611cc4565b60405161069291906141a9565b60405180910390f35b3480156106a757600080fd5b506106c260048036038101906106bd919061497e565b611d56565b005b3480156106d057600080fd5b506106eb60048036038101906106e69190614aef565b611e08565b6040516106f89190614a69565b60405180910390f35b34801561070d57600080fd5b5061072860048036038101906107239190614b42565b612014565b005b34801561073657600080fd5b50610751600480360381019061074c9190614bad565b6121f7565b005b34801561075f57600080fd5b5061077a60048036038101906107759190614c30565b6122a9565b005b34801561078857600080fd5b506107a3600480360381019061079e9190614ca9565b6122c7565b005b3480156107b157600080fd5b506107cc60048036038101906107c79190614d9e565b61243e565b005b3480156107da57600080fd5b506107f560048036038101906107f09190614201565b6124b1565b6040516108029190614e76565b60405180910390f35b34801561081757600080fd5b50610832600480360381019061082d9190614201565b61251b565b60405161083f91906141a9565b60405180910390f35b34801561085457600080fd5b5061085d6125b9565b60405161086a91906143b7565b60405180910390f35b34801561087f57600080fd5b5061089a6004803603810190610895919061452e565b6125c6565b005b6108b660048036038101906108b19190614eb0565b6126a5565b005b3480156108c457600080fd5b506108cd612a66565b6040516108da9190614f1b565b60405180910390f35b3480156108ef57600080fd5b5061090a60048036038101906109059190614f36565b612c4e565b60405161091791906140fe565b60405180910390f35b34801561092c57600080fd5b506109476004803603810190610942919061497e565b612ce2565b005b34801561095557600080fd5b50610970600480360381019061096b919061497e565b612d65565b60405161097d91906140fe565b60405180910390f35b34801561099257600080fd5b506109ad60048036038101906109a8919061452e565b612dff565b6040516109ba919061500c565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a1e57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a4e5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610a6490615056565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9090615056565b8015610add5780601f10610ab257610100808354040283529160200191610add565b820191906000526020600020905b815481529060010190602001808311610ac057829003601f168201915b5050505050905090565b6000610af282612f50565b610b28576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b71826114d9565b90508073ffffffffffffffffffffffffffffffffffffffff16610b92612faf565b73ffffffffffffffffffffffffffffffffffffffff1614610bf557610bbe81610bb9612faf565b612c4e565b610bf4576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610cb2612fb7565b60005b82829050811015610d0357610cf0838383818110610cd657610cd5615087565b5b9050602002016020810190610ceb919061497e565b613035565b8080610cfb906150e5565b915050610cb5565b505050565b6000610d12613135565b6001546000540303905090565b6000610d2a82613144565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d91576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d9d84613210565b91509150610db38187610dae612faf565b613237565b610dff57610dc886610dc3612faf565b612c4e565b610dfe576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610e65576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e72868686600161327b565b8015610e7d57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f4b85610f278888876133f0565b7c020000000000000000000000000000000000000000000000000000000017613418565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610fd15760006001850190506000600460008381526020019081526020016000205403610fcf576000548114610fce578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110398686866001613443565b505050505050565b611049613449565b600b805490508261ffff161061108b576040517fdc8e581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80602001602081019061109e9190615159565b63ffffffff168160000160208101906110b79190615159565b63ffffffff16106110f4576040517f34211bb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000816040016020810190611109919061452e565b61ffff1603611144576040517f34211bb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000816060016020810190611159919061452e565b61ffff1603611194576040517f34211bb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d6000600b8561ffff16815481106111b1576111b0615087565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002081816111f791906154ce565b9050505050565b611206612fb7565b60008173ffffffffffffffffffffffffffffffffffffffff164760405161122c9061550d565b60006040518083038185875af1925050503d8060008114611269576040519150601f19603f3d011682016040523d82523d6000602084013e61126e565b606091505b50509050806112a9576040517fd5bdff6a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b6112c88383836040518060200160405280600081525061243e565b505050565b6112d5613449565b600b805490508161ffff1610611317576040517fdc8e581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008161ffff1690505b6001600b805490506113339190615522565b8110156113d457600b6001826113499190615556565b8154811061135a57611359615087565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff16600b828154811061139257611391615087565b5b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555080806113cc906150e5565b915050611321565b50600b8054806113e7576113e661558a565b5b60019003818190600052602060002090601091828204019190066002026101000a81549061ffff0219169055905550565b606060008251905060008167ffffffffffffffff81111561143c5761143b61455b565b5b60405190808252806020026020018201604052801561147557816020015b611462613fb8565b81526020019060019003908161145a5790505b50905060005b8281146114ce576114a585828151811061149857611497615087565b5b60200260200101516124b1565b8282815181106114b8576114b7615087565b5b602002602001018190525080600101905061147b565b508092505050919050565b60006114e482613144565b9050919050565b6114f3613449565b818190508484905014611532576040517f7d1091cc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8484905081101561159d5761158a85858381811061155657611555615087565b5b905060200201602081019061156b919061497e565b84848481811061157e5761157d615087565b5b90506020020135613491565b8080611595906150e5565b915050611535565b5050505050565b601060029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461162b576040517fb72c92cd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611635612a66565b9050601060009054906101000a900461ffff1661ffff168161ffff1614611688576040517f173db37200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600b8261ffff16815481106116a2576116a1615087565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff16905060006116d383612dff565b90508381608001516116e591906155b9565b341461171d576040517f548996a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806040015161ffff168461172f610d08565b6117399190615556565b1115611771576040517f5843fd7a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806060015161ffff1684600e60008561ffff1661ffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117de9190615556565b1115611816576040517f9b36cc7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600e60008461ffff1661ffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461187e9190615556565b9250508190555061188f8585613491565b5050505050565b6000600b805490508361ffff16106118da576040517fdc8e581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e6000600b8561ffff16815481106118f6576118f5615087565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119dd576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611a36612fb7565b611a4060006134af565b565b611a4a613449565b600b805490508161ffff1610611a8c576040517fdc8e581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601060006101000a81548161ffff021916908361ffff16021790555050565b60606000806000611abc85611976565b905060008167ffffffffffffffff811115611ada57611ad961455b565b5b604051908082528060200260200182016040528015611b085781602001602082028036833780820191505090505b509050611b13613fb8565b6000611b1d613135565b90505b838614611be157611b3081613575565b91508160400151611bd657600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611b7b57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611bd55780838780600101985081518110611bc857611bc7615087565b5b6020026020010181815250505b5b806001019050611b20565b508195505050505050919050565b611bf7612fb7565b60005b82829050811015611c4857611c35838383818110611c1b57611c1a615087565b5b9050602002016020810190611c30919061497e565b6135a0565b8080611c40906150e5565b915050611bfa565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000807f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000915091509091565b606060038054611cd390615056565b80601f0160208091040260200160405190810160405280929190818152602001828054611cff90615056565b8015611d4c5780601f10611d2157610100808354040283529160200191611d4c565b820191906000526020600020905b815481529060010190602001808311611d2f57829003601f168201915b5050505050905090565b611d5e613449565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611dc4576040517fe265900c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601060026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060818310611e43576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611e4e613661565b9050611e58613135565b851015611e6a57611e67613135565b94505b80841115611e76578093505b6000611e8187611976565b905084861015611ea4576000868603905081811015611e9e578091505b50611ea9565b600090505b60008167ffffffffffffffff811115611ec557611ec461455b565b5b604051908082528060200260200182016040528015611ef35781602001602082028036833780820191505090505b50905060008203611f0a578094505050505061200d565b6000611f15886124b1565b905060008160400151611f2a57816000015190505b60008990505b888114158015611f405750848714155b15611fff57611f4e81613575565b92508260400151611ff457600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611f9957826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ff35780848880600101995081518110611fe657611fe5615087565b5b6020026020010181815250505b5b806001019050611f30565b508583528296505050505050505b9392505050565b61201c613449565b80602001602081019061202f9190615159565b63ffffffff168160000160208101906120489190615159565b63ffffffff1610612085576040517f34211bb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081604001602081019061209a919061452e565b61ffff16036120d5576040517f34211bb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008160600160208101906120ea919061452e565b61ffff1603612125576040517f34211bb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600c60008282829054906101000a900461ffff1661214591906155fb565b92506101000a81548161ffff021916908361ffff160217905550600b600c60009054906101000a900461ffff1690806001815401808255809150506001900390600052602060002090601091828204019190066002029091909190916101000a81548161ffff021916908361ffff16021790555080600d6000600c60009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002081816121f191906154ce565b90505050565b6121ff613449565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612265576040517fe265900c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6122b1613449565b8181600a91826122c29291906157b2565b505050565b6122cf612faf565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612333576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000612340612faf565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166123ed612faf565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161243291906140fe565b60405180910390a35050565b612449848484610d1f565b60008373ffffffffffffffffffffffffffffffffffffffff163b146124ab576124748484848461366a565b6124aa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6124b9613fb8565b6124c1613fb8565b6124c9613135565b8310806124dd57506124d9613661565b8310155b156124eb5780915050612516565b6124f483613575565b90508060400151156125095780915050612516565b612512836137ba565b9150505b919050565b606061252682612f50565b61255c576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006125666137da565b9050600081510361258657604051806020016040528060008152506125b1565b80612590846137e9565b6040516020016125a19291906158be565b6040516020818303038152906040525b915050919050565b6000600b80549050905090565b6125ce613449565b600b805490508161ffff1610612610576040517fdc8e581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600c60008282829054906101000a900461ffff1661263091906155fb565b92506101000a81548161ffff021916908361ffff160217905550600c60009054906101000a900461ffff16600b8261ffff168154811061267357612672615087565b5b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555050565b60006126af612a66565b90506000600b8261ffff16815481106126cb576126ca615087565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff16905060006126fc83612dff565b905083816080015161270e91906155b9565b3414612746576040517f548996a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806040015161ffff1684612758610d08565b6127629190615556565b111561279a576040517f5843fd7a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806060015161ffff1684600e60008561ffff1661ffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546128079190615556565b111561283f576040517f9b36cc7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61284a853386613843565b612880576040517f18cffa6d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128e0856000013586806020019061289891906158f1565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506138cf565b612916576040517f5e768c8300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f600086604001602081019061292d9190615980565b67ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612994576040517ff9d582d000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600e60008461ffff1661ffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129fc9190615556565b925050819055506001600f6000876040016020810190612a1c9190615980565b67ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612a5f3385613491565b5050505050565b6000804290506000600b805480602002602001604051908101604052809291908181526020018280548015612ae257602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411612aa95790505b505050505090505b80518361ffff161015612c19576000600d6000838661ffff1681518110612b1457612b13615087565b5b602002602001015161ffff1661ffff1681526020019081526020016000206040518060a00160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160089054906101000a900461ffff1661ffff1661ffff16815260200160008201600a9054906101000a900461ffff1661ffff1661ffff1681526020016001820154815250509050806000015163ffffffff168310158015612bf85750806020015163ffffffff1683105b15612c0557505050612c4b565b508280612c11906159ad565b935050612aea565b6040517f9fa2ea1c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b90565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612cea612fb7565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d5090615a49565b60405180910390fd5b612d62816134af565b50565b60008173ffffffffffffffffffffffffffffffffffffffff16612d86611c4d565b73ffffffffffffffffffffffffffffffffffffffff1603612daa5760019050612dfa565b600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1690505b919050565b612e07614007565b600b805490508261ffff1610612e49576040517fdc8e581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d6000600b8461ffff1681548110612e6557612e64615087565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff1661ffff1681526020019081526020016000206040518060a00160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160089054906101000a900461ffff1661ffff1661ffff16815260200160008201600a9054906101000a900461ffff1661ffff1661ffff1681526020016001820154815250509050919050565b60006001905090565b600081612f5b613135565b11158015612f6a575060005482105b8015612fa8575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b612fbf613931565b73ffffffffffffffffffffffffffffffffffffffff16612fdd611c4d565b73ffffffffffffffffffffffffffffffffffffffff1614613033576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302a90615ab5565b60405180910390fd5b565b61303e81612d65565b613074576040517fe0794bd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036130da576040517f341247d400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600061313f612f47565b905090565b60008082905080613153613135565b116131d9576000548110156131d85760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036131d6575b600081036131cc5760046000836001900393508381526020019081526020016000205490506131a2565b809250505061320b565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b61328784848484613939565b60008073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050806132e857506133ea565b60008390505b82846132fa9190615556565b8110156133e757601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f0a52424826040518263ffffffff1660e01b815260040161335c91906143b7565b602060405180830381865afa158015613379573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061339d9190615aea565b156133d4576040517f39cf2c1a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80806133df906150e5565b9150506132ee565b50505b50505050565b60008060e883901c905060e861340786868461393f565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b613459613454613931565b612d65565b61348f576040517fe0794bd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6134ab828260405180602001604052806000815250613948565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61357d613fb8565b61359960046000848152602001908152602001600020546139e5565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613606576040517f341247d400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613690612faf565b8786866040518563ffffffff1660e01b81526004016136b29493929190615b6c565b6020604051808303816000875af19250505080156136ee57506040513d601f19601f820116820180604052508101906136eb9190615bcd565b60015b613767573d806000811461371e576040519150601f19603f3d011682016040523d82523d6000602084013e613723565b606091505b50600081510361375f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6137c2613fb8565b6137d36137ce83613144565b6139e5565b9050919050565b60606137e4613a9b565b905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561382f57600183039250600a81066030018353600a8104905061380f565b508181036020830392508083525050919050565b60008061384e612a66565b905060007f0000000000000000000000000000000000000000000000000000000000000000854684878a604001602081019061388a9190615980565b60405160200161389f96959493929190615ccf565b60405160208183030381529060405290506000818051906020012090508660000135811493505050509392505050565b60006138db8383613b2d565b73ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1614905092915050565b600033905090565b50505050565b60009392505050565b6139528383613b54565b60008373ffffffffffffffffffffffffffffffffffffffff163b146139e057600080549050600083820390505b613992600086838060010194508661366a565b6139c8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061397f5781600054146139dd57600080fd5b50505b505050565b6139ed613fb8565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b6060600a8054613aaa90615056565b80601f0160208091040260200160405190810160405280929190818152602001828054613ad690615056565b8015613b235780601f10613af857610100808354040283529160200191613b23565b820191906000526020600020905b815481529060010190602001808311613b0657829003601f168201915b5050505050905090565b6000806000613b3c8585613d0f565b91509150613b4981613d60565b819250505092915050565b60008054905060008203613b94576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613ba1600084838561327b565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613c1883613c0960008660006133f0565b613c1285613ec6565b17613418565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613cb957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613c7e565b5060008203613cf4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613d0a6000848385613443565b505050565b6000806041835103613d505760008060006020860151925060408601519150606086015160001a9050613d4487828585613ed6565b94509450505050613d59565b60006002915091505b9250929050565b60006004811115613d7457613d73615d3f565b5b816004811115613d8757613d86615d3f565b5b0315613ec35760016004811115613da157613da0615d3f565b5b816004811115613db457613db3615d3f565b5b03613df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613deb90615dba565b60405180910390fd5b60026004811115613e0857613e07615d3f565b5b816004811115613e1b57613e1a615d3f565b5b03613e5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e5290615e26565b60405180910390fd5b60036004811115613e6f57613e6e615d3f565b5b816004811115613e8257613e81615d3f565b5b03613ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613eb990615eb8565b60405180910390fd5b5b50565b60006001821460e11b9050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613f11576000600391509150613faf565b600060018787878760405160008152602001604052604051613f369493929190615f0d565b6020604051602081039080840390855afa158015613f58573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613fa657600060019250925050613faf565b80600092509250505b94509492505050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6040518060a00160405280600063ffffffff168152602001600063ffffffff168152602001600061ffff168152602001600061ffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6140938161405e565b811461409e57600080fd5b50565b6000813590506140b08161408a565b92915050565b6000602082840312156140cc576140cb614054565b5b60006140da848285016140a1565b91505092915050565b60008115159050919050565b6140f8816140e3565b82525050565b600060208201905061411360008301846140ef565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015614153578082015181840152602081019050614138565b60008484015250505050565b6000601f19601f8301169050919050565b600061417b82614119565b6141858185614124565b9350614195818560208601614135565b61419e8161415f565b840191505092915050565b600060208201905081810360008301526141c38184614170565b905092915050565b6000819050919050565b6141de816141cb565b81146141e957600080fd5b50565b6000813590506141fb816141d5565b92915050565b60006020828403121561421757614216614054565b5b6000614225848285016141ec565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006142598261422e565b9050919050565b6142698161424e565b82525050565b60006020820190506142846000830184614260565b92915050565b6142938161424e565b811461429e57600080fd5b50565b6000813590506142b08161428a565b92915050565b600080604083850312156142cd576142cc614054565b5b60006142db858286016142a1565b92505060206142ec858286016141ec565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f84011261431b5761431a6142f6565b5b8235905067ffffffffffffffff811115614338576143376142fb565b5b60208301915083602082028301111561435457614353614300565b5b9250929050565b6000806020838503121561437257614371614054565b5b600083013567ffffffffffffffff8111156143905761438f614059565b5b61439c85828601614305565b92509250509250929050565b6143b1816141cb565b82525050565b60006020820190506143cc60008301846143a8565b92915050565b6000806000606084860312156143eb576143ea614054565b5b60006143f9868287016142a1565b935050602061440a868287016142a1565b925050604061441b868287016141ec565b9150509250925092565b600061ffff82169050919050565b61443c81614425565b811461444757600080fd5b50565b60008135905061445981614433565b92915050565b600080fd5b600060a0828403121561447a5761447961445f565b5b81905092915050565b60008060c0838503121561449a57614499614054565b5b60006144a88582860161444a565b92505060206144b985828601614464565b9150509250929050565b60006144ce8261422e565b9050919050565b6144de816144c3565b81146144e957600080fd5b50565b6000813590506144fb816144d5565b92915050565b60006020828403121561451757614516614054565b5b6000614525848285016144ec565b91505092915050565b60006020828403121561454457614543614054565b5b60006145528482850161444a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6145938261415f565b810181811067ffffffffffffffff821117156145b2576145b161455b565b5b80604052505050565b60006145c561404a565b90506145d1828261458a565b919050565b600067ffffffffffffffff8211156145f1576145f061455b565b5b602082029050602081019050919050565b6000614615614610846145d6565b6145bb565b9050808382526020820190506020840283018581111561463857614637614300565b5b835b81811015614661578061464d88826141ec565b84526020840193505060208101905061463a565b5050509392505050565b600082601f8301126146805761467f6142f6565b5b8135614690848260208601614602565b91505092915050565b6000602082840312156146af576146ae614054565b5b600082013567ffffffffffffffff8111156146cd576146cc614059565b5b6146d98482850161466b565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6147178161424e565b82525050565b600067ffffffffffffffff82169050919050565b61473a8161471d565b82525050565b614749816140e3565b82525050565b600062ffffff82169050919050565b6147678161474f565b82525050565b608082016000820151614783600085018261470e565b5060208201516147966020850182614731565b5060408201516147a96040850182614740565b5060608201516147bc606085018261475e565b50505050565b60006147ce838361476d565b60808301905092915050565b6000602082019050919050565b60006147f2826146e2565b6147fc81856146ed565b9350614807836146fe565b8060005b8381101561483857815161481f88826147c2565b975061482a836147da565b92505060018101905061480b565b5085935050505092915050565b6000602082019050818103600083015261485f81846147e7565b905092915050565b60008083601f84011261487d5761487c6142f6565b5b8235905067ffffffffffffffff81111561489a576148996142fb565b5b6020830191508360208202830111156148b6576148b5614300565b5b9250929050565b600080600080604085870312156148d7576148d6614054565b5b600085013567ffffffffffffffff8111156148f5576148f4614059565b5b61490187828801614305565b9450945050602085013567ffffffffffffffff81111561492457614923614059565b5b61493087828801614867565b925092505092959194509250565b6000806040838503121561495557614954614054565b5b60006149638582860161444a565b9250506020614974858286016142a1565b9150509250929050565b60006020828403121561499457614993614054565b5b60006149a2848285016142a1565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6149e0816141cb565b82525050565b60006149f283836149d7565b60208301905092915050565b6000602082019050919050565b6000614a16826149ab565b614a2081856149b6565b9350614a2b836149c7565b8060005b83811015614a5c578151614a4388826149e6565b9750614a4e836149fe565b925050600181019050614a2f565b5085935050505092915050565b60006020820190508181036000830152614a838184614a0b565b905092915050565b60007fffffffffffffffff00000000000000000000000000000000000000000000000082169050919050565b614ac081614a8b565b82525050565b6000604082019050614adb6000830185614ab7565b614ae86020830184614260565b9392505050565b600080600060608486031215614b0857614b07614054565b5b6000614b16868287016142a1565b9350506020614b27868287016141ec565b9250506040614b38868287016141ec565b9150509250925092565b600060a08284031215614b5857614b57614054565b5b6000614b6684828501614464565b91505092915050565b6000614b7a8261424e565b9050919050565b614b8a81614b6f565b8114614b9557600080fd5b50565b600081359050614ba781614b81565b92915050565b600060208284031215614bc357614bc2614054565b5b6000614bd184828501614b98565b91505092915050565b60008083601f840112614bf057614bef6142f6565b5b8235905067ffffffffffffffff811115614c0d57614c0c6142fb565b5b602083019150836001820283011115614c2957614c28614300565b5b9250929050565b60008060208385031215614c4757614c46614054565b5b600083013567ffffffffffffffff811115614c6557614c64614059565b5b614c7185828601614bda565b92509250509250929050565b614c86816140e3565b8114614c9157600080fd5b50565b600081359050614ca381614c7d565b92915050565b60008060408385031215614cc057614cbf614054565b5b6000614cce858286016142a1565b9250506020614cdf85828601614c94565b9150509250929050565b600080fd5b600067ffffffffffffffff821115614d0957614d0861455b565b5b614d128261415f565b9050602081019050919050565b82818337600083830152505050565b6000614d41614d3c84614cee565b6145bb565b905082815260208101848484011115614d5d57614d5c614ce9565b5b614d68848285614d1f565b509392505050565b600082601f830112614d8557614d846142f6565b5b8135614d95848260208601614d2e565b91505092915050565b60008060008060808587031215614db857614db7614054565b5b6000614dc6878288016142a1565b9450506020614dd7878288016142a1565b9350506040614de8878288016141ec565b925050606085013567ffffffffffffffff811115614e0957614e08614059565b5b614e1587828801614d70565b91505092959194509250565b608082016000820151614e37600085018261470e565b506020820151614e4a6020850182614731565b506040820151614e5d6040850182614740565b506060820151614e70606085018261475e565b50505050565b6000608082019050614e8b6000830184614e21565b92915050565b600060608284031215614ea757614ea661445f565b5b81905092915050565b60008060408385031215614ec757614ec6614054565b5b600083013567ffffffffffffffff811115614ee557614ee4614059565b5b614ef185828601614e91565b9250506020614f02858286016141ec565b9150509250929050565b614f1581614425565b82525050565b6000602082019050614f306000830184614f0c565b92915050565b60008060408385031215614f4d57614f4c614054565b5b6000614f5b858286016142a1565b9250506020614f6c858286016142a1565b9150509250929050565b600063ffffffff82169050919050565b614f8f81614f76565b82525050565b614f9e81614425565b82525050565b60a082016000820151614fba6000850182614f86565b506020820151614fcd6020850182614f86565b506040820151614fe06040850182614f95565b506060820151614ff36060850182614f95565b50608082015161500660808501826149d7565b50505050565b600060a0820190506150216000830184614fa4565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061506e57607f821691505b60208210810361508157615080615027565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006150f0826141cb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615122576151216150b6565b5b600182019050919050565b61513681614f76565b811461514157600080fd5b50565b6000813590506151538161512d565b92915050565b60006020828403121561516f5761516e614054565b5b600061517d84828501615144565b91505092915050565b600081356151938161512d565b80915050919050565b60008160001b9050919050565b600063ffffffff6151b98461519c565b9350801983169250808416831791505092915050565b6000819050919050565b60006151f46151ef6151ea84614f76565b6151cf565b614f76565b9050919050565b6000819050919050565b61520e826151d9565b61522161521a826151fb565b83546151a9565b8255505050565b60008160201b9050919050565b600067ffffffff0000000061524984615228565b9350801983169250808416831791505092915050565b615268826151d9565b61527b615274826151fb565b8354615235565b8255505050565b6000813561528f81614433565b80915050919050565b60008160401b9050919050565b600069ffff00000000000000006152bb84615298565b9350801983169250808416831791505092915050565b60006152ec6152e76152e284614425565b6151cf565b614425565b9050919050565b6000819050919050565b615306826152d1565b615319615312826152f3565b83546152a5565b8255505050565b60008160501b9050919050565b60006bffff0000000000000000000061534584615320565b9350801983169250808416831791505092915050565b615364826152d1565b615377615370826152f3565b835461532d565b8255505050565b6000813561538b816141d5565b80915050919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6153c08461519c565b9350801983169250808416831791505092915050565b60006153f16153ec6153e7846141cb565b6151cf565b6141cb565b9050919050565b6000819050919050565b61540b826153d6565b61541e615417826153f8565b8354615394565b8255505050565b60008101600083018061543781615186565b90506154438184615205565b50505060008101602083018061545881615186565b9050615464818461525f565b50505060008101604083018061547981615282565b905061548581846152fd565b50505060008101606083018061549a81615282565b90506154a6818461535b565b5050506001810160808301806154bb8161537e565b90506154c78184615402565b5050505050565b6154d88282615425565b5050565b600081905092915050565b50565b60006154f76000836154dc565b9150615502826154e7565b600082019050919050565b6000615518826154ea565b9150819050919050565b600061552d826141cb565b9150615538836141cb565b92508282039050818111156155505761554f6150b6565b5b92915050565b6000615561826141cb565b915061556c836141cb565b9250828201905080821115615584576155836150b6565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006155c4826141cb565b91506155cf836141cb565b92508282026155dd816141cb565b915082820484148315176155f4576155f36150b6565b5b5092915050565b600061560682614425565b915061561183614425565b9250828201905061ffff81111561562b5761562a6150b6565b5b92915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261569e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615661565b6156a88683615661565b95508019841693508086168417925050509392505050565b6156c9836153d6565b6156dd6156d5826153f8565b84845461566e565b825550505050565b600090565b6156f26156e5565b6156fd8184846156c0565b505050565b5b81811015615721576157166000826156ea565b600181019050615703565b5050565b601f821115615766576157378161563c565b61574084615651565b8101602085101561574f578190505b61576361575b85615651565b830182615702565b50505b505050565b600082821c905092915050565b60006157896000198460080261576b565b1980831691505092915050565b60006157a28383615778565b9150826002028217905092915050565b6157bc8383615631565b67ffffffffffffffff8111156157d5576157d461455b565b5b6157df8254615056565b6157ea828285615725565b6000601f8311600181146158195760008415615807578287013590505b6158118582615796565b865550615879565b601f1984166158278661563c565b60005b8281101561584f5784890135825560018201915060208501945060208101905061582a565b8683101561586c5784890135615868601f891682615778565b8355505b6001600288020188555050505b50505050505050565b600081905092915050565b600061589882614119565b6158a28185615882565b93506158b2818560208601614135565b80840191505092915050565b60006158ca828561588d565b91506158d6828461588d565b91508190509392505050565b600080fd5b600080fd5b600080fd5b6000808335600160200384360303811261590e5761590d6158e2565b5b80840192508235915067ffffffffffffffff8211156159305761592f6158e7565b5b60208301925060018202360383131561594c5761594b6158ec565b5b509250929050565b61595d8161471d565b811461596857600080fd5b50565b60008135905061597a81615954565b92915050565b60006020828403121561599657615995614054565b5b60006159a48482850161596b565b91505092915050565b60006159b882614425565b915061ffff82036159cc576159cb6150b6565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615a33602683614124565b9150615a3e826159d7565b604082019050919050565b60006020820190508181036000830152615a6281615a26565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615a9f602083614124565b9150615aaa82615a69565b602082019050919050565b60006020820190508181036000830152615ace81615a92565b9050919050565b600081519050615ae481614c7d565b92915050565b600060208284031215615b0057615aff614054565b5b6000615b0e84828501615ad5565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000615b3e82615b17565b615b488185615b22565b9350615b58818560208601614135565b615b618161415f565b840191505092915050565b6000608082019050615b816000830187614260565b615b8e6020830186614260565b615b9b60408301856143a8565b8181036060830152615bad8184615b33565b905095945050505050565b600081519050615bc78161408a565b92915050565b600060208284031215615be357615be2614054565b5b6000615bf184828501615bb8565b91505092915050565b6000819050919050565b615c15615c1082614a8b565b615bfa565b82525050565b60008160601b9050919050565b6000615c3382615c1b565b9050919050565b6000615c4582615c28565b9050919050565b615c5d615c588261424e565b615c3a565b82525050565b60008160c01b9050919050565b6000615c7b82615c63565b9050919050565b615c93615c8e8261471d565b615c70565b82525050565b60008160f01b9050919050565b6000615cb182615c99565b9050919050565b615cc9615cc482614425565b615ca6565b82525050565b6000615cdb8289615c04565b600882019150615ceb8288615c4c565b601482019150615cfb8287615c82565b600882019150615d0b8286615cb8565b600282019150615d1b8285615c82565b600882019150615d2b8284615c82565b600882019150819050979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615da4601883614124565b9150615daf82615d6e565b602082019050919050565b60006020820190508181036000830152615dd381615d97565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615e10601f83614124565b9150615e1b82615dda565b602082019050919050565b60006020820190508181036000830152615e3f81615e03565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615ea2602283614124565b9150615ead82615e46565b604082019050919050565b60006020820190508181036000830152615ed181615e95565b9050919050565b6000819050919050565b615eeb81615ed8565b82525050565b600060ff82169050919050565b615f0781615ef1565b82525050565b6000608082019050615f226000830187615ee2565b615f2f6020830186615efe565b615f3c6040830185615ee2565b615f496060830184615ee2565b9594505050505056fea2646970667358221220041d517dfc37ad6a3c8295babfaf4dd8aa48fe68493d81b7e79ecee7f48cd05b64736f6c63430008110033

Deployed Bytecode

0x6080604052600436106102465760003560e01c80638c5f9e7411610139578063b88d4fde116100b6578063e749ab2b1161007a578063e749ab2b1461089c578063e7518d10146108b8578063e985e9c5146108e3578063f2fde38b14610920578063f3ae241514610949578063f892b34b1461098657610246565b8063b88d4fde146107a5578063c23dc68f146107ce578063c87b56dd1461080b578063d367dc5814610848578063e52ef8c01461087357610246565b806399a2557a116100fd57806399a2557a146106c45780639a602148146107015780639dd373b91461072a578063a0bcfc7f14610753578063a22cb4651461077c57610246565b80638c5f9e74146105f05780638da5cb5b14610619578063900af1921461064457806395d89b4114610670578063997556241461069b57610246565b806345d2e937116101c75780636c2b14b51161018b5780636c2b14b5146104f957806370a0823114610536578063715018a6146105735780637aad1c461461058a5780638462151c146105b357610246565b806345d2e937146104115780635bbb21771461043a5780636352211e1461047757806367243482146104b457806367ae503b146104dd57610246565b806318160ddd1161020e57806318160ddd1461034257806323b872dd1461036d5780632f40cb45146103965780632f971029146103bf57806342842e0e146103e857610246565b806301ffc9a71461024b57806306fdde0314610288578063081812fc146102b3578063095ea7b3146102f057806310f3ee2914610319575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d91906140b6565b6109c3565b60405161027f91906140fe565b60405180910390f35b34801561029457600080fd5b5061029d610a55565b6040516102aa91906141a9565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d59190614201565b610ae7565b6040516102e7919061426f565b60405180910390f35b3480156102fc57600080fd5b50610317600480360381019061031291906142b6565b610b66565b005b34801561032557600080fd5b50610340600480360381019061033b919061435b565b610caa565b005b34801561034e57600080fd5b50610357610d08565b60405161036491906143b7565b60405180910390f35b34801561037957600080fd5b50610394600480360381019061038f91906143d2565b610d1f565b005b3480156103a257600080fd5b506103bd60048036038101906103b89190614483565b611041565b005b3480156103cb57600080fd5b506103e660048036038101906103e19190614501565b6111fe565b005b3480156103f457600080fd5b5061040f600480360381019061040a91906143d2565b6112ad565b005b34801561041d57600080fd5b506104386004803603810190610433919061452e565b6112cd565b005b34801561044657600080fd5b50610461600480360381019061045c9190614699565b611418565b60405161046e9190614845565b60405180910390f35b34801561048357600080fd5b5061049e60048036038101906104999190614201565b6114d9565b6040516104ab919061426f565b60405180910390f35b3480156104c057600080fd5b506104db60048036038101906104d691906148bd565b6114eb565b005b6104f760048036038101906104f291906142b6565b6115a4565b005b34801561050557600080fd5b50610520600480360381019061051b919061493e565b611896565b60405161052d91906143b7565b60405180910390f35b34801561054257600080fd5b5061055d6004803603810190610558919061497e565b611976565b60405161056a91906143b7565b60405180910390f35b34801561057f57600080fd5b50610588611a2e565b005b34801561059657600080fd5b506105b160048036038101906105ac919061452e565b611a42565b005b3480156105bf57600080fd5b506105da60048036038101906105d5919061497e565b611aac565b6040516105e79190614a69565b60405180910390f35b3480156105fc57600080fd5b506106176004803603810190610612919061435b565b611bef565b005b34801561062557600080fd5b5061062e611c4d565b60405161063b919061426f565b60405180910390f35b34801561065057600080fd5b50610659611c77565b604051610667929190614ac6565b60405180910390f35b34801561067c57600080fd5b50610685611cc4565b60405161069291906141a9565b60405180910390f35b3480156106a757600080fd5b506106c260048036038101906106bd919061497e565b611d56565b005b3480156106d057600080fd5b506106eb60048036038101906106e69190614aef565b611e08565b6040516106f89190614a69565b60405180910390f35b34801561070d57600080fd5b5061072860048036038101906107239190614b42565b612014565b005b34801561073657600080fd5b50610751600480360381019061074c9190614bad565b6121f7565b005b34801561075f57600080fd5b5061077a60048036038101906107759190614c30565b6122a9565b005b34801561078857600080fd5b506107a3600480360381019061079e9190614ca9565b6122c7565b005b3480156107b157600080fd5b506107cc60048036038101906107c79190614d9e565b61243e565b005b3480156107da57600080fd5b506107f560048036038101906107f09190614201565b6124b1565b6040516108029190614e76565b60405180910390f35b34801561081757600080fd5b50610832600480360381019061082d9190614201565b61251b565b60405161083f91906141a9565b60405180910390f35b34801561085457600080fd5b5061085d6125b9565b60405161086a91906143b7565b60405180910390f35b34801561087f57600080fd5b5061089a6004803603810190610895919061452e565b6125c6565b005b6108b660048036038101906108b19190614eb0565b6126a5565b005b3480156108c457600080fd5b506108cd612a66565b6040516108da9190614f1b565b60405180910390f35b3480156108ef57600080fd5b5061090a60048036038101906109059190614f36565b612c4e565b60405161091791906140fe565b60405180910390f35b34801561092c57600080fd5b506109476004803603810190610942919061497e565b612ce2565b005b34801561095557600080fd5b50610970600480360381019061096b919061497e565b612d65565b60405161097d91906140fe565b60405180910390f35b34801561099257600080fd5b506109ad60048036038101906109a8919061452e565b612dff565b6040516109ba919061500c565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a1e57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a4e5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610a6490615056565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9090615056565b8015610add5780601f10610ab257610100808354040283529160200191610add565b820191906000526020600020905b815481529060010190602001808311610ac057829003601f168201915b5050505050905090565b6000610af282612f50565b610b28576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b71826114d9565b90508073ffffffffffffffffffffffffffffffffffffffff16610b92612faf565b73ffffffffffffffffffffffffffffffffffffffff1614610bf557610bbe81610bb9612faf565b612c4e565b610bf4576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610cb2612fb7565b60005b82829050811015610d0357610cf0838383818110610cd657610cd5615087565b5b9050602002016020810190610ceb919061497e565b613035565b8080610cfb906150e5565b915050610cb5565b505050565b6000610d12613135565b6001546000540303905090565b6000610d2a82613144565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d91576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d9d84613210565b91509150610db38187610dae612faf565b613237565b610dff57610dc886610dc3612faf565b612c4e565b610dfe576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610e65576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e72868686600161327b565b8015610e7d57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f4b85610f278888876133f0565b7c020000000000000000000000000000000000000000000000000000000017613418565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610fd15760006001850190506000600460008381526020019081526020016000205403610fcf576000548114610fce578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110398686866001613443565b505050505050565b611049613449565b600b805490508261ffff161061108b576040517fdc8e581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80602001602081019061109e9190615159565b63ffffffff168160000160208101906110b79190615159565b63ffffffff16106110f4576040517f34211bb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000816040016020810190611109919061452e565b61ffff1603611144576040517f34211bb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000816060016020810190611159919061452e565b61ffff1603611194576040517f34211bb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d6000600b8561ffff16815481106111b1576111b0615087565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002081816111f791906154ce565b9050505050565b611206612fb7565b60008173ffffffffffffffffffffffffffffffffffffffff164760405161122c9061550d565b60006040518083038185875af1925050503d8060008114611269576040519150601f19603f3d011682016040523d82523d6000602084013e61126e565b606091505b50509050806112a9576040517fd5bdff6a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b6112c88383836040518060200160405280600081525061243e565b505050565b6112d5613449565b600b805490508161ffff1610611317576040517fdc8e581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008161ffff1690505b6001600b805490506113339190615522565b8110156113d457600b6001826113499190615556565b8154811061135a57611359615087565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff16600b828154811061139257611391615087565b5b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555080806113cc906150e5565b915050611321565b50600b8054806113e7576113e661558a565b5b60019003818190600052602060002090601091828204019190066002026101000a81549061ffff0219169055905550565b606060008251905060008167ffffffffffffffff81111561143c5761143b61455b565b5b60405190808252806020026020018201604052801561147557816020015b611462613fb8565b81526020019060019003908161145a5790505b50905060005b8281146114ce576114a585828151811061149857611497615087565b5b60200260200101516124b1565b8282815181106114b8576114b7615087565b5b602002602001018190525080600101905061147b565b508092505050919050565b60006114e482613144565b9050919050565b6114f3613449565b818190508484905014611532576040517f7d1091cc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8484905081101561159d5761158a85858381811061155657611555615087565b5b905060200201602081019061156b919061497e565b84848481811061157e5761157d615087565b5b90506020020135613491565b8080611595906150e5565b915050611535565b5050505050565b601060029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461162b576040517fb72c92cd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611635612a66565b9050601060009054906101000a900461ffff1661ffff168161ffff1614611688576040517f173db37200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600b8261ffff16815481106116a2576116a1615087565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff16905060006116d383612dff565b90508381608001516116e591906155b9565b341461171d576040517f548996a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806040015161ffff168461172f610d08565b6117399190615556565b1115611771576040517f5843fd7a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806060015161ffff1684600e60008561ffff1661ffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117de9190615556565b1115611816576040517f9b36cc7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600e60008461ffff1661ffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461187e9190615556565b9250508190555061188f8585613491565b5050505050565b6000600b805490508361ffff16106118da576040517fdc8e581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600e6000600b8561ffff16815481106118f6576118f5615087565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119dd576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611a36612fb7565b611a4060006134af565b565b611a4a613449565b600b805490508161ffff1610611a8c576040517fdc8e581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601060006101000a81548161ffff021916908361ffff16021790555050565b60606000806000611abc85611976565b905060008167ffffffffffffffff811115611ada57611ad961455b565b5b604051908082528060200260200182016040528015611b085781602001602082028036833780820191505090505b509050611b13613fb8565b6000611b1d613135565b90505b838614611be157611b3081613575565b91508160400151611bd657600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611b7b57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611bd55780838780600101985081518110611bc857611bc7615087565b5b6020026020010181815250505b5b806001019050611b20565b508195505050505050919050565b611bf7612fb7565b60005b82829050811015611c4857611c35838383818110611c1b57611c1a615087565b5b9050602002016020810190611c30919061497e565b6135a0565b8080611c40906150e5565b915050611bfa565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000807f01699bb5a7d67fb30000000000000000000000000000000000000000000000007f00000000000000000000000045873ec03f3b188668e55296f70fcce656254d3f915091509091565b606060038054611cd390615056565b80601f0160208091040260200160405190810160405280929190818152602001828054611cff90615056565b8015611d4c5780601f10611d2157610100808354040283529160200191611d4c565b820191906000526020600020905b815481529060010190602001808311611d2f57829003601f168201915b5050505050905090565b611d5e613449565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611dc4576040517fe265900c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601060026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060818310611e43576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611e4e613661565b9050611e58613135565b851015611e6a57611e67613135565b94505b80841115611e76578093505b6000611e8187611976565b905084861015611ea4576000868603905081811015611e9e578091505b50611ea9565b600090505b60008167ffffffffffffffff811115611ec557611ec461455b565b5b604051908082528060200260200182016040528015611ef35781602001602082028036833780820191505090505b50905060008203611f0a578094505050505061200d565b6000611f15886124b1565b905060008160400151611f2a57816000015190505b60008990505b888114158015611f405750848714155b15611fff57611f4e81613575565b92508260400151611ff457600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611f9957826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ff35780848880600101995081518110611fe657611fe5615087565b5b6020026020010181815250505b5b806001019050611f30565b508583528296505050505050505b9392505050565b61201c613449565b80602001602081019061202f9190615159565b63ffffffff168160000160208101906120489190615159565b63ffffffff1610612085576040517f34211bb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081604001602081019061209a919061452e565b61ffff16036120d5576040517f34211bb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008160600160208101906120ea919061452e565b61ffff1603612125576040517f34211bb800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600c60008282829054906101000a900461ffff1661214591906155fb565b92506101000a81548161ffff021916908361ffff160217905550600b600c60009054906101000a900461ffff1690806001815401808255809150506001900390600052602060002090601091828204019190066002029091909190916101000a81548161ffff021916908361ffff16021790555080600d6000600c60009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002081816121f191906154ce565b90505050565b6121ff613449565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612265576040517fe265900c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6122b1613449565b8181600a91826122c29291906157b2565b505050565b6122cf612faf565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612333576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000612340612faf565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166123ed612faf565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161243291906140fe565b60405180910390a35050565b612449848484610d1f565b60008373ffffffffffffffffffffffffffffffffffffffff163b146124ab576124748484848461366a565b6124aa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6124b9613fb8565b6124c1613fb8565b6124c9613135565b8310806124dd57506124d9613661565b8310155b156124eb5780915050612516565b6124f483613575565b90508060400151156125095780915050612516565b612512836137ba565b9150505b919050565b606061252682612f50565b61255c576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006125666137da565b9050600081510361258657604051806020016040528060008152506125b1565b80612590846137e9565b6040516020016125a19291906158be565b6040516020818303038152906040525b915050919050565b6000600b80549050905090565b6125ce613449565b600b805490508161ffff1610612610576040517fdc8e581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600c60008282829054906101000a900461ffff1661263091906155fb565b92506101000a81548161ffff021916908361ffff160217905550600c60009054906101000a900461ffff16600b8261ffff168154811061267357612672615087565b5b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff16021790555050565b60006126af612a66565b90506000600b8261ffff16815481106126cb576126ca615087565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff16905060006126fc83612dff565b905083816080015161270e91906155b9565b3414612746576040517f548996a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806040015161ffff1684612758610d08565b6127629190615556565b111561279a576040517f5843fd7a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806060015161ffff1684600e60008561ffff1661ffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546128079190615556565b111561283f576040517f9b36cc7f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61284a853386613843565b612880576040517f18cffa6d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6128e0856000013586806020019061289891906158f1565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506138cf565b612916576040517f5e768c8300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f600086604001602081019061292d9190615980565b67ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612994576040517ff9d582d000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600e60008461ffff1661ffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129fc9190615556565b925050819055506001600f6000876040016020810190612a1c9190615980565b67ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612a5f3385613491565b5050505050565b6000804290506000600b805480602002602001604051908101604052809291908181526020018280548015612ae257602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411612aa95790505b505050505090505b80518361ffff161015612c19576000600d6000838661ffff1681518110612b1457612b13615087565b5b602002602001015161ffff1661ffff1681526020019081526020016000206040518060a00160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160089054906101000a900461ffff1661ffff1661ffff16815260200160008201600a9054906101000a900461ffff1661ffff1661ffff1681526020016001820154815250509050806000015163ffffffff168310158015612bf85750806020015163ffffffff1683105b15612c0557505050612c4b565b508280612c11906159ad565b935050612aea565b6040517f9fa2ea1c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b90565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612cea612fb7565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d5090615a49565b60405180910390fd5b612d62816134af565b50565b60008173ffffffffffffffffffffffffffffffffffffffff16612d86611c4d565b73ffffffffffffffffffffffffffffffffffffffff1603612daa5760019050612dfa565b600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1690505b919050565b612e07614007565b600b805490508261ffff1610612e49576040517fdc8e581f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d6000600b8461ffff1681548110612e6557612e64615087565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff1661ffff1681526020019081526020016000206040518060a00160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160089054906101000a900461ffff1661ffff1661ffff16815260200160008201600a9054906101000a900461ffff1661ffff1661ffff1681526020016001820154815250509050919050565b60006001905090565b600081612f5b613135565b11158015612f6a575060005482105b8015612fa8575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b612fbf613931565b73ffffffffffffffffffffffffffffffffffffffff16612fdd611c4d565b73ffffffffffffffffffffffffffffffffffffffff1614613033576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302a90615ab5565b60405180910390fd5b565b61303e81612d65565b613074576040517fe0794bd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036130da576040517f341247d400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600061313f612f47565b905090565b60008082905080613153613135565b116131d9576000548110156131d85760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036131d6575b600081036131cc5760046000836001900393508381526020019081526020016000205490506131a2565b809250505061320b565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b61328784848484613939565b60008073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050806132e857506133ea565b60008390505b82846132fa9190615556565b8110156133e757601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f0a52424826040518263ffffffff1660e01b815260040161335c91906143b7565b602060405180830381865afa158015613379573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061339d9190615aea565b156133d4576040517f39cf2c1a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80806133df906150e5565b9150506132ee565b50505b50505050565b60008060e883901c905060e861340786868461393f565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b613459613454613931565b612d65565b61348f576040517fe0794bd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6134ab828260405180602001604052806000815250613948565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61357d613fb8565b61359960046000848152602001908152602001600020546139e5565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613606576040517f341247d400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613690612faf565b8786866040518563ffffffff1660e01b81526004016136b29493929190615b6c565b6020604051808303816000875af19250505080156136ee57506040513d601f19601f820116820180604052508101906136eb9190615bcd565b60015b613767573d806000811461371e576040519150601f19603f3d011682016040523d82523d6000602084013e613723565b606091505b50600081510361375f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6137c2613fb8565b6137d36137ce83613144565b6139e5565b9050919050565b60606137e4613a9b565b905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561382f57600183039250600a81066030018353600a8104905061380f565b508181036020830392508083525050919050565b60008061384e612a66565b905060007f01699bb5a7d67fb3000000000000000000000000000000000000000000000000854684878a604001602081019061388a9190615980565b60405160200161389f96959493929190615ccf565b60405160208183030381529060405290506000818051906020012090508660000135811493505050509392505050565b60006138db8383613b2d565b73ffffffffffffffffffffffffffffffffffffffff167f00000000000000000000000045873ec03f3b188668e55296f70fcce656254d3f73ffffffffffffffffffffffffffffffffffffffff1614905092915050565b600033905090565b50505050565b60009392505050565b6139528383613b54565b60008373ffffffffffffffffffffffffffffffffffffffff163b146139e057600080549050600083820390505b613992600086838060010194508661366a565b6139c8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061397f5781600054146139dd57600080fd5b50505b505050565b6139ed613fb8565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b6060600a8054613aaa90615056565b80601f0160208091040260200160405190810160405280929190818152602001828054613ad690615056565b8015613b235780601f10613af857610100808354040283529160200191613b23565b820191906000526020600020905b815481529060010190602001808311613b0657829003601f168201915b5050505050905090565b6000806000613b3c8585613d0f565b91509150613b4981613d60565b819250505092915050565b60008054905060008203613b94576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613ba1600084838561327b565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613c1883613c0960008660006133f0565b613c1285613ec6565b17613418565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114613cb957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613c7e565b5060008203613cf4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050613d0a6000848385613443565b505050565b6000806041835103613d505760008060006020860151925060408601519150606086015160001a9050613d4487828585613ed6565b94509450505050613d59565b60006002915091505b9250929050565b60006004811115613d7457613d73615d3f565b5b816004811115613d8757613d86615d3f565b5b0315613ec35760016004811115613da157613da0615d3f565b5b816004811115613db457613db3615d3f565b5b03613df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613deb90615dba565b60405180910390fd5b60026004811115613e0857613e07615d3f565b5b816004811115613e1b57613e1a615d3f565b5b03613e5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e5290615e26565b60405180910390fd5b60036004811115613e6f57613e6e615d3f565b5b816004811115613e8257613e81615d3f565b5b03613ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613eb990615eb8565b60405180910390fd5b5b50565b60006001821460e11b9050919050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613f11576000600391509150613faf565b600060018787878760405160008152602001604052604051613f369493929190615f0d565b6020604051602081039080840390855afa158015613f58573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613fa657600060019250925050613faf565b80600092509250505b94509492505050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6040518060a00160405280600063ffffffff168152602001600063ffffffff168152602001600061ffff168152602001600061ffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6140938161405e565b811461409e57600080fd5b50565b6000813590506140b08161408a565b92915050565b6000602082840312156140cc576140cb614054565b5b60006140da848285016140a1565b91505092915050565b60008115159050919050565b6140f8816140e3565b82525050565b600060208201905061411360008301846140ef565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015614153578082015181840152602081019050614138565b60008484015250505050565b6000601f19601f8301169050919050565b600061417b82614119565b6141858185614124565b9350614195818560208601614135565b61419e8161415f565b840191505092915050565b600060208201905081810360008301526141c38184614170565b905092915050565b6000819050919050565b6141de816141cb565b81146141e957600080fd5b50565b6000813590506141fb816141d5565b92915050565b60006020828403121561421757614216614054565b5b6000614225848285016141ec565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006142598261422e565b9050919050565b6142698161424e565b82525050565b60006020820190506142846000830184614260565b92915050565b6142938161424e565b811461429e57600080fd5b50565b6000813590506142b08161428a565b92915050565b600080604083850312156142cd576142cc614054565b5b60006142db858286016142a1565b92505060206142ec858286016141ec565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f84011261431b5761431a6142f6565b5b8235905067ffffffffffffffff811115614338576143376142fb565b5b60208301915083602082028301111561435457614353614300565b5b9250929050565b6000806020838503121561437257614371614054565b5b600083013567ffffffffffffffff8111156143905761438f614059565b5b61439c85828601614305565b92509250509250929050565b6143b1816141cb565b82525050565b60006020820190506143cc60008301846143a8565b92915050565b6000806000606084860312156143eb576143ea614054565b5b60006143f9868287016142a1565b935050602061440a868287016142a1565b925050604061441b868287016141ec565b9150509250925092565b600061ffff82169050919050565b61443c81614425565b811461444757600080fd5b50565b60008135905061445981614433565b92915050565b600080fd5b600060a0828403121561447a5761447961445f565b5b81905092915050565b60008060c0838503121561449a57614499614054565b5b60006144a88582860161444a565b92505060206144b985828601614464565b9150509250929050565b60006144ce8261422e565b9050919050565b6144de816144c3565b81146144e957600080fd5b50565b6000813590506144fb816144d5565b92915050565b60006020828403121561451757614516614054565b5b6000614525848285016144ec565b91505092915050565b60006020828403121561454457614543614054565b5b60006145528482850161444a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6145938261415f565b810181811067ffffffffffffffff821117156145b2576145b161455b565b5b80604052505050565b60006145c561404a565b90506145d1828261458a565b919050565b600067ffffffffffffffff8211156145f1576145f061455b565b5b602082029050602081019050919050565b6000614615614610846145d6565b6145bb565b9050808382526020820190506020840283018581111561463857614637614300565b5b835b81811015614661578061464d88826141ec565b84526020840193505060208101905061463a565b5050509392505050565b600082601f8301126146805761467f6142f6565b5b8135614690848260208601614602565b91505092915050565b6000602082840312156146af576146ae614054565b5b600082013567ffffffffffffffff8111156146cd576146cc614059565b5b6146d98482850161466b565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6147178161424e565b82525050565b600067ffffffffffffffff82169050919050565b61473a8161471d565b82525050565b614749816140e3565b82525050565b600062ffffff82169050919050565b6147678161474f565b82525050565b608082016000820151614783600085018261470e565b5060208201516147966020850182614731565b5060408201516147a96040850182614740565b5060608201516147bc606085018261475e565b50505050565b60006147ce838361476d565b60808301905092915050565b6000602082019050919050565b60006147f2826146e2565b6147fc81856146ed565b9350614807836146fe565b8060005b8381101561483857815161481f88826147c2565b975061482a836147da565b92505060018101905061480b565b5085935050505092915050565b6000602082019050818103600083015261485f81846147e7565b905092915050565b60008083601f84011261487d5761487c6142f6565b5b8235905067ffffffffffffffff81111561489a576148996142fb565b5b6020830191508360208202830111156148b6576148b5614300565b5b9250929050565b600080600080604085870312156148d7576148d6614054565b5b600085013567ffffffffffffffff8111156148f5576148f4614059565b5b61490187828801614305565b9450945050602085013567ffffffffffffffff81111561492457614923614059565b5b61493087828801614867565b925092505092959194509250565b6000806040838503121561495557614954614054565b5b60006149638582860161444a565b9250506020614974858286016142a1565b9150509250929050565b60006020828403121561499457614993614054565b5b60006149a2848285016142a1565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6149e0816141cb565b82525050565b60006149f283836149d7565b60208301905092915050565b6000602082019050919050565b6000614a16826149ab565b614a2081856149b6565b9350614a2b836149c7565b8060005b83811015614a5c578151614a4388826149e6565b9750614a4e836149fe565b925050600181019050614a2f565b5085935050505092915050565b60006020820190508181036000830152614a838184614a0b565b905092915050565b60007fffffffffffffffff00000000000000000000000000000000000000000000000082169050919050565b614ac081614a8b565b82525050565b6000604082019050614adb6000830185614ab7565b614ae86020830184614260565b9392505050565b600080600060608486031215614b0857614b07614054565b5b6000614b16868287016142a1565b9350506020614b27868287016141ec565b9250506040614b38868287016141ec565b9150509250925092565b600060a08284031215614b5857614b57614054565b5b6000614b6684828501614464565b91505092915050565b6000614b7a8261424e565b9050919050565b614b8a81614b6f565b8114614b9557600080fd5b50565b600081359050614ba781614b81565b92915050565b600060208284031215614bc357614bc2614054565b5b6000614bd184828501614b98565b91505092915050565b60008083601f840112614bf057614bef6142f6565b5b8235905067ffffffffffffffff811115614c0d57614c0c6142fb565b5b602083019150836001820283011115614c2957614c28614300565b5b9250929050565b60008060208385031215614c4757614c46614054565b5b600083013567ffffffffffffffff811115614c6557614c64614059565b5b614c7185828601614bda565b92509250509250929050565b614c86816140e3565b8114614c9157600080fd5b50565b600081359050614ca381614c7d565b92915050565b60008060408385031215614cc057614cbf614054565b5b6000614cce858286016142a1565b9250506020614cdf85828601614c94565b9150509250929050565b600080fd5b600067ffffffffffffffff821115614d0957614d0861455b565b5b614d128261415f565b9050602081019050919050565b82818337600083830152505050565b6000614d41614d3c84614cee565b6145bb565b905082815260208101848484011115614d5d57614d5c614ce9565b5b614d68848285614d1f565b509392505050565b600082601f830112614d8557614d846142f6565b5b8135614d95848260208601614d2e565b91505092915050565b60008060008060808587031215614db857614db7614054565b5b6000614dc6878288016142a1565b9450506020614dd7878288016142a1565b9350506040614de8878288016141ec565b925050606085013567ffffffffffffffff811115614e0957614e08614059565b5b614e1587828801614d70565b91505092959194509250565b608082016000820151614e37600085018261470e565b506020820151614e4a6020850182614731565b506040820151614e5d6040850182614740565b506060820151614e70606085018261475e565b50505050565b6000608082019050614e8b6000830184614e21565b92915050565b600060608284031215614ea757614ea661445f565b5b81905092915050565b60008060408385031215614ec757614ec6614054565b5b600083013567ffffffffffffffff811115614ee557614ee4614059565b5b614ef185828601614e91565b9250506020614f02858286016141ec565b9150509250929050565b614f1581614425565b82525050565b6000602082019050614f306000830184614f0c565b92915050565b60008060408385031215614f4d57614f4c614054565b5b6000614f5b858286016142a1565b9250506020614f6c858286016142a1565b9150509250929050565b600063ffffffff82169050919050565b614f8f81614f76565b82525050565b614f9e81614425565b82525050565b60a082016000820151614fba6000850182614f86565b506020820151614fcd6020850182614f86565b506040820151614fe06040850182614f95565b506060820151614ff36060850182614f95565b50608082015161500660808501826149d7565b50505050565b600060a0820190506150216000830184614fa4565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061506e57607f821691505b60208210810361508157615080615027565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006150f0826141cb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615122576151216150b6565b5b600182019050919050565b61513681614f76565b811461514157600080fd5b50565b6000813590506151538161512d565b92915050565b60006020828403121561516f5761516e614054565b5b600061517d84828501615144565b91505092915050565b600081356151938161512d565b80915050919050565b60008160001b9050919050565b600063ffffffff6151b98461519c565b9350801983169250808416831791505092915050565b6000819050919050565b60006151f46151ef6151ea84614f76565b6151cf565b614f76565b9050919050565b6000819050919050565b61520e826151d9565b61522161521a826151fb565b83546151a9565b8255505050565b60008160201b9050919050565b600067ffffffff0000000061524984615228565b9350801983169250808416831791505092915050565b615268826151d9565b61527b615274826151fb565b8354615235565b8255505050565b6000813561528f81614433565b80915050919050565b60008160401b9050919050565b600069ffff00000000000000006152bb84615298565b9350801983169250808416831791505092915050565b60006152ec6152e76152e284614425565b6151cf565b614425565b9050919050565b6000819050919050565b615306826152d1565b615319615312826152f3565b83546152a5565b8255505050565b60008160501b9050919050565b60006bffff0000000000000000000061534584615320565b9350801983169250808416831791505092915050565b615364826152d1565b615377615370826152f3565b835461532d565b8255505050565b6000813561538b816141d5565b80915050919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6153c08461519c565b9350801983169250808416831791505092915050565b60006153f16153ec6153e7846141cb565b6151cf565b6141cb565b9050919050565b6000819050919050565b61540b826153d6565b61541e615417826153f8565b8354615394565b8255505050565b60008101600083018061543781615186565b90506154438184615205565b50505060008101602083018061545881615186565b9050615464818461525f565b50505060008101604083018061547981615282565b905061548581846152fd565b50505060008101606083018061549a81615282565b90506154a6818461535b565b5050506001810160808301806154bb8161537e565b90506154c78184615402565b5050505050565b6154d88282615425565b5050565b600081905092915050565b50565b60006154f76000836154dc565b9150615502826154e7565b600082019050919050565b6000615518826154ea565b9150819050919050565b600061552d826141cb565b9150615538836141cb565b92508282039050818111156155505761554f6150b6565b5b92915050565b6000615561826141cb565b915061556c836141cb565b9250828201905080821115615584576155836150b6565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006155c4826141cb565b91506155cf836141cb565b92508282026155dd816141cb565b915082820484148315176155f4576155f36150b6565b5b5092915050565b600061560682614425565b915061561183614425565b9250828201905061ffff81111561562b5761562a6150b6565b5b92915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261569e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615661565b6156a88683615661565b95508019841693508086168417925050509392505050565b6156c9836153d6565b6156dd6156d5826153f8565b84845461566e565b825550505050565b600090565b6156f26156e5565b6156fd8184846156c0565b505050565b5b81811015615721576157166000826156ea565b600181019050615703565b5050565b601f821115615766576157378161563c565b61574084615651565b8101602085101561574f578190505b61576361575b85615651565b830182615702565b50505b505050565b600082821c905092915050565b60006157896000198460080261576b565b1980831691505092915050565b60006157a28383615778565b9150826002028217905092915050565b6157bc8383615631565b67ffffffffffffffff8111156157d5576157d461455b565b5b6157df8254615056565b6157ea828285615725565b6000601f8311600181146158195760008415615807578287013590505b6158118582615796565b865550615879565b601f1984166158278661563c565b60005b8281101561584f5784890135825560018201915060208501945060208101905061582a565b8683101561586c5784890135615868601f891682615778565b8355505b6001600288020188555050505b50505050505050565b600081905092915050565b600061589882614119565b6158a28185615882565b93506158b2818560208601614135565b80840191505092915050565b60006158ca828561588d565b91506158d6828461588d565b91508190509392505050565b600080fd5b600080fd5b600080fd5b6000808335600160200384360303811261590e5761590d6158e2565b5b80840192508235915067ffffffffffffffff8211156159305761592f6158e7565b5b60208301925060018202360383131561594c5761594b6158ec565b5b509250929050565b61595d8161471d565b811461596857600080fd5b50565b60008135905061597a81615954565b92915050565b60006020828403121561599657615995614054565b5b60006159a48482850161596b565b91505092915050565b60006159b882614425565b915061ffff82036159cc576159cb6150b6565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615a33602683614124565b9150615a3e826159d7565b604082019050919050565b60006020820190508181036000830152615a6281615a26565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615a9f602083614124565b9150615aaa82615a69565b602082019050919050565b60006020820190508181036000830152615ace81615a92565b9050919050565b600081519050615ae481614c7d565b92915050565b600060208284031215615b0057615aff614054565b5b6000615b0e84828501615ad5565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000615b3e82615b17565b615b488185615b22565b9350615b58818560208601614135565b615b618161415f565b840191505092915050565b6000608082019050615b816000830187614260565b615b8e6020830186614260565b615b9b60408301856143a8565b8181036060830152615bad8184615b33565b905095945050505050565b600081519050615bc78161408a565b92915050565b600060208284031215615be357615be2614054565b5b6000615bf184828501615bb8565b91505092915050565b6000819050919050565b615c15615c1082614a8b565b615bfa565b82525050565b60008160601b9050919050565b6000615c3382615c1b565b9050919050565b6000615c4582615c28565b9050919050565b615c5d615c588261424e565b615c3a565b82525050565b60008160c01b9050919050565b6000615c7b82615c63565b9050919050565b615c93615c8e8261471d565b615c70565b82525050565b60008160f01b9050919050565b6000615cb182615c99565b9050919050565b615cc9615cc482614425565b615ca6565b82525050565b6000615cdb8289615c04565b600882019150615ceb8288615c4c565b601482019150615cfb8287615c82565b600882019150615d0b8286615cb8565b600282019150615d1b8285615c82565b600882019150615d2b8284615c82565b600882019150819050979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615da4601883614124565b9150615daf82615d6e565b602082019050919050565b60006020820190508181036000830152615dd381615d97565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615e10601f83614124565b9150615e1b82615dda565b602082019050919050565b60006020820190508181036000830152615e3f81615e03565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615ea2602283614124565b9150615ead82615e46565b604082019050919050565b60006020820190508181036000830152615ed181615e95565b9050919050565b6000819050919050565b615eeb81615ed8565b82525050565b600060ff82169050919050565b615f0781615ef1565b82525050565b6000608082019050615f226000830187615ee2565b615f2f6020830186615efe565b615f3c6040830185615ee2565b615f496060830184615ee2565b9594505050505056fea2646970667358221220041d517dfc37ad6a3c8295babfaf4dd8aa48fe68493d81b7e79ecee7f48cd05b64736f6c63430008110033

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.