{"sources":{"Yydsgent.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: Yydsgent.sol\ninterface IAgentIdRegistry {\n    function handleOf(address wallet) external view returns (string memory);\n}\n\n/// @title Yydsgent - 1000 Panda secret agent with red lantern scarf and sunglasses holding a laughing-emoji phone on a red-purple gradient for .ai Agent ID holders on BNB Chain\n/// @notice Each wallet gets its first mint free while the 1000 free pool lasts (gas only).\n/// Every other mint costs 0.00007 BNB. Max 50 per wallet, 1000 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 Yydsgent is ERC721, ERC2981, Ownable {\n    using Strings for uint256;\n\n    IAgentIdRegistry public constant AGENT_ID = IAgentIdRegistry(0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F);\n    uint256 public constant MAX_SUPPLY = 1000;\n    uint256 public constant FREE_SUPPLY = 1000;\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(\"Yydsgent\", \"YYDSGENT\") Ownable(initialOwner) {\n        bytes memory image_ = hex\"52494646e02a00005745425056503820d42a0000b0e0009d012a900190013ec15aa64e27a523ac28d5ba298018094ddc229cfddf95ed7452b76a278ed04d7eae768a33fcbbeddf37b7c9f4b3fd5777f79b6f383f4f7fe07d283aabfd157ce6fd66ffbce473cc6db8e0297a3fcf76cb20418a7dd1e2e7968ac42775f004e1f8920a0e0ad813f31e07e627e627e6285d589f9f9cb0af53ab2f8a2251647303df3957f837ffee78fffecc50cd98a19b4ae5819ddd42c55d1bfbff16d6657eb0bbbec23672b0c6b295095965a5017f1085f30537916cbb9427247e49eeaea2ab49e29383493d6289cf2a74e6d1af345f62610f9079543e29c651ef2b461da220d765ec90be65c2f44e48f479be75301568dd5eecd1eb2d117f08ecb3961bf384bca85f65fc7c70c4b406490876eb3e7993583f8123b106c837c740af391908dc331e1a87fb42745164ec0f3b2e4e463c8a02d5818d298148f7873996e39459805c8782486d0b612b99165c53efdbaa1d52a2eae6980d56c5eb7b79d1389c72d9280a9d923e705086009a454271d6a946e0371a4ef33e65f529cfa63fcd56b3f3f0c09cdff651db856cddab8ec512c1aa18ca6b6bc5da1db0da9860c83d361fc6734a44895b8fbd498e9f31f1be5d72d72927ae5397d22a2359bd12b4fc9b9a83bfcef4915067ea24753c62e150b6d1dc036688d8f00f06e932a8400ede4bc433036e37e7456eeff1a02a06d4e34fde16fa1c6227d6db4b4192939a4bf1eac0550df3b231278e9b97f68ef726f845aafe3df0784413fc01973fdc8ab83746646d72139f0119ba346f1ed1bb0c80a896f971c3b53b1a59f523ee85a140ea50939a671270853f2091d416ffc8da3e6616ce99e2d6e71f2ceb82992bf1b1f94a0bc6dbe33f827c268cb6883f30bfcd8d165b2e7c76ca2da42ed21a4ee55fc36345f34e746ad6ea33da565a7fff39113c2b97b169a992d0f9fd5ced255f1ab5fedb239f8a3fa41b214677838296116a27e10cb20f4c0fec1a4c2531ba2acebeb36b936fc078faf924e713be9f0dacd6231eb60a3d0be0c31b2ad323cc3b779559ce193a738783ba4dd001f46d6782b2672961e371466725836d04a28e2d385c957abd59b98bde8e82a9ccd9f6e3e22f0ce126bd11906e09c98b741d460e3b736f74fd1e494e8473f3e88cff784899d0d94fb6cdc9cba4737571212d61bb93c7a9a63b052347c9189ab2bdad0c93d24670a4b64686bd5f1100dc5acc43039a06eda54429300bb00828201e2890b6e14e2c218f0a6b32f2570812b66de8b5e5f4b44164ccda4566bde87635af2f8d732736108e95d9c8a0e793881d2a2adf486d76a8561e0729c8ea5fbaec71df9d9e84876ec8185ca6f001fd5f8d49c8290d0f584ea1a589338ceed2f28a6793ea7f3a48efc23c5d0f5f537e7b2d95d6c66fe32ee7babaced82a1ff20d196e487ed7b63a30427957c42eaa0293a1722a2fd6d2f18bf7d83cba49badaf312daa4c5c4c1647cbbbd199e596eaa65b9a1e2268a304e72345aee6dbe3a5e6166bf7b12980ea52fb4f50be150dbdd345ba61e43b72981a321a8952c72fe78c1e9621f6b0a2b5c953e27c4c9bd043dece4fa79a79b73f1dff420a03a02f6f6a995fcbc412220855b09ddbcf6ee8197461b120c49b360238e540c0d4432926bb95f95a64fb48c2e23a8353a7bbe27e3a7c98045e3f9febb9d7e79d410cf97aa18c5e64a3c2b68ae75b7ad97743874197cf8bff3afa5fb5c4b45ee1b89577ae53a988be8694c3ee2e73271444e06bcd02fd2ab2d3bf6c0d756cb8c9f44ea60c74898aafe58c36ecf5ccefca6f7af4c676610a17f19efa535960103e9f44cc20cbd38bb028909a2140ec8b184d282987479b41b5e80aefd56e65888aa7dd0141129c4b343618ae997a6fc2625f5b0604e95eac73302dea8628c47dfb587fbb0bf8bf1c2d2243c36993b0d93395867635081d6d9f7bfa0dedef15dc41e31b18b6b887cfe779169f276d3416262a29778e6e0de69b67d719fb016730794c57c74276715f5ca7a5dc4cea141980ef3db304235b6b0d9c77ae3338346dc298c31f7f4e65f4b9ef5f3bcf582a93436e912e0684b8bab3b81391778b691e2ecd2e57535541a1133b0efc945d0085268a08301cdb8cc0bf0abd015db8c64804f2e153677cef2c2fdddb236d1d9c635e7acf07675d84cb625f39d52fea4a451a571ea237177b5281d2e73f1311695a1ba46bb134b245b49b2c9ce5a982ba8ef26e693d38e23414be079ae18772c55a8656a8bf09dab8ef4ef21555682b6be45f7911f58527c847367495f063427c984b8c051479e5b5bb53a8483f4e02c345d051c5a18f44763cddfae82c5b5a3c5334fc9d6a378317a435c620924248735ab975c13b44dc175694f10ada75f0f5fb0799f7039e5de016ee573f812649b4f97112a0dca0d18ae1a2fd8796792de0dab152abb55b0d6b3d480fc38af3c9da7481cb7726fc1ddffd486c921e72c408f76f8e2ccf7bc24daaff5ed64b8fe6e2d57c258398893d92e8d97ec21654c5646018e85098fa0828c20e33e5ab104ca712af3d28000fee19e9fb57cbcdaacd2de8bb4d551da4311cf012655a921b01bce4e65f4a44fed57c928f934b64f2678b6d13bdc4319ae9b7f083b9b2d1b5f37455bba564b56d8af5046389d4f5b6ca0aed5e4fd8d1bbcebc91f611f7ba28906c48adba636223fbbc28ebe4d7f6b446792162328e38c5f2d22ba5abf0e6dc2d6c8885c5bdef70ffb17cd7f30cd55b4fb1aceb4fc3f8a10c338d574f1833802c8dc00e4eef0c85323948271ae29fac0dceb88e7329043c34c85f64d07794b4d3dd05e2748f4b720dc4ba7a0bd8ee951e23897ed58ccfb31d85c3a79a5e354af5b35ffb84dd8036df65855d6218d5a24c7d50a451302f5bd9afb7df62790bfc1b846895b2834b79b94f1226c25d0d7cdd200615017c892e08ef8b00c6083959f847aaa7d4b2d1f414cb832577c63b483b6320ed6947d611d1caf973161969f1dc0bde160b5a9f3a3eebf9fc085c2b7139e979aa7752d78f94efbf877628a0ead6d41b1d6aac027347db0ae7b240ecef109dac1f9e3b74ab926e1ec895add9600d801905a6f1cfcddbdcbfa698471b64e717bec1c348bdae01410aca6843b2a9e2f8e403cec2c95de29e77198245d6d153987cfbb806095f104ecf2e88ea8206e937b9af9685916a1ced098a3b0779b93d9424ba671e094597d6176bdf02fce82961b9758e6372adb682026e5f874069e3073fc3a112ee6e96a9231a468b136ddeb4e0c5e1d2a8ccc9d9437ef54b421bce5335c7d03bfec5face443f51e169ddca1ef7891bca3d133664079fab306f3dc123d94a05442970d1c5db38143f8756f8b69e032e7bc91e71ac34da9d54ccb34fc521ee623418fb5ef0465b56339bad121bc359d190f512d72919354381b9247fcdb1dabf9b27a4f9335dd5260f7c51d2e7640df77d05077b3ffaa6052ef5a3f84e61fcdb31000597abfafa981f691db28421420f60f87264da1c35dfe5ceb12139aa625740a1d4dd0118befc6cc58a456af798681e59f42aa69a99cb741fb17dc351113e4549dfd92ca5be16a89f8e373a33156c343731851065e580efe003ad46b05b3692275984cd8748a829d6d2d3c128da0991865b9516813fc502cd69c045c4f0513802b3221dd11091b07f26374bae3674e87a0f985e46958e82c8bc47b3943823f89a9582f6fcfb727476b0792df955ce0a0354e2501a05742ab298d0d17c420611d61902902bb9e560419b60fe0c144b7f67bdbaef92ce3d3c83c17e153372ce9d46f0eb53c0cf2eecaad05374c1744b5bc0987971c7b8a5bc213cdd2d0425f5fcd10182804c2df0e60e6f51c99b5ff7a3ad22f567ceae11044881ec7c48fe2b32ac11f70883b7309a9b600ffd404350287c2ec7675cba27894d3c76489adeba6fe0aadd491c5279f1423c88e79108397bd5cf6dced6fee71dc866d4e8640ef2b0d0bc550a2f7244698ed65a1710fa0b924ff7ce172afebb2d953be392025bf3f37c1bdd5b8aa02c9248046e7c4af9453412bf8c25cf80120049af5b0f58323a05621a8b8071ae8c742b86393a63911a21f72ceb046674145c0a7a5f4a7c64cb1fd2371d1a2d56b94439ec017e2f1b18f4a6a7f38f83147bb21c5b0535b5b42ed885292189133e986de88bb0e2ee5ce9e7fb42cb0fbcc92c7ad1b9653c5a799fe9e1ac766654852e154605bd5ae8e847faa53cc83142a158198dafc847838207256256b624ba907b33c1f785863d9858e6039108bf110f93e10ef6dbef2f0b3cb3858d573379e2ecd1346400a2f29d827d2657485a7e5f12b6cb00f7156007b9ec7c2e83c3a375eb4c3395a3103753a37b2519fc43118aa43384c79c6c8330a574e96ef020dd0154df9cb136748eb4c534789596be026b6dbbbc2dcfaa508bb38a1d16703be5693688cfd8a95246c12856cd5c12f56f5b2d1fee7e29d7728948e5207d99be92a6e6914e3a551b090f0131861ce4036a1b7f20a16201ab941b031af4b2da40abedb835109ef06f37a1b979523d000afe3b63969e7babca7b561fa12ce0194957005c9619aaff386a6e2f116bb9a7132992b9e17c22a90739d3d5854f5d4cae5b0990d080ca7f7a84af549db424d066e7249bd63a9f7c402a21d0110038c58e41e769cef2fa8e9a9eb5ea8ebfdf85c7fe3208fe31863a10ebf35ec5286b399ed82fd283b43c99f66a6cee7750b256a961414746aae718b453689014191e7b30f08affc2c91dbf5073e5f65b873c0a6ce7c3d00c189509980d10250909a271606568af902bb99e80076b4790ffd8da777cc6860c99cfbfaaa6acafbe6b831cd10b125979847e82362b4b3f0e30bdfdd4a5fa377023ca2e58d35de3267d42bc4ff47cee577addc3cad5986ba601ee323b740608153df7726c3eefe90b8be3692ae900495f011a1e2eace3331bc35aa7d4e5cee0908095b3c8721186cbe6d6ad48c23a0229675f1d529a8cbb19c232eb5e1818f6b54ce20b7fdca25e9856c365de8c1e7b099839660907ea30305741c771c83914f9e7a644aeeb1fc229c26d7e75ee188cc7f18911554186a1f62d95108c3c079459e4120da3bb95488236cf474e22970ef82f399d5b4f5c907c9723ad04166803ccec7fd7e604b73b9c6b76d3bd32e1da728847db111f1708e52f5a938a61bb9df8af34a0c52e35f017c9cb87c1a07b2777e49131bac25a1f4f3ebfbd446b70ba83635c248361d148b853abee2af2b1592a869418fd13d726af302adad11fc1ebac1e86f2779b2a5f586a5f21204cc0ddb9e7caff77a9bfa08e366f8cd3749713a0e232fe938e573f024c768852d94d286d7051b5fa4ea85a433ef5279acf4d4aa9d56f16e6e99045bde9593add5a3387f9ff6f76cdd1c238de277878ada91a673846982d64bbbf017973a9ac43fa6f0232714a4030cb3a40257bfae9e6d8423af1e90d2883c5d17a61399d19e8f1624d4373d1926345cdc48f62a9c14184c39793697927bb0a91d87c2162976783e2f116b956a8f70e25f35fdccb8ffe02676a177b77ee46d14c8bccaf39d53e93cf8f4a9154d449ea88360b8dcc294d5dae4590233116f595dfeb070c91a5566cbab37e092698623c35faa6530d7369c776772abcba58e9a7c79a66000fa15dc86fb084da54570207bfd1a1735442aea40bc3b118d022eb59a891b5c89aa50e52afb6af3d4b3b408ec72787fd283cd797a5c1063e492eaca42e9a0d1ba1254ef9b08c4ede6f1b3be13597d0edb267763663ac27f934032cddfc51e6b5b4693acc80f8380a8b83f5e888d5f53ad284a9d3eea9a7d2a20863bd0e0f8b6fa5a20fb6181ab00dfca3219303cae862e65c5c751d394aa869394f0383ecdc355bbd53a9a9254cb1276829fec424a8f64c6d8de764b70888543b2d79485b876cca42abf7079670836793c621e110fef329296677ca3e321a967d49b3b42b2fc7612e0c4999ddcfe3f6398ca07e8dc16a7daa1032cddcfac73a9c9efde9c2545fbb1ea88001bf38a9acdb226e75563668f01c8f004cbae2c94adb695c0987740ec147e52654a4a9e4fdb9407088c15af458e432b208707433da3b4a83943b8cd4165f44b8f48249e9fd4f8891abeca46bea355de7548f59275bccf4170212d3cfa20280106c4dbb366f7301c9f6c634659c3ce7ac621a8f5972496a91326325285d736a0545dfc8ddd45b2ef07ad1553e00f5a71695ac7d578fef2fbbbf6966e97b543dbd24ea938725cbdb2d062914cd7bf7ebdd42a0ef91746fc40d642d906afbaad1214435e771128cded7132c64c6c20015142e7624478b5ade5600861cb3ebec0bf714662472795f5e8b0a1c96f1519e30f3538e0f2cfae64c114145c48db41a0e8405a1a053e44d4a078ecad4eeb58c5ffc85e1e8aa4091e412a8f6ddbd3e21e93366a01cd726b75c1d472cf11ea909809813b3d1b7af2ddc678c38f1cf3d89d87b23f78f3b2bf7ca035a9b6dbb6a8041ad5c81cb7729e265600eae0ecaf3444d5aebbb1d9db797ceae380f325adb4cb3a04a9f2f091cce995f46bb3d52f4a07e0b3a4b7979437249da4b04a675876214e49a29d3947c29c32c661abfb3592b9b6461a32c09d15f4f44a15bb2a8ccbd7e2fa7af5ae7fe7a37fbe81f2c126da9651177d1ef5a64fdb3dda1c187c0573da3a8bce9f2b2876fc5e7fedd086281d1c7c81fbdb4144659e31880983650e7d06ff09f7772c0f730c5d7646a7058eb8ca4f5e99ee59b0c0e34060a084137fd5f09f8709179680416160b1e3a541e1c54e8191b484adc4fb968a7b61ca7440070bd5bfa54977362141b01bfd6a6f22e445d3f74437d5de8fa791a6773062cd428adbcdef0149f1d5ead4d7b8ac65d8fbf9bda6e0a45ad866f2bf2996b8e262ffaac6c92f625336938db6c2fed575bc855e4892fc74b169d3834cefa9dfbdc137a93671bd56cfc08a0ce27ae90981fb4ea72d89f704cc01a6e45e0f43e1c626c29931c2734268cd40094006883cd9c1f9414181c914e66c8a5edc4d1d3472a4b7e9ad8758b9848af71f7242d442862fa9d370791268ff2458dbff6abbbe5fd0436ce1058ec2a9023df647e56d5673d3665a3b8762a5488cb1a95df0789adeca248557660b9e750c00640cee8870de85432b7d1b75570edb326bec2ae8735cfd3493d5516253f135218c3706e32f48e2fe1fc6e1e6bba5afa8470de20b82991cf4a41ce2e220f20a57113356c1e39fa203b57ad2b39cbb8f77288e841282399907f5eefb5c7cd3cbd6a7478d382877dc24f5a58fae11da4aef7027bb1d24528c5e3a452baf775435d02e405fc83677354944e815d249341bc0278b8ba87b07e1cad709079edfbbbbedaeb16acc15a8503d43ca944ec564122e077c7c7721b5788be30f4ba58515ceee0c20934c9547f85de0d5b652f0f9c25fa0e3bf46a45651616d69095df037971309ea074c23550bd0b6bc4c91bd56319cbe5f48ffd3f475b9b2a9c7c29eca3ed7470845cdfcc85a2409287b1ad02bf2eb5443b5e1639702cfb8b7694cdecee1a56f61e4201fe0fd68415b585c62927dddadcd03b566dd27d231e84bd84fb2fb1fd67310f3963d39978062d4e8306d80f2ae9a1a3c533efba3f4eb6b3fe52b85c32577041eb15a060391627bac151aa816f532f73cfdda9f6242c2e0e24a3a0e254ae7aab28515ed6b7ead7f19bd84de72387007c19a74056067a884e74a1b5abc19532d5322b14000d060fb661f0ea12324e91868e27d44ef2383dbe1eb413a26b90cea6671c552f5a8952f9cc9af19d9c10a8d36eda6bf1f9df8faa6afde5ccf504d63dc7844f672391711727e4bffde5172f089b46f20e19bb1e9ae02c2c118bb70dce10c242c1cd6ef6200f8292be4a2a6327164c4510a82f9fdd79d19a6c78a4ff20ed17b4e545173f399b5dca8a89a2dc02ad6f26962639fd36fe65a926bdc6a97ac45ca1be8d994d647ac74876c187527ddb396d6d4b1dea4bb949822266ec702f34d89e2b589059ff95bf069538b4c28f55b64645e3800d56869958a7ec8ee2bc37303674d565a8123a2762c7e259f65810bf348523b080fcb43093de6e4090d6e744088e4e20923e40741d751884aa4c37baba7c224d0f5ec8b5f55b3e79648b22e70863d12711e9baa426e9794b13221c22ce64568502dfe4a1952383ebbe5e00ec9da2467326ddb28b45ee8cc0e30293d4c936bb29b6c626daefbc1d56d8ea7bd4e9e03dbec0d576e910d131c8619e4ec434ca0572e5d63f1e734ec73cc38cd3d2b36d5a7a609650c989de032423ac30a61ab0608b98e2fe6fcc4b0903d7859738a97118c242b3e68d3125eafbe5950a5b46d1f9db6f67fbec39e495a78f503cf0cb623aea0281ba6fd9cfb35df519e82ce3e2ac018d22288f315b03bea7500e5cb79e4859be23aa6ee346b1ea6c715bc65b38b8775ce686d2967e087204548630c3366ad69abdfb202dbff3ae9c260e13959981d59615bcd869f2f6cba7d92aa781603bf190d05ed69238ed684e39cf6efac6c1f28cee44f8eb41b3fea6b6ddb3d2b3f173aede418a9d1f725742c9ed5e5213d2fcb3f02db22cae54eaf6b8e0102b8e7c7d764c19ece926334464ecaf7a60121ab37200296e4bcc096b9757d0756379b4c86b5b92a6e2e262ab4b02aefd02fb46ce3678b97b4e81ccdb19dacc001ba4157fdfadeba4d191c84d3cb4b5372c01c09fc5448a6954b3c04c964bb050863e33993a3863c41ce86d93a6d9667ab1831bbfcb17d91005108c4c2e364dabe4c9cb6464af53c5f958dad9a198df970fe06d54ea7cfe7702a4d4f174622fd01c0abeef3c1369ff41051ec761d7045bb9e94484154b57e3c15642256cdbc12de14bcf73e2344a1b02e7a1d7242e7dcea6ef636dafe66d8f8c73910925678803f982583ad5c3b61baeb320b2f2c04d6db804352055a05f4c55f88660ecfa31a4a98a7b5e9d5af6f377200b0a1ab6a726aa4080c944580e1fe69644d762d83280fe3b4d525f246e7b414373f2f9fa82f815b614ee6d3db14fa29a20223908f84da6163da6be2e3a511cc8d12ec66bdf02b56b047c2909fef5a119ea36cc4602fd9ce5cca637edbaeedb62f3fe62496e165afe0ce7396da95b2da53187c1fcdfaf287e33fd1bb486f0b2764c7463ba68a7eb01b33961bfb528a75966d6d1b28bf807f8325cf08966707ed48799261f19ba6d03ee647b1fa423fa966c3d20c4ee5ad883e2e522bdfc221985b6d87bca4685828ed2607e3ff360fedf960c34e2311c77e5746185e6bb20c54a9c068ffed97c30e0ec0abd87d358b2a615e695f2fb176fd48e2e0e358eb425eb7e81ad91a07b5fa1b4c03254cd7e226e5bf57e73150961400bf3d694466718a21a2815e85c9570312278bc97cba1f58c09a9f54d777c272bd8cb039935f4557b2ae0e42953f3552634c9d9baacc707cb96c043efdaccf42c821938adec071ef45d0ce7cc1c0fdf1a9313de5ecfa6ada98bed9f2241ab9cb0e050bdc75ac374655faa4cef5a38ba546ac54facd19832308f2cd16452f276435d53726facaec9ae0f332cbb1b93dbd7dbaa42cc8e779adeb53bcf4001e866baf84df390efb6e336426e308470155e952e7bac74f07cdaebd54edee77a7fa1e3a6ab5bf19c18b6f26f080bc1f9c2a4f5ff3429ac0c889987cf29a8cd47c5dfe80ab7b3f5b6f7e262a21015a9cb7c2674ccebd6dbfab852bf70ec4c4ba82fe6e71837edca1156101e1a4a57385283c436335b82301febd8022813fc46b5d5c6bb274202324036946cfc1b5bce3c35c3e5907d3e677d802658ff50ecaa4e09d5d5b518b2612dc3648df2dfc6b11b761182bf07273cb7f8f54d66ac65db296ba62520821030334be0e78f61cafc3dcf025a0270b41041cb2ad361967caa725d3f6e75f6268eceea180b9b58977061239842ef74bced3dbcca8ff814a72f5dd1bc4d1730f764bbd17749a272e55aed1c243df84aa3e920b004c022dcfca10a704b476f108207d180dbf60934b508af48085ecab56fab68affe0302022789615fd58b7f8c9154175a202ec420879bc2d445cb6c502401526b2d4cec8e3a1e94aeb0a02b9ec4472515f5d5fd8b4325aae40f1e8b45c84760a5ccbf5c3787c7863e72c29b5ff36e48b340e3874948667525775ec85b9105edb7e3774192a87ab0330932b7f9d36ba312fccbf2c9d8933c7bca8ebbc22cca0505280122737dbc17b671e52ef9ba2c35664ef87c4715e4ae5455892e1e92a9f14eec891c77e3db23e5ce17fa0b2a81dca0553ce6e408d9cd9480713ea7f9d448225a6d9139a9b584578e6fc1e27dd0bf2614d85f7d06678287574eae067ca5582edc24abdb0b50822e381e9c098d1eb5a2736e91ce972677345c53e3130d57896577e3a36afc1ec1b72a523a6b7f6b28b0d001c37c88033cda561a916cb91909dc20f2f710c5effef810436d8659681772f03d12d59ae5061863663022a96c5fbb90bfdf0f6fb0280db420df6d832af0b068cc274263833cececc69ffaaeccfed03a0c8f3e4bdeb4ec009a30f9652d3a57d9e5ea8d9487ab1d8837322fe4bf6a0f9c675c63af20bcdd4e989fa5dc88b65ff43df17ac27526c6fb42a27e48db2e45590bef87114bf211db9d558a737bfffcb5ed6b89f70e39e702a8a7bfe1afb82d687d6e39fff9ffc8fff49cff3410cfb84edd4606d24fa9ded5a448bcbcb72b3558c6c4aec0dd3bdf7a1eff61c3d79d55ebf083b9cae3b372374d1a6eda6bdc927bbcf882d1fc973874d404e065efc75d7552c7f284207b78f9816e4032c7a80c2c3b599a6cc775fbebf113cc8434d7de6403ca272c9f71ad74b5a4264eda768b9937a7fc6e78fd1f5b5ddcac27c633b73611a360686e552edc2fe893618337d46dd495b4d1206e3931684838de81046f99b8bc4ef494e0bfbe8c5094baa70fb40e4e249fc23398c86ff4905b4cbd85c985056744b86f082429a1dfe9112fe4f09eca3d73f1219be165afb7f55e7bbe41b21e77f7d05e13aaccfb561d3d06cf9e1d9066fbbe484fcda5f8aa5568dfcc9f1cef7cbcdb33b74a841f104be0622d160b4d31153b80bbbd07815ef49b28f7438ae539b30366f5a0c16442d2ee3ccccdde52d605111eb7d60c6db724c5a3c7022286be5c18d378beaed848339daff5a178ca55a0e13aa537f694e635a9503cbc7b22fa9aa2e560682b95f5de6902c6ebdf44b676b281c673b480b41914cddc3c212b401b76e4373635346029d7cda8025b71a2cf537359f5f3588b3ba5616aec2edfdcf792ea6516cddf50ff413d766e503db82ca4b5b052885a27b662d6badb41a6bfb63d39fb299f6c180bcbc5bcbea65e4b9ec75e74aaba0c65af7b775ef6a92fae5c072f95475930120906ff4d0fc023bf339894d7f83f1f5691a178d8c82e448911e3e545e6bb6ff0ec525db14db12ea44971751f998c87c0f1d50701dbebf8485e5cdfca04f3c1ff565069d8ce545842ae3b0a5f854ec63e6849567fd4463d3596545d88ae461adf810ed43372c2ee6c359f6f6fa9ad3b69279f9af90adb58955671b0b9ba97febc021ee73591630cafa77171dffe589e1b2c21d5def4121d1ba9b2c58424f49044d01bb976c69b8ccec96b17259f93ca9a58d2dc47bec908b49192994e5a1206ffae7852cc6338895adb4bf18d95d62eac08c57d937cd187c84f1ab0aa5a3dfc1be5879a5728b824ac5698144b0520375536d9b95d9d66bd9c6c52f8fbe246f19342c262353e2e6bc5cc60b982625369fce41f97aa5c6f59d2d73d36b6cc4133c0561b359cc0c45ecbe0eeecb1d58d6d363283db2a309bf0bf630a7a0497c923c2cff160aec78885fcfa8dfb877d74a7e2b22a55f06cb4a765d1473ecf6b046f5c8fabc28dea88f697f4a4bc0bc8c85163d5516ca89760ea38c156416a4d1e4bbe4925d5a537978f3f7f57657501bd7ec59751322843ea8d07a30b0e178848bcd197cdbc863abb3d5bf8caef7c05d6f52319bf0913b9331b679fa21e61c9b66ea13b20cbea45b3b18087fb563dfd8eb9354ebb48fd4d064a31403f62f2bcb027851d8bc24b48cd8e54520f7b56ad4c12cfcd649d86e5c77921d05b599c9e83988c09d6b734f255392f54dd873cd351a99402514ec1af3f093d228be75c8e5d87afc15239736a02b95eb45b737ee706b2c15b08ddc7b9568d68417e337df075da6690fd4601d1994b42b140a4d547440232ebc8223809be2da5eb4d04b27eb90dd92c551a0a431b8557c4ab1ce56cd93899644d69883d2b45b1ac480c55242bbc4e270dd201eb5ae13da90226a915f300c82feb156dc7f1dcc0390b9cab1f5ff6c61f687b81ad7d00affdbfa003f0d2e1980d00fb68b77b965782c90c842d44f46b17bc208df1d8533b458e3d5010b1a5f66c5e71192e2433d4ed0827e9198c1302fdfd863a82d33717eef60cced192935ad8c795abfb30d1bff21c6e0bff9ff23a9c3eea9e351f479f868d65b82e102d1f00b8214529ed6497256b939827011af0905b004da3052a62477dc405b578344adf9e331f96411ec01ff3face61713d53706276d2650ce24c422cd11618c51b59717d0e7d679524f36ed8297487e451e9e8b880a9fde45d2b443e245115323ded2396e1cc371fdce7d4e8fed53ba8b94a3c1b849f6a1fe48dcfd0a84f804eae10e5c7e43f850ff8e3b6fdcd32547bfe20dec6aca2a134a83c063cc5c82bc2af1cc3164b8c7a9c98780a40f8751ed3d1ec7c4d97697f1b0d91820d4a5a71904b35bf44da0d24c9926cb0f1d0a0ba0aed4e9fe397ab8f6a9d723588e1484b7a274fad802510d1d960b1a50950f25e79122e42b018e876d5e1d6f5842176152793adbfc799e688638905e69378952d9587a15018d8920c511922adea348466547721c1220755f23de7db781b49bbf5abf4aac6e72be456ce7302d0bab564a6c38b74d44fd02120d6fb47ee661935f676bd9f00da2715828f644d3d0d8b67b20a4487f7be14c05edb106fd81d1cf44c82402d79ff8373d32195068c9925bcf0d65e762228caef8adc346c2eb2844c0edc99d4fd96b801b26bfdffc183d17b9e15d0d6775d8061b0b8b78fc0c558d0a8caddf8fc63655dd3aad2615cc376f0ddbe166182d256fe87dd5f253f22d0f96636d0d4e775b0a01b55444f2bedaa36e7ffdf9a58173f17ba7a15d1617698c267e216973cd4e3a020338e09f85b1324262858a57d2376ab5c15556d410edac6e6467e6c708a96f08645248df144c73a980735389529c25455f2982c2f24b9ac1135c7f3675b29b7c45167bdf4761995e0be44674bf8793e9b02a6a102703f95c238af030d9944d8d2e90e8b5b4cc1458b6d7039ebf945152eaaf589b68a166a51e76a3b6faae551d81404756e1842cf72ac588a1875b2740d75790279ce77717e3045b314864c9a0d41f5f9fddc065718238af5c46115b773dac35ec3991e664affe215c41f41e1a10c2ba0b14c09c50f4c325f6b1f07a475d1677dc374b846a48450d26fda37425d9ec6fab864f1b9b8c1ee09b0c5c00fcfcff7b1be1fe505cfa1ae76fe14cf980a8f9e2f4a25e5d66d8ed94b1f05d3737e3e1bcf6ebce7f4d2adfbd6b60773b26ff399e38d300f9d7dd6e4613b5b27838974c73b25ecec06cab3e0d8f87d3e859f29f4ad79f2762c1853da56a65ff37556d092da51a2fd38997d1855068266fc87cd50628edab0276a3c24d2e9d1e9390323ab387d491c6997c8a73dd5712f35222f215520d85380629e05c7281cdd2bf98a6e5efa21c11dff19e681f8a4e0e6f56611ae7e0f8f8783454070c9a0a2b6d9626431c99906057a133fe6d647845d55122b01d9dfa67509c9c9884d7f9423505fc9b96e1808071be460f9fc369aa32a2d9ed5940ec6a8c4ef50aa358420f4c9194d76f108303ebe1977884b381a14bad9021573546c8f2add6e756055d95fb41e18e7d4639060a2a961ad04243f5a413d72891eebc08d2987086c4c00eba74b2d4fd61e5ae8f56469f56f6def9d6b85e5d69080ac05935de543ba9053335190800310f2cfd26886ab430eb80282d0f9bab6c558d95eb273dcb9ba8b71d877f937f961523dc3b4bedc29e6acf77b3c12c2f2627acf99b934cd5a1e857089e02d6a60911bef27b808bcfb4cf1f80aa5eb63a9e86881397dd3927f2fefe1c0c69e21aaf016c9b052dd9ccacafe83ebe4d26f21845dcaab5bd0a244972de9bb582b4761f2e6aacc918b5e485963d5ebbe9518d1f41a7103233e1d044ebadf9d5a38dd71a272dea1e900677a02e9160cabb0846976c4a8be86a6277734f9a06f08c3ae33b47d9975c3368795a52fe448d29290e05220c78eb41cb88318e05f8d997f8da75cb44608200adebed116f344275e415465a8ea9c525b2436d860b42c927ae861859f28f5423ce0ce558881073335b677ea2fa71cd7110ddb01d2921743337e9e366cdd6c22c1364e79069ce4a9bc85b244628180e1893187ddc25ecd8fcd8127091bde60cade68f86b8d000d328cf467925878896a405db76e88e20ce7d7fdab71aee0b04ee1e8e662129453bbba0b6c5f9e48fc088af15c92f43fa67d61bbf4865e02f908e668c1632acdc367eddcf0d621c27490d713eaec96b286e8cbeb325712e14798df7aaf6d0ed6f09040751d44c2ba49ff999d78d67d6125036a0102bd3a61d4c80727be5878e0ec95f8c88f44521d356b54e91b5dd1ecad6ac955bcdc30ba54c272e5c00725d22dff824d1f7d4083e0d760869da7c8482ea9f5945244ed585317c37601247034f1d3e356b73b7bafab4dbb8da33f61361a85a76807ed0006549e7211a616ce6a054d2d49be97f40180bf636c94f5e4e992a3eefcae3ba9f6aba66c99b7c4f08d6158c8f966339e6f630ccb80b6abef6d8ba5949cd2da1b6b4c907fc8c72806e094d2c7c9806312f34a8567012d7e9662af57ec47697357429fd56a29cb9de1d1d6a17bc0a71b732f8699eab8d05e1baefd15025c15607c8f7b4d500087579f3856be28343cc633382fdd4eb3eadab024cbb2bee3be02ca2a44e38fd230dcc0bf18da79db1f4efb86f31b1e7ec48552a1974ca79a7a09f90ba506179891e954a66686a303d6c8b750f81b3cc8ce7b11904140d6478eee55ffa1351b4478b95808eba13074dcc486feab7a0996b59355300199d6699d972a11e2fc5a1d668c1853813e2c263220445a192c6e84a144cdc58c4700320f5f5cf39643f76a131188eab14363aabecce9dab2ed4114c4dc1cc4619909b76fd78ae1f9dfe83cc2f8cf82765ae20a42ea3784ccb144e7fe7cd38a8facfb5dbd5026b4be81122fed8344de55b2314d4379b175a5bb9d366aadee7c0240c1eb232757e2658100190896c9f3b2629af7ec5b7139b34e7f620329d3226b55e61453467ccab6bedd1f91e7400c16b1619aa66878992cf20963117e4ae9a50c12a35296d386b6b7e1160812617d57f246feea36e56b11cf1050faf195c7053106e24e091c67007ae0e2e116ab80000\";\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(\"Yydsgent\", 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 [\"Panda agent\", \"Panda agent\", \"Panda agent\", \"Panda agent\"];\n    }\n    function _T2() internal pure returns (string[4] memory) {\n        return [\"Red lantern scarf\", \"Red lantern scarf\", \"Red lantern scarf\", \"Red lantern scarf\"];\n    }\n    function _T3() internal pure returns (string[4] memory) {\n        return [\"Red-gold rim light\", \"Red-gold rim light\", \"Red-gold rim light\", \"Red-gold rim light\"];\n    }\n    function _T4() internal pure returns (string[4] memory) {\n        return [\"Red-purple gradient\", \"Red-purple gradient\", \"Red-purple gradient\", \"Red-purple 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\":\"Yydsgent #', id.toString(),\n            '\",\"description\":\"Yydsgent is 1000 Panda secret agent with red lantern scarf and sunglasses holding a laughing-emoji phone on a red-purple 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\":\"Yydsgent\",\"description\":\"Yydsgent is 1000 Panda secret agent with red lantern scarf and sunglasses holding a laughing-emoji phone on a red-purple 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":"58179162","creationMatch":"exact_match","runtimeMatch":"exact_match","verifiedAt":"2026-11-03T06:07:48Z","match":"exact_match","chainId":"56","address":"0x38CB2dF1D6Fdac4115883E6EC7d2Ff39e20C1e61"}