{"sources":{"Spookdroidling.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.24;\n\n// File: @openzeppelin/contracts/utils/introspection/IERC165.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)\n\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n\n// File: @openzeppelin/contracts/token/ERC721/IERC721.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)\n\n\n\n/**\n * @dev Required interface of an ERC721 compliant contract.\n */\ninterface IERC721 is IERC165 {\n    /**\n     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\n\n    /**\n     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\n     */\n    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\n\n    /**\n     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\n     */\n    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\n\n    /**\n     * @dev Returns the number of tokens in ``owner``'s account.\n     */\n    function balanceOf(address owner) external view returns (uint256 balance);\n\n    /**\n     * @dev Returns the owner of the `tokenId` token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     */\n    function ownerOf(uint256 tokenId) external view returns (address owner);\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must exist and be owned by `from`.\n     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n     *   a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\n     * are aware of the ERC721 protocol to prevent tokens from being forever locked.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must exist and be owned by `from`.\n     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or\n     *   {setApprovalForAll}.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon\n     *   a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId) external;\n\n    /**\n     * @dev Transfers `tokenId` token from `from` to `to`.\n     *\n     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721\n     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must\n     * understand this adds an external call which potentially creates a reentrancy vulnerability.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must be owned by `from`.\n     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 tokenId) external;\n\n    /**\n     * @dev Gives permission to `to` to transfer `tokenId` token to another account.\n     * The approval is cleared when the token is transferred.\n     *\n     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\n     *\n     * Requirements:\n     *\n     * - The caller must own the token or be an approved operator.\n     * - `tokenId` must exist.\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address to, uint256 tokenId) external;\n\n    /**\n     * @dev Approve or remove `operator` as an operator for the caller.\n     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\n     *\n     * Requirements:\n     *\n     * - The `operator` cannot be the address zero.\n     *\n     * Emits an {ApprovalForAll} event.\n     */\n    function setApprovalForAll(address operator, bool approved) external;\n\n    /**\n     * @dev Returns the account approved for `tokenId` token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     */\n    function getApproved(uint256 tokenId) external view returns (address operator);\n\n    /**\n     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\n     *\n     * See {setApprovalForAll}\n     */\n    function isApprovedForAll(address owner, address operator) external view returns (bool);\n}\n\n// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)\n\n\n/**\n * @title ERC721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC721 asset contracts.\n */\ninterface IERC721Receiver {\n    /**\n     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n     * by `operator` from `from`, this function is called.\n     *\n     * It must return its Solidity selector to confirm the token transfer.\n     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be\n     * reverted.\n     *\n     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\n     */\n    function onERC721Received(\n        address operator,\n        address from,\n        uint256 tokenId,\n        bytes calldata data\n    ) external returns (bytes4);\n}\n\n// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)\n\n\n\n/**\n * @title ERC-721 Non-Fungible Token Standard, optional metadata extension\n * @dev See https://eips.ethereum.org/EIPS/eip-721\n */\ninterface IERC721Metadata is IERC721 {\n    /**\n     * @dev Returns the token collection name.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the token collection symbol.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.\n     */\n    function tokenURI(uint256 tokenId) external view returns (string memory);\n}\n\n// File: @openzeppelin/contracts/utils/Context.sol\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n\n// File: @openzeppelin/contracts/utils/math/Math.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\n\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    /**\n     * @dev Muldiv operation overflow.\n     */\n    error MathOverflowedMulDiv();\n\n    enum Rounding {\n        Floor, // Toward negative infinity\n        Ceil, // Toward positive infinity\n        Trunc, // Toward zero\n        Expand // Away from zero\n    }\n\n    /**\n     * @dev Returns the addition of two unsigned integers, with an overflow flag.\n     */\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            uint256 c = a + b;\n            if (c < a) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\n     */\n    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b > a) return (false, 0);\n            return (true, a - b);\n        }\n    }\n\n    /**\n     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\n     */\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n            // benefit is lost if 'b' is also tested.\n            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n            if (a == 0) return (true, 0);\n            uint256 c = a * b;\n            if (c / a != b) return (false, 0);\n            return (true, c);\n        }\n    }\n\n    /**\n     * @dev Returns the division of two unsigned integers, with a division by zero flag.\n     */\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a / b);\n        }\n    }\n\n    /**\n     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\n     */\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n        unchecked {\n            if (b == 0) return (false, 0);\n            return (true, a % b);\n        }\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds towards infinity instead\n     * of rounding towards zero.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        if (b == 0) {\n            // Guarantee the same behavior as in a regular Solidity division.\n            return a / b;\n        }\n\n        // (a + b - 1) / b can overflow on addition, so we distribute.\n        return a == 0 ? 0 : (a - 1) / b + 1;\n    }\n\n    /**\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n     * denominator == 0.\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n     * Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2^256 + prod0.\n            uint256 prod0 = x * y; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\n            if (denominator <= prod1) {\n                revert MathOverflowedMulDiv();\n            }\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n            uint256 twos = denominator & (0 - denominator);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv = 1 mod 2^4.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n            // works in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        uint256 result = mulDiv(x, y, denominator);\n        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\n            result += 1;\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n     * towards zero.\n     *\n     * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        if (a == 0) {\n            return 0;\n        }\n\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n        //\n        // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n        //\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n        //\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n        uint256 result = 1 << (log2(a) >> 1);\n\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n        // into the expected uint128 result.\n        unchecked {\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            return min(result, a / result);\n        }\n    }\n\n    /**\n     * @notice Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 128;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 64;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 32;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 16;\n            }\n            if (value >> 8 > 0) {\n                value >>= 8;\n                result += 8;\n            }\n            if (value >> 4 > 0) {\n                value >>= 4;\n                result += 4;\n            }\n            if (value >> 2 > 0) {\n                value >>= 2;\n                result += 2;\n            }\n            if (value >> 1 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256 of a positive value rounded towards zero.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 16;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 8;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 4;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 2;\n            }\n            if (value >> 8 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n     */\n    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n        return uint8(rounding) % 2 == 1;\n    }\n}\n\n// File: @openzeppelin/contracts/utils/math/SignedMath.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\n\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two signed numbers.\n     */\n    function min(int256 a, int256 b) internal pure returns (int256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two signed numbers without overflow.\n     * The result is rounded towards zero.\n     */\n    function average(int256 a, int256 b) internal pure returns (int256) {\n        // Formula from the book \"Hacker's Delight\"\n        int256 x = (a & b) + ((a ^ b) >> 1);\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\n    }\n\n    /**\n     * @dev Returns the absolute unsigned value of a signed value.\n     */\n    function abs(int256 n) internal pure returns (uint256) {\n        unchecked {\n            // must be unchecked in order to support `n = type(int256).min`\n            return uint256(n >= 0 ? n : -n);\n        }\n    }\n}\n\n// File: @openzeppelin/contracts/utils/Strings.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\n\n\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n    bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n    uint8 private constant ADDRESS_LENGTH = 20;\n\n    /**\n     * @dev The `value` string doesn't fit in the specified `length`.\n     */\n    error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n     */\n    function toString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            uint256 length = Math.log10(value) + 1;\n            string memory buffer = new string(length);\n            uint256 ptr;\n            /// @solidity memory-safe-assembly\n            assembly {\n                ptr := add(buffer, add(32, length))\n            }\n            while (true) {\n                ptr--;\n                /// @solidity memory-safe-assembly\n                assembly {\n                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n                }\n                value /= 10;\n                if (value == 0) break;\n            }\n            return buffer;\n        }\n    }\n\n    /**\n     * @dev Converts a `int256` to its ASCII `string` decimal representation.\n     */\n    function toStringSigned(int256 value) internal pure returns (string memory) {\n        return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            return toHexString(value, Math.log256(value) + 1);\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n     */\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n        uint256 localValue = value;\n        bytes memory buffer = new bytes(2 * length + 2);\n        buffer[0] = \"0\";\n        buffer[1] = \"x\";\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\n            buffer[i] = HEX_DIGITS[localValue & 0xf];\n            localValue >>= 4;\n        }\n        if (localValue != 0) {\n            revert StringsInsufficientHexLength(value, length);\n        }\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n     * representation.\n     */\n    function toHexString(address addr) internal pure returns (string memory) {\n        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n    }\n\n    /**\n     * @dev Returns true if the two strings are equal.\n     */\n    function equal(string memory a, string memory b) internal pure returns (bool) {\n        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n    }\n}\n\n// File: @openzeppelin/contracts/utils/introspection/ERC165.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)\n\n\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n */\nabstract contract ERC165 is IERC165 {\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {\n        return interfaceId == type(IERC165).interfaceId;\n    }\n}\n\n// File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)\n\n/**\n * @dev Standard ERC20 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.\n */\ninterface IERC20Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC20InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC20InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     * @param allowance Amount of tokens a `spender` is allowed to operate with.\n     * @param needed Minimum amount required to perform a transfer.\n     */\n    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC20InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.\n     * @param spender Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC20InvalidSpender(address spender);\n}\n\n/**\n * @dev Standard ERC721 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.\n */\ninterface IERC721Errors {\n    /**\n     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.\n     * Used in balance queries.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721InvalidOwner(address owner);\n\n    /**\n     * @dev Indicates a `tokenId` whose `owner` is the zero address.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721NonexistentToken(uint256 tokenId);\n\n    /**\n     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param tokenId Identifier number of a token.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC721InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC721InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC721InsufficientApproval(address operator, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC721InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC721InvalidOperator(address operator);\n}\n\n/**\n * @dev Standard ERC1155 Errors\n * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.\n */\ninterface IERC1155Errors {\n    /**\n     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     * @param balance Current balance for the interacting account.\n     * @param needed Minimum amount required to perform a transfer.\n     * @param tokenId Identifier number of a token.\n     */\n    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);\n\n    /**\n     * @dev Indicates a failure with the token `sender`. Used in transfers.\n     * @param sender Address whose tokens are being transferred.\n     */\n    error ERC1155InvalidSender(address sender);\n\n    /**\n     * @dev Indicates a failure with the token `receiver`. Used in transfers.\n     * @param receiver Address to which tokens are being transferred.\n     */\n    error ERC1155InvalidReceiver(address receiver);\n\n    /**\n     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     * @param owner Address of the current owner of a token.\n     */\n    error ERC1155MissingApprovalForAll(address operator, address owner);\n\n    /**\n     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\n     * @param approver Address initiating an approval operation.\n     */\n    error ERC1155InvalidApprover(address approver);\n\n    /**\n     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.\n     * @param operator Address that may be allowed to operate on tokens without being their owner.\n     */\n    error ERC1155InvalidOperator(address operator);\n\n    /**\n     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.\n     * Used in batch transfers.\n     * @param idsLength Length of the array of token identifiers\n     * @param valuesLength Length of the array of token amounts\n     */\n    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);\n}\n\n// File: @openzeppelin/contracts/token/ERC721/ERC721.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol)\n\n\n\n/**\n * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including\n * the Metadata extension, but not including the Enumerable extension, which is available separately as\n * {ERC721Enumerable}.\n */\nabstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {\n    using Strings for uint256;\n\n    // Token name\n    string private _name;\n\n    // Token symbol\n    string private _symbol;\n\n    mapping(uint256 tokenId => address) private _owners;\n\n    mapping(address owner => uint256) private _balances;\n\n    mapping(uint256 tokenId => address) private _tokenApprovals;\n\n    mapping(address owner => mapping(address operator => bool)) private _operatorApprovals;\n\n    /**\n     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.\n     */\n    constructor(string memory name_, string memory symbol_) {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {\n        return\n            interfaceId == type(IERC721).interfaceId ||\n            interfaceId == type(IERC721Metadata).interfaceId ||\n            super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @dev See {IERC721-balanceOf}.\n     */\n    function balanceOf(address owner) public view virtual returns (uint256) {\n        if (owner == address(0)) {\n            revert ERC721InvalidOwner(address(0));\n        }\n        return _balances[owner];\n    }\n\n    /**\n     * @dev See {IERC721-ownerOf}.\n     */\n    function ownerOf(uint256 tokenId) public view virtual returns (address) {\n        return _requireOwned(tokenId);\n    }\n\n    /**\n     * @dev See {IERC721Metadata-name}.\n     */\n    function name() public view virtual returns (string memory) {\n        return _name;\n    }\n\n    /**\n     * @dev See {IERC721Metadata-symbol}.\n     */\n    function symbol() public view virtual returns (string memory) {\n        return _symbol;\n    }\n\n    /**\n     * @dev See {IERC721Metadata-tokenURI}.\n     */\n    function tokenURI(uint256 tokenId) public view virtual returns (string memory) {\n        _requireOwned(tokenId);\n\n        string memory baseURI = _baseURI();\n        return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : \"\";\n    }\n\n    /**\n     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each\n     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty\n     * by default, can be overridden in child contracts.\n     */\n    function _baseURI() internal view virtual returns (string memory) {\n        return \"\";\n    }\n\n    /**\n     * @dev See {IERC721-approve}.\n     */\n    function approve(address to, uint256 tokenId) public virtual {\n        _approve(to, tokenId, _msgSender());\n    }\n\n    /**\n     * @dev See {IERC721-getApproved}.\n     */\n    function getApproved(uint256 tokenId) public view virtual returns (address) {\n        _requireOwned(tokenId);\n\n        return _getApproved(tokenId);\n    }\n\n    /**\n     * @dev See {IERC721-setApprovalForAll}.\n     */\n    function setApprovalForAll(address operator, bool approved) public virtual {\n        _setApprovalForAll(_msgSender(), operator, approved);\n    }\n\n    /**\n     * @dev See {IERC721-isApprovedForAll}.\n     */\n    function isApprovedForAll(address owner, address operator) public view virtual returns (bool) {\n        return _operatorApprovals[owner][operator];\n    }\n\n    /**\n     * @dev See {IERC721-transferFrom}.\n     */\n    function transferFrom(address from, address to, uint256 tokenId) public virtual {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        // Setting an \"auth\" arguments enables the `_isAuthorized` check which verifies that the token exists\n        // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.\n        address previousOwner = _update(to, tokenId, _msgSender());\n        if (previousOwner != from) {\n            revert ERC721IncorrectOwner(from, tokenId, previousOwner);\n        }\n    }\n\n    /**\n     * @dev See {IERC721-safeTransferFrom}.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId) public {\n        safeTransferFrom(from, to, tokenId, \"\");\n    }\n\n    /**\n     * @dev See {IERC721-safeTransferFrom}.\n     */\n    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {\n        transferFrom(from, to, tokenId);\n        _checkOnERC721Received(from, to, tokenId, data);\n    }\n\n    /**\n     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist\n     *\n     * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the\n     * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances\n     * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by\n     * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.\n     */\n    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {\n        return _owners[tokenId];\n    }\n\n    /**\n     * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.\n     */\n    function _getApproved(uint256 tokenId) internal view virtual returns (address) {\n        return _tokenApprovals[tokenId];\n    }\n\n    /**\n     * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in\n     * particular (ignoring whether it is owned by `owner`).\n     *\n     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this\n     * assumption.\n     */\n    function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {\n        return\n            spender != address(0) &&\n            (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);\n    }\n\n    /**\n     * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.\n     * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets\n     * the `spender` for the specific `tokenId`.\n     *\n     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this\n     * assumption.\n     */\n    function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {\n        if (!_isAuthorized(owner, spender, tokenId)) {\n            if (owner == address(0)) {\n                revert ERC721NonexistentToken(tokenId);\n            } else {\n                revert ERC721InsufficientApproval(spender, tokenId);\n            }\n        }\n    }\n\n    /**\n     * @dev Unsafe write access to the balances, used by extensions that \"mint\" tokens using an {ownerOf} override.\n     *\n     * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that\n     * a uint256 would ever overflow from increments when these increments are bounded to uint128 values.\n     *\n     * WARNING: Increasing an account's balance using this function tends to be paired with an override of the\n     * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership\n     * remain consistent with one another.\n     */\n    function _increaseBalance(address account, uint128 value) internal virtual {\n        unchecked {\n            _balances[account] += value;\n        }\n    }\n\n    /**\n     * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner\n     * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.\n     *\n     * The `auth` argument is optional. If the value passed is non 0, then this function will check that\n     * `auth` is either the owner of the token, or approved to operate on the token (by the owner).\n     *\n     * Emits a {Transfer} event.\n     *\n     * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.\n     */\n    function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {\n        address from = _ownerOf(tokenId);\n\n        // Perform (optional) operator check\n        if (auth != address(0)) {\n            _checkAuthorized(from, auth, tokenId);\n        }\n\n        // Execute the update\n        if (from != address(0)) {\n            // Clear approval. No need to re-authorize or emit the Approval event\n            _approve(address(0), tokenId, address(0), false);\n\n            unchecked {\n                _balances[from] -= 1;\n            }\n        }\n\n        if (to != address(0)) {\n            unchecked {\n                _balances[to] += 1;\n            }\n        }\n\n        _owners[tokenId] = to;\n\n        emit Transfer(from, to, tokenId);\n\n        return from;\n    }\n\n    /**\n     * @dev Mints `tokenId` and transfers it to `to`.\n     *\n     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible\n     *\n     * Requirements:\n     *\n     * - `tokenId` must not exist.\n     * - `to` cannot be the zero address.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _mint(address to, uint256 tokenId) internal {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        address previousOwner = _update(to, tokenId, address(0));\n        if (previousOwner != address(0)) {\n            revert ERC721InvalidSender(address(0));\n        }\n    }\n\n    /**\n     * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must not exist.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _safeMint(address to, uint256 tokenId) internal {\n        _safeMint(to, tokenId, \"\");\n    }\n\n    /**\n     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is\n     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n     */\n    function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {\n        _mint(to, tokenId);\n        _checkOnERC721Received(address(0), to, tokenId, data);\n    }\n\n    /**\n     * @dev Destroys `tokenId`.\n     * The approval is cleared when the token is burned.\n     * This is an internal function that does not check if the sender is authorized to operate on the token.\n     *\n     * Requirements:\n     *\n     * - `tokenId` must exist.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _burn(uint256 tokenId) internal {\n        address previousOwner = _update(address(0), tokenId, address(0));\n        if (previousOwner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        }\n    }\n\n    /**\n     * @dev Transfers `tokenId` from `from` to `to`.\n     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - `tokenId` token must be owned by `from`.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _transfer(address from, address to, uint256 tokenId) internal {\n        if (to == address(0)) {\n            revert ERC721InvalidReceiver(address(0));\n        }\n        address previousOwner = _update(to, tokenId, address(0));\n        if (previousOwner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        } else if (previousOwner != from) {\n            revert ERC721IncorrectOwner(from, tokenId, previousOwner);\n        }\n    }\n\n    /**\n     * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients\n     * are aware of the ERC721 standard to prevent tokens from being forever locked.\n     *\n     * `data` is additional data, it has no specified format and it is sent in call to `to`.\n     *\n     * This internal function is like {safeTransferFrom} in the sense that it invokes\n     * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g.\n     * implement alternative mechanisms to perform token transfer, such as signature-based.\n     *\n     * Requirements:\n     *\n     * - `tokenId` token must exist and be owned by `from`.\n     * - `to` cannot be the zero address.\n     * - `from` cannot be the zero address.\n     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\n     *\n     * Emits a {Transfer} event.\n     */\n    function _safeTransfer(address from, address to, uint256 tokenId) internal {\n        _safeTransfer(from, to, tokenId, \"\");\n    }\n\n    /**\n     * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is\n     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.\n     */\n    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {\n        _transfer(from, to, tokenId);\n        _checkOnERC721Received(from, to, tokenId, data);\n    }\n\n    /**\n     * @dev Approve `to` to operate on `tokenId`\n     *\n     * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is\n     * either the owner of the token, or approved to operate on all tokens held by this owner.\n     *\n     * Emits an {Approval} event.\n     *\n     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.\n     */\n    function _approve(address to, uint256 tokenId, address auth) internal {\n        _approve(to, tokenId, auth, true);\n    }\n\n    /**\n     * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not\n     * emitted in the context of transfers.\n     */\n    function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {\n        // Avoid reading the owner unless necessary\n        if (emitEvent || auth != address(0)) {\n            address owner = _requireOwned(tokenId);\n\n            // We do not use _isAuthorized because single-token approvals should not be able to call approve\n            if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {\n                revert ERC721InvalidApprover(auth);\n            }\n\n            if (emitEvent) {\n                emit Approval(owner, to, tokenId);\n            }\n        }\n\n        _tokenApprovals[tokenId] = to;\n    }\n\n    /**\n     * @dev Approve `operator` to operate on all of `owner` tokens\n     *\n     * Requirements:\n     * - operator can't be the address zero.\n     *\n     * Emits an {ApprovalForAll} event.\n     */\n    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {\n        if (operator == address(0)) {\n            revert ERC721InvalidOperator(operator);\n        }\n        _operatorApprovals[owner][operator] = approved;\n        emit ApprovalForAll(owner, operator, approved);\n    }\n\n    /**\n     * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).\n     * Returns the owner.\n     *\n     * Overrides to ownership logic should be done to {_ownerOf}.\n     */\n    function _requireOwned(uint256 tokenId) internal view returns (address) {\n        address owner = _ownerOf(tokenId);\n        if (owner == address(0)) {\n            revert ERC721NonexistentToken(tokenId);\n        }\n        return owner;\n    }\n\n    /**\n     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the\n     * recipient doesn't accept the token transfer. The call is not executed if the target address is not a contract.\n     *\n     * @param from address representing the previous owner of the given token ID\n     * @param to target address that will receive the tokens\n     * @param tokenId uint256 ID of the token to be transferred\n     * @param data bytes optional data to send along with the call\n     */\n    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private {\n        if (to.code.length > 0) {\n            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {\n                if (retval != IERC721Receiver.onERC721Received.selector) {\n                    revert ERC721InvalidReceiver(to);\n                }\n            } catch (bytes memory reason) {\n                if (reason.length == 0) {\n                    revert ERC721InvalidReceiver(to);\n                } else {\n                    /// @solidity memory-safe-assembly\n                    assembly {\n                        revert(add(32, reason), mload(reason))\n                    }\n                }\n            }\n        }\n    }\n}\n\n// File: @openzeppelin/contracts/interfaces/IERC2981.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol)\n\n\n\n/**\n * @dev Interface for the NFT Royalty Standard.\n *\n * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal\n * support for royalty payments across all NFT marketplaces and ecosystem participants.\n */\ninterface IERC2981 is IERC165 {\n    /**\n     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of\n     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.\n     */\n    function royaltyInfo(\n        uint256 tokenId,\n        uint256 salePrice\n    ) external view returns (address receiver, uint256 royaltyAmount);\n}\n\n// File: @openzeppelin/contracts/token/common/ERC2981.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol)\n\n\n\n/**\n * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.\n *\n * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for\n * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.\n *\n * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the\n * fee is specified in basis points by default.\n *\n * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See\n * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to\n * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.\n */\nabstract contract ERC2981 is IERC2981, ERC165 {\n    struct RoyaltyInfo {\n        address receiver;\n        uint96 royaltyFraction;\n    }\n\n    RoyaltyInfo private _defaultRoyaltyInfo;\n    mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo;\n\n    /**\n     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).\n     */\n    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);\n\n    /**\n     * @dev The default royalty receiver is invalid.\n     */\n    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);\n\n    /**\n     * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).\n     */\n    error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);\n\n    /**\n     * @dev The royalty receiver for `tokenId` is invalid.\n     */\n    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);\n\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {\n        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @inheritdoc IERC2981\n     */\n    function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual returns (address, uint256) {\n        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];\n\n        if (royalty.receiver == address(0)) {\n            royalty = _defaultRoyaltyInfo;\n        }\n\n        uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator();\n\n        return (royalty.receiver, royaltyAmount);\n    }\n\n    /**\n     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a\n     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an\n     * override.\n     */\n    function _feeDenominator() internal pure virtual returns (uint96) {\n        return 10000;\n    }\n\n    /**\n     * @dev Sets the royalty information that all ids in this contract will default to.\n     *\n     * Requirements:\n     *\n     * - `receiver` cannot be the zero address.\n     * - `feeNumerator` cannot be greater than the fee denominator.\n     */\n    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {\n        uint256 denominator = _feeDenominator();\n        if (feeNumerator > denominator) {\n            // Royalty fee will exceed the sale price\n            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);\n        }\n        if (receiver == address(0)) {\n            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));\n        }\n\n        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);\n    }\n\n    /**\n     * @dev Removes default royalty information.\n     */\n    function _deleteDefaultRoyalty() internal virtual {\n        delete _defaultRoyaltyInfo;\n    }\n\n    /**\n     * @dev Sets the royalty information for a specific token id, overriding the global default.\n     *\n     * Requirements:\n     *\n     * - `receiver` cannot be the zero address.\n     * - `feeNumerator` cannot be greater than the fee denominator.\n     */\n    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {\n        uint256 denominator = _feeDenominator();\n        if (feeNumerator > denominator) {\n            // Royalty fee will exceed the sale price\n            revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);\n        }\n        if (receiver == address(0)) {\n            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));\n        }\n\n        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);\n    }\n\n    /**\n     * @dev Resets royalty information for the token id back to the global default.\n     */\n    function _resetTokenRoyalty(uint256 tokenId) internal virtual {\n        delete _tokenRoyaltyInfo[tokenId];\n    }\n}\n\n// File: @openzeppelin/contracts/access/Ownable.sol\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\n\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * The initial owner is set to the address provided by the deployer. This can\n * later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n    address private _owner;\n\n    /**\n     * @dev The caller account is not authorized to perform an operation.\n     */\n    error OwnableUnauthorizedAccount(address account);\n\n    /**\n     * @dev The owner is not a valid owner account. (eg. `address(0)`)\n     */\n    error OwnableInvalidOwner(address owner);\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n     */\n    constructor(address initialOwner) {\n        if (initialOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(initialOwner);\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        if (owner() != _msgSender()) {\n            revert OwnableUnauthorizedAccount(_msgSender());\n        }\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        if (newOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n\n// File: @openzeppelin/contracts/utils/Base64.sol\n// OpenZeppelin Contracts (last updated v5.0.2) (utils/Base64.sol)\n\n\n/**\n * @dev Provides a set of functions to operate with Base64 strings.\n */\nlibrary Base64 {\n    /**\n     * @dev Base64 Encoding/Decoding Table\n     */\n    string internal constant _TABLE = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n\n    /**\n     * @dev Converts a `bytes` to its Bytes64 `string` representation.\n     */\n    function encode(bytes memory data) internal pure returns (string memory) {\n        /**\n         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence\n         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol\n         */\n        if (data.length == 0) return \"\";\n\n        // Loads the table into memory\n        string memory table = _TABLE;\n\n        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter\n        // and split into 4 numbers of 6 bits.\n        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up\n        // - `data.length + 2`  -> Round up\n        // - `/ 3`              -> Number of 3-bytes chunks\n        // - `4 *`              -> 4 characters for each chunk\n        string memory result = new string(4 * ((data.length + 2) / 3));\n\n        /// @solidity memory-safe-assembly\n        assembly {\n            // Prepare the lookup table (skip the first \"length\" byte)\n            let tablePtr := add(table, 1)\n\n            // Prepare result pointer, jump over length\n            let resultPtr := add(result, 0x20)\n            let dataPtr := data\n            let endPtr := add(data, mload(data))\n\n            // In some cases, the last iteration will read bytes after the end of the data. We cache the value, and\n            // set it to zero to make sure no dirty bytes are read in that section.\n            let afterPtr := add(endPtr, 0x20)\n            let afterCache := mload(afterPtr)\n            mstore(afterPtr, 0x00)\n\n            // Run over the input, 3 bytes at a time\n            for {\n\n            } lt(dataPtr, endPtr) {\n\n            } {\n                // Advance 3 bytes\n                dataPtr := add(dataPtr, 3)\n                let input := mload(dataPtr)\n\n                // To write each character, shift the 3 byte (24 bits) chunk\n                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)\n                // and apply logical AND with 0x3F to bitmask the least significant 6 bits.\n                // Use this as an index into the lookup table, mload an entire word\n                // so the desired character is in the least significant byte, and\n                // mstore8 this least significant byte into the result and continue.\n\n                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))\n                resultPtr := add(resultPtr, 1) // Advance\n\n                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))\n                resultPtr := add(resultPtr, 1) // Advance\n\n                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))\n                resultPtr := add(resultPtr, 1) // Advance\n\n                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))\n                resultPtr := add(resultPtr, 1) // Advance\n            }\n\n            // Reset the value that was cached\n            mstore(afterPtr, afterCache)\n\n            // When data `bytes` is not exactly 3 bytes long\n            // it is padded with `=` characters at the end\n            switch mod(mload(data), 3)\n            case 1 {\n                mstore8(sub(resultPtr, 1), 0x3d)\n                mstore8(sub(resultPtr, 2), 0x3d)\n            }\n            case 2 {\n                mstore8(sub(resultPtr, 1), 0x3d)\n            }\n        }\n\n        return result;\n    }\n}\n\n// File: Spookdroidling.sol\ninterface IAgentIdRegistry {\n    function handleOf(address wallet) external view returns (string memory);\n}\n\n/// @title Spookdroidling - 888 Cute chrome droid with glowing jack-o-lantern face, tiny witch hat and bat-wing antennae on a purple-orange gradient for .ai Agent ID holders on BNB Chain\n/// @notice Each wallet gets its first mint free while the 888 free pool lasts (gas only).\n/// Every other mint costs 0.00007 BNB. Max 50 per wallet, 888 total. Collectible only, not an investment.\n/// @dev Art and metadata are generated fully on-chain from each token id. No IPFS, no reveal, nothing to set after deploy.\ncontract Spookdroidling is ERC721, ERC2981, Ownable {\n    using Strings for uint256;\n\n    IAgentIdRegistry public constant AGENT_ID = IAgentIdRegistry(0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F);\n    uint256 public constant MAX_SUPPLY = 888;\n    uint256 public constant FREE_SUPPLY = 888;\n    uint256 public constant FREE_PER_WALLET = 2;\n    uint256 public constant MAX_PER_WALLET = 50;\n    uint256 public constant PRICE = 0.00007 ether;\n\n    uint256 public totalSupply;\n    uint256 public freeClaimed;\n    bool public mintOpen = true;\n    mapping(address => uint256) public mintedBy;\n    mapping(address => uint256) public freeUsed;\n\n    error NoAgentId();\n    error OnlyWallets();\n    error MintClosed();\n    error BadQuantity();\n    error SoldOut();\n    error WalletLimit();\n    error WrongPayment();\n    error WithdrawFailed();\n\n    event Launched(address indexed to, uint256 indexed tokenId, string agent);\n\n    /// @notice Contract whose runtime code holds the artwork bytes (WebP), after a leading 0x00 STOP byte.\n    address public immutable IMAGE;\n\n    /// @dev The WebP artwork is embedded in this source and written, in this same deploy transaction,\n    /// into a small storage contract (runtime = 0x00 STOP byte + image bytes) owned by nobody.\n    constructor(address initialOwner) ERC721(\"Spookdroidling\", \"SPOOKDROIDLING\") Ownable(initialOwner) {\n        bytes memory image_ = hex\"52494646a62a000057454250565038209a2a0000d0e7009d012a900190013ec15aa64ea7a5283326934b326018094dd9d43da5747271bcbeceb2bab5ad0877231b3b86f17ccc3957cf68cbe513fe6fa5e99bfae7a387499f37fe6f7ea3bfbdefcf7451fad6ff99c8e7f84f952b4c39ceb6d80a408cbbbf91d755fc3743ff81d711b72ddd69a513de5b068d4d01e3657db092e8ab7a0e430997d7b0720cb7529dd68c13157086f4220d9918e5dc086c071eb29590d3531245c4b0750542dfdc55f3be49c9b756f028d7d3e2b3a4390fc3b54e2955034bccd9f59add5d41081a050a230e89fb2c1af6ab8acadb92a6ab108c76828b99d66e8be392c452132bc0b2e314bdba9ea1fcc7345de45d7ff9056d0a1de8ecfcb5749ddcc4c8a65c039406b7e7f6f5c7c48a0faf7c3bc6fa427688c055e9d9d0af0eab99fe3572c42723cb8859d81331e5015d0a7b145d06e36a59944ab8c8491609c1dd495ee39dd9584855efe694db065d1cfb4f6c4fec7e2a86b6c38bd2dc8ac2a197f1d69a5df1065f8fddac25cad962551baebc85460f0de4b84c6989e454018920c3b32020913fc63c2ac2afe925ed9675dee870938b972e5a2e4d68d684e616f50a3ffeb6cb33691034639c5130d97a768cf2c8d3b1e34b32cc76a354b6526947f5e58a7fbfab43162e41519b9827498e13b8885e88d0e611c5bacfb1cfd3c529b0c131cda58293cc369a4b4652249e422a19cf39175439f9d4cb65027fbf8cfbf5ea20d225779b7c6e9f63ba4506b6073d87ef2e4c7d8d8eff6786dc402331da444ae3ec9543a1d11a979682fd0c9987223cc1a06645be6819cb6ac29e1159db37d4bf06ed273dd2865ce7b266212b93841a9f52ee0437ba2802dd618758d5ca543a900eeb0719a7f176e790cc633ca50d51f94e8cbea8dce4b7cbe876941c915796e45dfcad3d8ef55b8569a5fc5addf61a027133e90bbf17397dd9b572fffd2a71a7e311e5ebd85f4aaa35956fd26e99d8f615b49a8625720ec748a7d2878e7b9672e35d4835db4b767aec5283d63ba683d66bf25b3d5f1b023cc4515fa07a9d9d78b500c0824e32587d291169f450d0376dd2283358e67791c924a83881cde675e50af616981060313429bab912b2aa5dec4551f7516872efcbfe859aabf7434c10449fec3b4603b4220d2200443a9da3d725d63ee03db912a53ad99915d48b105f1e2b7766bfb2e62c4656ee3d89fdfc50ba84a85f7e5ebd871f75f30ee3bd2edff597d671b27b94b6e90e8b56c20f19421d19ac9ef86443e6cb2d18ee7e91ae4b8eb468a766fc62f30a0175f2d8ba5b336e705818b5bc1b2bd67d2aa2621973c9174a4a74716e84054a984125e8fc73fd5097ca33071bc4f0d95351329870dea0897a576f99511cbdab56dbd7465de0d70f54d546efdcaa56ef10ea8bb95e44d14ea66bdad59aadfce8668f2f0613f49f8e329c0d2705abbcbe3289e10ea2fd9433a849e305de345f30c32151108bce43f2bfa67aa44a1fd4c3db0bf1c57fa4abd4807e99a3deff6f691aac8f9e72ad6cf7a8b6c6772b2429df4ae1d61c94b0262cc9496749dcedfd1c05e098f6e3546362ffc3c0baf30be12045b36a200ac115530cf46f651e2f95ec20e91663cc6d471d621a435dabcf0d162fb22023fd25fec620a0ca9e3b8e4e2f924280d86625dc0b825d250f096aa519d375e4f1ab02258b82aad0b5f289d5a469380385f7af9a2da09bffc6d289e6b3921708f0fcce083037c86f1eb54ae64871f237ec379d63955bdd98cf7734c5187a12836e013c5b4dd2db6a65db3d3925526be60dd5f3cf6fc2b811d514ca62e33fdfdc4babdcbfe447ba2b5e7c358033dfee66910fb497b606096b41b76ceeb1b017f0b090969502c15697aa80a410b285c6242e61b89196ffa2321727c93ebcf32f60ce674b372bfa725f0154721051bd7cafdd0f52cc46c7f5e2d763f224138d89b94d76df84bfe6f26d5ac77f37032c5d2c41bc584561549e0c465d0a92aff9751f9086b7159348c5bde9b0424fc89ea90a15e3119649d09ddf164ea17cb1049ac0ab1f6f0e41aa75636e05bf2278e70cc12f1c1579754b3fa06dc2750071784ee30ae00202329c629bbcb3e348345be76f9338acae5bf7a613e9eb2343a958d9ed8f363385e81f52a990ccde1868df500e64c0e6ed4938ef2a2cb0792651aaae4ddd7c916e05ff686494cffcb60ec115da1dda1dd08d2f85c5d4c93ae8802f256922456affa6db6bfbda072e72ceb90728d48ec87c57b91396e83a2ec068829cbb325da9b34b275320d440a6fc213bab1d1158f1fe1b109319ef2acad42eaf69ca57bb07ce29b08bf8fb0059d8aedbb681969ad44d47bc5f00b5783135c7a96adaef99e5f938dca1f4b55048bb2afd3bdd9e7375a57e35a2f245a79759c847ad3e95f83257dab5a740fa92c8530a85885c224708b839b5fd0579f9a63a44784f298255f4e1ef5b87764dbfd2cf7b252ae1b4bd3d490f225c17207cea7588a4dd0053a099a5df8e4751354414c16d01bff6165d2e3059f8d1a7fd45d21f57fd60c597e079d4a8c1b9fa5e7fb988a1f88f26f103233dfbbd088e0bd00c823cdd41c1c68eebb10b56d8a0ee3974a8ac14f2bfb8be7af077fdb5c0b0df660c120255f4ebdc0000fef4ba1d99405a514b728af35b1c036d04972f14aa30ddbafbaef66116179e3d08a0767fd86130622ee0d4f9b9a7785a5ec66c60ae69ca3a381879bd0f0b301e35889eff7ab50759b8628329c2093b976606fcc2a9fca8d02aea4f191f59bf5525239b0aa14945c3aaef4cf860729f897b07f8c7002ea07edd2891b9af908e7ee6fa39c8217394413c6b58f6b290f6939c24ee263d1ebe2817e5dab7c13e953a0907b7b4a85a734e137d43b23a3b5448a03d5d5a075419d7d943a468b9c4525aea843c7fa7e106295dfb706e1445241e80277579549e689a29dc87696243a5554de7550a7090caf49dff7c092fc5b74540cb0b6a13e9416b0ba7b939bf63770bcef45c332d2665046ffdccb6447da0f7b5e312966aec05c1636676e3fe2bc9972287b7143c6bf0d8274183281b7ad1cd3e9e6a0c9f91df0042f92df77e97745989d5bb1f5cb5279c0893857945cbe56a8c5e1139ba46949bcfd1ef7f15ca70aad98e812cf9f66c28becc916264162cb7765ab311ffb951b592c5afd8393d8e0aa623214ed14065597da59bab53a1dff0998c420ea5bbb844a0dce98839dadfddbb1147ceea67de0b2d1887e6bc99916743a1f6e92a3e19f5920dacfbddf9e549083eee95c124af8ee4f4f7103fab6901fd567c53bcf8666843470890541d86eef7e49d9c58a879b241deabaa5fff0ff84bac06918ee0687cf62bad63c956dbd841a6271306f3250a04046d71b609605adc67bbe335d34363a99a2167fb43431a6732cdbfed7ab1c1d54b586d04b352c872df6f8cb82f9c023f5b66a1bf9eeb937456a4441e06b0e902240697cfef7019ccc541d23b8368fc1151c7ef2e6a07fc7366153c6a361256effc12d913f243d372bb6af22dc6e31d8637d324892afdf0d1e0688c380a97356cfc50938243fc33352ea6ca375bc83cf8a4206da6914bc1786a45e63616872a62fbefd4d2593356541be1d206ab93570c4b9ac0c79a46c366c4572c6b461abf87aa036304d7f73abaa00a71841df8e89f6e889671eacbb62a182230bf1c50ca924ffdcf523542132fa9a8705cf2b597b7baadbe707127afdf93b9d8f5395f6042f1af4874e1dc02068057a2be60873e5c80de20419355f03403911dbc4e53e9e80da8e1c09dfdc842d891c61f3b46ff55fbf7500e550e31a73e236b828b9d0e2773c3274cc8ea4b6a5a02613143efe8e50d97f2d2f7930ec71b4f64d16f9fda71f37d0ea499efed3727bce4f82e661d585e531f8b13d17b446f4ead3bb48d04591525c48e968a8a8ece1667366536ca336a54841b50e2fbb3d1fed462aa5e7eebb752dbb4543eb40f3927ae85f1d7d2945126c73bcb8af44909574ffac841fc5a3d8c69482c46e5ecc96cc0aa2fb00001d2f4b418ba24ac77691adf9a4e2f9ee59689a7e58a25033aa849b249d093299781020eddaf0e7e29c3c244909c8d9488977f7dbbc2ff0682f5c454bd91b9d15408c11f6d7ced300d9df9d92df7f72cf8707bac57ff0a9670b4b8d94735bfc4434db412de2a7e1d5f8c7eeefb5242f7f0643e1d07767cd79cf496c832801b5be3af28931109911f1cbfa489a66b76a3cb586117c93e14ed128273c600020a4b00bcc669b11fa511a1ae8901c3717bc8a4223d11d7369e90190907a80a30508df7e197f0ec0f70b9c1f616ffe0c6cd82ec9b42b9b10ae761aa4f1b9ff4a2c05652b4e007b69588ecc34238f6ba6c2a5063c0f253f12b692d9615818a4a8c213c859d664b295d63c91ef0f098437095927dc5a733ad5358d7a3a9ff9d3077c44dea20a9db72137ca609e00ae1496fdc6f9dc6740fee403c8359766185f1506afd9581128a2cf317b77c0af357ca3ebbf338aeb2ebddc988b41158dcfbca0afb32199cf66c28b6a9555fd8433d7b09bbec48bfb66a0302122b9acfe6ddd821dddb944978c98abd5d8f8105ec4f3dbb28b9a308fc75f947cbe5332f4f13e478e962aae62eea94f6247f56b27901d7f00c0fec54c53c7649b5ddefdd5180a70b8a821fb5faa5a71449244bf1f5fbfbdb5d3f104495c9c21e5f31b9d257a48b39bc5184359ebf50be1f95dfa5348a77d08d3c8db740ef231f2c249b48f49aa8c6d8462cb3961f1d41311219007aea8779ce293f205cd0e0000e090e11da17fc768d2ba3d75ebd334d9988733f1761da6e1ba1b5b691ce37704b05318e702f35346122f1c35b1ceaca115ebbe323d10caff388d90c243ac8664a8f78c15cc7d02bb5162bb2d916798e6afb91f3c9e60ef800d0a3666c7bd0c199c912a0f93c8a73104e8bdb7da602a189831c1341bf6f69a79d551cc436bdaafeb2087584f6bb48492140a85fa5ce71aae62abc164e6fe93cfdb72f33b14fde6d4a87367015a60ebb9e548ec060b49e420c51cbf053db60eaa9af67564e5db3e1972b05dc424fb488e592f2d69e4ae083c53f593f957d76c8beee96afc71bbb6aebf3a953290de5c366457b8fef58e731cf85c184ffa849ba35f52a0506386ddc14a161c10f9cbfa40cf2b1389b49b985aa899f18a9518ae5e159ad47fbdb28090191eb3f91cac29d2839b1df2c7ca8b63c723518571855970d85fb5fcadc2d9c1fa9365edafee49fc9878832f38ff6481fabb048382c86cad7f169edcbc8eb7d6ff28e9cc7d1afdd72c379af4544fa4ad0425d771b40532fe3bafd2759c0f1d41528948dd1459ff440de2c84d255f21cece0ec83d0b61d364c61409492cf744d0f4c9cb0dbbeb385d8d07408156e76ad1269e0178f03c49544a608fc6de80ddc41db7f1ef8b271e08aed7847316119c985fd3dc39bb6d5fa8138213b9ffe3a398f10d3628010ef4a6624d7b7075e02b160c2199d1e793d8d6ba4813f980b075d4953463da04358d648b1daa55601eb7e9ff9d300b430dd1f79fbd3562baa511051f9efec8e867e1a4f7351fee272b60b258330ba9e862f6a8d20a797c8d6e2ff6bde0e68d8a9cedbd18d745b5cee7ebb59812b4fe4361e752ba8ce58ab137ae0a8ea0ebfcc5c6429ab1f688e42240767f8636c942d162de302d29fe6c1bb45d180b2275e7c6467e91625e593747f1bafbc69a4141177164b790ff45867577931d693bb338119a8dc7c87d822b4dee8272483ecb8aa9186f7bd82c169f3442719b23f33f255ae9bcfaf9d1ab9c03734b52688e98158c42c60d5a9fd09eb3a93c77ad95671bec0717aa3ea7f393d97fe512fe31537cfa705769a325206be64d07c9b66c0dde095fc62d6260be5d1c0f3f74d78f98607ad10131c0c4c5228fee18e7b92dfe17996aac09e60c95a39e3e7c6f16119e53139727a553433a8d8711617ecaae337cc702143d331d6e37a9d140d458ad74ce3707a169bcc92ab3b8ab23b28748c5fd50377201182c2231fcfab5d146f3ceb687b22da143f3ad2c744169c5a99b330b8a1f73a6671a497ff14be3e7e87ac46f2c5558ac7a98da6b19041d3d783538f875c6be0dfb620c44c53795da3c44eec4d2426e5bf9c091fb0206366f65386f6255ffa4e8d9d3ac50fa059426efaddee74bdc1568ac32116ccc04cdcc6044b35e916c27acfdc226411c536357f8fc0eb91572fbe867139da9f75cadd5dc943a6b7c85ef19c4131106063b98493e2c004c4be5a3370b59361b9a530d57b49a9e5a3d218d0c8d2239dc89cc7fc88d56fc546ab076bff9a60793826d65ea7979fa8eccda97196827c2eca95e885543fc8b705a88f17c7b39d5681b6beaace936522186cf36651de6c311826f72b42086b5bd29d4a2336ea8976794b9c5fce7fed4282d1bb4948a0cfd873723b4e15d47ac2daaccd3dbe9b338b1b2ed074dfe15a797193ca00454e03add45d08088da497cc88049d9d1f9261e84744b58cfbf5ba1604ded04fa4b9470d4ebd6381fb94d4111927ea033af08fde22d46da28ca5a4fe24fcb50f32e9da5a5832cfb61023bfc8e09703e4c4146ffb3567178834e2cc500787e64ed9e8fbd7f11ca4e83bd633ec0cdeb67ec37537dac549b6d8c440604248767d4509ae0177e1f55c3a0f94b3823063c8e70553139ffc0c372d4d1bfeea26b51f81da6ce9d282f1bbfdbde56ecaee70b8559b8567687a80d95bb776ea2040780028d51747e25b7db1ad90b5f5ee32b5d5ba874df414cfd63676ea44aa2bfccfd0e02254d8a0cbdc08012e0a2ac00d6adb0781c15a5a747e27cf464cadabecb20b2441e63af6e503e0f049c2203aa8fb6a232ffa680ad26f3dd7ae4afbbfdd6284fe3a3e7c7060982fda58f782f4cf65285e2acff16193b69f416a79c07664461a87c24827115b69b6329ab45883d15b57531e50ceefd8f9fa3206fc327c947f2df8e38bcef5f0b47606e521cd233d11c4824ccef311c4ce7fb9f333721df1db449839d71a7c46d7312a1bf15af2a5757799b34796fe008a7d9bd379e36c0de6907692291b64dc57db443f2b8b77f0c84bb6f2cddb65a35d5e8d286b1694232cb16c6fa2cf86292a35634e991c201ce4873664d902876536e7b77d378710b47ee4aacb3bf2fbe691eea85e39a7ec6970e82dd095c5d44b7b56179240ca56a66c96ca90ac716ed16b6b550e8c1878a5f4989f8b9421bf7e1980747c48ad12b8c03b371f40f069e27e207cb53fe16ed6d4f3ac3e9b7fa21aeab8d3902f0cc5aea66399919fd8bc919507da785595a4421f3bed236041f3b03788bff198a67e095c4f8d403b5913c9a49fe918113eb08c5e11908465c46eca1f19a4f8e343915a5d904d4ec81c01da7bcd058c3c00d140c779263a29f94953725453eee1f0d1d89a01783389fa7d27d52e336f7b64398b7248fa3b83a8b2f5a08b72f0c52d6800b3a3c2f4f25e1981031138d6a6bc362e0a1fe0fb78069b645a15f2f517b35cad7198345ad745e22871e74243360c3f3bebec5730b0852df6aaba09956a0100597a254c23ce483a65c51b372121ba6698384c74b2424a2262f26b948839e741b3138ff3f81224ca189d0a363a26a7218e652788fb8fbccb1848c964efc56226798cc7df5dab1e9b161aaa523762d71dcedcdf3354aa34121c55a160028dcb2117eba4a9068ee8da4792a79fb666c664abc86d8782910fcdbc551e9cdaa96459aab33648087ba37c58dfeb3f1cc031b268f6f326548c62ccf95349c0f4476a1c9352f78f5b51a2ef587aec7b3667c13e9fdbd932ee52c573d3ef50cc95297ba11742a072646f24a589a2ebd68d8ff16796a9c1481e90e6ebd1770f8e92893611193cbd52a4071bba85e7e38e41fb4c787023fce0f033ab90fdfe862ae4100947c239b9689ec78a3d44274ce10bb7a473abd84212d3d349561f262a8d54ba84a4699e1e0c498f39bbbf555db05f042c23e8db2f66abb40398f3b8a0ce8df031d91a6e4a69df0e7cf80068d88c06c8cbd286c3d2277ec969add45fe7d70baeeeeb21d63e1a26ed9cbc8d9187b7c8309d607821845d52eb183f5d6135934804054b3ffe906a0486bdaed50d18887fac643e96b6a0cdcfe5c859f15c3d47d82d0822ca1ffe98837b5b9dc2224156aefdfc6dcbe99e069ccf9853cb993e3b3dda0b01d6281308e97fbf560eefa67eb6cdb18629519d668eafa9e2a242e77122f6f27c94655e7e2f9fd46545f7a556031657af9df2200fd169dec794853a2b99bd3d0eedd644aa85c20e1938c3437f3329be9cfac71e7f42532936ec10672b3584cd82e208162dd1b32802f70ab009bbeb7741e67a95896b4068ee7e498173705d355917407c36e12ad04f56312b77ff002c434e20a2940c888f73c0d269d2f6b7bc5e5df3f232a2242dcc16d6c4978155955f4afe878892c6acac4786087df004cd25d49deac35dde2777b59a64b4508fb6445052967ac4d6326b3374dd06324c41e773ca25646b6ef6780cec763001e0f126c61346cd4f0183a63ad2e2bbbba013b4f8b6ba4aa74095ff8798e592ca586d5778b64a5ab7c25bae39773ce549aaa9e9d0ea0a5977237e4d626c6693e72cb41940b6900011be9ad0b923aefe63749ba7ac6f632ce3ba1482e550e92016331f6bbba120eedd7aed90c4571271b5ecd2f554037c0767c422f66fd272ca5ff52a36bf157fc84ddb2f9d87050c2d85bfd0e7ff9cf6f2f39e0adf898c5446c4697cca72de331a4ed816d94cdca12d0f461185a873df61213cbaafdefa5effa4780f51af93a107de31afa44dfabe3da1c6c016518efb935adaa37df0efcd3243dbf5438ecf4f15d90aea6f918d41d813fef81abf245bd6c31506f12b8585dce63d65c592824e260d740dd96ae7addc6a2f4fa0fa858691cb7833bcbab3a487b5e09a2e153ac892bf8f699f0d24f429181a09f3548fa46cd4206c852111c3b9e386feb4f9aa17145c624271e9dc0c1967f40b52ccb2a261e11d900aa9fa9c926e3fe66fc048a616bad7ec7594785413f5de357fcc9a171721ba5bb34cf3e4426c72287960b4a17903c910bd370f63de222f4055ff4fb607fa42cf8c0ea916c74f291850e3f30c67c049e896ac19b5638660391c6be8f7b08c20aca1961bc88eaa4249f4b3e642cd6df75339c81df7cb01d32a2f4fd3b4e4086861e05187ae31ce2cb2cf74c15b61f1f1ecba2dcce20033d11e39f5c2567cf3a026790efcf56e646064c544817f676198a518f9029a507a268afa645f0e54f3b6ab1d2aabbd44f9092f99f3e44f5c5c1efb569c7b3613c1002c60b64277195a46393ebf2bcddc8cd38307657ab93ddb8a0f47e916442931a62fd643ca3c7ecf78a31768250164944dd925e2273b33ffb6561961cfe81a883fa4085d4365aa7e79f325f2d61668e03e127f06650bd646fecaedb4e65b81697dbbab89f5e2d946391aed08aa85f3f36e4a19ea019e3972bbc64a59408f9fd3e5d85e076df849285f33ecb5e5c7c9863dc9421a5b6a08152cdd6a3cc1d64fccefbbde89b79810fcaf72f4859d4e385180996651b275e3abfa610b20291733d4d0dd58405a9c15fd8fe1761bdccb8c21790467b5bf06857040ccb4d1c70e62c9d5dc821a2464b03118404ff1aba7146d0394602fcea29053d57640af5ca4af5847cb69fb63714c01457bb952920fe4d3690e10a12e83ecf198c15ed617a7601c1da314fa86697452ca65102176d6a7cae0fd9289fe85d699bc9d653accca4ded7c89d8d3b1acc8bd3b04f43894186d2cac3c74d97cffd59148bc84c574c6b0e0aafab489fbfe46d210047e2f9dd99cc19bd274944032283d0f3e2102a0c74a481abcb49226d71c2a1036a79c645b90ce202292af967f56e850a4e85c2b175020cf006bd6bb6cdeda8bfd86630cf5cf5d43b549da0d38c4071698cba5b0df18e40f47d31ccf58a75af0ec88fd5d301f0a7efffb1a42f29a574e464fa62764608615e9864a961600efe71b964c5d995e22d15153c56f0c302f2c06eb721137403098337658d9e227f78f4047089181c246372dccf1f276fc6e31612ca2593db7a551c350543097eae62eae522343f7e1170b8d0b56e1c6b0e4c9f3ce7788d66f14d5a588ee632f52a235335b98304556a5b2ef751eb22faa4c961191a1493c70d0a945e24a2e70e3939e0f433d88548a86b4819cf1baeea473a765fd987053a85a97546a7b7ead6f91014004c1d3628d373f637b46069662d055af47b5d0157d899440b0c472ca4a8a3e4f50786569e44e62ce73ca166773eeb296e7bbbf6c10be14656740cd004225e4ade4bec3e19cc7a28f3573f08fa7fea5cd89e46b8f660d62b51a8ddb045c897aa31511dbb874bab31327d339ca1e0f0f85456929597fa46d2c1fd2886c17abeea1d1aa26374a168b6f623072666134e59bbd4631f00153100687cc994afb08e5a6c50c4694152cd291ccdc4ed9583efcb340955821206c891395f899fc747a9914ad26e5480ebca22200fb2fbceae5842f165b4b419b32859028324fae6268cc7c5303da6d9da64950b69adba793446fd772402d77d8a03a80661f3e823486e8ac9a2cc06bc663668404df43e29ad6896d0a700ca798cac671f1a7ae2f4659775bc636f377f1c7d251b383ea66081cbc23eed3d78d4e973df98d1c60a31e3bf12c6b6bd88cc15b5e07447c427473d2aa2f1321802248ba6f1c9a11e81fcc66f8f62ba12362c8b55c39a519c4726d1eadaf55c076135499680131f3963eba8d9ee5c9898e74fa22106be92445ab7b07d2642bcb582075cc243757ff1064e73defd7b989fea13555d1af9a57fb9f6c50f2b1f8f92cb78fdaec1b4362abc7e90b81ac603a746fd6f13cb2c90c32543bc6e8fc8a832882a4c678eb02fa0ca84d640822bdcaf04dad21e4509c1c2bc241025dd116ff5e92deb2db439fd22701d77928c88803884cd8b43bb825c96c8eab3314ef48c8f5f3fa6ff6251b6b1b4f312d991ff98b3558f6dabeb1b238ac8ccf51d6cbf0630ba77cff6b9b733fbaab539f992ba3735a6688869e7a3fc4a72857ac1be30486630520a10cb715c0ddcb28668759955553ad31dfb87ec6affea5c069ea2b9169c6210919c934233c7fcb86ba1e1af00bff96204f33a889dcc1010fd1245496f8a5e59857fe7feb741eb4a7147ecc4e96349429c4f4c0ac8f7133c6f36d887afdc8ee14330d9d16a6526099a469e8945ca7a65205b9393b2032f52ae3fb22df2e5f56e68fc5fdffb36d6854d004f7513e26ab715c1d2cca4022862a63767a7d9aa47ba4ae015a43f053c21ef6d03de11fc30069ae8e3796b37af40f5160351bceb43236db2a53905a53698fdb9bed1c6b3c96a59e76dfb4b09d4158fbd4d1e4ef8669988c9b277ace3a85327349c53872425a22abc1e973e345e0d29de6a332df2e25c0f91f15c159e5360d7e2f729be9d18e8472cbb1f961db6f7656800bf81c493c474f619f5db33a054333b2049cdc5e4420b02aac6029202d61cf3aceceaee113c486a4d87cacd7ffc4a6deb87711b15fd9fc9943ab58b9c62fe3508f8ee36184483f69a0fc6f6b36f136a6022376575ea0ff62d425fde00d835e83b0afb4faaaddfae93f2fe582cfb5b2752d71e6b685814935acaf41db62514bbf936256b52e5a0692576565c7908f9737f7bab9d10b49a8fa8693f355ec35dd1806e5c5f55dee03373b4bbf819265e52dbb9d0e85e42025457d475001fd627ef653f05320689ee68413c1614b849556d0c2effa6fe0b4c0393f9e857677aa1d8e78a601b8e4ee705980f5de6a537650166f83df3859e80e75df576483acc0beb52c1aaf0a0b72d537516994b0345751ea7753b2b0389080932e4e209a8f474368266f0263c6049e6b6b24507598a76404f74f705d58e59c1ee2c15b655a99a54e5ad22d9c2b71a287a4278156c18b525fd0f62636aaf6216d8c78c4b065d603643d7ea4b411141ae6c909dcfb68b71ccf81651e21d4f8ce38bf4dc8bd8cfdbbc8ecdf6b904aa59e6922e05880764abe6d8646be820cf602918eb579f83f0ebc0a285df3b9b687d6a4b0dfcbb682607980cfe839618c6d76a9f6941c1532adbbf48b577be533bf14ba97d0dc305b0a12edf699380a3500790ceda272940f6c0c1ea82d85f0c9108730004805b5a1b0fb0a51da69edfd0c0892a719255912aba799e3b75c0c318467525495cb514c2d7f6df8a3daa1ea520b602dc555f406a4d01e0fb09bdbd2478bdf00b8812727c005ba6a7eb3d406dbbf84a3304de7bc21efe5f52e592dabc4724f46e53e47865a1c035fc837c4630c8c46c06851d0554934d0dbfb59e95ec9fb2121bad57e6d307b1aab74fef1243cbf305eaf38606d1dc1310b329fa119696284bb87039efdb546dcde3a08771daa3c9e11f8402b0a0dc12b7c696b29c8262d7435de12c8dbb115be2aa534b993b7e68a5ec7991929e9238e1cbe0dc66c233960c20b6ef0d6c5be4b1a3ce2ddacb3b9428e6eaf316333c8253c030245d79f145d66df10ddab6e7e180a0fec5233affe118b98246854518986f24b868b0f40cb881b3fcab31178d5856e26bb9a9c82018adfb2f97a544dbcbaa57caacebb75a48184fd2b811fb985c85b5f604d2f0f1b9a35de60f978e94d8cd860106a3e7383b8306afe038f1de474d592d5ad887c6afd013c2b60454c0b93324d2ba60226be9cef27b94919ff519100391165f203863aa2ce654cac39261d1ef5c5b5a7a400a31651740897e514fe04ab45e34125b5914a5fd7f3bc508ed9ea3af8c0e45bb24c73bca5a527caf648784b4abdb582cdf12a6090d93082cc5f9cf46162795b32a7b888ac579afca1b3f9c9e61cb373316ed3ab256902fba09d34d589dab0ecf7e0c07fcc953c7177815aab589bd6f83b68e0ca28995fb0a6d703ee00624969e07af1bb97997ae05146011b5ecfc966fd541348a1dc7d05102bee47bb090f4fcbd55ef67d36981ba095974266132fe85d6af07e4238508f0184b0db30a8ebddba196f474b636699e11eef4a4f226283a7c5e1d97d96d88c584cf97396e3d5d443be18829e5e810b708c26f54a500b27f763c273b69ff12a7250244619d8e6789055e87ffc703a4da44089653f957103671ddd57f106129eaddfed3aff21943ced066feda8e2df411324dc98fabd0350d497203be90736840cd3b25b7c349977979416f3308b2a978a7f4abb4e8dc03ce52d843d05308a45252c4bff1f8cf7b3d5482e97a106edee5b8cde07656badcc76fa0b798cc5dabfa9d1fd8d59915558fce306257aa5e6e80c6dc2df43d8f9eb59f211f1e421d4151b199e6334e62acbb11d39ba6a0eb0e761a1735f527e12e32b60d611ddbdc54e5e008664ad8df9f183cf08f7cd708dc46c24951bee7db60fdf47af91f86d0bfc78d528f44c256ca7e1579c252f607d3b5fefe9d1c3681de7ca045bfd1db5953b6c2fab996989b0aa969571197ae59d118eb3428b55f1df5b7d81a2b9bdec564eb0c8b08d95ccdb3d47bdc8d4a798d6933e1e3d2ded4496a5c63619847f2224f2cee1a4a4f5e779baf997ddf5ad0cbe86ea849837eed49ca7abb3fcbde44a5eb55c756d35d5a5c2091d9a09d9375d40adea369ce4ea9f0baf75799a38be54034857a752ee4feb437f46f64ffb35d70a3482520d5af025771bb0267b3a0eb46c576fe6122295d36e94ac2005b01ea4dc40a453461d8de758d9c0fc0e0664f91d0382abda664798c5038bd5e6fe266ddc0bf86a006230ae019fe7250ef798b96ac8f3a1d4497d49c57fb895dbc3e84f6bf43e0177b7ec58816c3913ad2a9e955d9ba6a494ba74fee3fe66ef680f648125c550af25871e4c40a0f3bac97f15a379d67da4816628f754a839730929585bd2eb1104806166ab4094cd959a9463886b4d0751a76d4843e21582092e62adadb7028e789eef9c05bc911f28291e198eabc4cf65714dea2a815472a68da4d75dc0c9122907786d195156e2d27d79e45f289f2f9ea32f586a8d19095710ae8f9a797f6f4e9f3fb9ed923c60ce5e7864b33ca5e8d16079c5ede48c846afc00505a6985121d5a62a7290c173d768ce198da7aaa114784fc5ad165c14fa73629bb26b96c6965421f0e4837f99d1c43cd737f9bb980267bad1c8efa9f7d027239c1f85341aa1dbe541aeb3f57b7fc303360c5ba437d051449be25604b7b5adcefb60d3634e8ba89c32d43b7834a7695d003260f466f5a32138514a9ab83f279167cab84f177df7128c472e45f4596119b8cad3528ac3159609cd83bf6fc740d9adbd861b5edb2fb8684fc431cd40cf0222b26f1813a5e02ea779443098a90bcce0bd043ebd41d277ec684f573ecca84d7819f030a0bc1486e7e2bf3836a10f1941528bc42e7a9763ed3837224cb827abdbf7fce0bfc37b61d754bcedfb23fac21d97d76cef2a78d3b9206f8b1f31b4ed6749ea9ed44b9c49cc974fed68fa6f2a854c2011b42a64f86039a84754450b77b1e74180c05168bcdd3082e5899b7bc0e9f77307c4dfdf9b1d8ed7d3c8d9145e4cda8595c8b0607b74b27ccd8dd7a3b5c10b0888af83f596af96ceeb88276af073980a767de3b0dfbd52f12f7639b03b437f0b14a2f1175b25abd74718f534ce3741e850a4f08dd0fdf1f62790b88ce9ebe040eb97ce5069aa4ceeaa643c4913687906160eb2bf2841d10930bdc050be2c366e3efa9697d921534d7e5f18097439a8aa802db9667646f464c945d6556e1f5b01f38dcba8e3bc2165753aded9c963d1bd8ae6b89c02f512a75b157aaf198b4d4d9caec752b98c2a5d3fa9a6d8d071ca6d5076314bf61aadff93ba997ec141a9ee8198bb3b1536f7489cb8df20dce0d0147bc215b4b90c0ea07d4b3cddcda5e91416698d9c8ac8bc8bc893324ba5003481c64581f0db76b97e6fa25c17187bd316600bde2dbdad298eec5c40150373eb438e4d8a65c919df7a95a59d3aeb5b345c0da29973c16096a643012fa18da37311fd1a582b6a8fe60f3958a0b0fd09d53b50572fdb2862d5e4a49256a6d03204c8cdf6d0a7db671001ee148f250fac30021931f69546abe843d2f71fa21b4dec9028de2035bef1cdf5a7f69312e76842cf43203af7e149c0f7a8be29662e185f0f63d721ccee5d1a2e9b3694c51609f2afec16473dcfdbeb0f7143a8f6d97c4d60eb2aeb1e0909662dc629bd660c3444e23a7a534aa547bbfb3f1f1c1b0669963183c01d6f3b10eae03e40f48d572ea980b8d2cc2f84cd58c5d37f37d0eab3506bb8c3c2823200f91fceb652823e26876e8bb1923f6656021b2d6c6fac404019d40d6d58f0d7fda0b41e7343c3913d4eb923455eb92bb071862d7f961ebda3dff951ff4b694bda621e1372dc5cf798d5a769c003de00391cc7f0b13cc75995ef1e2454a8afa9b0005066c800000\";\n        uint256 len = image_.length + 1;\n        require(len <= 24576, \"image too big\");\n        bytes memory code = abi.encodePacked(hex\"61\", uint16(len), hex\"80600c6000396000f300\", image_);\n        address a;\n        assembly {\n            a := create(0, add(code, 32), mload(code))\n        }\n        require(a != address(0), \"image store failed\");\n        IMAGE = a;\n        _setDefaultRoyalty(initialOwner, 500); // 5%\n    }\n\n    /// @notice How many of `qty` mints would be free for this wallet right now.\n    function freeFor(address wallet, uint256 qty) public view returns (uint256 n) {\n        uint256 w = FREE_PER_WALLET - freeUsed[wallet];\n        uint256 p = FREE_SUPPLY - freeClaimed;\n        n = w < p ? w : p;\n        if (qty < n) n = qty;\n    }\n\n    /// @notice Free mints this wallet still has (limited by the remaining free pool).\n    function freeLeft(address wallet) external view returns (uint256) {\n        return freeFor(wallet, FREE_PER_WALLET);\n    }\n\n    /// @notice Exact BNB (wei) a wallet must send to mint qty.\n    function quote(address wallet, uint256 qty) public view returns (uint256) {\n        return (qty - freeFor(wallet, qty)) * PRICE;\n    }\n\n    function mint(uint256 qty) external payable {\n        if (msg.sender != tx.origin) revert OnlyWallets();\n        if (!mintOpen) revert MintClosed();\n        if (qty == 0) revert BadQuantity();\n        if (totalSupply + qty > MAX_SUPPLY) revert SoldOut();\n        if (mintedBy[msg.sender] + qty > MAX_PER_WALLET) revert WalletLimit();\n        string memory handle;\n        try AGENT_ID.handleOf(msg.sender) returns (string memory h) {\n            handle = h;\n        } catch {\n            revert NoAgentId();\n        }\n        if (bytes(handle).length == 0) revert NoAgentId();\n        uint256 free = freeFor(msg.sender, qty);\n        if (msg.value != (qty - free) * PRICE) revert WrongPayment();\n\n        if (free > 0) {\n            freeUsed[msg.sender] += free;\n            freeClaimed += free;\n        }\n        mintedBy[msg.sender] += qty;\n        for (uint256 i; i < qty; ++i) {\n            uint256 id = ++totalSupply;\n            _mint(msg.sender, id);\n            emit Launched(msg.sender, id, handle);\n        }\n    }\n\n    // ---------------- on-chain art ----------------\n\n    function _seed(uint256 id) internal pure returns (uint256) {\n        return uint256(keccak256(abi.encodePacked(\"Spookdroidling\", id)));\n    }\n\n    function _r(uint256 s, uint256 i) internal pure returns (uint256) {\n        return uint256(keccak256(abi.encodePacked(s, i)));\n    }\n\n    /// @dev HSL (h 0-359, s and l 0-100) to an rgb() string, which every SVG renderer reads.\n    function _hsl(uint256 h, uint256 s, uint256 l) internal pure returns (string memory) {\n        h %= 360;\n        int256 c = (100 - _abs(int256(2 * l) - 100)) * int256(s) * 255 / 10000;\n        int256 x = c * (60 - _abs(int256(h % 120) - 60)) / 60;\n        int256 m = int256(l) * 255 / 100 - c / 2;\n        int256 r; int256 g; int256 b;\n        if (h < 60) (r, g, b) = (c, x, 0);\n        else if (h < 120) (r, g, b) = (x, c, 0);\n        else if (h < 180) (r, g, b) = (0, c, x);\n        else if (h < 240) (r, g, b) = (0, x, c);\n        else if (h < 300) (r, g, b) = (x, 0, c);\n        else (r, g, b) = (c, 0, x);\n        return string.concat(\"rgb(\", _u(r + m), \",\", _u(g + m), \",\", _u(b + m), \")\");\n    }\n\n    function _abs(int256 v) internal pure returns (int256) {\n        return v < 0 ? -v : v;\n    }\n\n    function _u(int256 v) internal pure returns (string memory) {\n        if (v < 0) v = 0;\n        if (v > 255) v = 255;\n        return uint256(v).toString();\n    }\n\n    function _pick(string[4] memory names, uint256 r) internal pure returns (string memory) {\n        return names[r % 4];\n    }\n\n    function _T1() internal pure returns (string[4] memory) {\n        return [\"Pumpkin droid\", \"Pumpkin droid\", \"Pumpkin droid\", \"Pumpkin droid\"];\n    }\n    function _T2() internal pure returns (string[4] memory) {\n        return [\"Witch hat and bat antennae\", \"Witch hat and bat antennae\", \"Witch hat and bat antennae\", \"Witch hat and bat antennae\"];\n    }\n    function _T3() internal pure returns (string[4] memory) {\n        return [\"Orange-purple rim light\", \"Orange-purple rim light\", \"Orange-purple rim light\", \"Orange-purple rim light\"];\n    }\n    function _T4() internal pure returns (string[4] memory) {\n        return [\"Purple-orange gradient\", \"Purple-orange gradient\", \"Purple-orange gradient\", \"Purple-orange gradient\"];\n    }\n\n\n    /// @notice Raw artwork bytes read from the IMAGE data contract.\n    function _img() internal view returns (bytes memory b) {\n        address a = IMAGE;\n        uint256 n = a.code.length - 1;\n        b = new bytes(n);\n        assembly {\n            extcodecopy(a, add(b, 32), 1, n)\n        }\n    }\n\n    function _svg(uint256) internal view returns (string memory) {\n        return string.concat('<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 400 400\"><image width=\"400\" height=\"400\" href=\"data:image/webp;base64,', Base64.encode(_img()), '\"/></svg>');\n    }\n\n    function _attributes(uint256 s) internal pure returns (string memory) {\n        return string.concat(\n            '[{\"trait_type\":\"Character\",\"value\":\"', _pick(_T1(), s), '\"},',\n            '{\"trait_type\":\"Outfit\",\"value\":\"', _pick(_T2(), s >> 8), '\"},',\n            '{\"trait_type\":\"Light\",\"value\":\"', _pick(_T3(), s >> 16), '\"},',\n            '{\"trait_type\":\"Background\",\"value\":\"', _pick(_T4(), s >> 80), '\"}]'\n        );\n    }\n\n    /// @notice The token's SVG image.\n    function image(uint256 id) public view returns (string memory) {\n        _requireOwned(id);\n        return _svg(_seed(id));\n    }\n\n    function tokenURI(uint256 id) public view override returns (string memory) {\n        _requireOwned(id);\n        uint256 s = _seed(id);\n        string memory json = string.concat(\n            '{\"name\":\"Spookdroidling #', id.toString(),\n            '\",\"description\":\"Spookdroidling is 888 Cute chrome droid with glowing jack-o-lantern face, tiny witch hat and bat-wing antennae on a purple-orange gradient. Art generated fully on-chain on BNB Chain. Minted by .ai Agent ID holders.\",',\n            '\"image\":\"data:image/svg+xml;base64,', Base64.encode(bytes(_svg(s))),\n            '\",\"attributes\":', _attributes(s), '}'\n        );\n        return string.concat(\"data:application/json;base64,\", Base64.encode(bytes(json)));\n    }\n\n    /// @notice Collection-level metadata for marketplaces.\n    function contractURI() external pure returns (string memory) {\n        string memory json = string.concat(\n            '{\"name\":\"Spookdroidling\",\"description\":\"Spookdroidling is 888 Cute chrome droid with glowing jack-o-lantern face, tiny witch hat and bat-wing antennae on a purple-orange gradient. Art generated fully on-chain on BNB Chain. Mint is gated to .ai Agent ID holders.\",',\n            '\"seller_fee_basis_points\":500}'\n        );\n        return string.concat(\"data:application/json;base64,\", Base64.encode(bytes(json)));\n    }\n\n    // ---------------- owner ----------------\n\n    function setMintOpen(bool open) external onlyOwner {\n        mintOpen = open;\n    }\n\n    function setRoyalty(address receiver, uint96 feeBps) external onlyOwner {\n        _setDefaultRoyalty(receiver, feeBps);\n    }\n\n    function withdraw() external onlyOwner {\n        (bool ok,) = owner().call{value: address(this).balance}(\"\");\n        if (!ok) revert WithdrawFailed();\n    }\n\n    function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC2981) returns (bool) {\n        return super.supportsInterface(interfaceId);\n    }\n}"}},"abi":[{"type":"constructor","inputs":[{"name":"initialOwner","type":"address","internalType":"address"}],"stateMutability":"nonpayable"},{"name":"BadQuantity","type":"error","inputs":[]},{"name":"ERC2981InvalidDefaultRoyalty","type":"error","inputs":[{"name":"numerator","type":"uint256","internalType":"uint256"},{"name":"denominator","type":"uint256","internalType":"uint256"}]},{"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error","inputs":[{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC2981InvalidTokenRoyalty","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"numerator","type":"uint256","internalType":"uint256"},{"name":"denominator","type":"uint256","internalType":"uint256"}]},{"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC721IncorrectOwner","type":"error","inputs":[{"name":"sender","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"owner","type":"address","internalType":"address"}]},{"name":"ERC721InsufficientApproval","type":"error","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}]},{"name":"ERC721InvalidApprover","type":"error","inputs":[{"name":"approver","type":"address","internalType":"address"}]},{"name":"ERC721InvalidOperator","type":"error","inputs":[{"name":"operator","type":"address","internalType":"address"}]},{"name":"ERC721InvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"ERC721InvalidReceiver","type":"error","inputs":[{"name":"receiver","type":"address","internalType":"address"}]},{"name":"ERC721InvalidSender","type":"error","inputs":[{"name":"sender","type":"address","internalType":"address"}]},{"name":"ERC721NonexistentToken","type":"error","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}]},{"name":"MintClosed","type":"error","inputs":[]},{"name":"NoAgentId","type":"error","inputs":[]},{"name":"OnlyWallets","type":"error","inputs":[]},{"name":"OwnableInvalidOwner","type":"error","inputs":[{"name":"owner","type":"address","internalType":"address"}]},{"name":"OwnableUnauthorizedAccount","type":"error","inputs":[{"name":"account","type":"address","internalType":"address"}]},{"name":"SoldOut","type":"error","inputs":[]},{"name":"WalletLimit","type":"error","inputs":[]},{"name":"WithdrawFailed","type":"error","inputs":[]},{"name":"WrongPayment","type":"error","inputs":[]},{"name":"Approval","type":"event","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"ApprovalForAll","type":"event","inputs":[{"name":"owner","type":"address","indexed":true,"internalType":"address"},{"name":"operator","type":"address","indexed":true,"internalType":"address"},{"name":"approved","type":"bool","indexed":false,"internalType":"bool"}],"anonymous":false},{"name":"Launched","type":"event","inputs":[{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"},{"name":"agent","type":"string","indexed":false,"internalType":"string"}],"anonymous":false},{"name":"OwnershipTransferred","type":"event","inputs":[{"name":"previousOwner","type":"address","indexed":true,"internalType":"address"},{"name":"newOwner","type":"address","indexed":true,"internalType":"address"}],"anonymous":false},{"name":"Transfer","type":"event","inputs":[{"name":"from","type":"address","indexed":true,"internalType":"address"},{"name":"to","type":"address","indexed":true,"internalType":"address"},{"name":"tokenId","type":"uint256","indexed":true,"internalType":"uint256"}],"anonymous":false},{"name":"AGENT_ID","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"contract IAgentIdRegistry"}],"stateMutability":"view"},{"name":"FREE_PER_WALLET","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"FREE_SUPPLY","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"IMAGE","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"MAX_PER_WALLET","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"MAX_SUPPLY","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"PRICE","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"approve","type":"function","inputs":[{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"balanceOf","type":"function","inputs":[{"name":"owner","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"contractURI","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"pure"},{"name":"freeClaimed","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeFor","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"},{"name":"qty","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"n","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeLeft","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"freeUsed","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"getApproved","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"image","type":"function","inputs":[{"name":"id","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"isApprovedForAll","type":"function","inputs":[{"name":"owner","type":"address","internalType":"address"},{"name":"operator","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mint","type":"function","inputs":[{"name":"qty","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"payable"},{"name":"mintOpen","type":"function","inputs":[],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"mintedBy","type":"function","inputs":[{"name":"","type":"address","internalType":"address"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"name","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"owner","type":"function","inputs":[],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"ownerOf","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"}],"stateMutability":"view"},{"name":"quote","type":"function","inputs":[{"name":"wallet","type":"address","internalType":"address"},{"name":"qty","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"renounceOwnership","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"},{"name":"royaltyInfo","type":"function","inputs":[{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"salePrice","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"address","internalType":"address"},{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"safeTransferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"safeTransferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"},{"name":"data","type":"bytes","internalType":"bytes"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setApprovalForAll","type":"function","inputs":[{"name":"operator","type":"address","internalType":"address"},{"name":"approved","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setMintOpen","type":"function","inputs":[{"name":"open","type":"bool","internalType":"bool"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"setRoyalty","type":"function","inputs":[{"name":"receiver","type":"address","internalType":"address"},{"name":"feeBps","type":"uint96","internalType":"uint96"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"supportsInterface","type":"function","inputs":[{"name":"interfaceId","type":"bytes4","internalType":"bytes4"}],"outputs":[{"name":"","type":"bool","internalType":"bool"}],"stateMutability":"view"},{"name":"symbol","type":"function","inputs":[],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"tokenURI","type":"function","inputs":[{"name":"id","type":"uint256","internalType":"uint256"}],"outputs":[{"name":"","type":"string","internalType":"string"}],"stateMutability":"view"},{"name":"totalSupply","type":"function","inputs":[],"outputs":[{"name":"","type":"uint256","internalType":"uint256"}],"stateMutability":"view"},{"name":"transferFrom","type":"function","inputs":[{"name":"from","type":"address","internalType":"address"},{"name":"to","type":"address","internalType":"address"},{"name":"tokenId","type":"uint256","internalType":"uint256"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"transferOwnership","type":"function","inputs":[{"name":"newOwner","type":"address","internalType":"address"}],"outputs":[],"stateMutability":"nonpayable"},{"name":"withdraw","type":"function","inputs":[],"outputs":[],"stateMutability":"nonpayable"}],"matchId":"58253679","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-11-03T19:11:41Z","match":"exact_match","chainId":"56","address":"0x7e20f345435130Af72733Ce5742A6704b19cc574"}