Source Code
Overview
APE Balance
More Info
ContractCreator
TokenTracker
Latest 25 from a total of 414 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Safe Transfer Fr... | 17103798 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103793 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103788 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103784 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103778 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103772 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103769 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103762 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103759 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103755 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103746 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103743 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103736 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103732 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103725 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103721 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103716 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103709 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103706 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103698 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103693 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103687 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103682 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103675 | 10 days ago | IN | 0 APE | 0.00000046 | ||||
Safe Transfer Fr... | 17103670 | 10 days ago | IN | 0 APE | 0.00000046 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ShiguPassNFT
Compiler Version
v0.8.26+commit.8a97fa7a
Contract Source Code (Solidity)
/** *Submitted for verification at curtis.apescan.io on 2025-04-04 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; /** * @dev Required interface of an ERC-721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC-721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.20; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @title ERC-721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC-721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } // File: @openzeppelin/contracts/token/ERC721/utils/ERC721Utils.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/utils/ERC721Utils.sol) pragma solidity ^0.8.20; /** * @dev Library that provide common ERC-721 utility functions. * * See https://eips.ethereum.org/EIPS/eip-721[ERC-721]. * * _Available since v5.1._ */ library ERC721Utils { /** * @dev Performs an acceptance check for the provided `operator` by calling {IERC721-onERC721Received} * on the `to` address. The `operator` is generally the address that initiated the token transfer (i.e. `msg.sender`). * * The acceptance call is not executed and treated as a no-op if the target address doesn't contain code (i.e. an EOA). * Otherwise, the recipient must implement {IERC721Receiver-onERC721Received} and return the acceptance magic value to accept * the transfer. */ function checkOnERC721Received( address operator, address from, address to, uint256 tokenId, bytes memory data ) internal { if (to.code.length > 0) { try IERC721Receiver(to).onERC721Received(operator, from, tokenId, data) returns (bytes4 retval) { if (retval != IERC721Receiver.onERC721Received.selector) { // Token rejected revert IERC721Errors.ERC721InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-IERC721Receiver implementer revert IERC721Errors.ERC721InvalidReceiver(to); } else { assembly ("memory-safe") { revert(add(32, reason), mload(reason)) } } } } } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File: @openzeppelin/contracts/utils/Panic.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol) pragma solidity ^0.8.20; /** * @dev Helper library for emitting standardized panic codes. * * ```solidity * contract Example { * using Panic for uint256; * * // Use any of the declared internal constants * function foo() { Panic.GENERIC.panic(); } * * // Alternatively * function foo() { Panic.panic(Panic.GENERIC); } * } * ``` * * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil]. * * _Available since v5.1._ */ // slither-disable-next-line unused-state library Panic { /// @dev generic / unspecified error uint256 internal constant GENERIC = 0x00; /// @dev used by the assert() builtin uint256 internal constant ASSERT = 0x01; /// @dev arithmetic underflow or overflow uint256 internal constant UNDER_OVERFLOW = 0x11; /// @dev division or modulo by zero uint256 internal constant DIVISION_BY_ZERO = 0x12; /// @dev enum conversion error uint256 internal constant ENUM_CONVERSION_ERROR = 0x21; /// @dev invalid encoding in storage uint256 internal constant STORAGE_ENCODING_ERROR = 0x22; /// @dev empty array pop uint256 internal constant EMPTY_ARRAY_POP = 0x31; /// @dev array out of bounds access uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32; /// @dev resource error (too large allocation or too large array) uint256 internal constant RESOURCE_ERROR = 0x41; /// @dev calling invalid internal function uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51; /// @dev Reverts with a panic code. Recommended to use with /// the internal constants with predefined codes. function panic(uint256 code) internal pure { assembly ("memory-safe") { mstore(0x00, 0x4e487b71) mstore(0x20, code) revert(0x1c, 0x24) } } } // File: @openzeppelin/contracts/utils/math/SafeCast.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol) // This file was procedurally generated from scripts/generate/templates/SafeCast.js. pragma solidity ^0.8.20; /** * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeCast { /** * @dev Value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value); /** * @dev An int value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedIntToUint(int256 value); /** * @dev Value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedIntDowncast(uint8 bits, int256 value); /** * @dev An uint value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedUintToInt(uint256 value); /** * @dev Returns the downcasted uint248 from uint256, reverting on * overflow (when the input is greater than largest uint248). * * Counterpart to Solidity's `uint248` operator. * * Requirements: * * - input must fit into 248 bits */ function toUint248(uint256 value) internal pure returns (uint248) { if (value > type(uint248).max) { revert SafeCastOverflowedUintDowncast(248, value); } return uint248(value); } /** * @dev Returns the downcasted uint240 from uint256, reverting on * overflow (when the input is greater than largest uint240). * * Counterpart to Solidity's `uint240` operator. * * Requirements: * * - input must fit into 240 bits */ function toUint240(uint256 value) internal pure returns (uint240) { if (value > type(uint240).max) { revert SafeCastOverflowedUintDowncast(240, value); } return uint240(value); } /** * @dev Returns the downcasted uint232 from uint256, reverting on * overflow (when the input is greater than largest uint232). * * Counterpart to Solidity's `uint232` operator. * * Requirements: * * - input must fit into 232 bits */ function toUint232(uint256 value) internal pure returns (uint232) { if (value > type(uint232).max) { revert SafeCastOverflowedUintDowncast(232, value); } return uint232(value); } /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { if (value > type(uint224).max) { revert SafeCastOverflowedUintDowncast(224, value); } return uint224(value); } /** * @dev Returns the downcasted uint216 from uint256, reverting on * overflow (when the input is greater than largest uint216). * * Counterpart to Solidity's `uint216` operator. * * Requirements: * * - input must fit into 216 bits */ function toUint216(uint256 value) internal pure returns (uint216) { if (value > type(uint216).max) { revert SafeCastOverflowedUintDowncast(216, value); } return uint216(value); } /** * @dev Returns the downcasted uint208 from uint256, reverting on * overflow (when the input is greater than largest uint208). * * Counterpart to Solidity's `uint208` operator. * * Requirements: * * - input must fit into 208 bits */ function toUint208(uint256 value) internal pure returns (uint208) { if (value > type(uint208).max) { revert SafeCastOverflowedUintDowncast(208, value); } return uint208(value); } /** * @dev Returns the downcasted uint200 from uint256, reverting on * overflow (when the input is greater than largest uint200). * * Counterpart to Solidity's `uint200` operator. * * Requirements: * * - input must fit into 200 bits */ function toUint200(uint256 value) internal pure returns (uint200) { if (value > type(uint200).max) { revert SafeCastOverflowedUintDowncast(200, value); } return uint200(value); } /** * @dev Returns the downcasted uint192 from uint256, reverting on * overflow (when the input is greater than largest uint192). * * Counterpart to Solidity's `uint192` operator. * * Requirements: * * - input must fit into 192 bits */ function toUint192(uint256 value) internal pure returns (uint192) { if (value > type(uint192).max) { revert SafeCastOverflowedUintDowncast(192, value); } return uint192(value); } /** * @dev Returns the downcasted uint184 from uint256, reverting on * overflow (when the input is greater than largest uint184). * * Counterpart to Solidity's `uint184` operator. * * Requirements: * * - input must fit into 184 bits */ function toUint184(uint256 value) internal pure returns (uint184) { if (value > type(uint184).max) { revert SafeCastOverflowedUintDowncast(184, value); } return uint184(value); } /** * @dev Returns the downcasted uint176 from uint256, reverting on * overflow (when the input is greater than largest uint176). * * Counterpart to Solidity's `uint176` operator. * * Requirements: * * - input must fit into 176 bits */ function toUint176(uint256 value) internal pure returns (uint176) { if (value > type(uint176).max) { revert SafeCastOverflowedUintDowncast(176, value); } return uint176(value); } /** * @dev Returns the downcasted uint168 from uint256, reverting on * overflow (when the input is greater than largest uint168). * * Counterpart to Solidity's `uint168` operator. * * Requirements: * * - input must fit into 168 bits */ function toUint168(uint256 value) internal pure returns (uint168) { if (value > type(uint168).max) { revert SafeCastOverflowedUintDowncast(168, value); } return uint168(value); } /** * @dev Returns the downcasted uint160 from uint256, reverting on * overflow (when the input is greater than largest uint160). * * Counterpart to Solidity's `uint160` operator. * * Requirements: * * - input must fit into 160 bits */ function toUint160(uint256 value) internal pure returns (uint160) { if (value > type(uint160).max) { revert SafeCastOverflowedUintDowncast(160, value); } return uint160(value); } /** * @dev Returns the downcasted uint152 from uint256, reverting on * overflow (when the input is greater than largest uint152). * * Counterpart to Solidity's `uint152` operator. * * Requirements: * * - input must fit into 152 bits */ function toUint152(uint256 value) internal pure returns (uint152) { if (value > type(uint152).max) { revert SafeCastOverflowedUintDowncast(152, value); } return uint152(value); } /** * @dev Returns the downcasted uint144 from uint256, reverting on * overflow (when the input is greater than largest uint144). * * Counterpart to Solidity's `uint144` operator. * * Requirements: * * - input must fit into 144 bits */ function toUint144(uint256 value) internal pure returns (uint144) { if (value > type(uint144).max) { revert SafeCastOverflowedUintDowncast(144, value); } return uint144(value); } /** * @dev Returns the downcasted uint136 from uint256, reverting on * overflow (when the input is greater than largest uint136). * * Counterpart to Solidity's `uint136` operator. * * Requirements: * * - input must fit into 136 bits */ function toUint136(uint256 value) internal pure returns (uint136) { if (value > type(uint136).max) { revert SafeCastOverflowedUintDowncast(136, value); } return uint136(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { if (value > type(uint128).max) { revert SafeCastOverflowedUintDowncast(128, value); } return uint128(value); } /** * @dev Returns the downcasted uint120 from uint256, reverting on * overflow (when the input is greater than largest uint120). * * Counterpart to Solidity's `uint120` operator. * * Requirements: * * - input must fit into 120 bits */ function toUint120(uint256 value) internal pure returns (uint120) { if (value > type(uint120).max) { revert SafeCastOverflowedUintDowncast(120, value); } return uint120(value); } /** * @dev Returns the downcasted uint112 from uint256, reverting on * overflow (when the input is greater than largest uint112). * * Counterpart to Solidity's `uint112` operator. * * Requirements: * * - input must fit into 112 bits */ function toUint112(uint256 value) internal pure returns (uint112) { if (value > type(uint112).max) { revert SafeCastOverflowedUintDowncast(112, value); } return uint112(value); } /** * @dev Returns the downcasted uint104 from uint256, reverting on * overflow (when the input is greater than largest uint104). * * Counterpart to Solidity's `uint104` operator. * * Requirements: * * - input must fit into 104 bits */ function toUint104(uint256 value) internal pure returns (uint104) { if (value > type(uint104).max) { revert SafeCastOverflowedUintDowncast(104, value); } return uint104(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { if (value > type(uint96).max) { revert SafeCastOverflowedUintDowncast(96, value); } return uint96(value); } /** * @dev Returns the downcasted uint88 from uint256, reverting on * overflow (when the input is greater than largest uint88). * * Counterpart to Solidity's `uint88` operator. * * Requirements: * * - input must fit into 88 bits */ function toUint88(uint256 value) internal pure returns (uint88) { if (value > type(uint88).max) { revert SafeCastOverflowedUintDowncast(88, value); } return uint88(value); } /** * @dev Returns the downcasted uint80 from uint256, reverting on * overflow (when the input is greater than largest uint80). * * Counterpart to Solidity's `uint80` operator. * * Requirements: * * - input must fit into 80 bits */ function toUint80(uint256 value) internal pure returns (uint80) { if (value > type(uint80).max) { revert SafeCastOverflowedUintDowncast(80, value); } return uint80(value); } /** * @dev Returns the downcasted uint72 from uint256, reverting on * overflow (when the input is greater than largest uint72). * * Counterpart to Solidity's `uint72` operator. * * Requirements: * * - input must fit into 72 bits */ function toUint72(uint256 value) internal pure returns (uint72) { if (value > type(uint72).max) { revert SafeCastOverflowedUintDowncast(72, value); } return uint72(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { if (value > type(uint64).max) { revert SafeCastOverflowedUintDowncast(64, value); } return uint64(value); } /** * @dev Returns the downcasted uint56 from uint256, reverting on * overflow (when the input is greater than largest uint56). * * Counterpart to Solidity's `uint56` operator. * * Requirements: * * - input must fit into 56 bits */ function toUint56(uint256 value) internal pure returns (uint56) { if (value > type(uint56).max) { revert SafeCastOverflowedUintDowncast(56, value); } return uint56(value); } /** * @dev Returns the downcasted uint48 from uint256, reverting on * overflow (when the input is greater than largest uint48). * * Counterpart to Solidity's `uint48` operator. * * Requirements: * * - input must fit into 48 bits */ function toUint48(uint256 value) internal pure returns (uint48) { if (value > type(uint48).max) { revert SafeCastOverflowedUintDowncast(48, value); } return uint48(value); } /** * @dev Returns the downcasted uint40 from uint256, reverting on * overflow (when the input is greater than largest uint40). * * Counterpart to Solidity's `uint40` operator. * * Requirements: * * - input must fit into 40 bits */ function toUint40(uint256 value) internal pure returns (uint40) { if (value > type(uint40).max) { revert SafeCastOverflowedUintDowncast(40, value); } return uint40(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { if (value > type(uint32).max) { revert SafeCastOverflowedUintDowncast(32, value); } return uint32(value); } /** * @dev Returns the downcasted uint24 from uint256, reverting on * overflow (when the input is greater than largest uint24). * * Counterpart to Solidity's `uint24` operator. * * Requirements: * * - input must fit into 24 bits */ function toUint24(uint256 value) internal pure returns (uint24) { if (value > type(uint24).max) { revert SafeCastOverflowedUintDowncast(24, value); } return uint24(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { if (value > type(uint16).max) { revert SafeCastOverflowedUintDowncast(16, value); } return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits */ function toUint8(uint256 value) internal pure returns (uint8) { if (value > type(uint8).max) { revert SafeCastOverflowedUintDowncast(8, value); } return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { if (value < 0) { revert SafeCastOverflowedIntToUint(value); } return uint256(value); } /** * @dev Returns the downcasted int248 from int256, reverting on * overflow (when the input is less than smallest int248 or * greater than largest int248). * * Counterpart to Solidity's `int248` operator. * * Requirements: * * - input must fit into 248 bits */ function toInt248(int256 value) internal pure returns (int248 downcasted) { downcasted = int248(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(248, value); } } /** * @dev Returns the downcasted int240 from int256, reverting on * overflow (when the input is less than smallest int240 or * greater than largest int240). * * Counterpart to Solidity's `int240` operator. * * Requirements: * * - input must fit into 240 bits */ function toInt240(int256 value) internal pure returns (int240 downcasted) { downcasted = int240(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(240, value); } } /** * @dev Returns the downcasted int232 from int256, reverting on * overflow (when the input is less than smallest int232 or * greater than largest int232). * * Counterpart to Solidity's `int232` operator. * * Requirements: * * - input must fit into 232 bits */ function toInt232(int256 value) internal pure returns (int232 downcasted) { downcasted = int232(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(232, value); } } /** * @dev Returns the downcasted int224 from int256, reverting on * overflow (when the input is less than smallest int224 or * greater than largest int224). * * Counterpart to Solidity's `int224` operator. * * Requirements: * * - input must fit into 224 bits */ function toInt224(int256 value) internal pure returns (int224 downcasted) { downcasted = int224(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(224, value); } } /** * @dev Returns the downcasted int216 from int256, reverting on * overflow (when the input is less than smallest int216 or * greater than largest int216). * * Counterpart to Solidity's `int216` operator. * * Requirements: * * - input must fit into 216 bits */ function toInt216(int256 value) internal pure returns (int216 downcasted) { downcasted = int216(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(216, value); } } /** * @dev Returns the downcasted int208 from int256, reverting on * overflow (when the input is less than smallest int208 or * greater than largest int208). * * Counterpart to Solidity's `int208` operator. * * Requirements: * * - input must fit into 208 bits */ function toInt208(int256 value) internal pure returns (int208 downcasted) { downcasted = int208(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(208, value); } } /** * @dev Returns the downcasted int200 from int256, reverting on * overflow (when the input is less than smallest int200 or * greater than largest int200). * * Counterpart to Solidity's `int200` operator. * * Requirements: * * - input must fit into 200 bits */ function toInt200(int256 value) internal pure returns (int200 downcasted) { downcasted = int200(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(200, value); } } /** * @dev Returns the downcasted int192 from int256, reverting on * overflow (when the input is less than smallest int192 or * greater than largest int192). * * Counterpart to Solidity's `int192` operator. * * Requirements: * * - input must fit into 192 bits */ function toInt192(int256 value) internal pure returns (int192 downcasted) { downcasted = int192(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(192, value); } } /** * @dev Returns the downcasted int184 from int256, reverting on * overflow (when the input is less than smallest int184 or * greater than largest int184). * * Counterpart to Solidity's `int184` operator. * * Requirements: * * - input must fit into 184 bits */ function toInt184(int256 value) internal pure returns (int184 downcasted) { downcasted = int184(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(184, value); } } /** * @dev Returns the downcasted int176 from int256, reverting on * overflow (when the input is less than smallest int176 or * greater than largest int176). * * Counterpart to Solidity's `int176` operator. * * Requirements: * * - input must fit into 176 bits */ function toInt176(int256 value) internal pure returns (int176 downcasted) { downcasted = int176(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(176, value); } } /** * @dev Returns the downcasted int168 from int256, reverting on * overflow (when the input is less than smallest int168 or * greater than largest int168). * * Counterpart to Solidity's `int168` operator. * * Requirements: * * - input must fit into 168 bits */ function toInt168(int256 value) internal pure returns (int168 downcasted) { downcasted = int168(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(168, value); } } /** * @dev Returns the downcasted int160 from int256, reverting on * overflow (when the input is less than smallest int160 or * greater than largest int160). * * Counterpart to Solidity's `int160` operator. * * Requirements: * * - input must fit into 160 bits */ function toInt160(int256 value) internal pure returns (int160 downcasted) { downcasted = int160(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(160, value); } } /** * @dev Returns the downcasted int152 from int256, reverting on * overflow (when the input is less than smallest int152 or * greater than largest int152). * * Counterpart to Solidity's `int152` operator. * * Requirements: * * - input must fit into 152 bits */ function toInt152(int256 value) internal pure returns (int152 downcasted) { downcasted = int152(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(152, value); } } /** * @dev Returns the downcasted int144 from int256, reverting on * overflow (when the input is less than smallest int144 or * greater than largest int144). * * Counterpart to Solidity's `int144` operator. * * Requirements: * * - input must fit into 144 bits */ function toInt144(int256 value) internal pure returns (int144 downcasted) { downcasted = int144(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(144, value); } } /** * @dev Returns the downcasted int136 from int256, reverting on * overflow (when the input is less than smallest int136 or * greater than largest int136). * * Counterpart to Solidity's `int136` operator. * * Requirements: * * - input must fit into 136 bits */ function toInt136(int256 value) internal pure returns (int136 downcasted) { downcasted = int136(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(136, value); } } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits */ function toInt128(int256 value) internal pure returns (int128 downcasted) { downcasted = int128(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(128, value); } } /** * @dev Returns the downcasted int120 from int256, reverting on * overflow (when the input is less than smallest int120 or * greater than largest int120). * * Counterpart to Solidity's `int120` operator. * * Requirements: * * - input must fit into 120 bits */ function toInt120(int256 value) internal pure returns (int120 downcasted) { downcasted = int120(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(120, value); } } /** * @dev Returns the downcasted int112 from int256, reverting on * overflow (when the input is less than smallest int112 or * greater than largest int112). * * Counterpart to Solidity's `int112` operator. * * Requirements: * * - input must fit into 112 bits */ function toInt112(int256 value) internal pure returns (int112 downcasted) { downcasted = int112(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(112, value); } } /** * @dev Returns the downcasted int104 from int256, reverting on * overflow (when the input is less than smallest int104 or * greater than largest int104). * * Counterpart to Solidity's `int104` operator. * * Requirements: * * - input must fit into 104 bits */ function toInt104(int256 value) internal pure returns (int104 downcasted) { downcasted = int104(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(104, value); } } /** * @dev Returns the downcasted int96 from int256, reverting on * overflow (when the input is less than smallest int96 or * greater than largest int96). * * Counterpart to Solidity's `int96` operator. * * Requirements: * * - input must fit into 96 bits */ function toInt96(int256 value) internal pure returns (int96 downcasted) { downcasted = int96(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(96, value); } } /** * @dev Returns the downcasted int88 from int256, reverting on * overflow (when the input is less than smallest int88 or * greater than largest int88). * * Counterpart to Solidity's `int88` operator. * * Requirements: * * - input must fit into 88 bits */ function toInt88(int256 value) internal pure returns (int88 downcasted) { downcasted = int88(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(88, value); } } /** * @dev Returns the downcasted int80 from int256, reverting on * overflow (when the input is less than smallest int80 or * greater than largest int80). * * Counterpart to Solidity's `int80` operator. * * Requirements: * * - input must fit into 80 bits */ function toInt80(int256 value) internal pure returns (int80 downcasted) { downcasted = int80(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(80, value); } } /** * @dev Returns the downcasted int72 from int256, reverting on * overflow (when the input is less than smallest int72 or * greater than largest int72). * * Counterpart to Solidity's `int72` operator. * * Requirements: * * - input must fit into 72 bits */ function toInt72(int256 value) internal pure returns (int72 downcasted) { downcasted = int72(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(72, value); } } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits */ function toInt64(int256 value) internal pure returns (int64 downcasted) { downcasted = int64(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(64, value); } } /** * @dev Returns the downcasted int56 from int256, reverting on * overflow (when the input is less than smallest int56 or * greater than largest int56). * * Counterpart to Solidity's `int56` operator. * * Requirements: * * - input must fit into 56 bits */ function toInt56(int256 value) internal pure returns (int56 downcasted) { downcasted = int56(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(56, value); } } /** * @dev Returns the downcasted int48 from int256, reverting on * overflow (when the input is less than smallest int48 or * greater than largest int48). * * Counterpart to Solidity's `int48` operator. * * Requirements: * * - input must fit into 48 bits */ function toInt48(int256 value) internal pure returns (int48 downcasted) { downcasted = int48(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(48, value); } } /** * @dev Returns the downcasted int40 from int256, reverting on * overflow (when the input is less than smallest int40 or * greater than largest int40). * * Counterpart to Solidity's `int40` operator. * * Requirements: * * - input must fit into 40 bits */ function toInt40(int256 value) internal pure returns (int40 downcasted) { downcasted = int40(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(40, value); } } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits */ function toInt32(int256 value) internal pure returns (int32 downcasted) { downcasted = int32(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(32, value); } } /** * @dev Returns the downcasted int24 from int256, reverting on * overflow (when the input is less than smallest int24 or * greater than largest int24). * * Counterpart to Solidity's `int24` operator. * * Requirements: * * - input must fit into 24 bits */ function toInt24(int256 value) internal pure returns (int24 downcasted) { downcasted = int24(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(24, value); } } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits */ function toInt16(int256 value) internal pure returns (int16 downcasted) { downcasted = int16(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(16, value); } } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits */ function toInt8(int256 value) internal pure returns (int8 downcasted) { downcasted = int8(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(8, value); } } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive if (value > uint256(type(int256).max)) { revert SafeCastOverflowedUintToInt(value); } return int256(value); } /** * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump. */ function toUint(bool b) internal pure returns (uint256 u) { assembly ("memory-safe") { u := iszero(iszero(b)) } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an success flag (no overflow). */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an success flag (no overflow). */ function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an success flag (no overflow). */ function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a success flag (no division by zero). */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero). */ function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant. * * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone. * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute * one branch when needed, making this function more expensive. */ function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) { unchecked { // branchless ternary works because: // b ^ (a ^ b) == a // b ^ 0 == b return b ^ ((a ^ b) * SafeCast.toUint(condition)); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return ternary(a > b, a, b); } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return ternary(a < b, a, b); } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. Panic.panic(Panic.DIVISION_BY_ZERO); } // The following calculation ensures accurate ceiling division without overflow. // Since a is non-zero, (a - 1) / b will not overflow. // The largest possible result occurs when (a - 1) / b is type(uint256).max, // but the largest value we can obtain is type(uint256).max - 1, which happens // when a = type(uint256).max and b = 1. unchecked { return SafeCast.toUint(a > 0) * ((a - 1) / b + 1); } } /** * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2²⁵⁶ + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0. if (denominator <= prod1) { Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW)); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv ≡ 1 mod 2⁴. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2⁸ inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶ inverse *= 2 - denominator * inverse; // inverse mod 2³² inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴ inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸ inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶ // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @dev Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0); } /** * @dev Calculate the modular multiplicative inverse of a number in Z/nZ. * * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0. * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible. * * If the input value is not inversible, 0 is returned. * * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}. */ function invMod(uint256 a, uint256 n) internal pure returns (uint256) { unchecked { if (n == 0) return 0; // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version) // Used to compute integers x and y such that: ax + ny = gcd(a, n). // When the gcd is 1, then the inverse of a modulo n exists and it's x. // ax + ny = 1 // ax = 1 + (-y)n // ax ≡ 1 (mod n) # x is the inverse of a modulo n // If the remainder is 0 the gcd is n right away. uint256 remainder = a % n; uint256 gcd = n; // Therefore the initial coefficients are: // ax + ny = gcd(a, n) = n // 0a + 1n = n int256 x = 0; int256 y = 1; while (remainder != 0) { uint256 quotient = gcd / remainder; (gcd, remainder) = ( // The old remainder is the next gcd to try. remainder, // Compute the next remainder. // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd // where gcd is at most n (capped to type(uint256).max) gcd - remainder * quotient ); (x, y) = ( // Increment the coefficient of a. y, // Decrement the coefficient of n. // Can overflow, but the result is casted to uint256 so that the // next value of y is "wrapped around" to a value between 0 and n - 1. x - y * int256(quotient) ); } if (gcd != 1) return 0; // No inverse exists. return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative. } } /** * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`. * * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that * `a**(p-2)` is the modular multiplicative inverse of a in Fp. * * NOTE: this function does NOT check that `p` is a prime greater than `2`. */ function invModPrime(uint256 a, uint256 p) internal view returns (uint256) { unchecked { return Math.modExp(a, p - 2, p); } } /** * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m) * * Requirements: * - modulus can't be zero * - underlying staticcall to precompile must succeed * * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make * sure the chain you're using it on supports the precompiled contract for modular exponentiation * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, * the underlying function will succeed given the lack of a revert, but the result may be incorrectly * interpreted as 0. */ function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) { (bool success, uint256 result) = tryModExp(b, e, m); if (!success) { Panic.panic(Panic.DIVISION_BY_ZERO); } return result; } /** * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m). * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying * to operate modulo 0 or if the underlying precompile reverted. * * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack * of a revert, but the result may be incorrectly interpreted as 0. */ function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) { if (m == 0) return (false, 0); assembly ("memory-safe") { let ptr := mload(0x40) // | Offset | Content | Content (Hex) | // |-----------|------------|--------------------------------------------------------------------| // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x60:0x7f | value of b | 0x<.............................................................b> | // | 0x80:0x9f | value of e | 0x<.............................................................e> | // | 0xa0:0xbf | value of m | 0x<.............................................................m> | mstore(ptr, 0x20) mstore(add(ptr, 0x20), 0x20) mstore(add(ptr, 0x40), 0x20) mstore(add(ptr, 0x60), b) mstore(add(ptr, 0x80), e) mstore(add(ptr, 0xa0), m) // Given the result < m, it's guaranteed to fit in 32 bytes, // so we can use the memory scratch space located at offset 0. success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20) result := mload(0x00) } } /** * @dev Variant of {modExp} that supports inputs of arbitrary length. */ function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) { (bool success, bytes memory result) = tryModExp(b, e, m); if (!success) { Panic.panic(Panic.DIVISION_BY_ZERO); } return result; } /** * @dev Variant of {tryModExp} that supports inputs of arbitrary length. */ function tryModExp( bytes memory b, bytes memory e, bytes memory m ) internal view returns (bool success, bytes memory result) { if (_zeroBytes(m)) return (false, new bytes(0)); uint256 mLen = m.length; // Encode call args in result and move the free memory pointer result = abi.encodePacked(b.length, e.length, mLen, b, e, m); assembly ("memory-safe") { let dataPtr := add(result, 0x20) // Write result on top of args to avoid allocating extra memory. success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen) // Overwrite the length. // result.length > returndatasize() is guaranteed because returndatasize() == m.length mstore(result, mLen) // Set the memory pointer after the returned data. mstore(0x40, add(dataPtr, mLen)) } } /** * @dev Returns whether the provided byte array is zero. */ function _zeroBytes(bytes memory byteArray) private pure returns (bool) { for (uint256 i = 0; i < byteArray.length; ++i) { if (byteArray[i] != 0) { return false; } } return true; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * This method is based on Newton's method for computing square roots; the algorithm is restricted to only * using integer operations. */ function sqrt(uint256 a) internal pure returns (uint256) { unchecked { // Take care of easy edge cases when a == 0 or a == 1 if (a <= 1) { return a; } // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between // the current value as `ε_n = | x_n - sqrt(a) |`. // // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is // bigger than any uint256. // // By noticing that // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)` // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar // to the msb function. uint256 aa = a; uint256 xn = 1; if (aa >= (1 << 128)) { aa >>= 128; xn <<= 64; } if (aa >= (1 << 64)) { aa >>= 64; xn <<= 32; } if (aa >= (1 << 32)) { aa >>= 32; xn <<= 16; } if (aa >= (1 << 16)) { aa >>= 16; xn <<= 8; } if (aa >= (1 << 8)) { aa >>= 8; xn <<= 4; } if (aa >= (1 << 4)) { aa >>= 4; xn <<= 2; } if (aa >= (1 << 2)) { xn <<= 1; } // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1). // // We can refine our estimation by noticing that the middle of that interval minimizes the error. // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2). // This is going to be our x_0 (and ε_0) xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2) // From here, Newton's method give us: // x_{n+1} = (x_n + a / x_n) / 2 // // One should note that: // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a // = ((x_n² + a) / (2 * x_n))² - a // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²) // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²) // = (x_n² - a)² / (2 * x_n)² // = ((x_n² - a) / (2 * x_n))² // ≥ 0 // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n // // This gives us the proof of quadratic convergence of the sequence: // ε_{n+1} = | x_{n+1} - sqrt(a) | // = | (x_n + a / x_n) / 2 - sqrt(a) | // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) | // = | (x_n - sqrt(a))² / (2 * x_n) | // = | ε_n² / (2 * x_n) | // = ε_n² / | (2 * x_n) | // // For the first iteration, we have a special case where x_0 is known: // ε_1 = ε_0² / | (2 * x_0) | // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2))) // ≤ 2**(2*e-4) / (3 * 2**(e-1)) // ≤ 2**(e-3) / 3 // ≤ 2**(e-3-log2(3)) // ≤ 2**(e-4.5) // // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n: // ε_{n+1} = ε_n² / | (2 * x_n) | // ≤ (2**(e-k))² / (2 * 2**(e-1)) // ≤ 2**(2*e-2*k) / 2**e // ≤ 2**(e-2*k) xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5 xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9 xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18 xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36 xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72 // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either // sqrt(a) or sqrt(a) + 1. return xn - SafeCast.toUint(xn > a / xn); } } /** * @dev Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; uint256 exp; unchecked { exp = 128 * SafeCast.toUint(value > (1 << 128) - 1); value >>= exp; result += exp; exp = 64 * SafeCast.toUint(value > (1 << 64) - 1); value >>= exp; result += exp; exp = 32 * SafeCast.toUint(value > (1 << 32) - 1); value >>= exp; result += exp; exp = 16 * SafeCast.toUint(value > (1 << 16) - 1); value >>= exp; result += exp; exp = 8 * SafeCast.toUint(value > (1 << 8) - 1); value >>= exp; result += exp; exp = 4 * SafeCast.toUint(value > (1 << 4) - 1); value >>= exp; result += exp; exp = 2 * SafeCast.toUint(value > (1 << 2) - 1); value >>= exp; result += exp; result += SafeCast.toUint(value > 1); } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; uint256 isGt; unchecked { isGt = SafeCast.toUint(value > (1 << 128) - 1); value >>= isGt * 128; result += isGt * 16; isGt = SafeCast.toUint(value > (1 << 64) - 1); value >>= isGt * 64; result += isGt * 8; isGt = SafeCast.toUint(value > (1 << 32) - 1); value >>= isGt * 32; result += isGt * 4; isGt = SafeCast.toUint(value > (1 << 16) - 1); value >>= isGt * 16; result += isGt * 2; result += SafeCast.toUint(value > (1 << 8) - 1); } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } // File: @openzeppelin/contracts/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant. * * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone. * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute * one branch when needed, making this function more expensive. */ function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) { unchecked { // branchless ternary works because: // b ^ (a ^ b) == a // b ^ 0 == b return b ^ ((a ^ b) * int256(SafeCast.toUint(condition))); } } /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return ternary(a > b, a, b); } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return ternary(a < b, a, b); } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // Formula from the "Bit Twiddling Hacks" by Sean Eron Anderson. // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift, // taking advantage of the most significant (or "sign" bit) in two's complement representation. // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result, // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative). int256 mask = n >> 255; // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it. return uint256((n + mask) ^ mask); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v5.2.0) (utils/Strings.sol) pragma solidity ^0.8.20; /** * @dev String operations. */ library Strings { using SafeCast for *; bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev The string being parsed contains characters that are not in scope of the given base. */ error StringsInvalidChar(); /** * @dev The string being parsed is not a properly formatted address. */ error StringsInvalidAddressFormat(); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; assembly ("memory-safe") { ptr := add(buffer, add(32, length)) } while (true) { ptr--; assembly ("memory-safe") { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal * representation, according to EIP-55. */ function toChecksumHexString(address addr) internal pure returns (string memory) { bytes memory buffer = bytes(toHexString(addr)); // hash the hex part of buffer (skip length + 2 bytes, length 40) uint256 hashValue; assembly ("memory-safe") { hashValue := shr(96, keccak256(add(buffer, 0x22), 40)) } for (uint256 i = 41; i > 1; --i) { // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f) if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) { // case shift by xoring with 0x20 buffer[i] ^= 0x20; } hashValue >>= 4; } return string(buffer); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } /** * @dev Parse a decimal string and returns the value as a `uint256`. * * Requirements: * - The string must be formatted as `[0-9]*` * - The result must fit into an `uint256` type */ function parseUint(string memory input) internal pure returns (uint256) { return parseUint(input, 0, bytes(input).length); } /** * @dev Variant of {parseUint} that parses a substring of `input` located between position `begin` (included) and * `end` (excluded). * * Requirements: * - The substring must be formatted as `[0-9]*` * - The result must fit into an `uint256` type */ function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) { (bool success, uint256 value) = tryParseUint(input, begin, end); if (!success) revert StringsInvalidChar(); return value; } /** * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character. * * NOTE: This function will revert if the result does not fit in a `uint256`. */ function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) { return _tryParseUintUncheckedBounds(input, 0, bytes(input).length); } /** * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid * character. * * NOTE: This function will revert if the result does not fit in a `uint256`. */ function tryParseUint( string memory input, uint256 begin, uint256 end ) internal pure returns (bool success, uint256 value) { if (end > bytes(input).length || begin > end) return (false, 0); return _tryParseUintUncheckedBounds(input, begin, end); } /** * @dev Implementation of {tryParseUint} that does not check bounds. Caller should make sure that * `begin <= end <= input.length`. Other inputs would result in undefined behavior. */ function _tryParseUintUncheckedBounds( string memory input, uint256 begin, uint256 end ) private pure returns (bool success, uint256 value) { bytes memory buffer = bytes(input); uint256 result = 0; for (uint256 i = begin; i < end; ++i) { uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i))); if (chr > 9) return (false, 0); result *= 10; result += chr; } return (true, result); } /** * @dev Parse a decimal string and returns the value as a `int256`. * * Requirements: * - The string must be formatted as `[-+]?[0-9]*` * - The result must fit in an `int256` type. */ function parseInt(string memory input) internal pure returns (int256) { return parseInt(input, 0, bytes(input).length); } /** * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and * `end` (excluded). * * Requirements: * - The substring must be formatted as `[-+]?[0-9]*` * - The result must fit in an `int256` type. */ function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) { (bool success, int256 value) = tryParseInt(input, begin, end); if (!success) revert StringsInvalidChar(); return value; } /** * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if * the result does not fit in a `int256`. * * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`. */ function tryParseInt(string memory input) internal pure returns (bool success, int256 value) { return _tryParseIntUncheckedBounds(input, 0, bytes(input).length); } uint256 private constant ABS_MIN_INT256 = 2 ** 255; /** * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid * character or if the result does not fit in a `int256`. * * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`. */ function tryParseInt( string memory input, uint256 begin, uint256 end ) internal pure returns (bool success, int256 value) { if (end > bytes(input).length || begin > end) return (false, 0); return _tryParseIntUncheckedBounds(input, begin, end); } /** * @dev Implementation of {tryParseInt} that does not check bounds. Caller should make sure that * `begin <= end <= input.length`. Other inputs would result in undefined behavior. */ function _tryParseIntUncheckedBounds( string memory input, uint256 begin, uint256 end ) private pure returns (bool success, int256 value) { bytes memory buffer = bytes(input); // Check presence of a negative sign. bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty bool positiveSign = sign == bytes1("+"); bool negativeSign = sign == bytes1("-"); uint256 offset = (positiveSign || negativeSign).toUint(); (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end); if (absSuccess && absValue < ABS_MIN_INT256) { return (true, negativeSign ? -int256(absValue) : int256(absValue)); } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) { return (true, type(int256).min); } else return (false, 0); } /** * @dev Parse a hexadecimal string (with or without "0x" prefix), and returns the value as a `uint256`. * * Requirements: * - The string must be formatted as `(0x)?[0-9a-fA-F]*` * - The result must fit in an `uint256` type. */ function parseHexUint(string memory input) internal pure returns (uint256) { return parseHexUint(input, 0, bytes(input).length); } /** * @dev Variant of {parseHexUint} that parses a substring of `input` located between position `begin` (included) and * `end` (excluded). * * Requirements: * - The substring must be formatted as `(0x)?[0-9a-fA-F]*` * - The result must fit in an `uint256` type. */ function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) { (bool success, uint256 value) = tryParseHexUint(input, begin, end); if (!success) revert StringsInvalidChar(); return value; } /** * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character. * * NOTE: This function will revert if the result does not fit in a `uint256`. */ function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) { return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length); } /** * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an * invalid character. * * NOTE: This function will revert if the result does not fit in a `uint256`. */ function tryParseHexUint( string memory input, uint256 begin, uint256 end ) internal pure returns (bool success, uint256 value) { if (end > bytes(input).length || begin > end) return (false, 0); return _tryParseHexUintUncheckedBounds(input, begin, end); } /** * @dev Implementation of {tryParseHexUint} that does not check bounds. Caller should make sure that * `begin <= end <= input.length`. Other inputs would result in undefined behavior. */ function _tryParseHexUintUncheckedBounds( string memory input, uint256 begin, uint256 end ) private pure returns (bool success, uint256 value) { bytes memory buffer = bytes(input); // skip 0x prefix if present bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2("0x"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty uint256 offset = hasPrefix.toUint() * 2; uint256 result = 0; for (uint256 i = begin + offset; i < end; ++i) { uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i))); if (chr > 15) return (false, 0); result *= 16; unchecked { // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check). // This guaratees that adding a value < 16 will not cause an overflow, hence the unchecked. result += chr; } } return (true, result); } /** * @dev Parse a hexadecimal string (with or without "0x" prefix), and returns the value as an `address`. * * Requirements: * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}` */ function parseAddress(string memory input) internal pure returns (address) { return parseAddress(input, 0, bytes(input).length); } /** * @dev Variant of {parseAddress} that parses a substring of `input` located between position `begin` (included) and * `end` (excluded). * * Requirements: * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}` */ function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) { (bool success, address value) = tryParseAddress(input, begin, end); if (!success) revert StringsInvalidAddressFormat(); return value; } /** * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly * formatted address. See {parseAddress} requirements. */ function tryParseAddress(string memory input) internal pure returns (bool success, address value) { return tryParseAddress(input, 0, bytes(input).length); } /** * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly * formatted address. See {parseAddress} requirements. */ function tryParseAddress( string memory input, uint256 begin, uint256 end ) internal pure returns (bool success, address value) { if (end > bytes(input).length || begin > end) return (false, address(0)); bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2("0x"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty uint256 expectedLength = 40 + hasPrefix.toUint() * 2; // check that input is the correct length if (end - begin == expectedLength) { // length guarantees that this does not overflow, and value is at most type(uint160).max (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end); return (s, address(uint160(v))); } else { return (false, address(0)); } } function _tryParseChr(bytes1 chr) private pure returns (uint8) { uint8 value = uint8(chr); // Try to parse `chr`: // - Case 1: [0-9] // - Case 2: [a-f] // - Case 3: [A-F] // - otherwise not supported unchecked { if (value > 47 && value < 58) value -= 48; else if (value > 96 && value < 103) value -= 87; else if (value > 64 && value < 71) value -= 55; else return type(uint8).max; } return value; } /** * @dev Reads a bytes32 from a bytes array without bounds checking. * * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the * assembly block as such would prevent some optimizations. */ function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) { // This is not memory safe in the general case, but all calls to this private function are within bounds. assembly ("memory-safe") { value := mload(add(buffer, add(0x20, offset))) } } } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.20; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC-721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors { using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint256 tokenId => address) private _owners; mapping(address owner => uint256) private _balances; mapping(uint256 tokenId => address) private _tokenApprovals; mapping(address owner => mapping(address operator => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual returns (uint256) { if (owner == address(0)) { revert ERC721InvalidOwner(address(0)); } return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual returns (address) { return _requireOwned(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual returns (string memory) { _requireOwned(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual { _approve(to, tokenId, _msgSender()); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual returns (address) { _requireOwned(tokenId); return _getApproved(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. address previousOwner = _update(to, tokenId, _msgSender()); if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual { transferFrom(from, to, tokenId); ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist * * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the * core ERC-721 logic MUST be matched with the use of {_increaseBalance} to keep balances * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`. */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted. */ function _getApproved(uint256 tokenId) internal view virtual returns (address) { return _tokenApprovals[tokenId]; } /** * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in * particular (ignoring whether it is owned by `owner`). * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) { return spender != address(0) && (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender); } /** * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner. * Reverts if: * - `spender` does not have approval from `owner` for `tokenId`. * - `spender` does not have approval to manage all of `owner`'s assets. * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual { if (!_isAuthorized(owner, spender, tokenId)) { if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } else { revert ERC721InsufficientApproval(spender, tokenId); } } } /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that * a uint256 would ever overflow from increments when these increments are bounded to uint128 values. * * WARNING: Increasing an account's balance using this function tends to be paired with an override of the * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership * remain consistent with one another. */ function _increaseBalance(address account, uint128 value) internal virtual { unchecked { _balances[account] += value; } } /** * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update. * * The `auth` argument is optional. If the value passed is non 0, then this function will check that * `auth` is either the owner of the token, or approved to operate on the token (by the owner). * * Emits a {Transfer} event. * * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}. */ function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) { address from = _ownerOf(tokenId); // Perform (optional) operator check if (auth != address(0)) { _checkAuthorized(from, auth, tokenId); } // Execute the update if (from != address(0)) { // Clear approval. No need to re-authorize or emit the Approval event _approve(address(0), tokenId, address(0), false); unchecked { _balances[from] -= 1; } } if (to != address(0)) { unchecked { _balances[to] += 1; } } _owners[tokenId] = to; emit Transfer(from, to, tokenId); return from; } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner != address(0)) { revert ERC721InvalidSender(address(0)); } } /** * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); ERC721Utils.checkOnERC721Received(_msgSender(), address(0), to, tokenId, data); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal { address previousOwner = _update(address(0), tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } else if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients * are aware of the ERC-721 standard to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is like {safeTransferFrom} in the sense that it invokes * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `tokenId` token must exist and be owned by `from`. * - `to` cannot be the zero address. * - `from` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId) internal { _safeTransfer(from, to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data); } /** * @dev Approve `to` to operate on `tokenId` * * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is * either the owner of the token, or approved to operate on all tokens held by this owner. * * Emits an {Approval} event. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address to, uint256 tokenId, address auth) internal { _approve(to, tokenId, auth, true); } /** * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not * emitted in the context of transfers. */ function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual { // Avoid reading the owner unless necessary if (emitEvent || auth != address(0)) { address owner = _requireOwned(tokenId); // We do not use _isAuthorized because single-token approvals should not be able to call approve if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) { revert ERC721InvalidApprover(auth); } if (emitEvent) { emit Approval(owner, to, tokenId); } } _tokenApprovals[tokenId] = to; } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Requirements: * - operator can't be the address zero. * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC721InvalidOperator(operator); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned). * Returns the owner. * * Overrides to ownership logic should be done to {_ownerOf}. */ function _requireOwned(uint256 tokenId) internal view returns (address) { address owner = _ownerOf(tokenId); if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } return owner; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/utils/Base64.sol // OpenZeppelin Contracts (last updated v5.1.0) (utils/Base64.sol) pragma solidity ^0.8.20; /** * @dev Provides a set of functions to operate with Base64 strings. */ library Base64 { /** * @dev Base64 Encoding/Decoding Table * See sections 4 and 5 of https://datatracker.ietf.org/doc/html/rfc4648 */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; string internal constant _TABLE_URL = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { return _encode(data, _TABLE, true); } /** * @dev Converts a `bytes` to its Bytes64Url `string` representation. * Output is not padded with `=` as specified in https://www.rfc-editor.org/rfc/rfc4648[rfc4648]. */ function encodeURL(bytes memory data) internal pure returns (string memory) { return _encode(data, _TABLE_URL, false); } /** * @dev Internal table-agnostic conversion */ function _encode(bytes memory data, string memory table, bool withPadding) private pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // If padding is enabled, the final length should be `bytes` data length divided by 3 rounded up and then // multiplied by 4 so that it leaves room for padding the last chunk // - `data.length + 2` -> Prepare for division rounding up // - `/ 3` -> Number of 3-bytes chunks (rounded up) // - `4 *` -> 4 characters for each chunk // This is equivalent to: 4 * Math.ceil(data.length / 3) // // If padding is disabled, the final length should be `bytes` data length multiplied by 4/3 rounded up as // opposed to when padding is required to fill the last chunk. // - `4 * data.length` -> 4 characters for each chunk // - ` + 2` -> Prepare for division rounding up // - `/ 3` -> Number of 3-bytes chunks (rounded up) // This is equivalent to: Math.ceil((4 * data.length) / 3) uint256 resultLength = withPadding ? 4 * ((data.length + 2) / 3) : (4 * data.length + 2) / 3; string memory result = new string(resultLength); assembly ("memory-safe") { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 0x20) let dataPtr := data let endPtr := add(data, mload(data)) // In some cases, the last iteration will read bytes after the end of the data. We cache the value, and // set it to zero to make sure no dirty bytes are read in that section. let afterPtr := add(endPtr, 0x20) let afterCache := mload(afterPtr) mstore(afterPtr, 0x00) // Run over the input, 3 bytes at a time for { } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 byte (24 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F to bitmask the least significant 6 bits. // Use this as an index into the lookup table, mload an entire word // so the desired character is in the least significant byte, and // mstore8 this least significant byte into the result and continue. mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // Reset the value that was cached mstore(afterPtr, afterCache) if withPadding { // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } } return result; } } // File: contracts/Shigupass.sol pragma solidity ^0.8.20; contract ShiguPassNFT is ERC721, Ownable { using Strings for uint256; uint256 public constant MAX_SUPPLY = 10000; uint256 public totalSupply; // 8 colors for JAB code (3 bits per module) string[8] private colors = [ "#000000", // Black (000) "#FF0000", // Red (001) "#00FF00", // Green (010) "#0000FF", // Blue (011) "#00FFFF", // Cyan (100) "#FF00FF", // Magenta (101) "#FFFF00", // Yellow (110) "#FFFFFF" // White (111) ]; constructor() ERC721("ShiguPassNFT", "SHIGU") Ownable(msg.sender) { totalSupply = 0; } // Mint function: Creates a new NFT with a scannable JAB code function mint(address to) public onlyOwner { require(totalSupply < MAX_SUPPLY, "Max supply reached"); uint256 tokenId = totalSupply; _safeMint(to, tokenId); totalSupply++; } // Batch mint function: Mints multiple NFTs to a specified address function batchMint(address to, uint256 quantity) public onlyOwner { require(quantity > 0, "Quantity must be greater than 0"); require(quantity <= 500, "Cannot mint more than 500 NFTs at a time"); require(totalSupply + quantity <= MAX_SUPPLY, "Minting would exceed max supply"); for (uint256 i = 0; i < quantity; i++) { uint256 tokenId = totalSupply; _safeMint(to, tokenId); totalSupply++; } } // Convert tokenId to "ID:XXXX" string (e.g., "ID:0000") function toIdString(uint256 tokenId) internal pure returns (string memory) { string memory idStr = tokenId.toString(); if (tokenId < 10) return string(abi.encodePacked("ID:000", idStr)); if (tokenId < 100) return string(abi.encodePacked("ID:00", idStr)); if (tokenId < 1000) return string(abi.encodePacked("ID:0", idStr)); return string(abi.encodePacked("ID:", idStr)); } // Simplified Reed-Solomon-like error correction (improved) function computeErrorCorrection(bytes memory data) internal pure returns (bytes memory) { bytes memory ecc = new bytes(10); for (uint256 i = 0; i < 10; i++) { uint256 sum = 0; for (uint256 j = 0; j < data.length; j++) { sum ^= (uint8(data[j]) + (i * j)) % 256; } ecc[i] = bytes1(uint8(sum)); } return ecc; } // Helper function to get the color for finder patterns function getFinderPatternColor(uint256 x, uint256 y, uint256 cornerX, uint256 cornerY) internal view returns (string memory) { if ((x == cornerX || x == cornerX + 4 || y == cornerY || y == cornerY + 4)) { return colors[0]; // Black (border) } else if (x == cornerX + 2 && y == cornerY + 2) { return colors[7]; // White (center) } else if (x == cornerX + 1 && y == cornerY + 1) { return colors[1]; // Red (inner marker) } else if (x == cornerX + 3 && y == cornerY + 3) { return colors[2]; // Green (inner marker) } else { return colors[4]; // Cyan (filler) } } // Helper function to get the color for data bits function getDataColor(uint256 bitIndex, uint256[8] memory binaryData) internal pure returns (uint256) { uint256 wordIndex = bitIndex / 24; uint256 bitOffset = 21 - (bitIndex % 24); uint256 bitTriple = 0; if (bitOffset >= 2) { bitTriple = (binaryData[wordIndex] >> bitOffset) & 0x7; } else { uint256 remainingBits = bitOffset + 1; bitTriple = (binaryData[wordIndex] & ((1 << remainingBits) - 1)) << (3 - remainingBits); if (wordIndex + 1 < 8) { bitTriple |= (binaryData[wordIndex + 1] >> (24 - (3 - remainingBits))) & ((1 << (3 - remainingBits)) - 1); } } return bitTriple; } // Generate scannable SVG JAB code for tokenId (0-9999) function generateJABCode(uint256 tokenId) internal view returns (string memory) { require(tokenId < 10000, "Token ID out of range"); // SVG header and footer string memory svgHeader = '<svg xmlns="http://www.w3.org/2000/svg" width="252" height="252" viewBox="0 0 21 21">'; string memory svgFooter = '</svg>'; // Encode "ID:XXXX" (7 bytes = 56 bits) string memory tokenIdStr = toIdString(tokenId); bytes memory data = bytes(tokenIdStr); // Add error correction (10 bytes of ECC) bytes memory ecc = computeErrorCorrection(data); bytes memory fullData = new bytes(data.length + ecc.length); for (uint256 i = 0; i < data.length; i++) { fullData[i] = data[i]; } for (uint256 i = 0; i < ecc.length; i++) { fullData[data.length + i] = ecc[i]; } // Add metadata: 1 byte for version, 1 byte for data length, 1 byte for ECC level, 1 byte for format bytes memory finalData = new bytes(21); finalData[0] = bytes1(uint8(1)); // Version 1 finalData[1] = bytes1(uint8(data.length)); // Data length finalData[2] = bytes1(uint8(2)); // ECC level 2 (medium) finalData[3] = bytes1(uint8(0)); // Format (0 for text) for (uint256 i = 0; i < 17; i++) { finalData[i + 4] = fullData[i]; } // Pack into uint256 array (24 bits per slot) uint256[8] memory binaryData; for (uint256 i = 0; i < 21; i++) { uint256 byteValue = uint256(uint8(finalData[i])); uint256 wordIndex = i / 3; uint256 bitOffset = (2 - (i % 3)) * 8; binaryData[wordIndex] |= byteValue << bitOffset; } // Use a string array to build SVG in chunks string[] memory svgParts = new string[](22); // 21 rows + 1 for header svgParts[0] = svgHeader; uint256 partIndex = 1; uint256 bitIndex = 0; // Fill the 21x21 grid for (uint256 y = 0; y < 21; y++) { string memory row = ""; for (uint256 x = 0; x < 21; x++) { string memory color; // Finder patterns (4 corners, 5x5 blocks) if (x >= 0 && x <= 4 && y >= 0 && y <= 4) { color = getFinderPatternColor(x, y, 0, 0); } else if (x >= 16 && x <= 20 && y >= 0 && y <= 4) { color = getFinderPatternColor(x, y, 16, 0); } else if (x >= 0 && x <= 4 && y >= 16 && y <= 20) { color = getFinderPatternColor(x, y, 0, 16); } else if (x >= 16 && x <= 20 && y >= 16 && y <= 20) { color = getFinderPatternColor(x, y, 16, 16); } // Alignment pattern (center, 3x3 block) else if (x >= 9 && x <= 11 && y >= 9 && y <= 11) { if (x == 10 && y == 10) { color = colors[7]; // White (center) } else { color = colors[0]; // Black (border) } } else if (bitIndex < 168) { // Read 3 bits at a time uint256 bitTriple = getDataColor(bitIndex, binaryData); color = colors[bitTriple]; bitIndex += 3; } else { // Filler (replicate the reference image's pattern) uint256 seed = (x * 29 + y * 17) % 8; color = colors[seed]; } row = string(abi.encodePacked( row, '<rect x="', x.toString(), '" y="', y.toString(), '" width="1" height="1" fill="', color, '" />' )); } svgParts[partIndex] = row; partIndex++; } // Combine SVG parts bytes memory svgBytes = bytes(svgParts[0]); for (uint256 i = 1; i < svgParts.length; i++) { svgBytes = abi.encodePacked(svgBytes, svgParts[i]); } svgBytes = abi.encodePacked(svgBytes, svgFooter); return string(svgBytes); } // Generate on-chain metadata with JAB code image and tokenId function tokenURI(uint256 tokenId) public view override returns (string memory) { require(ownerOf(tokenId) != address(0), "Token does not exist"); require(tokenId < 10000, "Token ID out of range"); string memory svg = generateJABCode(tokenId); string memory image = string(abi.encodePacked("data:image/svg+xml;base64,", Base64.encode(bytes(svg)))); string memory json = string(abi.encodePacked( '{"name": "ShiguPass #', tokenId.toString(), '", "description": "This ShiguPass is on-chain JAB code NFT encoding token ID ', tokenId.toString(), '", ', '"image": "', image, '", ', '"attributes": [{"trait_type": "Token ID", "value": "', tokenId.toString(), '"}]}' )); return string(abi.encodePacked( "data:application/json;base64,", Base64.encode(bytes(json)) )); } }
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526040518061010001604052806040518060400160405280600781526020017f233030303030300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f234646303030300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233030464630300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233030303046460000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f233030464646460000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f234646303046460000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f234646464630300000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f234646464646460000000000000000000000000000000000000000000000000081525081525060089060086101f69291906103e0565b50348015610202575f80fd5b50336040518060400160405280600c81526020017f5368696775506173734e465400000000000000000000000000000000000000008152506040518060400160405280600581526020017f5348494755000000000000000000000000000000000000000000000000000000815250815f908161027e91906106e1565b50806001908161028e91906106e1565b5050505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610301575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016102f891906107ef565b60405180910390fd5b6103108161031d60201b60201c565b505f600781905550610808565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b826008810192821561041b579160200282015b8281111561041a57825182908161040a91906106e1565b50916020019190600101906103f3565b5b509050610428919061042c565b5090565b5b8082111561044b575f8181610442919061044f565b5060010161042d565b5090565b50805461045b9061050b565b5f825580601f1061046c5750610489565b601f0160209004905f5260205f2090810190610488919061048c565b5b50565b5b808211156104a3575f815f90555060010161048d565b5090565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061052257607f821691505b602082108103610535576105346104de565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026105977fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261055c565b6105a1868361055c565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6105e56105e06105db846105b9565b6105c2565b6105b9565b9050919050565b5f819050919050565b6105fe836105cb565b61061261060a826105ec565b848454610568565b825550505050565b5f90565b61062661061a565b6106318184846105f5565b505050565b5b81811015610654576106495f8261061e565b600181019050610637565b5050565b601f8211156106995761066a8161053b565b6106738461054d565b81016020851015610682578190505b61069661068e8561054d565b830182610636565b50505b505050565b5f82821c905092915050565b5f6106b95f198460080261069e565b1980831691505092915050565b5f6106d183836106aa565b9150826002028217905092915050565b6106ea826104a7565b67ffffffffffffffff811115610703576107026104b1565b5b61070d825461050b565b610718828285610658565b5f60209050601f831160018114610749575f8415610737578287015190505b61074185826106c6565b8655506107a8565b601f1984166107578661053b565b5f5b8281101561077e57848901518255600182019150602085019450602081019050610759565b8683101561079b5784890151610797601f8916826106aa565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6107d9826107b0565b9050919050565b6107e9816107cf565b82525050565b5f6020820190506108025f8301846107e0565b92915050565b61422b806108155f395ff3fe608060405234801561000f575f80fd5b506004361061012a575f3560e01c80636a627842116100ab578063a22cb4651161006f578063a22cb4651461031a578063b88d4fde14610336578063c87b56dd14610352578063e985e9c514610382578063f2fde38b146103b25761012a565b80636a6278421461028857806370a08231146102a4578063715018a6146102d45780638da5cb5b146102de57806395d89b41146102fc5761012a565b806323b872dd116100f257806323b872dd146101e657806332cb6b0c1461020257806342842e0e1461022057806343508b051461023c5780636352211e146102585761012a565b806301ffc9a71461012e57806306fdde031461015e578063081812fc1461017c578063095ea7b3146101ac57806318160ddd146101c8575b5f80fd5b61014860048036038101906101439190612efe565b6103ce565b6040516101559190612f43565b60405180910390f35b6101666104af565b6040516101739190612fcc565b60405180910390f35b6101966004803603810190610191919061301f565b61053e565b6040516101a39190613089565b60405180910390f35b6101c660048036038101906101c191906130cc565b610559565b005b6101d061056f565b6040516101dd9190613119565b60405180910390f35b61020060048036038101906101fb9190613132565b610575565b005b61020a610674565b6040516102179190613119565b60405180910390f35b61023a60048036038101906102359190613132565b61067a565b005b610256600480360381019061025191906130cc565b610699565b005b610272600480360381019061026d919061301f565b6107be565b60405161027f9190613089565b60405180910390f35b6102a2600480360381019061029d9190613182565b6107cf565b005b6102be60048036038101906102b99190613182565b610848565b6040516102cb9190613119565b60405180910390f35b6102dc6108fe565b005b6102e6610911565b6040516102f39190613089565b60405180910390f35b610304610939565b6040516103119190612fcc565b60405180910390f35b610334600480360381019061032f91906131d7565b6109c9565b005b610350600480360381019061034b9190613341565b6109df565b005b61036c6004803603810190610367919061301f565b610a04565b6040516103799190612fcc565b60405180910390f35b61039c600480360381019061039791906133c1565b610b6a565b6040516103a99190612f43565b60405180910390f35b6103cc60048036038101906103c79190613182565b610bf8565b005b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061049857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806104a857506104a782610c7c565b5b9050919050565b60605f80546104bd9061342c565b80601f01602080910402602001604051908101604052809291908181526020018280546104e99061342c565b80156105345780601f1061050b57610100808354040283529160200191610534565b820191905f5260205f20905b81548152906001019060200180831161051757829003601f168201915b5050505050905090565b5f61054882610ce5565b5061055282610d6b565b9050919050565b61056b8282610566610da4565b610dab565b5050565b60075481565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036105e5575f6040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016105dc9190613089565b60405180910390fd5b5f6105f883836105f3610da4565b610dbd565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461066e578382826040517f64283d7b0000000000000000000000000000000000000000000000000000000081526004016106659392919061345c565b60405180910390fd5b50505050565b61271081565b61069483838360405180602001604052805f8152506109df565b505050565b6106a1610fc8565b5f81116106e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106da906134db565b60405180910390fd5b6101f4811115610728576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071f90613569565b60405180910390fd5b6127108160075461073991906135b4565b111561077a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077190613631565b60405180910390fd5b5f5b818110156107b9575f6007549050610794848261104f565b60075f8154809291906107a69061364f565b919050555050808060010191505061077c565b505050565b5f6107c882610ce5565b9050919050565b6107d7610fc8565b6127106007541061081d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610814906136e0565b60405180910390fd5b5f600754905061082d828261104f565b60075f81548092919061083f9061364f565b91905055505050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036108b9575f6040517f89c62b640000000000000000000000000000000000000000000000000000000081526004016108b09190613089565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610906610fc8565b61090f5f61106c565b565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546109489061342c565b80601f01602080910402602001604051908101604052809291908181526020018280546109749061342c565b80156109bf5780601f10610996576101008083540402835291602001916109bf565b820191905f5260205f20905b8154815290600101906020018083116109a257829003601f168201915b5050505050905090565b6109db6109d4610da4565b838361112f565b5050565b6109ea848484610575565b6109fe6109f5610da4565b85858585611298565b50505050565b60605f73ffffffffffffffffffffffffffffffffffffffff16610a26836107be565b73ffffffffffffffffffffffffffffffffffffffff1603610a7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7390613748565b60405180910390fd5b6127108210610ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab7906137b0565b60405180910390fd5b5f610aca83611444565b90505f610ad682611eff565b604051602001610ae69190613852565b60405160208183030381529060405290505f610b0185611f2c565b610b0a86611f2c565b83610b1488611f2c565b604051602001610b279493929190613aa1565b6040516020818303038152906040529050610b4181611eff565b604051602001610b519190613b75565b6040516020818303038152906040529350505050919050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b610c00610fc8565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c70575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610c679190613089565b60405180910390fd5b610c798161106c565b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f80610cf083611ff6565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d6257826040517f7e273289000000000000000000000000000000000000000000000000000000008152600401610d599190613119565b60405180910390fd5b80915050919050565b5f60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f33905090565b610db8838383600161202f565b505050565b5f80610dc884611ff6565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610e0957610e088184866121ee565b5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e9457610e485f855f8061202f565b600160035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825403925050819055505b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614610f1357600160035f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8460025f8681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b610fd0610da4565b73ffffffffffffffffffffffffffffffffffffffff16610fee610911565b73ffffffffffffffffffffffffffffffffffffffff161461104d57611011610da4565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016110449190613089565b60405180910390fd5b565b611068828260405180602001604052805f8152506122b1565b5050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361119f57816040517f5b08ba180000000000000000000000000000000000000000000000000000000081526004016111969190613089565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161128b9190612f43565b60405180910390a3505050565b5f8373ffffffffffffffffffffffffffffffffffffffff163b111561143d578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02868685856040518563ffffffff1660e01b81526004016112f69493929190613be8565b6020604051808303815f875af192505050801561133157506040513d601f19601f8201168201806040525081019061132e9190613c46565b60015b6113b2573d805f811461135f576040519150601f19603f3d011682016040523d82523d5f602084013e611364565b606091505b505f8151036113aa57836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016113a19190613089565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461143b57836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016114329190613089565b60405180910390fd5b505b5050505050565b6060612710821061148a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611481906137b0565b60405180910390fd5b5f6040518060800160405280605581526020016141616055913990505f6040518060400160405280600681526020017f3c2f7376673e000000000000000000000000000000000000000000000000000081525090505f6114e9856122d4565b90505f8190505f6114f98261239f565b90505f8151835161150a91906135b4565b67ffffffffffffffff8111156115235761152261321d565b5b6040519080825280601f01601f1916602001820160405280156115555781602001600182028036833780820191505090505b5090505f5b83518110156115cf5783818151811061157657611575613c71565b5b602001015160f81c60f81b82828151811061159457611593613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350808060010191505061155a565b505f5b8251811015611653578281815181106115ee576115ed613c71565b5b602001015160f81c60f81b8282865161160791906135b4565b8151811061161857611617613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a90535080806001019150506115d2565b505f601567ffffffffffffffff8111156116705761166f61321d565b5b6040519080825280601f01601f1916602001820160405280156116a25781602001600182028036833780820191505090505b509050600160f81b815f815181106116bd576116bc613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350835160f81b8160018151811061170457611703613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350600260f81b8160028151811061174b5761174a613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f60f81b8160038151811061179157611790613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f5b6011811015611842578281815181106117dd576117dc613c71565b5b602001015160f81c60f81b826004836117f691906135b4565b8151811061180757611806613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a90535080806001019150506117c1565b5061184b612e75565b5f5b60158110156118eb575f83828151811061186a57611869613c71565b5b602001015160f81c60f81b60f81c60ff1690505f60038361188b9190613ccb565b90505f600860038561189d9190613cfb565b60026118a99190613d2b565b6118b39190613d5e565b90508083901b8583600881106118cc576118cb613c71565b5b602002018181511791508181525050505050808060010191505061184d565b505f601667ffffffffffffffff8111156119085761190761321d565b5b60405190808252806020026020018201604052801561193b57816020015b60608152602001906001900390816119265790505b50905088815f8151811061195257611951613c71565b5b60200260200101819052505f600190505f805b6015811015611e4d575f60405180602001604052805f81525090505f5b6015811015611e115760605f821015801561199e575060048211155b80156119aa57505f8410155b80156119b7575060048411155b156119cf576119c882855f806124bf565b9050611dcb565b601082101580156119e1575060148211155b80156119ed57505f8410155b80156119fa575060048411155b15611a1357611a0c828560105f6124bf565b9050611dca565b5f8210158015611a24575060048211155b8015611a31575060108410155b8015611a3e575060148411155b15611a5757611a5082855f60106124bf565b9050611dc9565b60108210158015611a69575060148211155b8015611a76575060108410155b8015611a83575060148411155b15611a9c57611a9582856010806124bf565b9050611dc8565b60098210158015611aae5750600b8211155b8015611abb575060098410155b8015611ac85750600b8411155b15611c2a57600a82148015611add5750600a84145b15611b86576008600760088110611af757611af6613c71565b5b018054611b039061342c565b80601f0160208091040260200160405190810160405280929190818152602001828054611b2f9061342c565b8015611b7a5780601f10611b5157610100808354040283529160200191611b7a565b820191905f5260205f20905b815481529060010190602001808311611b5d57829003601f168201915b50505050509050611c25565b60085f60088110611b9a57611b99613c71565b5b018054611ba69061342c565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd29061342c565b8015611c1d5780601f10611bf457610100808354040283529160200191611c1d565b820191905f5260205f20905b815481529060010190602001808311611c0057829003601f168201915b505050505090505b611dc7565b60a8851015611cf3575f611c3e868a6128b7565b905060088160088110611c5457611c53613c71565b5b018054611c609061342c565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8c9061342c565b8015611cd75780601f10611cae57610100808354040283529160200191611cd7565b820191905f5260205f20905b815481529060010190602001808311611cba57829003601f168201915b50505050509150600386611ceb91906135b4565b955050611dc6565b5f6008601186611d039190613d5e565b601d85611d109190613d5e565b611d1a91906135b4565b611d249190613cfb565b905060088160088110611d3a57611d39613c71565b5b018054611d469061342c565b80601f0160208091040260200160405190810160405280929190818152602001828054611d729061342c565b8015611dbd5780601f10611d9457610100808354040283529160200191611dbd565b820191905f5260205f20905b815481529060010190602001808311611da057829003601f168201915b50505050509150505b5b5b5b5b5b82611dd583611f2c565b611dde86611f2c565b83604051602001611df29493929190613ec7565b6040516020818303038152906040529250508080600101915050611982565b5080858581518110611e2657611e25613c71565b5b60200260200101819052508380611e3c9061364f565b945050508080600101915050611965565b505f835f81518110611e6257611e61613c71565b5b602002602001015190505f600190505b8451811015611ec65781858281518110611e8f57611e8e613c71565b5b6020026020010151604051602001611ea8929190613f6a565b60405160208183030381529060405291508080600101915050611e72565b50808b604051602001611eda929190613f6a565b6040516020818303038152906040529050809c50505050505050505050505050919050565b6060611f25826040518060600160405280604081526020016141b66040913960016129e2565b9050919050565b60605f6001611f3a84612b71565b0190505f8167ffffffffffffffff811115611f5857611f5761321d565b5b6040519080825280601f01601f191660200182016040528015611f8a5781602001600182028036833780820191505090505b5090505f82602001820190505b600115611feb578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581611fe057611fdf613c9e565b5b0494505f8503611f97575b819350505050919050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b808061206757505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612199575f61207684610ce5565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156120e057508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b80156120f357506120f18184610b6a565b155b1561213557826040517fa9fbf51f00000000000000000000000000000000000000000000000000000000815260040161212c9190613089565b60405180910390fd5b811561219757838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b8360045f8581526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b6121f9838383612cc2565b6122ac575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361226d57806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016122649190613119565b60405180910390fd5b81816040517f177e802f0000000000000000000000000000000000000000000000000000000081526004016122a3929190613f8d565b60405180910390fd5b505050565b6122bb8383612d82565b6122cf6122c6610da4565b5f858585611298565b505050565b60605f6122e083611f2c565b9050600a83101561231357806040516020016122fc9190613ffe565b60405160208183030381529060405291505061239a565b6064831015612344578060405160200161232d9190614069565b60405160208183030381529060405291505061239a565b6103e8831015612376578060405160200161235f91906140d4565b60405160208183030381529060405291505061239a565b80604051602001612387919061413f565b6040516020818303038152906040529150505b919050565b60605f600a67ffffffffffffffff8111156123bd576123bc61321d565b5b6040519080825280601f01601f1916602001820160405280156123ef5781602001600182028036833780820191505090505b5090505f5b600a8110156124b5575f805b85518110156124615761010081846124189190613d5e565b87838151811061242b5761242a613c71565b5b602001015160f81c60f81b60f81c60ff1661244691906135b4565b6124509190613cfb565b821891508080600101915050612400565b508060f81b83838151811061247957612478613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505080806001019150506123f4565b5080915050919050565b6060828514806124da57506004836124d791906135b4565b85145b806124e457508184145b806124fa57506004826124f791906135b4565b84145b156125a25760085f6008811061251357612512613c71565b5b01805461251f9061342c565b80601f016020809104026020016040519081016040528092919081815260200182805461254b9061342c565b80156125965780601f1061256d57610100808354040283529160200191612596565b820191905f5260205f20905b81548152906001019060200180831161257957829003601f168201915b505050505090506128af565b6002836125af91906135b4565b851480156125c857506002826125c591906135b4565b84145b156126715760086007600881106125e2576125e1613c71565b5b0180546125ee9061342c565b80601f016020809104026020016040519081016040528092919081815260200182805461261a9061342c565b80156126655780601f1061263c57610100808354040283529160200191612665565b820191905f5260205f20905b81548152906001019060200180831161264857829003601f168201915b505050505090506128af565b60018361267e91906135b4565b85148015612697575060018261269491906135b4565b84145b156127405760086001600881106126b1576126b0613c71565b5b0180546126bd9061342c565b80601f01602080910402602001604051908101604052809291908181526020018280546126e99061342c565b80156127345780601f1061270b57610100808354040283529160200191612734565b820191905f5260205f20905b81548152906001019060200180831161271757829003601f168201915b505050505090506128af565b60038361274d91906135b4565b85148015612766575060038261276391906135b4565b84145b1561280f5760086002600881106127805761277f613c71565b5b01805461278c9061342c565b80601f01602080910402602001604051908101604052809291908181526020018280546127b89061342c565b80156128035780601f106127da57610100808354040283529160200191612803565b820191905f5260205f20905b8154815290600101906020018083116127e657829003601f168201915b505050505090506128af565b600860046008811061282457612823613c71565b5b0180546128309061342c565b80601f016020809104026020016040519081016040528092919081815260200182805461285c9061342c565b80156128a75780601f1061287e576101008083540402835291602001916128a7565b820191905f5260205f20905b81548152906001019060200180831161288a57829003601f168201915b505050505090505b949350505050565b5f806018846128c69190613ccb565b90505f6018856128d69190613cfb565b60156128e29190613d2b565b90505f600282106129125760078286856008811061290357612902613c71565b5b6020020151901c1690506129d6565b5f60018361292091906135b4565b905080600361292f9190613d2b565b6001826001901b6129409190613d2b565b87866008811061295357612952613c71565b5b602002015116901b9150600860018561296c91906135b4565b10156129d45760018160036129819190613d2b565b6001901b61298f9190613d2b565b81600361299c9190613d2b565b60186129a89190613d2b565b876001876129b691906135b4565b600881106129c7576129c6613c71565b5b6020020151901c16821791505b505b80935050505092915050565b60605f845103612a025760405180602001604052805f8152509050612b6a565b5f82612a33576003600286516004612a1a9190613d5e565b612a2491906135b4565b612a2e9190613ccb565b612a5a565b600360028651612a4391906135b4565b612a4d9190613ccb565b6004612a599190613d5e565b5b90505f8167ffffffffffffffff811115612a7757612a7661321d565b5b6040519080825280601f01601f191660200182016040528015612aa95781602001600182028036833780820191505090505b509050600185016020820187885189016020810180515f82525b82841015612b1e576003840193508351603f8160121c168701518653600186019550603f81600c1c168701518653600186019550603f8160061c168701518653600186019550603f8116870151865360018601955050612ac3565b8082528915612b5e5760038c510660018114612b415760028114612b5457612b5c565b603d6001870353603d6002870353612b5c565b603d60018703535b505b50505050505080925050505b9392505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612bcd577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612bc357612bc2613c9e565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612c0a576d04ee2d6d415b85acef81000000008381612c0057612bff613c9e565b5b0492506020810190505b662386f26fc100008310612c3957662386f26fc100008381612c2f57612c2e613c9e565b5b0492506010810190505b6305f5e1008310612c62576305f5e1008381612c5857612c57613c9e565b5b0492506008810190505b6127108310612c87576127108381612c7d57612c7c613c9e565b5b0492506004810190505b60648310612caa5760648381612ca057612c9f613c9e565b5b0492506002810190505b600a8310612cb9576001810190505b80915050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612d7957508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612d3a5750612d398484610b6a565b5b80612d7857508273ffffffffffffffffffffffffffffffffffffffff16612d6083610d6b565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612df2575f6040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401612de99190613089565b60405180910390fd5b5f612dfe83835f610dbd565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612e70575f6040517f73c6ac6e000000000000000000000000000000000000000000000000000000008152600401612e679190613089565b60405180910390fd5b505050565b604051806101000160405280600890602082028036833780820191505090505090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612edd81612ea9565b8114612ee7575f80fd5b50565b5f81359050612ef881612ed4565b92915050565b5f60208284031215612f1357612f12612ea1565b5b5f612f2084828501612eea565b91505092915050565b5f8115159050919050565b612f3d81612f29565b82525050565b5f602082019050612f565f830184612f34565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612f9e82612f5c565b612fa88185612f66565b9350612fb8818560208601612f76565b612fc181612f84565b840191505092915050565b5f6020820190508181035f830152612fe48184612f94565b905092915050565b5f819050919050565b612ffe81612fec565b8114613008575f80fd5b50565b5f8135905061301981612ff5565b92915050565b5f6020828403121561303457613033612ea1565b5b5f6130418482850161300b565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6130738261304a565b9050919050565b61308381613069565b82525050565b5f60208201905061309c5f83018461307a565b92915050565b6130ab81613069565b81146130b5575f80fd5b50565b5f813590506130c6816130a2565b92915050565b5f80604083850312156130e2576130e1612ea1565b5b5f6130ef858286016130b8565b92505060206131008582860161300b565b9150509250929050565b61311381612fec565b82525050565b5f60208201905061312c5f83018461310a565b92915050565b5f805f6060848603121561314957613148612ea1565b5b5f613156868287016130b8565b9350506020613167868287016130b8565b92505060406131788682870161300b565b9150509250925092565b5f6020828403121561319757613196612ea1565b5b5f6131a4848285016130b8565b91505092915050565b6131b681612f29565b81146131c0575f80fd5b50565b5f813590506131d1816131ad565b92915050565b5f80604083850312156131ed576131ec612ea1565b5b5f6131fa858286016130b8565b925050602061320b858286016131c3565b9150509250929050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61325382612f84565b810181811067ffffffffffffffff821117156132725761327161321d565b5b80604052505050565b5f613284612e98565b9050613290828261324a565b919050565b5f67ffffffffffffffff8211156132af576132ae61321d565b5b6132b882612f84565b9050602081019050919050565b828183375f83830152505050565b5f6132e56132e084613295565b61327b565b90508281526020810184848401111561330157613300613219565b5b61330c8482856132c5565b509392505050565b5f82601f83011261332857613327613215565b5b81356133388482602086016132d3565b91505092915050565b5f805f806080858703121561335957613358612ea1565b5b5f613366878288016130b8565b9450506020613377878288016130b8565b93505060406133888782880161300b565b925050606085013567ffffffffffffffff8111156133a9576133a8612ea5565b5b6133b587828801613314565b91505092959194509250565b5f80604083850312156133d7576133d6612ea1565b5b5f6133e4858286016130b8565b92505060206133f5858286016130b8565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061344357607f821691505b602082108103613456576134556133ff565b5b50919050565b5f60608201905061346f5f83018661307a565b61347c602083018561310a565b613489604083018461307a565b949350505050565b7f5175616e74697479206d7573742062652067726561746572207468616e2030005f82015250565b5f6134c5601f83612f66565b91506134d082613491565b602082019050919050565b5f6020820190508181035f8301526134f2816134b9565b9050919050565b7f43616e6e6f74206d696e74206d6f7265207468616e20353030204e46547320615f8201527f7420612074696d65000000000000000000000000000000000000000000000000602082015250565b5f613553602883612f66565b915061355e826134f9565b604082019050919050565b5f6020820190508181035f83015261358081613547565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6135be82612fec565b91506135c983612fec565b92508282019050808211156135e1576135e0613587565b5b92915050565b7f4d696e74696e6720776f756c6420657863656564206d617820737570706c79005f82015250565b5f61361b601f83612f66565b9150613626826135e7565b602082019050919050565b5f6020820190508181035f8301526136488161360f565b9050919050565b5f61365982612fec565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361368b5761368a613587565b5b600182019050919050565b7f4d617820737570706c79207265616368656400000000000000000000000000005f82015250565b5f6136ca601283612f66565b91506136d582613696565b602082019050919050565b5f6020820190508181035f8301526136f7816136be565b9050919050565b7f546f6b656e20646f6573206e6f742065786973740000000000000000000000005f82015250565b5f613732601483612f66565b915061373d826136fe565b602082019050919050565b5f6020820190508181035f83015261375f81613726565b9050919050565b7f546f6b656e204944206f7574206f662072616e676500000000000000000000005f82015250565b5f61379a601583612f66565b91506137a582613766565b602082019050919050565b5f6020820190508181035f8301526137c78161378e565b9050919050565b5f81905092915050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000005f82015250565b5f61380c601a836137ce565b9150613817826137d8565b601a82019050919050565b5f61382c82612f5c565b61383681856137ce565b9350613846818560208601612f76565b80840191505092915050565b5f61385c82613800565b91506138688284613822565b915081905092915050565b7f7b226e616d65223a2022536869677550617373202300000000000000000000005f82015250565b5f6138a76015836137ce565b91506138b282613873565b601582019050919050565b7f222c20226465736372697074696f6e223a2022546869732053686967755061735f8201527f73206973206f6e2d636861696e204a414220636f6465204e465420656e636f6460208201527f696e6720746f6b656e2049442000000000000000000000000000000000000000604082015250565b5f61393d604d836137ce565b9150613948826138bd565b604d82019050919050565b7f222c2000000000000000000000000000000000000000000000000000000000005f82015250565b5f6139876003836137ce565b915061399282613953565b600382019050919050565b7f22696d616765223a2022000000000000000000000000000000000000000000005f82015250565b5f6139d1600a836137ce565b91506139dc8261399d565b600a82019050919050565b7f2261747472696275746573223a205b7b2274726169745f74797065223a2022545f8201527f6f6b656e204944222c202276616c7565223a2022000000000000000000000000602082015250565b5f613a416034836137ce565b9150613a4c826139e7565b603482019050919050565b7f227d5d7d000000000000000000000000000000000000000000000000000000005f82015250565b5f613a8b6004836137ce565b9150613a9682613a57565b600482019050919050565b5f613aab8261389b565b9150613ab78287613822565b9150613ac282613931565b9150613ace8286613822565b9150613ad98261397b565b9150613ae4826139c5565b9150613af08285613822565b9150613afb8261397b565b9150613b0682613a35565b9150613b128284613822565b9150613b1d82613a7f565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000005f82015250565b5f613b5f601d836137ce565b9150613b6a82613b2b565b601d82019050919050565b5f613b7f82613b53565b9150613b8b8284613822565b915081905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f613bba82613b96565b613bc48185613ba0565b9350613bd4818560208601612f76565b613bdd81612f84565b840191505092915050565b5f608082019050613bfb5f83018761307a565b613c08602083018661307a565b613c15604083018561310a565b8181036060830152613c278184613bb0565b905095945050505050565b5f81519050613c4081612ed4565b92915050565b5f60208284031215613c5b57613c5a612ea1565b5b5f613c6884828501613c32565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613cd582612fec565b9150613ce083612fec565b925082613cf057613cef613c9e565b5b828204905092915050565b5f613d0582612fec565b9150613d1083612fec565b925082613d2057613d1f613c9e565b5b828206905092915050565b5f613d3582612fec565b9150613d4083612fec565b9250828203905081811115613d5857613d57613587565b5b92915050565b5f613d6882612fec565b9150613d7383612fec565b9250828202613d8181612fec565b91508282048414831517613d9857613d97613587565b5b5092915050565b7f3c7265637420783d2200000000000000000000000000000000000000000000005f82015250565b5f613dd36009836137ce565b9150613dde82613d9f565b600982019050919050565b7f2220793d220000000000000000000000000000000000000000000000000000005f82015250565b5f613e1d6005836137ce565b9150613e2882613de9565b600582019050919050565b7f222077696474683d223122206865696768743d2231222066696c6c3d220000005f82015250565b5f613e67601d836137ce565b9150613e7282613e33565b601d82019050919050565b7f22202f3e000000000000000000000000000000000000000000000000000000005f82015250565b5f613eb16004836137ce565b9150613ebc82613e7d565b600482019050919050565b5f613ed28287613822565b9150613edd82613dc7565b9150613ee98286613822565b9150613ef482613e11565b9150613f008285613822565b9150613f0b82613e5b565b9150613f178284613822565b9150613f2282613ea5565b915081905095945050505050565b5f81905092915050565b5f613f4482613b96565b613f4e8185613f30565b9350613f5e818560208601612f76565b80840191505092915050565b5f613f758285613f3a565b9150613f818284613822565b91508190509392505050565b5f604082019050613fa05f83018561307a565b613fad602083018461310a565b9392505050565b7f49443a30303000000000000000000000000000000000000000000000000000005f82015250565b5f613fe86006836137ce565b9150613ff382613fb4565b600682019050919050565b5f61400882613fdc565b91506140148284613822565b915081905092915050565b7f49443a30300000000000000000000000000000000000000000000000000000005f82015250565b5f6140536005836137ce565b915061405e8261401f565b600582019050919050565b5f61407382614047565b915061407f8284613822565b915081905092915050565b7f49443a30000000000000000000000000000000000000000000000000000000005f82015250565b5f6140be6004836137ce565b91506140c98261408a565b600482019050919050565b5f6140de826140b2565b91506140ea8284613822565b915081905092915050565b7f49443a00000000000000000000000000000000000000000000000000000000005f82015250565b5f6141296003836137ce565b9150614134826140f5565b600382019050919050565b5f6141498261411d565b91506141558284613822565b91508190509291505056fe3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222077696474683d2232353222206865696768743d22323532222076696577426f783d22302030203231203231223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212204786a7750234b50a5dcf6597f5aa6a3a7292af5615ea90fc4e220f5e705b528a64736f6c634300081a0033
Deployed Bytecode
0x608060405234801561000f575f80fd5b506004361061012a575f3560e01c80636a627842116100ab578063a22cb4651161006f578063a22cb4651461031a578063b88d4fde14610336578063c87b56dd14610352578063e985e9c514610382578063f2fde38b146103b25761012a565b80636a6278421461028857806370a08231146102a4578063715018a6146102d45780638da5cb5b146102de57806395d89b41146102fc5761012a565b806323b872dd116100f257806323b872dd146101e657806332cb6b0c1461020257806342842e0e1461022057806343508b051461023c5780636352211e146102585761012a565b806301ffc9a71461012e57806306fdde031461015e578063081812fc1461017c578063095ea7b3146101ac57806318160ddd146101c8575b5f80fd5b61014860048036038101906101439190612efe565b6103ce565b6040516101559190612f43565b60405180910390f35b6101666104af565b6040516101739190612fcc565b60405180910390f35b6101966004803603810190610191919061301f565b61053e565b6040516101a39190613089565b60405180910390f35b6101c660048036038101906101c191906130cc565b610559565b005b6101d061056f565b6040516101dd9190613119565b60405180910390f35b61020060048036038101906101fb9190613132565b610575565b005b61020a610674565b6040516102179190613119565b60405180910390f35b61023a60048036038101906102359190613132565b61067a565b005b610256600480360381019061025191906130cc565b610699565b005b610272600480360381019061026d919061301f565b6107be565b60405161027f9190613089565b60405180910390f35b6102a2600480360381019061029d9190613182565b6107cf565b005b6102be60048036038101906102b99190613182565b610848565b6040516102cb9190613119565b60405180910390f35b6102dc6108fe565b005b6102e6610911565b6040516102f39190613089565b60405180910390f35b610304610939565b6040516103119190612fcc565b60405180910390f35b610334600480360381019061032f91906131d7565b6109c9565b005b610350600480360381019061034b9190613341565b6109df565b005b61036c6004803603810190610367919061301f565b610a04565b6040516103799190612fcc565b60405180910390f35b61039c600480360381019061039791906133c1565b610b6a565b6040516103a99190612f43565b60405180910390f35b6103cc60048036038101906103c79190613182565b610bf8565b005b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061049857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806104a857506104a782610c7c565b5b9050919050565b60605f80546104bd9061342c565b80601f01602080910402602001604051908101604052809291908181526020018280546104e99061342c565b80156105345780601f1061050b57610100808354040283529160200191610534565b820191905f5260205f20905b81548152906001019060200180831161051757829003601f168201915b5050505050905090565b5f61054882610ce5565b5061055282610d6b565b9050919050565b61056b8282610566610da4565b610dab565b5050565b60075481565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036105e5575f6040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016105dc9190613089565b60405180910390fd5b5f6105f883836105f3610da4565b610dbd565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461066e578382826040517f64283d7b0000000000000000000000000000000000000000000000000000000081526004016106659392919061345c565b60405180910390fd5b50505050565b61271081565b61069483838360405180602001604052805f8152506109df565b505050565b6106a1610fc8565b5f81116106e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106da906134db565b60405180910390fd5b6101f4811115610728576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071f90613569565b60405180910390fd5b6127108160075461073991906135b4565b111561077a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077190613631565b60405180910390fd5b5f5b818110156107b9575f6007549050610794848261104f565b60075f8154809291906107a69061364f565b919050555050808060010191505061077c565b505050565b5f6107c882610ce5565b9050919050565b6107d7610fc8565b6127106007541061081d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610814906136e0565b60405180910390fd5b5f600754905061082d828261104f565b60075f81548092919061083f9061364f565b91905055505050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036108b9575f6040517f89c62b640000000000000000000000000000000000000000000000000000000081526004016108b09190613089565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610906610fc8565b61090f5f61106c565b565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546109489061342c565b80601f01602080910402602001604051908101604052809291908181526020018280546109749061342c565b80156109bf5780601f10610996576101008083540402835291602001916109bf565b820191905f5260205f20905b8154815290600101906020018083116109a257829003601f168201915b5050505050905090565b6109db6109d4610da4565b838361112f565b5050565b6109ea848484610575565b6109fe6109f5610da4565b85858585611298565b50505050565b60605f73ffffffffffffffffffffffffffffffffffffffff16610a26836107be565b73ffffffffffffffffffffffffffffffffffffffff1603610a7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7390613748565b60405180910390fd5b6127108210610ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab7906137b0565b60405180910390fd5b5f610aca83611444565b90505f610ad682611eff565b604051602001610ae69190613852565b60405160208183030381529060405290505f610b0185611f2c565b610b0a86611f2c565b83610b1488611f2c565b604051602001610b279493929190613aa1565b6040516020818303038152906040529050610b4181611eff565b604051602001610b519190613b75565b6040516020818303038152906040529350505050919050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b610c00610fc8565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c70575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610c679190613089565b60405180910390fd5b610c798161106c565b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f80610cf083611ff6565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d6257826040517f7e273289000000000000000000000000000000000000000000000000000000008152600401610d599190613119565b60405180910390fd5b80915050919050565b5f60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f33905090565b610db8838383600161202f565b505050565b5f80610dc884611ff6565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610e0957610e088184866121ee565b5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e9457610e485f855f8061202f565b600160035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825403925050819055505b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614610f1357600160035f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8460025f8681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b610fd0610da4565b73ffffffffffffffffffffffffffffffffffffffff16610fee610911565b73ffffffffffffffffffffffffffffffffffffffff161461104d57611011610da4565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016110449190613089565b60405180910390fd5b565b611068828260405180602001604052805f8152506122b1565b5050565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361119f57816040517f5b08ba180000000000000000000000000000000000000000000000000000000081526004016111969190613089565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161128b9190612f43565b60405180910390a3505050565b5f8373ffffffffffffffffffffffffffffffffffffffff163b111561143d578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02868685856040518563ffffffff1660e01b81526004016112f69493929190613be8565b6020604051808303815f875af192505050801561133157506040513d601f19601f8201168201806040525081019061132e9190613c46565b60015b6113b2573d805f811461135f576040519150601f19603f3d011682016040523d82523d5f602084013e611364565b606091505b505f8151036113aa57836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016113a19190613089565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461143b57836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016114329190613089565b60405180910390fd5b505b5050505050565b6060612710821061148a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611481906137b0565b60405180910390fd5b5f6040518060800160405280605581526020016141616055913990505f6040518060400160405280600681526020017f3c2f7376673e000000000000000000000000000000000000000000000000000081525090505f6114e9856122d4565b90505f8190505f6114f98261239f565b90505f8151835161150a91906135b4565b67ffffffffffffffff8111156115235761152261321d565b5b6040519080825280601f01601f1916602001820160405280156115555781602001600182028036833780820191505090505b5090505f5b83518110156115cf5783818151811061157657611575613c71565b5b602001015160f81c60f81b82828151811061159457611593613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350808060010191505061155a565b505f5b8251811015611653578281815181106115ee576115ed613c71565b5b602001015160f81c60f81b8282865161160791906135b4565b8151811061161857611617613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a90535080806001019150506115d2565b505f601567ffffffffffffffff8111156116705761166f61321d565b5b6040519080825280601f01601f1916602001820160405280156116a25781602001600182028036833780820191505090505b509050600160f81b815f815181106116bd576116bc613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350835160f81b8160018151811061170457611703613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350600260f81b8160028151811061174b5761174a613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f60f81b8160038151811061179157611790613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f5b6011811015611842578281815181106117dd576117dc613c71565b5b602001015160f81c60f81b826004836117f691906135b4565b8151811061180757611806613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a90535080806001019150506117c1565b5061184b612e75565b5f5b60158110156118eb575f83828151811061186a57611869613c71565b5b602001015160f81c60f81b60f81c60ff1690505f60038361188b9190613ccb565b90505f600860038561189d9190613cfb565b60026118a99190613d2b565b6118b39190613d5e565b90508083901b8583600881106118cc576118cb613c71565b5b602002018181511791508181525050505050808060010191505061184d565b505f601667ffffffffffffffff8111156119085761190761321d565b5b60405190808252806020026020018201604052801561193b57816020015b60608152602001906001900390816119265790505b50905088815f8151811061195257611951613c71565b5b60200260200101819052505f600190505f805b6015811015611e4d575f60405180602001604052805f81525090505f5b6015811015611e115760605f821015801561199e575060048211155b80156119aa57505f8410155b80156119b7575060048411155b156119cf576119c882855f806124bf565b9050611dcb565b601082101580156119e1575060148211155b80156119ed57505f8410155b80156119fa575060048411155b15611a1357611a0c828560105f6124bf565b9050611dca565b5f8210158015611a24575060048211155b8015611a31575060108410155b8015611a3e575060148411155b15611a5757611a5082855f60106124bf565b9050611dc9565b60108210158015611a69575060148211155b8015611a76575060108410155b8015611a83575060148411155b15611a9c57611a9582856010806124bf565b9050611dc8565b60098210158015611aae5750600b8211155b8015611abb575060098410155b8015611ac85750600b8411155b15611c2a57600a82148015611add5750600a84145b15611b86576008600760088110611af757611af6613c71565b5b018054611b039061342c565b80601f0160208091040260200160405190810160405280929190818152602001828054611b2f9061342c565b8015611b7a5780601f10611b5157610100808354040283529160200191611b7a565b820191905f5260205f20905b815481529060010190602001808311611b5d57829003601f168201915b50505050509050611c25565b60085f60088110611b9a57611b99613c71565b5b018054611ba69061342c565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd29061342c565b8015611c1d5780601f10611bf457610100808354040283529160200191611c1d565b820191905f5260205f20905b815481529060010190602001808311611c0057829003601f168201915b505050505090505b611dc7565b60a8851015611cf3575f611c3e868a6128b7565b905060088160088110611c5457611c53613c71565b5b018054611c609061342c565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8c9061342c565b8015611cd75780601f10611cae57610100808354040283529160200191611cd7565b820191905f5260205f20905b815481529060010190602001808311611cba57829003601f168201915b50505050509150600386611ceb91906135b4565b955050611dc6565b5f6008601186611d039190613d5e565b601d85611d109190613d5e565b611d1a91906135b4565b611d249190613cfb565b905060088160088110611d3a57611d39613c71565b5b018054611d469061342c565b80601f0160208091040260200160405190810160405280929190818152602001828054611d729061342c565b8015611dbd5780601f10611d9457610100808354040283529160200191611dbd565b820191905f5260205f20905b815481529060010190602001808311611da057829003601f168201915b50505050509150505b5b5b5b5b5b82611dd583611f2c565b611dde86611f2c565b83604051602001611df29493929190613ec7565b6040516020818303038152906040529250508080600101915050611982565b5080858581518110611e2657611e25613c71565b5b60200260200101819052508380611e3c9061364f565b945050508080600101915050611965565b505f835f81518110611e6257611e61613c71565b5b602002602001015190505f600190505b8451811015611ec65781858281518110611e8f57611e8e613c71565b5b6020026020010151604051602001611ea8929190613f6a565b60405160208183030381529060405291508080600101915050611e72565b50808b604051602001611eda929190613f6a565b6040516020818303038152906040529050809c50505050505050505050505050919050565b6060611f25826040518060600160405280604081526020016141b66040913960016129e2565b9050919050565b60605f6001611f3a84612b71565b0190505f8167ffffffffffffffff811115611f5857611f5761321d565b5b6040519080825280601f01601f191660200182016040528015611f8a5781602001600182028036833780820191505090505b5090505f82602001820190505b600115611feb578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581611fe057611fdf613c9e565b5b0494505f8503611f97575b819350505050919050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b808061206757505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612199575f61207684610ce5565b90505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156120e057508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b80156120f357506120f18184610b6a565b155b1561213557826040517fa9fbf51f00000000000000000000000000000000000000000000000000000000815260040161212c9190613089565b60405180910390fd5b811561219757838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b8360045f8581526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b6121f9838383612cc2565b6122ac575f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361226d57806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016122649190613119565b60405180910390fd5b81816040517f177e802f0000000000000000000000000000000000000000000000000000000081526004016122a3929190613f8d565b60405180910390fd5b505050565b6122bb8383612d82565b6122cf6122c6610da4565b5f858585611298565b505050565b60605f6122e083611f2c565b9050600a83101561231357806040516020016122fc9190613ffe565b60405160208183030381529060405291505061239a565b6064831015612344578060405160200161232d9190614069565b60405160208183030381529060405291505061239a565b6103e8831015612376578060405160200161235f91906140d4565b60405160208183030381529060405291505061239a565b80604051602001612387919061413f565b6040516020818303038152906040529150505b919050565b60605f600a67ffffffffffffffff8111156123bd576123bc61321d565b5b6040519080825280601f01601f1916602001820160405280156123ef5781602001600182028036833780820191505090505b5090505f5b600a8110156124b5575f805b85518110156124615761010081846124189190613d5e565b87838151811061242b5761242a613c71565b5b602001015160f81c60f81b60f81c60ff1661244691906135b4565b6124509190613cfb565b821891508080600101915050612400565b508060f81b83838151811061247957612478613c71565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505080806001019150506123f4565b5080915050919050565b6060828514806124da57506004836124d791906135b4565b85145b806124e457508184145b806124fa57506004826124f791906135b4565b84145b156125a25760085f6008811061251357612512613c71565b5b01805461251f9061342c565b80601f016020809104026020016040519081016040528092919081815260200182805461254b9061342c565b80156125965780601f1061256d57610100808354040283529160200191612596565b820191905f5260205f20905b81548152906001019060200180831161257957829003601f168201915b505050505090506128af565b6002836125af91906135b4565b851480156125c857506002826125c591906135b4565b84145b156126715760086007600881106125e2576125e1613c71565b5b0180546125ee9061342c565b80601f016020809104026020016040519081016040528092919081815260200182805461261a9061342c565b80156126655780601f1061263c57610100808354040283529160200191612665565b820191905f5260205f20905b81548152906001019060200180831161264857829003601f168201915b505050505090506128af565b60018361267e91906135b4565b85148015612697575060018261269491906135b4565b84145b156127405760086001600881106126b1576126b0613c71565b5b0180546126bd9061342c565b80601f01602080910402602001604051908101604052809291908181526020018280546126e99061342c565b80156127345780601f1061270b57610100808354040283529160200191612734565b820191905f5260205f20905b81548152906001019060200180831161271757829003601f168201915b505050505090506128af565b60038361274d91906135b4565b85148015612766575060038261276391906135b4565b84145b1561280f5760086002600881106127805761277f613c71565b5b01805461278c9061342c565b80601f01602080910402602001604051908101604052809291908181526020018280546127b89061342c565b80156128035780601f106127da57610100808354040283529160200191612803565b820191905f5260205f20905b8154815290600101906020018083116127e657829003601f168201915b505050505090506128af565b600860046008811061282457612823613c71565b5b0180546128309061342c565b80601f016020809104026020016040519081016040528092919081815260200182805461285c9061342c565b80156128a75780601f1061287e576101008083540402835291602001916128a7565b820191905f5260205f20905b81548152906001019060200180831161288a57829003601f168201915b505050505090505b949350505050565b5f806018846128c69190613ccb565b90505f6018856128d69190613cfb565b60156128e29190613d2b565b90505f600282106129125760078286856008811061290357612902613c71565b5b6020020151901c1690506129d6565b5f60018361292091906135b4565b905080600361292f9190613d2b565b6001826001901b6129409190613d2b565b87866008811061295357612952613c71565b5b602002015116901b9150600860018561296c91906135b4565b10156129d45760018160036129819190613d2b565b6001901b61298f9190613d2b565b81600361299c9190613d2b565b60186129a89190613d2b565b876001876129b691906135b4565b600881106129c7576129c6613c71565b5b6020020151901c16821791505b505b80935050505092915050565b60605f845103612a025760405180602001604052805f8152509050612b6a565b5f82612a33576003600286516004612a1a9190613d5e565b612a2491906135b4565b612a2e9190613ccb565b612a5a565b600360028651612a4391906135b4565b612a4d9190613ccb565b6004612a599190613d5e565b5b90505f8167ffffffffffffffff811115612a7757612a7661321d565b5b6040519080825280601f01601f191660200182016040528015612aa95781602001600182028036833780820191505090505b509050600185016020820187885189016020810180515f82525b82841015612b1e576003840193508351603f8160121c168701518653600186019550603f81600c1c168701518653600186019550603f8160061c168701518653600186019550603f8116870151865360018601955050612ac3565b8082528915612b5e5760038c510660018114612b415760028114612b5457612b5c565b603d6001870353603d6002870353612b5c565b603d60018703535b505b50505050505080925050505b9392505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612bcd577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612bc357612bc2613c9e565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612c0a576d04ee2d6d415b85acef81000000008381612c0057612bff613c9e565b5b0492506020810190505b662386f26fc100008310612c3957662386f26fc100008381612c2f57612c2e613c9e565b5b0492506010810190505b6305f5e1008310612c62576305f5e1008381612c5857612c57613c9e565b5b0492506008810190505b6127108310612c87576127108381612c7d57612c7c613c9e565b5b0492506004810190505b60648310612caa5760648381612ca057612c9f613c9e565b5b0492506002810190505b600a8310612cb9576001810190505b80915050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612d7957508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612d3a5750612d398484610b6a565b5b80612d7857508273ffffffffffffffffffffffffffffffffffffffff16612d6083610d6b565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612df2575f6040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401612de99190613089565b60405180910390fd5b5f612dfe83835f610dbd565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612e70575f6040517f73c6ac6e000000000000000000000000000000000000000000000000000000008152600401612e679190613089565b60405180910390fd5b505050565b604051806101000160405280600890602082028036833780820191505090505090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612edd81612ea9565b8114612ee7575f80fd5b50565b5f81359050612ef881612ed4565b92915050565b5f60208284031215612f1357612f12612ea1565b5b5f612f2084828501612eea565b91505092915050565b5f8115159050919050565b612f3d81612f29565b82525050565b5f602082019050612f565f830184612f34565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612f9e82612f5c565b612fa88185612f66565b9350612fb8818560208601612f76565b612fc181612f84565b840191505092915050565b5f6020820190508181035f830152612fe48184612f94565b905092915050565b5f819050919050565b612ffe81612fec565b8114613008575f80fd5b50565b5f8135905061301981612ff5565b92915050565b5f6020828403121561303457613033612ea1565b5b5f6130418482850161300b565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6130738261304a565b9050919050565b61308381613069565b82525050565b5f60208201905061309c5f83018461307a565b92915050565b6130ab81613069565b81146130b5575f80fd5b50565b5f813590506130c6816130a2565b92915050565b5f80604083850312156130e2576130e1612ea1565b5b5f6130ef858286016130b8565b92505060206131008582860161300b565b9150509250929050565b61311381612fec565b82525050565b5f60208201905061312c5f83018461310a565b92915050565b5f805f6060848603121561314957613148612ea1565b5b5f613156868287016130b8565b9350506020613167868287016130b8565b92505060406131788682870161300b565b9150509250925092565b5f6020828403121561319757613196612ea1565b5b5f6131a4848285016130b8565b91505092915050565b6131b681612f29565b81146131c0575f80fd5b50565b5f813590506131d1816131ad565b92915050565b5f80604083850312156131ed576131ec612ea1565b5b5f6131fa858286016130b8565b925050602061320b858286016131c3565b9150509250929050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61325382612f84565b810181811067ffffffffffffffff821117156132725761327161321d565b5b80604052505050565b5f613284612e98565b9050613290828261324a565b919050565b5f67ffffffffffffffff8211156132af576132ae61321d565b5b6132b882612f84565b9050602081019050919050565b828183375f83830152505050565b5f6132e56132e084613295565b61327b565b90508281526020810184848401111561330157613300613219565b5b61330c8482856132c5565b509392505050565b5f82601f83011261332857613327613215565b5b81356133388482602086016132d3565b91505092915050565b5f805f806080858703121561335957613358612ea1565b5b5f613366878288016130b8565b9450506020613377878288016130b8565b93505060406133888782880161300b565b925050606085013567ffffffffffffffff8111156133a9576133a8612ea5565b5b6133b587828801613314565b91505092959194509250565b5f80604083850312156133d7576133d6612ea1565b5b5f6133e4858286016130b8565b92505060206133f5858286016130b8565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061344357607f821691505b602082108103613456576134556133ff565b5b50919050565b5f60608201905061346f5f83018661307a565b61347c602083018561310a565b613489604083018461307a565b949350505050565b7f5175616e74697479206d7573742062652067726561746572207468616e2030005f82015250565b5f6134c5601f83612f66565b91506134d082613491565b602082019050919050565b5f6020820190508181035f8301526134f2816134b9565b9050919050565b7f43616e6e6f74206d696e74206d6f7265207468616e20353030204e46547320615f8201527f7420612074696d65000000000000000000000000000000000000000000000000602082015250565b5f613553602883612f66565b915061355e826134f9565b604082019050919050565b5f6020820190508181035f83015261358081613547565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6135be82612fec565b91506135c983612fec565b92508282019050808211156135e1576135e0613587565b5b92915050565b7f4d696e74696e6720776f756c6420657863656564206d617820737570706c79005f82015250565b5f61361b601f83612f66565b9150613626826135e7565b602082019050919050565b5f6020820190508181035f8301526136488161360f565b9050919050565b5f61365982612fec565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361368b5761368a613587565b5b600182019050919050565b7f4d617820737570706c79207265616368656400000000000000000000000000005f82015250565b5f6136ca601283612f66565b91506136d582613696565b602082019050919050565b5f6020820190508181035f8301526136f7816136be565b9050919050565b7f546f6b656e20646f6573206e6f742065786973740000000000000000000000005f82015250565b5f613732601483612f66565b915061373d826136fe565b602082019050919050565b5f6020820190508181035f83015261375f81613726565b9050919050565b7f546f6b656e204944206f7574206f662072616e676500000000000000000000005f82015250565b5f61379a601583612f66565b91506137a582613766565b602082019050919050565b5f6020820190508181035f8301526137c78161378e565b9050919050565b5f81905092915050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000005f82015250565b5f61380c601a836137ce565b9150613817826137d8565b601a82019050919050565b5f61382c82612f5c565b61383681856137ce565b9350613846818560208601612f76565b80840191505092915050565b5f61385c82613800565b91506138688284613822565b915081905092915050565b7f7b226e616d65223a2022536869677550617373202300000000000000000000005f82015250565b5f6138a76015836137ce565b91506138b282613873565b601582019050919050565b7f222c20226465736372697074696f6e223a2022546869732053686967755061735f8201527f73206973206f6e2d636861696e204a414220636f6465204e465420656e636f6460208201527f696e6720746f6b656e2049442000000000000000000000000000000000000000604082015250565b5f61393d604d836137ce565b9150613948826138bd565b604d82019050919050565b7f222c2000000000000000000000000000000000000000000000000000000000005f82015250565b5f6139876003836137ce565b915061399282613953565b600382019050919050565b7f22696d616765223a2022000000000000000000000000000000000000000000005f82015250565b5f6139d1600a836137ce565b91506139dc8261399d565b600a82019050919050565b7f2261747472696275746573223a205b7b2274726169745f74797065223a2022545f8201527f6f6b656e204944222c202276616c7565223a2022000000000000000000000000602082015250565b5f613a416034836137ce565b9150613a4c826139e7565b603482019050919050565b7f227d5d7d000000000000000000000000000000000000000000000000000000005f82015250565b5f613a8b6004836137ce565b9150613a9682613a57565b600482019050919050565b5f613aab8261389b565b9150613ab78287613822565b9150613ac282613931565b9150613ace8286613822565b9150613ad98261397b565b9150613ae4826139c5565b9150613af08285613822565b9150613afb8261397b565b9150613b0682613a35565b9150613b128284613822565b9150613b1d82613a7f565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000005f82015250565b5f613b5f601d836137ce565b9150613b6a82613b2b565b601d82019050919050565b5f613b7f82613b53565b9150613b8b8284613822565b915081905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f613bba82613b96565b613bc48185613ba0565b9350613bd4818560208601612f76565b613bdd81612f84565b840191505092915050565b5f608082019050613bfb5f83018761307a565b613c08602083018661307a565b613c15604083018561310a565b8181036060830152613c278184613bb0565b905095945050505050565b5f81519050613c4081612ed4565b92915050565b5f60208284031215613c5b57613c5a612ea1565b5b5f613c6884828501613c32565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613cd582612fec565b9150613ce083612fec565b925082613cf057613cef613c9e565b5b828204905092915050565b5f613d0582612fec565b9150613d1083612fec565b925082613d2057613d1f613c9e565b5b828206905092915050565b5f613d3582612fec565b9150613d4083612fec565b9250828203905081811115613d5857613d57613587565b5b92915050565b5f613d6882612fec565b9150613d7383612fec565b9250828202613d8181612fec565b91508282048414831517613d9857613d97613587565b5b5092915050565b7f3c7265637420783d2200000000000000000000000000000000000000000000005f82015250565b5f613dd36009836137ce565b9150613dde82613d9f565b600982019050919050565b7f2220793d220000000000000000000000000000000000000000000000000000005f82015250565b5f613e1d6005836137ce565b9150613e2882613de9565b600582019050919050565b7f222077696474683d223122206865696768743d2231222066696c6c3d220000005f82015250565b5f613e67601d836137ce565b9150613e7282613e33565b601d82019050919050565b7f22202f3e000000000000000000000000000000000000000000000000000000005f82015250565b5f613eb16004836137ce565b9150613ebc82613e7d565b600482019050919050565b5f613ed28287613822565b9150613edd82613dc7565b9150613ee98286613822565b9150613ef482613e11565b9150613f008285613822565b9150613f0b82613e5b565b9150613f178284613822565b9150613f2282613ea5565b915081905095945050505050565b5f81905092915050565b5f613f4482613b96565b613f4e8185613f30565b9350613f5e818560208601612f76565b80840191505092915050565b5f613f758285613f3a565b9150613f818284613822565b91508190509392505050565b5f604082019050613fa05f83018561307a565b613fad602083018461310a565b9392505050565b7f49443a30303000000000000000000000000000000000000000000000000000005f82015250565b5f613fe86006836137ce565b9150613ff382613fb4565b600682019050919050565b5f61400882613fdc565b91506140148284613822565b915081905092915050565b7f49443a30300000000000000000000000000000000000000000000000000000005f82015250565b5f6140536005836137ce565b915061405e8261401f565b600582019050919050565b5f61407382614047565b915061407f8284613822565b915081905092915050565b7f49443a30000000000000000000000000000000000000000000000000000000005f82015250565b5f6140be6004836137ce565b91506140c98261408a565b600482019050919050565b5f6140de826140b2565b91506140ea8284613822565b915081905092915050565b7f49443a00000000000000000000000000000000000000000000000000000000005f82015250565b5f6141296003836137ce565b9150614134826140f5565b600382019050919050565b5f6141498261411d565b91506141558284613822565b91508190509291505056fe3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222077696474683d2232353222206865696768743d22323532222076696577426f783d22302030203231203231223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212204786a7750234b50a5dcf6597f5aa6a3a7292af5615ea90fc4e220f5e705b528a64736f6c634300081a0033
Deployed Bytecode Sourcemap
130604:9446:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106683:305;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;107514:91;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;108686:158;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;108505:115;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;130735:26;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;109355:588;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;130686:42;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;110014:134;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;131612:483;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;107327:120;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;131318:214;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;107052:213;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;124336:103;;;:::i;:::-;;123661:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;107674:95;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;108916:146;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;110219:236;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;139126:921;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;109133:155;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;124594:220;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;106683:305;106785:4;106837:25;106822:40;;;:11;:40;;;;:105;;;;106894:33;106879:48;;;:11;:48;;;;106822:105;:158;;;;106944:36;106968:11;106944:23;:36::i;:::-;106822:158;106802:178;;106683:305;;;:::o;107514:91::-;107559:13;107592:5;107585:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107514:91;:::o;108686:158::-;108753:7;108773:22;108787:7;108773:13;:22::i;:::-;;108815:21;108828:7;108815:12;:21::i;:::-;108808:28;;108686:158;;;:::o;108505:115::-;108577:35;108586:2;108590:7;108599:12;:10;:12::i;:::-;108577:8;:35::i;:::-;108505:115;;:::o;130735:26::-;;;;:::o;109355:588::-;109464:1;109450:16;;:2;:16;;;109446:89;;109520:1;109490:33;;;;;;;;;;;:::i;:::-;;;;;;;;109446:89;109756:21;109780:34;109788:2;109792:7;109801:12;:10;:12::i;:::-;109780:7;:34::i;:::-;109756:58;;109846:4;109829:21;;:13;:21;;;109825:111;;109895:4;109901:7;109910:13;109874:50;;;;;;;;;;;;;:::i;:::-;;;;;;;;109825:111;109435:508;109355:588;;;:::o;130686:42::-;130723:5;130686:42;:::o;110014:134::-;110101:39;110118:4;110124:2;110128:7;110101:39;;;;;;;;;;;;:16;:39::i;:::-;110014:134;;;:::o;131612:483::-;123547:13;:11;:13::i;:::-;131708:1:::1;131697:8;:12;131689:56;;;;;;;;;;;;:::i;:::-;;;;;;;;;131776:3;131764:8;:15;;131756:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;130723:5;131857:8;131843:11;;:22;;;;:::i;:::-;:36;;131835:80;;;;;;;;;;;;:::i;:::-;;;;;;;;;131933:9;131928:160;131952:8;131948:1;:12;131928:160;;;131982:15;132000:11;;131982:29;;132026:22;132036:2;132040:7;132026:9;:22::i;:::-;132063:11;;:13;;;;;;;;;:::i;:::-;;;;;;131967:121;131962:3;;;;;;;131928:160;;;;131612:483:::0;;:::o;107327:120::-;107390:7;107417:22;107431:7;107417:13;:22::i;:::-;107410:29;;107327:120;;;:::o;131318:214::-;123547:13;:11;:13::i;:::-;130723:5:::1;131380:11;;:24;131372:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;131438:15;131456:11;;131438:29;;131478:22;131488:2;131492:7;131478:9;:22::i;:::-;131511:11;;:13;;;;;;;;;:::i;:::-;;;;;;131361:171;131318:214:::0;:::o;107052:213::-;107115:7;107156:1;107139:19;;:5;:19;;;107135:89;;107209:1;107182:30;;;;;;;;;;;:::i;:::-;;;;;;;;107135:89;107241:9;:16;107251:5;107241:16;;;;;;;;;;;;;;;;107234:23;;107052:213;;;:::o;124336:103::-;123547:13;:11;:13::i;:::-;124401:30:::1;124428:1;124401:18;:30::i;:::-;124336:103::o:0;123661:87::-;123707:7;123734:6;;;;;;;;;;;123727:13;;123661:87;:::o;107674:95::-;107721:13;107754:7;107747:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107674:95;:::o;108916:146::-;109002:52;109021:12;:10;:12::i;:::-;109035:8;109045;109002:18;:52::i;:::-;108916:146;;:::o;110219:236::-;110333:31;110346:4;110352:2;110356:7;110333:12;:31::i;:::-;110375:72;110409:12;:10;:12::i;:::-;110423:4;110429:2;110433:7;110442:4;110375:33;:72::i;:::-;110219:236;;;;:::o;139126:921::-;139191:13;139253:1;139225:30;;:16;139233:7;139225;:16::i;:::-;:30;;;139217:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;139309:5;139299:7;:15;139291:49;;;;;;;;;;;;:::i;:::-;;;;;;;;;139353:17;139373:24;139389:7;139373:15;:24::i;:::-;139353:44;;139408:19;139484:25;139504:3;139484:13;:25::i;:::-;139437:73;;;;;;;;:::i;:::-;;;;;;;;;;;;;139408:103;;139524:18;139608;:7;:16;:18::i;:::-;139722;:7;:16;:18::i;:::-;139776:5;139859:18;:7;:16;:18::i;:::-;139552:344;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;139524:373;;140001:26;140021:4;140001:13;:26::i;:::-;139924:114;;;;;;;;:::i;:::-;;;;;;;;;;;;;139910:129;;;;;139126:921;;;:::o;109133:155::-;109221:4;109245:18;:25;109264:5;109245:25;;;;;;;;;;;;;;;:35;109271:8;109245:35;;;;;;;;;;;;;;;;;;;;;;;;;109238:42;;109133:155;;;;:::o;124594:220::-;123547:13;:11;:13::i;:::-;124699:1:::1;124679:22;;:8;:22;;::::0;124675:93:::1;;124753:1;124725:31;;;;;;;;;;;:::i;:::-;;;;;;;;124675:93;124778:28;124797:8;124778:18;:28::i;:::-;124594:220:::0;:::o;105281:148::-;105357:4;105396:25;105381:40;;;:11;:40;;;;105374:47;;105281:148;;;:::o;121737:247::-;121800:7;121820:13;121836:17;121845:7;121836:8;:17::i;:::-;121820:33;;121885:1;121868:19;;:5;:19;;;121864:90;;121934:7;121911:31;;;;;;;;;;;:::i;:::-;;;;;;;;121864:90;121971:5;121964:12;;;121737:247;;;:::o;111218:129::-;111288:7;111315:15;:24;111331:7;111315:24;;;;;;;;;;;;;;;;;;;;;111308:31;;111218:129;;;:::o;17202:98::-;17255:7;17282:10;17275:17;;17202:98;:::o;119969:122::-;120050:33;120059:2;120063:7;120072:4;120078;120050:8;:33::i;:::-;119969:122;;;:::o;114179:824::-;114265:7;114285:12;114300:17;114309:7;114300:8;:17::i;:::-;114285:32;;114396:1;114380:18;;:4;:18;;;114376:88;;114415:37;114432:4;114438;114444:7;114415:16;:37::i;:::-;114376:88;114527:1;114511:18;;:4;:18;;;114507:263;;114629:48;114646:1;114650:7;114667:1;114671:5;114629:8;:48::i;:::-;114742:1;114723:9;:15;114733:4;114723:15;;;;;;;;;;;;;;;;:20;;;;;;;;;;;114507:263;114800:1;114786:16;;:2;:16;;;114782:111;;114865:1;114848:9;:13;114858:2;114848:13;;;;;;;;;;;;;;;;:18;;;;;;;;;;;114782:111;114924:2;114905:7;:16;114913:7;114905:16;;;;;;;;;;;;:21;;;;;;;;;;;;;;;;;;114963:7;114959:2;114944:27;;114953:4;114944:27;;;;;;;;;;;;114991:4;114984:11;;;114179:824;;;;;:::o;123826:166::-;123897:12;:10;:12::i;:::-;123886:23;;:7;:5;:7::i;:::-;:23;;;123882:103;;123960:12;:10;:12::i;:::-;123933:40;;;;;;;;;;;:::i;:::-;;;;;;;;123882:103;123826:166::o;116037:102::-;116105:26;116115:2;116119:7;116105:26;;;;;;;;;;;;:9;:26::i;:::-;116037:102;;:::o;124974:191::-;125048:16;125067:6;;;;;;;;;;;125048:25;;125093:8;125084:6;;:17;;;;;;;;;;;;;;;;;;125148:8;125117:40;;125138:8;125117:40;;;;;;;;;;;;125037:128;124974:191;:::o;121176:318::-;121304:1;121284:22;;:8;:22;;;121280:93;;121352:8;121330:31;;;;;;;;;;;:::i;:::-;;;;;;;;121280:93;121421:8;121383:18;:25;121402:5;121383:25;;;;;;;;;;;;;;;:35;121409:8;121383:35;;;;;;;;;;;;;;;;:46;;;;;;;;;;;;;;;;;;121467:8;121445:41;;121460:5;121445:41;;;121477:8;121445:41;;;;;;:::i;:::-;;;;;;;;121176:318;;;:::o;15552:948::-;15756:1;15739:2;:14;;;:18;15735:758;;;15794:2;15778:36;;;15815:8;15825:4;15831:7;15840:4;15778:67;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;15774:708;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16158:1;16141:6;:13;:18;16137:330;;16283:2;16247:39;;;;;;;;;;;:::i;:::-;;;;;;;;16137:330;16417:6;16411:13;16402:6;16398:2;16394:15;16387:38;15774:708;15903:41;;;15893:51;;;:6;:51;;;;15889:185;;16051:2;16015:39;;;;;;;;;;;:::i;:::-;;;;;;;;15889:185;15846:243;15735:758;15552:948;;;;;:::o;134686:4365::-;134751:13;134795:5;134785:7;:15;134777:49;;;;;;;;;;;;:::i;:::-;;;;;;;;;134873:23;:113;;;;;;;;;;;;;;;;;;;134997:23;:34;;;;;;;;;;;;;;;;;;;135093:24;135120:19;135131:7;135120:10;:19::i;:::-;135093:46;;135150:17;135176:10;135150:37;;135251:16;135270:28;135293:4;135270:22;:28::i;:::-;135251:47;;135309:21;135357:3;:10;135343:4;:11;:24;;;;:::i;:::-;135333:35;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135309:59;;135384:9;135379:90;135403:4;:11;135399:1;:15;135379:90;;;135450:4;135455:1;135450:7;;;;;;;;:::i;:::-;;;;;;;;;;135436:8;135445:1;135436:11;;;;;;;;:::i;:::-;;;;;:21;;;;;;;;;;;135416:3;;;;;;;135379:90;;;;135484:9;135479:102;135503:3;:10;135499:1;:14;135479:102;;;135563:3;135567:1;135563:6;;;;;;;;:::i;:::-;;;;;;;;;;135535:8;135558:1;135544:4;:11;:15;;;;:::i;:::-;135535:25;;;;;;;;:::i;:::-;;;;;:34;;;;;;;;;;;135515:3;;;;;;;135479:102;;;;135703:22;135738:2;135728:13;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135703:38;;135780:1;135767:16;;135752:9;135762:1;135752:12;;;;;;;;:::i;:::-;;;;;:31;;;;;;;;;;;135835:4;:11;135822:26;;135807:9;135817:1;135807:12;;;;;;;;:::i;:::-;;;;;:41;;;;;;;;;;;135902:1;135889:16;;135874:9;135884:1;135874:12;;;;;;;;:::i;:::-;;;;;:31;;;;;;;;;;;135968:1;135955:16;;135940:9;135950:1;135940:12;;;;;;;;:::i;:::-;;;;;:31;;;;;;;;;;;136010:9;136005:90;136029:2;136025:1;:6;136005:90;;;136072:8;136081:1;136072:11;;;;;;;;:::i;:::-;;;;;;;;;;136053:9;136067:1;136063;:5;;;;:::i;:::-;136053:16;;;;;;;;:::i;:::-;;;;;:30;;;;;;;;;;;136033:3;;;;;;;136005:90;;;;136162:28;;:::i;:::-;136206:9;136201:262;136225:2;136221:1;:6;136201:262;;;136249:17;136283:9;136293:1;136283:12;;;;;;;;:::i;:::-;;;;;;;;;;136277:19;;136269:28;;136249:48;;136312:17;136336:1;136332;:5;;;;:::i;:::-;136312:25;;136352:17;136388:1;136382;136378;:5;;;;:::i;:::-;136373:1;:11;;;;:::i;:::-;136372:17;;;;:::i;:::-;136352:37;;136442:9;136429;:22;;136404:10;136415:9;136404:21;;;;;;;:::i;:::-;;;;;:47;;;;;;;;;;;136234:229;;;136229:3;;;;;;;136201:262;;;;136529:24;136569:2;136556:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;136529:43;;136623:9;136609:8;136618:1;136609:11;;;;;;;;:::i;:::-;;;;;;;:23;;;;136643:17;136663:1;136643:21;;136675:16;136745:9;136740:1991;136764:2;136760:1;:6;136740:1991;;;136788:17;:22;;;;;;;;;;;;;;136830:9;136825:1829;136849:2;136845:1;:6;136825:1829;;;136877:19;136986:1;136981;:6;;:16;;;;;136996:1;136991;:6;;136981:16;:26;;;;;137006:1;137001;:6;;136981:26;:36;;;;;137016:1;137011;:6;;136981:36;136977:1425;;;137050:33;137072:1;137075;137078;137081;137050:21;:33::i;:::-;137042:41;;136977:1425;;;137135:2;137130:1;:7;;:18;;;;;137146:2;137141:1;:7;;137130:18;:28;;;;;137157:1;137152;:6;;137130:28;:38;;;;;137167:1;137162;:6;;137130:38;137126:1276;;;137201:34;137223:1;137226;137229:2;137233:1;137201:21;:34::i;:::-;137193:42;;137126:1276;;;137287:1;137282;:6;;:16;;;;;137297:1;137292;:6;;137282:16;:27;;;;;137307:2;137302:1;:7;;137282:27;:38;;;;;137318:2;137313:1;:7;;137282:38;137278:1124;;;137353:34;137375:1;137378;137381;137384:2;137353:21;:34::i;:::-;137345:42;;137278:1124;;;137439:2;137434:1;:7;;:18;;;;;137450:2;137445:1;:7;;137434:18;:29;;;;;137461:2;137456:1;:7;;137434:29;:40;;;;;137472:2;137467:1;:7;;137434:40;137430:972;;;137507:35;137529:1;137532;137535:2;137539;137507:21;:35::i;:::-;137499:43;;137430:972;;;137652:1;137647;:6;;:17;;;;;137662:2;137657:1;:7;;137647:17;:27;;;;;137673:1;137668;:6;;137647:27;:38;;;;;137683:2;137678:1;:7;;137647:38;137643:759;;;137719:2;137714:1;:7;:18;;;;;137730:2;137725:1;:7;137714:18;137710:202;;;137769:6;137776:1;137769:9;;;;;;;:::i;:::-;;;137761:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;137710:202;;;137861:6;137868:1;137861:9;;;;;;;:::i;:::-;;;137853:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;137710:202;137643:759;;;137969:3;137958:8;:14;137954:448;;;138043:17;138063:34;138076:8;138086:10;138063:12;:34::i;:::-;138043:54;;138128:6;138135:9;138128:17;;;;;;;:::i;:::-;;;138120:25;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;138180:1;138168:13;;;;;:::i;:::-;;;137974:227;137954:448;;;138303:12;138338:1;138332:2;138328:1;:6;;;;:::i;:::-;138323:2;138319:1;:6;;;;:::i;:::-;:15;;;;:::i;:::-;138318:21;;;;:::i;:::-;138303:36;;138370:6;138377:4;138370:12;;;;;;;:::i;:::-;;;138362:20;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;138207:195;137954:448;137643:759;137430:972;137278:1124;137126:1276;136977:1425;138474:3;138513:12;:1;:10;:12::i;:::-;138536;:1;:10;:12::i;:::-;138605:5;138435:202;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;138422:216;;136858:1796;136853:3;;;;;;;136825:1829;;;;138690:3;138668:8;138677:9;138668:19;;;;;;;;:::i;:::-;;;;;;;:25;;;;138708:11;;;;;:::i;:::-;;;;136773:1958;136768:3;;;;;;;136740:1991;;;;138773:21;138803:8;138812:1;138803:11;;;;;;;;:::i;:::-;;;;;;;;138773:42;;138831:9;138843:1;138831:13;;138826:123;138850:8;:15;138846:1;:19;138826:123;;;138915:8;138925;138934:1;138925:11;;;;;;;;:::i;:::-;;;;;;;;138898:39;;;;;;;;;:::i;:::-;;;;;;;;;;;;;138887:50;;138867:3;;;;;;;138826:123;;;;138987:8;138997:9;138970:37;;;;;;;;;:::i;:::-;;;;;;;;;;;;;138959:48;;139034:8;139020:23;;;;;;;;;;;;;;134686:4365;;;:::o;125876:126::-;125934:13;125967:27;125975:4;125981:6;;;;;;;;;;;;;;;;;125989:4;125967:7;:27::i;:::-;125960:34;;125876:126;;;:::o;88240:650::-;88296:13;88347:14;88384:1;88364:17;88375:5;88364:10;:17::i;:::-;:21;88347:38;;88400:20;88434:6;88423:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88400:41;;88456:11;88553:6;88549:2;88545:15;88537:6;88533:28;88526:35;;88590:254;88597:4;88590:254;;;88622:5;;;;;;;;88728:10;88723:2;88716:5;88712:14;88707:32;88702:3;88694:46;88786:2;88777:11;;;;;;:::i;:::-;;;;;88820:1;88811:5;:10;88590:254;88807:21;88590:254;88865:6;88858:13;;;;;88240:650;;;:::o;110980:117::-;111046:7;111073;:16;111081:7;111073:16;;;;;;;;;;;;;;;;;;;;;111066:23;;110980:117;;;:::o;120279:678::-;120441:9;:31;;;;120470:1;120454:18;;:4;:18;;;;120441:31;120437:471;;;120489:13;120505:22;120519:7;120505:13;:22::i;:::-;120489:38;;120674:1;120658:18;;:4;:18;;;;:35;;;;;120689:4;120680:13;;:5;:13;;;;120658:35;:69;;;;;120698:29;120715:5;120722:4;120698:16;:29::i;:::-;120697:30;120658:69;120654:144;;;120777:4;120755:27;;;;;;;;;;;:::i;:::-;;;;;;;;120654:144;120818:9;120814:83;;;120873:7;120869:2;120853:28;;120862:5;120853:28;;;;;;;;;;;;120814:83;120474:434;120437:471;120947:2;120920:15;:24;120936:7;120920:24;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;120279:678;;;;:::o;112386:376::-;112499:38;112513:5;112520:7;112529;112499:13;:38::i;:::-;112494:261;;112575:1;112558:19;;:5;:19;;;112554:190;;112628:7;112605:31;;;;;;;;;;;:::i;:::-;;;;;;;;112554:190;112711:7;112720;112684:44;;;;;;;;;;;;:::i;:::-;;;;;;;;112494:261;112386:376;;;:::o;116366:210::-;116461:18;116467:2;116471:7;116461:5;:18::i;:::-;116490:78;116524:12;:10;:12::i;:::-;116546:1;116550:2;116554:7;116563:4;116490:33;:78::i;:::-;116366:210;;;:::o;132165:421::-;132225:13;132251:19;132273:18;:7;:16;:18::i;:::-;132251:40;;132316:2;132306:7;:12;132302:66;;;132361:5;132334:33;;;;;;;;:::i;:::-;;;;;;;;;;;;;132320:48;;;;;132302:66;132393:3;132383:7;:13;132379:66;;;132438:5;132412:32;;;;;;;;:::i;:::-;;;;;;;;;;;;;132398:47;;;;;132379:66;132470:4;132460:7;:14;132456:66;;;132515:5;132490:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;132476:46;;;;;132456:66;132571:5;132547:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;132533:45;;;132165:421;;;;:::o;132659:417::-;132733:12;132758:16;132787:2;132777:13;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;132758:32;;132806:9;132801:247;132825:2;132821:1;:6;132801:247;;;132849:11;132884:9;132879:116;132903:4;:11;132899:1;:15;132879:116;;;132976:3;132970:1;132966;:5;;;;:::i;:::-;132954:4;132959:1;132954:7;;;;;;;;:::i;:::-;;;;;;;;;;132948:14;;:24;;;;;;:::i;:::-;132947:32;;;;:::i;:::-;132940:39;;;;132916:3;;;;;;;132879:116;;;;133031:3;133018:18;;133009:3;133013:1;133009:6;;;;;;;;:::i;:::-;;;;;:27;;;;;;;;;;;132834:214;132829:3;;;;;;;132801:247;;;;133065:3;133058:10;;;132659:417;;;:::o;133145:683::-;133255:13;133291:7;133286:1;:12;:32;;;;133317:1;133307:7;:11;;;;:::i;:::-;133302:1;:16;133286:32;:48;;;;133327:7;133322:1;:12;133286:48;:68;;;;133353:1;133343:7;:11;;;;:::i;:::-;133338:1;:16;133286:68;133281:540;;;133379:6;133386:1;133379:9;;;;;;;:::i;:::-;;;133372:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133281:540;133443:1;133433:7;:11;;;;:::i;:::-;133428:1;:16;:36;;;;;133463:1;133453:7;:11;;;;:::i;:::-;133448:1;:16;133428:36;133424:397;;;133488:6;133495:1;133488:9;;;;;;;:::i;:::-;;;133481:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133424:397;133552:1;133542:7;:11;;;;:::i;:::-;133537:1;:16;:36;;;;;133572:1;133562:7;:11;;;;:::i;:::-;133557:1;:16;133537:36;133533:288;;;133597:6;133604:1;133597:9;;;;;;;:::i;:::-;;;133590:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133533:288;133665:1;133655:7;:11;;;;:::i;:::-;133650:1;:16;:36;;;;;133685:1;133675:7;:11;;;;:::i;:::-;133670:1;:16;133650:36;133646:175;;;133710:6;133717:1;133710:9;;;;;;;:::i;:::-;;;133703:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133646:175;133783:6;133790:1;133783:9;;;;;;;:::i;:::-;;;133776:16;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133145:683;;;;;;;:::o;133891:726::-;133984:7;134004:17;134035:2;134024:8;:13;;;;:::i;:::-;134004:33;;134048:17;134085:2;134074:8;:13;;;;:::i;:::-;134068:2;:20;;;;:::i;:::-;134048:40;;134099:17;134150:1;134137:9;:14;134133:450;;134219:3;134206:9;134181:10;134192:9;134181:21;;;;;;;:::i;:::-;;;;;;:34;;134180:42;134168:54;;134133:450;;;134255:21;134291:1;134279:9;:13;;;;:::i;:::-;134255:37;;134380:13;134376:1;:17;;;;:::i;:::-;134368:1;134351:13;134346:1;:18;;134345:24;;;;:::i;:::-;134320:10;134331:9;134320:21;;;;;;;:::i;:::-;;;;;;:50;134319:75;;134307:87;;134429:1;134425;134413:9;:13;;;;:::i;:::-;:17;134409:163;;;134554:1;134536:13;134532:1;:17;;;;:::i;:::-;134526:1;:24;;134525:30;;;;:::i;:::-;134505:13;134501:1;:17;;;;:::i;:::-;134495:2;:24;;;;:::i;:::-;134465:10;134488:1;134476:9;:13;;;;:::i;:::-;134465:25;;;;;;;:::i;:::-;;;;;;:55;;134464:92;134451:105;;;;134409:163;134240:343;134133:450;134600:9;134593:16;;;;;133891:726;;;;:::o;126414:4109::-;126511:13;126763:1;126748:4;:11;:16;126744:31;;126766:9;;;;;;;;;;;;;;;;126744:31;127728:20;127751:11;:69;;127819:1;127814;127800:4;:11;127796:1;:15;;;;:::i;:::-;:19;;;;:::i;:::-;127795:25;;;;:::i;:::-;127751:69;;;127790:1;127785;127771:4;:11;:15;;;;:::i;:::-;127770:21;;;;:::i;:::-;127765:1;:27;;;;:::i;:::-;127751:69;127728:92;;127833:20;127867:12;127856:24;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;127833:47;;128032:1;128025:5;128021:13;128136:4;128128:6;128124:17;128170:4;128218;128212:11;128206:4;128202:22;128470:4;128462:6;128458:17;128513:8;128507:15;128553:4;128543:8;128536:22;128628:1286;128663:6;128654:7;128651:19;128628:1286;;;128769:1;128760:7;128756:15;128745:26;;128808:7;128802:14;129404:4;129396:5;129392:2;129388:14;129384:25;129374:8;129370:40;129364:47;129353:9;129345:67;129458:1;129447:9;129443:17;129430:30;;129550:4;129542:5;129538:2;129534:14;129530:25;129520:8;129516:40;129510:47;129499:9;129491:67;129604:1;129593:9;129589:17;129576:30;;129695:4;129687:5;129684:1;129680:13;129676:24;129666:8;129662:39;129656:46;129645:9;129637:66;129749:1;129738:9;129734:17;129721:30;;129832:4;129825:5;129821:16;129811:8;129807:31;129801:38;129790:9;129782:58;129886:1;129875:9;129871:17;129858:30;;128690:1224;128628:1286;;;129995:10;129985:8;129978:28;130025:11;130022:457;;;130210:1;130203:4;130197:11;130193:19;130235:1;130230:135;;;;130388:1;130383:81;;;;130186:278;;130230:135;130287:4;130283:1;130272:9;130268:17;130260:32;130341:4;130337:1;130326:9;130322:17;130314:32;130230:135;;130383:81;130440:4;130436:1;130425:9;130421:17;130413:32;130186:278;;130022:457;127918:2572;;;;;;130509:6;130502:13;;;;126414:4109;;;;;;:::o;81567:948::-;81620:7;81640:14;81657:1;81640:18;;81707:8;81698:5;:17;81694:106;;81745:8;81736:17;;;;;;:::i;:::-;;;;;81782:2;81772:12;;;;81694:106;81827:8;81818:5;:17;81814:106;;81865:8;81856:17;;;;;;:::i;:::-;;;;;81902:2;81892:12;;;;81814:106;81947:8;81938:5;:17;81934:106;;81985:8;81976:17;;;;;;:::i;:::-;;;;;82022:2;82012:12;;;;81934:106;82067:7;82058:5;:16;82054:103;;82104:7;82095:16;;;;;;:::i;:::-;;;;;82140:1;82130:11;;;;82054:103;82184:7;82175:5;:16;82171:103;;82221:7;82212:16;;;;;;:::i;:::-;;;;;82257:1;82247:11;;;;82171:103;82301:7;82292:5;:16;82288:103;;82338:7;82329:16;;;;;;:::i;:::-;;;;;82374:1;82364:11;;;;82288:103;82418:7;82409:5;:16;82405:68;;82456:1;82446:11;;;;82405:68;82501:6;82494:13;;;81567:948;;;:::o;111667:276::-;111770:4;111826:1;111807:21;;:7;:21;;;;:128;;;;;111855:7;111846:16;;:5;:16;;;:52;;;;111866:32;111883:5;111890:7;111866:16;:32::i;:::-;111846:52;:88;;;;111927:7;111902:32;;:21;111915:7;111902:12;:21::i;:::-;:32;;;111846:88;111807:128;111787:148;;111667:276;;;;;:::o;115339:335::-;115421:1;115407:16;;:2;:16;;;115403:89;;115477:1;115447:33;;;;;;;;;;;:::i;:::-;;;;;;;;115403:89;115502:21;115526:32;115534:2;115538:7;115555:1;115526:7;:32::i;:::-;115502:56;;115598:1;115573:27;;:13;:27;;;115569:98;;115652:1;115624:31;;;;;;;;;;;:::i;:::-;;;;;;;;115569:98;115392:282;115339:335;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7:75:1:-;40:6;73:2;67:9;57:19;;7:75;:::o;88:117::-;197:1;194;187:12;211:117;320:1;317;310:12;334:149;370:7;410:66;403:5;399:78;388:89;;334:149;;;:::o;489:120::-;561:23;578:5;561:23;:::i;:::-;554:5;551:34;541:62;;599:1;596;589:12;541:62;489:120;:::o;615:137::-;660:5;698:6;685:20;676:29;;714:32;740:5;714:32;:::i;:::-;615:137;;;;:::o;758:327::-;816:6;865:2;853:9;844:7;840:23;836:32;833:119;;;871:79;;:::i;:::-;833:119;991:1;1016:52;1060:7;1051:6;1040:9;1036:22;1016:52;:::i;:::-;1006:62;;962:116;758:327;;;;:::o;1091:90::-;1125:7;1168:5;1161:13;1154:21;1143:32;;1091:90;;;:::o;1187:109::-;1268:21;1283:5;1268:21;:::i;:::-;1263:3;1256:34;1187:109;;:::o;1302:210::-;1389:4;1427:2;1416:9;1412:18;1404:26;;1440:65;1502:1;1491:9;1487:17;1478:6;1440:65;:::i;:::-;1302:210;;;;:::o;1518:99::-;1570:6;1604:5;1598:12;1588:22;;1518:99;;;:::o;1623:169::-;1707:11;1741:6;1736:3;1729:19;1781:4;1776:3;1772:14;1757:29;;1623:169;;;;:::o;1798:139::-;1887:6;1882:3;1877;1871:23;1928:1;1919:6;1914:3;1910:16;1903:27;1798:139;;;:::o;1943:102::-;1984:6;2035:2;2031:7;2026:2;2019:5;2015:14;2011:28;2001:38;;1943:102;;;:::o;2051:377::-;2139:3;2167:39;2200:5;2167:39;:::i;:::-;2222:71;2286:6;2281:3;2222:71;:::i;:::-;2215:78;;2302:65;2360:6;2355:3;2348:4;2341:5;2337:16;2302:65;:::i;:::-;2392:29;2414:6;2392:29;:::i;:::-;2387:3;2383:39;2376:46;;2143:285;2051:377;;;;:::o;2434:313::-;2547:4;2585:2;2574:9;2570:18;2562:26;;2634:9;2628:4;2624:20;2620:1;2609:9;2605:17;2598:47;2662:78;2735:4;2726:6;2662:78;:::i;:::-;2654:86;;2434:313;;;;:::o;2753:77::-;2790:7;2819:5;2808:16;;2753:77;;;:::o;2836:122::-;2909:24;2927:5;2909:24;:::i;:::-;2902:5;2899:35;2889:63;;2948:1;2945;2938:12;2889:63;2836:122;:::o;2964:139::-;3010:5;3048:6;3035:20;3026:29;;3064:33;3091:5;3064:33;:::i;:::-;2964:139;;;;:::o;3109:329::-;3168:6;3217:2;3205:9;3196:7;3192:23;3188:32;3185:119;;;3223:79;;:::i;:::-;3185:119;3343:1;3368:53;3413:7;3404:6;3393:9;3389:22;3368:53;:::i;:::-;3358:63;;3314:117;3109:329;;;;:::o;3444:126::-;3481:7;3521:42;3514:5;3510:54;3499:65;;3444:126;;;:::o;3576:96::-;3613:7;3642:24;3660:5;3642:24;:::i;:::-;3631:35;;3576:96;;;:::o;3678:118::-;3765:24;3783:5;3765:24;:::i;:::-;3760:3;3753:37;3678:118;;:::o;3802:222::-;3895:4;3933:2;3922:9;3918:18;3910:26;;3946:71;4014:1;4003:9;3999:17;3990:6;3946:71;:::i;:::-;3802:222;;;;:::o;4030:122::-;4103:24;4121:5;4103:24;:::i;:::-;4096:5;4093:35;4083:63;;4142:1;4139;4132:12;4083:63;4030:122;:::o;4158:139::-;4204:5;4242:6;4229:20;4220:29;;4258:33;4285:5;4258:33;:::i;:::-;4158:139;;;;:::o;4303:474::-;4371:6;4379;4428:2;4416:9;4407:7;4403:23;4399:32;4396:119;;;4434:79;;:::i;:::-;4396:119;4554:1;4579:53;4624:7;4615:6;4604:9;4600:22;4579:53;:::i;:::-;4569:63;;4525:117;4681:2;4707:53;4752:7;4743:6;4732:9;4728:22;4707:53;:::i;:::-;4697:63;;4652:118;4303:474;;;;;:::o;4783:118::-;4870:24;4888:5;4870:24;:::i;:::-;4865:3;4858:37;4783:118;;:::o;4907:222::-;5000:4;5038:2;5027:9;5023:18;5015:26;;5051:71;5119:1;5108:9;5104:17;5095:6;5051:71;:::i;:::-;4907:222;;;;:::o;5135:619::-;5212:6;5220;5228;5277:2;5265:9;5256:7;5252:23;5248:32;5245:119;;;5283:79;;:::i;:::-;5245:119;5403:1;5428:53;5473:7;5464:6;5453:9;5449:22;5428:53;:::i;:::-;5418:63;;5374:117;5530:2;5556:53;5601:7;5592:6;5581:9;5577:22;5556:53;:::i;:::-;5546:63;;5501:118;5658:2;5684:53;5729:7;5720:6;5709:9;5705:22;5684:53;:::i;:::-;5674:63;;5629:118;5135:619;;;;;:::o;5760:329::-;5819:6;5868:2;5856:9;5847:7;5843:23;5839:32;5836:119;;;5874:79;;:::i;:::-;5836:119;5994:1;6019:53;6064:7;6055:6;6044:9;6040:22;6019:53;:::i;:::-;6009:63;;5965:117;5760:329;;;;:::o;6095:116::-;6165:21;6180:5;6165:21;:::i;:::-;6158:5;6155:32;6145:60;;6201:1;6198;6191:12;6145:60;6095:116;:::o;6217:133::-;6260:5;6298:6;6285:20;6276:29;;6314:30;6338:5;6314:30;:::i;:::-;6217:133;;;;:::o;6356:468::-;6421:6;6429;6478:2;6466:9;6457:7;6453:23;6449:32;6446:119;;;6484:79;;:::i;:::-;6446:119;6604:1;6629:53;6674:7;6665:6;6654:9;6650:22;6629:53;:::i;:::-;6619:63;;6575:117;6731:2;6757:50;6799:7;6790:6;6779:9;6775:22;6757:50;:::i;:::-;6747:60;;6702:115;6356:468;;;;;:::o;6830:117::-;6939:1;6936;6929:12;6953:117;7062:1;7059;7052:12;7076:180;7124:77;7121:1;7114:88;7221:4;7218:1;7211:15;7245:4;7242:1;7235:15;7262:281;7345:27;7367:4;7345:27;:::i;:::-;7337:6;7333:40;7475:6;7463:10;7460:22;7439:18;7427:10;7424:34;7421:62;7418:88;;;7486:18;;:::i;:::-;7418:88;7526:10;7522:2;7515:22;7305:238;7262:281;;:::o;7549:129::-;7583:6;7610:20;;:::i;:::-;7600:30;;7639:33;7667:4;7659:6;7639:33;:::i;:::-;7549:129;;;:::o;7684:307::-;7745:4;7835:18;7827:6;7824:30;7821:56;;;7857:18;;:::i;:::-;7821:56;7895:29;7917:6;7895:29;:::i;:::-;7887:37;;7979:4;7973;7969:15;7961:23;;7684:307;;;:::o;7997:148::-;8095:6;8090:3;8085;8072:30;8136:1;8127:6;8122:3;8118:16;8111:27;7997:148;;;:::o;8151:423::-;8228:5;8253:65;8269:48;8310:6;8269:48;:::i;:::-;8253:65;:::i;:::-;8244:74;;8341:6;8334:5;8327:21;8379:4;8372:5;8368:16;8417:3;8408:6;8403:3;8399:16;8396:25;8393:112;;;8424:79;;:::i;:::-;8393:112;8514:54;8561:6;8556:3;8551;8514:54;:::i;:::-;8234:340;8151:423;;;;;:::o;8593:338::-;8648:5;8697:3;8690:4;8682:6;8678:17;8674:27;8664:122;;8705:79;;:::i;:::-;8664:122;8822:6;8809:20;8847:78;8921:3;8913:6;8906:4;8898:6;8894:17;8847:78;:::i;:::-;8838:87;;8654:277;8593:338;;;;:::o;8937:943::-;9032:6;9040;9048;9056;9105:3;9093:9;9084:7;9080:23;9076:33;9073:120;;;9112:79;;:::i;:::-;9073:120;9232:1;9257:53;9302:7;9293:6;9282:9;9278:22;9257:53;:::i;:::-;9247:63;;9203:117;9359:2;9385:53;9430:7;9421:6;9410:9;9406:22;9385:53;:::i;:::-;9375:63;;9330:118;9487:2;9513:53;9558:7;9549:6;9538:9;9534:22;9513:53;:::i;:::-;9503:63;;9458:118;9643:2;9632:9;9628:18;9615:32;9674:18;9666:6;9663:30;9660:117;;;9696:79;;:::i;:::-;9660:117;9801:62;9855:7;9846:6;9835:9;9831:22;9801:62;:::i;:::-;9791:72;;9586:287;8937:943;;;;;;;:::o;9886:474::-;9954:6;9962;10011:2;9999:9;9990:7;9986:23;9982:32;9979:119;;;10017:79;;:::i;:::-;9979:119;10137:1;10162:53;10207:7;10198:6;10187:9;10183:22;10162:53;:::i;:::-;10152:63;;10108:117;10264:2;10290:53;10335:7;10326:6;10315:9;10311:22;10290:53;:::i;:::-;10280:63;;10235:118;9886:474;;;;;:::o;10366:180::-;10414:77;10411:1;10404:88;10511:4;10508:1;10501:15;10535:4;10532:1;10525:15;10552:320;10596:6;10633:1;10627:4;10623:12;10613:22;;10680:1;10674:4;10670:12;10701:18;10691:81;;10757:4;10749:6;10745:17;10735:27;;10691:81;10819:2;10811:6;10808:14;10788:18;10785:38;10782:84;;10838:18;;:::i;:::-;10782:84;10603:269;10552:320;;;:::o;10878:442::-;11027:4;11065:2;11054:9;11050:18;11042:26;;11078:71;11146:1;11135:9;11131:17;11122:6;11078:71;:::i;:::-;11159:72;11227:2;11216:9;11212:18;11203:6;11159:72;:::i;:::-;11241;11309:2;11298:9;11294:18;11285:6;11241:72;:::i;:::-;10878:442;;;;;;:::o;11326:181::-;11466:33;11462:1;11454:6;11450:14;11443:57;11326:181;:::o;11513:366::-;11655:3;11676:67;11740:2;11735:3;11676:67;:::i;:::-;11669:74;;11752:93;11841:3;11752:93;:::i;:::-;11870:2;11865:3;11861:12;11854:19;;11513:366;;;:::o;11885:419::-;12051:4;12089:2;12078:9;12074:18;12066:26;;12138:9;12132:4;12128:20;12124:1;12113:9;12109:17;12102:47;12166:131;12292:4;12166:131;:::i;:::-;12158:139;;11885:419;;;:::o;12310:227::-;12450:34;12446:1;12438:6;12434:14;12427:58;12519:10;12514:2;12506:6;12502:15;12495:35;12310:227;:::o;12543:366::-;12685:3;12706:67;12770:2;12765:3;12706:67;:::i;:::-;12699:74;;12782:93;12871:3;12782:93;:::i;:::-;12900:2;12895:3;12891:12;12884:19;;12543:366;;;:::o;12915:419::-;13081:4;13119:2;13108:9;13104:18;13096:26;;13168:9;13162:4;13158:20;13154:1;13143:9;13139:17;13132:47;13196:131;13322:4;13196:131;:::i;:::-;13188:139;;12915:419;;;:::o;13340:180::-;13388:77;13385:1;13378:88;13485:4;13482:1;13475:15;13509:4;13506:1;13499:15;13526:191;13566:3;13585:20;13603:1;13585:20;:::i;:::-;13580:25;;13619:20;13637:1;13619:20;:::i;:::-;13614:25;;13662:1;13659;13655:9;13648:16;;13683:3;13680:1;13677:10;13674:36;;;13690:18;;:::i;:::-;13674:36;13526:191;;;;:::o;13723:181::-;13863:33;13859:1;13851:6;13847:14;13840:57;13723:181;:::o;13910:366::-;14052:3;14073:67;14137:2;14132:3;14073:67;:::i;:::-;14066:74;;14149:93;14238:3;14149:93;:::i;:::-;14267:2;14262:3;14258:12;14251:19;;13910:366;;;:::o;14282:419::-;14448:4;14486:2;14475:9;14471:18;14463:26;;14535:9;14529:4;14525:20;14521:1;14510:9;14506:17;14499:47;14563:131;14689:4;14563:131;:::i;:::-;14555:139;;14282:419;;;:::o;14707:233::-;14746:3;14769:24;14787:5;14769:24;:::i;:::-;14760:33;;14815:66;14808:5;14805:77;14802:103;;14885:18;;:::i;:::-;14802:103;14932:1;14925:5;14921:13;14914:20;;14707:233;;;:::o;14946:168::-;15086:20;15082:1;15074:6;15070:14;15063:44;14946:168;:::o;15120:366::-;15262:3;15283:67;15347:2;15342:3;15283:67;:::i;:::-;15276:74;;15359:93;15448:3;15359:93;:::i;:::-;15477:2;15472:3;15468:12;15461:19;;15120:366;;;:::o;15492:419::-;15658:4;15696:2;15685:9;15681:18;15673:26;;15745:9;15739:4;15735:20;15731:1;15720:9;15716:17;15709:47;15773:131;15899:4;15773:131;:::i;:::-;15765:139;;15492:419;;;:::o;15917:170::-;16057:22;16053:1;16045:6;16041:14;16034:46;15917:170;:::o;16093:366::-;16235:3;16256:67;16320:2;16315:3;16256:67;:::i;:::-;16249:74;;16332:93;16421:3;16332:93;:::i;:::-;16450:2;16445:3;16441:12;16434:19;;16093:366;;;:::o;16465:419::-;16631:4;16669:2;16658:9;16654:18;16646:26;;16718:9;16712:4;16708:20;16704:1;16693:9;16689:17;16682:47;16746:131;16872:4;16746:131;:::i;:::-;16738:139;;16465:419;;;:::o;16890:171::-;17030:23;17026:1;17018:6;17014:14;17007:47;16890:171;:::o;17067:366::-;17209:3;17230:67;17294:2;17289:3;17230:67;:::i;:::-;17223:74;;17306:93;17395:3;17306:93;:::i;:::-;17424:2;17419:3;17415:12;17408:19;;17067:366;;;:::o;17439:419::-;17605:4;17643:2;17632:9;17628:18;17620:26;;17692:9;17686:4;17682:20;17678:1;17667:9;17663:17;17656:47;17720:131;17846:4;17720:131;:::i;:::-;17712:139;;17439:419;;;:::o;17864:148::-;17966:11;18003:3;17988:18;;17864:148;;;;:::o;18018:176::-;18158:28;18154:1;18146:6;18142:14;18135:52;18018:176;:::o;18200:402::-;18360:3;18381:85;18463:2;18458:3;18381:85;:::i;:::-;18374:92;;18475:93;18564:3;18475:93;:::i;:::-;18593:2;18588:3;18584:12;18577:19;;18200:402;;;:::o;18608:390::-;18714:3;18742:39;18775:5;18742:39;:::i;:::-;18797:89;18879:6;18874:3;18797:89;:::i;:::-;18790:96;;18895:65;18953:6;18948:3;18941:4;18934:5;18930:16;18895:65;:::i;:::-;18985:6;18980:3;18976:16;18969:23;;18718:280;18608:390;;;;:::o;19004:541::-;19237:3;19259:148;19403:3;19259:148;:::i;:::-;19252:155;;19424:95;19515:3;19506:6;19424:95;:::i;:::-;19417:102;;19536:3;19529:10;;19004:541;;;;:::o;19551:214::-;19691:66;19687:1;19679:6;19675:14;19668:90;19551:214;:::o;19771:402::-;19931:3;19952:85;20034:2;20029:3;19952:85;:::i;:::-;19945:92;;20046:93;20135:3;20046:93;:::i;:::-;20164:2;20159:3;20155:12;20148:19;;19771:402;;;:::o;20179:333::-;20319:66;20315:1;20307:6;20303:14;20296:90;20420:34;20415:2;20407:6;20403:15;20396:59;20489:15;20484:2;20476:6;20472:15;20465:40;20179:333;:::o;20518:402::-;20678:3;20699:85;20781:2;20776:3;20699:85;:::i;:::-;20692:92;;20793:93;20882:3;20793:93;:::i;:::-;20911:2;20906:3;20902:12;20895:19;;20518:402;;;:::o;20926:214::-;21066:66;21062:1;21054:6;21050:14;21043:90;20926:214;:::o;21146:400::-;21306:3;21327:84;21409:1;21404:3;21327:84;:::i;:::-;21320:91;;21420:93;21509:3;21420:93;:::i;:::-;21538:1;21533:3;21529:11;21522:18;;21146:400;;;:::o;21552:214::-;21692:66;21688:1;21680:6;21676:14;21669:90;21552:214;:::o;21772:402::-;21932:3;21953:85;22035:2;22030:3;21953:85;:::i;:::-;21946:92;;22047:93;22136:3;22047:93;:::i;:::-;22165:2;22160:3;22156:12;22149:19;;21772:402;;;:::o;22180:315::-;22320:66;22316:1;22308:6;22304:14;22297:90;22421:66;22416:2;22408:6;22404:15;22397:91;22180:315;:::o;22501:402::-;22661:3;22682:85;22764:2;22759:3;22682:85;:::i;:::-;22675:92;;22776:93;22865:3;22776:93;:::i;:::-;22894:2;22889:3;22885:12;22878:19;;22501:402;;;:::o;22909:214::-;23049:66;23045:1;23037:6;23033:14;23026:90;22909:214;:::o;23129:400::-;23289:3;23310:84;23392:1;23387:3;23310:84;:::i;:::-;23303:91;;23403:93;23492:3;23403:93;:::i;:::-;23521:1;23516:3;23512:11;23505:18;;23129:400;;;:::o;23535:2617::-;24518:3;24540:148;24684:3;24540:148;:::i;:::-;24533:155;;24705:95;24796:3;24787:6;24705:95;:::i;:::-;24698:102;;24817:148;24961:3;24817:148;:::i;:::-;24810:155;;24982:95;25073:3;25064:6;24982:95;:::i;:::-;24975:102;;25094:148;25238:3;25094:148;:::i;:::-;25087:155;;25259:148;25403:3;25259:148;:::i;:::-;25252:155;;25424:95;25515:3;25506:6;25424:95;:::i;:::-;25417:102;;25536:148;25680:3;25536:148;:::i;:::-;25529:155;;25701:148;25845:3;25701:148;:::i;:::-;25694:155;;25866:95;25957:3;25948:6;25866:95;:::i;:::-;25859:102;;25978:148;26122:3;25978:148;:::i;:::-;25971:155;;26143:3;26136:10;;23535:2617;;;;;;;:::o;26158:179::-;26298:31;26294:1;26286:6;26282:14;26275:55;26158:179;:::o;26343:402::-;26503:3;26524:85;26606:2;26601:3;26524:85;:::i;:::-;26517:92;;26618:93;26707:3;26618:93;:::i;:::-;26736:2;26731:3;26727:12;26720:19;;26343:402;;;:::o;26751:541::-;26984:3;27006:148;27150:3;27006:148;:::i;:::-;26999:155;;27171:95;27262:3;27253:6;27171:95;:::i;:::-;27164:102;;27283:3;27276:10;;26751:541;;;;:::o;27298:98::-;27349:6;27383:5;27377:12;27367:22;;27298:98;;;:::o;27402:168::-;27485:11;27519:6;27514:3;27507:19;27559:4;27554:3;27550:14;27535:29;;27402:168;;;;:::o;27576:373::-;27662:3;27690:38;27722:5;27690:38;:::i;:::-;27744:70;27807:6;27802:3;27744:70;:::i;:::-;27737:77;;27823:65;27881:6;27876:3;27869:4;27862:5;27858:16;27823:65;:::i;:::-;27913:29;27935:6;27913:29;:::i;:::-;27908:3;27904:39;27897:46;;27666:283;27576:373;;;;:::o;27955:640::-;28150:4;28188:3;28177:9;28173:19;28165:27;;28202:71;28270:1;28259:9;28255:17;28246:6;28202:71;:::i;:::-;28283:72;28351:2;28340:9;28336:18;28327:6;28283:72;:::i;:::-;28365;28433:2;28422:9;28418:18;28409:6;28365:72;:::i;:::-;28484:9;28478:4;28474:20;28469:2;28458:9;28454:18;28447:48;28512:76;28583:4;28574:6;28512:76;:::i;:::-;28504:84;;27955:640;;;;;;;:::o;28601:141::-;28657:5;28688:6;28682:13;28673:22;;28704:32;28730:5;28704:32;:::i;:::-;28601:141;;;;:::o;28748:349::-;28817:6;28866:2;28854:9;28845:7;28841:23;28837:32;28834:119;;;28872:79;;:::i;:::-;28834:119;28992:1;29017:63;29072:7;29063:6;29052:9;29048:22;29017:63;:::i;:::-;29007:73;;28963:127;28748:349;;;;:::o;29103:180::-;29151:77;29148:1;29141:88;29248:4;29245:1;29238:15;29272:4;29269:1;29262:15;29289:180;29337:77;29334:1;29327:88;29434:4;29431:1;29424:15;29458:4;29455:1;29448:15;29475:185;29515:1;29532:20;29550:1;29532:20;:::i;:::-;29527:25;;29566:20;29584:1;29566:20;:::i;:::-;29561:25;;29605:1;29595:35;;29610:18;;:::i;:::-;29595:35;29652:1;29649;29645:9;29640:14;;29475:185;;;;:::o;29666:176::-;29698:1;29715:20;29733:1;29715:20;:::i;:::-;29710:25;;29749:20;29767:1;29749:20;:::i;:::-;29744:25;;29788:1;29778:35;;29793:18;;:::i;:::-;29778:35;29834:1;29831;29827:9;29822:14;;29666:176;;;;:::o;29848:194::-;29888:4;29908:20;29926:1;29908:20;:::i;:::-;29903:25;;29942:20;29960:1;29942:20;:::i;:::-;29937:25;;29986:1;29983;29979:9;29971:17;;30010:1;30004:4;30001:11;29998:37;;;30015:18;;:::i;:::-;29998:37;29848:194;;;;:::o;30048:410::-;30088:7;30111:20;30129:1;30111:20;:::i;:::-;30106:25;;30145:20;30163:1;30145:20;:::i;:::-;30140:25;;30200:1;30197;30193:9;30222:30;30240:11;30222:30;:::i;:::-;30211:41;;30401:1;30392:7;30388:15;30385:1;30382:22;30362:1;30355:9;30335:83;30312:139;;30431:18;;:::i;:::-;30312:139;30096:362;30048:410;;;;:::o;30464:214::-;30604:66;30600:1;30592:6;30588:14;30581:90;30464:214;:::o;30684:400::-;30844:3;30865:84;30947:1;30942:3;30865:84;:::i;:::-;30858:91;;30958:93;31047:3;30958:93;:::i;:::-;31076:1;31071:3;31067:11;31060:18;;30684:400;;;:::o;31090:214::-;31230:66;31226:1;31218:6;31214:14;31207:90;31090:214;:::o;31310:400::-;31470:3;31491:84;31573:1;31568:3;31491:84;:::i;:::-;31484:91;;31584:93;31673:3;31584:93;:::i;:::-;31702:1;31697:3;31693:11;31686:18;;31310:400;;;:::o;31716:214::-;31856:66;31852:1;31844:6;31840:14;31833:90;31716:214;:::o;31936:402::-;32096:3;32117:85;32199:2;32194:3;32117:85;:::i;:::-;32110:92;;32211:93;32300:3;32211:93;:::i;:::-;32329:2;32324:3;32320:12;32313:19;;31936:402;;;:::o;32344:214::-;32484:66;32480:1;32472:6;32468:14;32461:90;32344:214;:::o;32564:400::-;32724:3;32745:84;32827:1;32822:3;32745:84;:::i;:::-;32738:91;;32838:93;32927:3;32838:93;:::i;:::-;32956:1;32951:3;32947:11;32940:18;;32564:400;;;:::o;32970:1819::-;33650:3;33672:95;33763:3;33754:6;33672:95;:::i;:::-;33665:102;;33784:148;33928:3;33784:148;:::i;:::-;33777:155;;33949:95;34040:3;34031:6;33949:95;:::i;:::-;33942:102;;34061:148;34205:3;34061:148;:::i;:::-;34054:155;;34226:95;34317:3;34308:6;34226:95;:::i;:::-;34219:102;;34338:148;34482:3;34338:148;:::i;:::-;34331:155;;34503:95;34594:3;34585:6;34503:95;:::i;:::-;34496:102;;34615:148;34759:3;34615:148;:::i;:::-;34608:155;;34780:3;34773:10;;32970:1819;;;;;;;:::o;34795:147::-;34896:11;34933:3;34918:18;;34795:147;;;;:::o;34948:386::-;35052:3;35080:38;35112:5;35080:38;:::i;:::-;35134:88;35215:6;35210:3;35134:88;:::i;:::-;35127:95;;35231:65;35289:6;35284:3;35277:4;35270:5;35266:16;35231:65;:::i;:::-;35321:6;35316:3;35312:16;35305:23;;35056:278;34948:386;;;;:::o;35340:431::-;35518:3;35540:93;35629:3;35620:6;35540:93;:::i;:::-;35533:100;;35650:95;35741:3;35732:6;35650:95;:::i;:::-;35643:102;;35762:3;35755:10;;35340:431;;;;;:::o;35777:332::-;35898:4;35936:2;35925:9;35921:18;35913:26;;35949:71;36017:1;36006:9;36002:17;35993:6;35949:71;:::i;:::-;36030:72;36098:2;36087:9;36083:18;36074:6;36030:72;:::i;:::-;35777:332;;;;;:::o;36115:156::-;36255:8;36251:1;36243:6;36239:14;36232:32;36115:156;:::o;36277:400::-;36437:3;36458:84;36540:1;36535:3;36458:84;:::i;:::-;36451:91;;36551:93;36640:3;36551:93;:::i;:::-;36669:1;36664:3;36660:11;36653:18;;36277:400;;;:::o;36683:541::-;36916:3;36938:148;37082:3;36938:148;:::i;:::-;36931:155;;37103:95;37194:3;37185:6;37103:95;:::i;:::-;37096:102;;37215:3;37208:10;;36683:541;;;;:::o;37230:155::-;37370:7;37366:1;37358:6;37354:14;37347:31;37230:155;:::o;37391:400::-;37551:3;37572:84;37654:1;37649:3;37572:84;:::i;:::-;37565:91;;37665:93;37754:3;37665:93;:::i;:::-;37783:1;37778:3;37774:11;37767:18;;37391:400;;;:::o;37797:541::-;38030:3;38052:148;38196:3;38052:148;:::i;:::-;38045:155;;38217:95;38308:3;38299:6;38217:95;:::i;:::-;38210:102;;38329:3;38322:10;;37797:541;;;;:::o;38344:154::-;38484:6;38480:1;38472:6;38468:14;38461:30;38344:154;:::o;38504:400::-;38664:3;38685:84;38767:1;38762:3;38685:84;:::i;:::-;38678:91;;38778:93;38867:3;38778:93;:::i;:::-;38896:1;38891:3;38887:11;38880:18;;38504:400;;;:::o;38910:541::-;39143:3;39165:148;39309:3;39165:148;:::i;:::-;39158:155;;39330:95;39421:3;39412:6;39330:95;:::i;:::-;39323:102;;39442:3;39435:10;;38910:541;;;;:::o;39457:153::-;39597:5;39593:1;39585:6;39581:14;39574:29;39457:153;:::o;39616:400::-;39776:3;39797:84;39879:1;39874:3;39797:84;:::i;:::-;39790:91;;39890:93;39979:3;39890:93;:::i;:::-;40008:1;40003:3;39999:11;39992:18;;39616:400;;;:::o;40022:541::-;40255:3;40277:148;40421:3;40277:148;:::i;:::-;40270:155;;40442:95;40533:3;40524:6;40442:95;:::i;:::-;40435:102;;40554:3;40547:10;;40022:541;;;;:::o
Swarm Source
ipfs://4786a7750234b50a5dcf6597f5aa6a3a7292af5615ea90fc4e220f5e705b528a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.