Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 16980401 | 480 days ago | IN | 0 ETH | 0.10785595 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
SnakesNFT
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-04-05 */ // SPDX-License-Identifier: MIT // File erc721a-upgradeable/contracts/[email protected] // License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base storage for the initialization function for upgradeable diamond facet contracts **/ library ERC721A__InitializableStorage { struct Layout { /* * Indicates that the contract has been initialized. */ bool _initialized; /* * Indicates that the contract is in the process of being initialized. */ bool _initializing; } bytes32 internal constant STORAGE_SLOT = keccak256('ERC721A.contracts.storage.initializable.facet'); function layout() internal pure returns (Layout storage l) { bytes32 slot = STORAGE_SLOT; assembly { l.slot := slot } } } // File erc721a-upgradeable/contracts/[email protected] // License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable diamond facet contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract ERC721A__Initializable { using ERC721A__InitializableStorage for ERC721A__InitializableStorage.Layout; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializerERC721A() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require( ERC721A__InitializableStorage.layout()._initializing ? _isConstructor() : !ERC721A__InitializableStorage.layout()._initialized, 'ERC721A__Initializable: contract is already initialized' ); bool isTopLevelCall = !ERC721A__InitializableStorage.layout()._initializing; if (isTopLevelCall) { ERC721A__InitializableStorage.layout()._initializing = true; ERC721A__InitializableStorage.layout()._initialized = true; } _; if (isTopLevelCall) { ERC721A__InitializableStorage.layout()._initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializingERC721A() { require( ERC721A__InitializableStorage.layout()._initializing, 'ERC721A__Initializable: contract is not initializing' ); _; } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; assembly { cs := extcodesize(self) } return cs == 0; } } // File erc721a-upgradeable/contracts/[email protected] // License-Identifier: MIT pragma solidity ^0.8.0; library ERC721AStorage { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } struct Layout { // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 _currentIndex; // The number of tokens burned. uint256 _burnCounter; // Token name string _name; // Token symbol string _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => ERC721AStorage.TokenApprovalRef) _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) _operatorApprovals; } bytes32 internal constant STORAGE_SLOT = keccak256('ERC721A.contracts.storage.ERC721A'); function layout() internal pure returns (Layout storage l) { bytes32 slot = STORAGE_SLOT; assembly { l.slot := slot } } } // File erc721a-upgradeable/contracts/[email protected] // License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721AUpgradeable { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File erc721a-upgradeable/contracts/[email protected] // License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721ReceiverUpgradeable { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721AUpgradeable is ERC721A__Initializable, IERC721AUpgradeable { using ERC721AStorage for ERC721AStorage.Layout; // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // CONSTRUCTOR // ============================================================= function __ERC721A_init(string memory name_, string memory symbol_) internal onlyInitializingERC721A { __ERC721A_init_unchained(name_, symbol_); } function __ERC721A_init_unchained(string memory name_, string memory symbol_) internal onlyInitializingERC721A { ERC721AStorage.layout()._name = name_; ERC721AStorage.layout()._symbol = symbol_; ERC721AStorage.layout()._currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return ERC721AStorage.layout()._currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return ERC721AStorage.layout()._currentIndex - ERC721AStorage.layout()._burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return ERC721AStorage.layout()._currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return ERC721AStorage.layout()._burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return ERC721AStorage.layout()._packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (ERC721AStorage.layout()._packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (ERC721AStorage.layout()._packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(ERC721AStorage.layout()._packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = ERC721AStorage.layout()._packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); ERC721AStorage.layout()._packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return ERC721AStorage.layout()._name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return ERC721AStorage.layout()._symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(ERC721AStorage.layout()._packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (ERC721AStorage.layout()._packedOwnerships[index] == 0) { ERC721AStorage.layout()._packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = ERC721AStorage.layout()._packedOwnerships[tokenId]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= ERC721AStorage.layout()._currentIndex) revert OwnerQueryForNonexistentToken(); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = ERC721AStorage.layout()._packedOwnerships[--tokenId]; } if (packed == 0) continue; return packed; } } // Otherwise, the data exists and is not burned. We can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. return packed; } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return ERC721AStorage.layout()._tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { ERC721AStorage.layout()._operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return ERC721AStorage.layout()._operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < ERC721AStorage.layout()._currentIndex && // If within bounds, ERC721AStorage.layout()._packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { ERC721AStorage.TokenApprovalRef storage tokenApproval = ERC721AStorage.layout()._tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --ERC721AStorage.layout()._packedAddressData[from]; // Updates: `balance -= 1`. ++ERC721AStorage.layout()._packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. ERC721AStorage.layout()._packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (ERC721AStorage.layout()._packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != ERC721AStorage.layout()._currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. ERC721AStorage.layout()._packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721ReceiverUpgradeable(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (bytes4 retval) { return retval == ERC721A__IERC721ReceiverUpgradeable(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = ERC721AStorage.layout()._currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. ERC721AStorage.layout()._packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. ERC721AStorage.layout()._packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); ERC721AStorage.layout()._currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = ERC721AStorage.layout()._currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. ERC721AStorage.layout()._packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. ERC721AStorage.layout()._packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); ERC721AStorage.layout()._currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = ERC721AStorage.layout()._currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (ERC721AStorage.layout()._currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck) if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } ERC721AStorage.layout()._tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. ERC721AStorage.layout()._packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. ERC721AStorage.layout()._packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (ERC721AStorage.layout()._packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != ERC721AStorage.layout()._currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. ERC721AStorage.layout()._packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { ERC721AStorage.layout()._burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = ERC721AStorage.layout()._packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); ERC721AStorage.layout()._packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File erc721a-upgradeable/contracts/extensions/[email protected] // License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryableUpgradeable is IERC721AUpgradeable { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } // File erc721a-upgradeable/contracts/extensions/[email protected] // License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryableUpgradeable is ERC721A__Initializable, ERC721AUpgradeable, IERC721AQueryableUpgradeable { function __ERC721AQueryable_init() internal onlyInitializingERC721A { __ERC721AQueryable_init_unchained(); } function __ERC721AQueryable_init_unchained() internal onlyInitializingERC721A {} /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File @openzeppelin/contracts-upgradeable/proxy/utils/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } } // File @openzeppelin/contracts-upgradeable/security/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File @openzeppelin/contracts-upgradeable/access/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File @openzeppelin/contracts-upgradeable/security/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File @openzeppelin/contracts-upgradeable/utils/math/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUpgradeable { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = MathUpgradeable.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, MathUpgradeable.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File @openzeppelin/contracts-upgradeable/utils/cryptography/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProofUpgradeable { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File @openzeppelin/contracts-upgradeable/utils/introspection/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @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[EIP 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-upgradeable/interfaces/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981Upgradeable is IERC165Upgradeable { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } // File @openzeppelin/contracts-upgradeable/utils/introspection/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 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); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; } // File @openzeppelin/contracts-upgradeable/token/common/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981Upgradeable is Initializable, IERC2981Upgradeable, ERC165Upgradeable { function __ERC2981_init() internal onlyInitializing { } function __ERC2981_init_unchained() internal onlyInitializing { } struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165Upgradeable, ERC165Upgradeable) returns (bool) { return interfaceId == type(IERC2981Upgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981Upgradeable */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[48] private __gap; } // File operator-filter-registry/src/lib/[email protected] // License-Identifier: MIT pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; // File operator-filter-registry/src/[email protected] // License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); } // File operator-filter-registry/src/upgradeable/[email protected] // License-Identifier: MIT pragma solidity ^0.8.13; /** * @title OperatorFiltererUpgradeable * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry when the init function is called. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFiltererUpgradeable is Initializable { /// @notice Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); /// @dev The upgradeable initialize function that should be called when the contract is being upgraded. function __OperatorFilterer_init(address subscriptionOrRegistrantToCopy, bool subscribe) internal onlyInitializing { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isRegistered(address(this))) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } } /** * @dev A helper modifier to check if the operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper modifier to check if the operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if the operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting or // upgraded contracts may specify their own OperatorFilterRegistry implementations, which may behave // differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } // File operator-filter-registry/src/upgradeable/[email protected] // License-Identifier: MIT pragma solidity ^0.8.13; /** * @title DefaultOperatorFiltererUpgradeable * @notice Inherits from OperatorFiltererUpgradeable and automatically subscribes to the default OpenSea subscription * when the init function is called. */ abstract contract DefaultOperatorFiltererUpgradeable is OperatorFiltererUpgradeable { /// @dev The upgradeable initialize function that should be called when the contract is being deployed. function __DefaultOperatorFilterer_init() internal onlyInitializing { OperatorFiltererUpgradeable.__OperatorFilterer_init(CANONICAL_CORI_SUBSCRIPTION, true); } } // File @openzeppelin/contracts-upgradeable/token/ERC20/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File @openzeppelin/contracts-upgradeable/token/ERC20/extensions/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20PermitUpgradeable { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File @openzeppelin/contracts-upgradeable/token/ERC20/utils/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20Upgradeable { using AddressUpgradeable for address; function safeTransfer( IERC20Upgradeable token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20Upgradeable token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20Upgradeable token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20PermitUpgradeable token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File contracts/SnakesNFT.sol // License-Identifier: MIT pragma solidity 0.8.18; contract SnakesNFT is ERC721AQueryableUpgradeable, OwnableUpgradeable, PausableUpgradeable, ReentrancyGuardUpgradeable, DefaultOperatorFiltererUpgradeable, ERC2981Upgradeable { using StringsUpgradeable for uint256; using SafeERC20Upgradeable for IERC20Upgradeable; string public constant version = "1"; address payable public walletAddress; string public uriPrefix; string public uriSuffix; uint256 public freeLimit; uint256 public mintLimit; uint256 public mintPrice; uint256 public maxSupply; uint256 public reserved; bool public minting; mapping(address => uint256) public minted; mapping(uint256 => uint256) public metadataId; mapping(uint256 => uint256) internal _rand; uint256 internal _salt; uint256 internal _remain; modifier reserveCompliance(uint256 amount) { require( !minting, "reserveCompliance: cannot reserve after minting started" ); require( totalSupply() + amount <= maxSupply, "reserveCompliance: max supply exceeded" ); _; } modifier mintCompliance(uint256 amount) { require(minting, "mintCompliance: minting not started"); require( _msgSender() == tx.origin, "mintCompliance: contract address not allowed" ); require(amount > 0, "mintCompliance: invalid mint amount"); require( totalSupply() + amount <= maxSupply, "mintCompliance: max supply exceeded" ); require( minted[_msgSender()] + amount <= mintLimit, "mintCompliance: mint limit exceeded" ); require( msg.value >= mintCost(_msgSender(), amount), "mintCompliance: insufficient fund" ); _; } modifier ownerMintCompliance(uint256 amount) { require(minting, "ownerMintCompliance: minting not started"); require( amount > 0, "minownerMintCompliancetCompliance: invalid mint amount" ); require( totalSupply() + amount <= maxSupply, "ownerMintCompliance: max supply exceeded" ); _; } constructor() initializerERC721A initializer { __Pausable_init(); _pause(); } function initialize( string calldata tokenName_, string calldata tokenSymbol_, string calldata uriPrefix_, address payable walletAddress_, uint256 freeLimit_, uint256 mintLimit_, uint256 mintPrice_, uint256 maxSupply_ ) external initializerERC721A initializer { require(freeLimit_ <= mintLimit_, "initialize: invalid limit value"); __ERC721A_init(tokenName_, tokenSymbol_); __ERC721AQueryable_init(); __Ownable_init(); __Pausable_init(); __ReentrancyGuard_init(); __ERC2981_init(); __DefaultOperatorFilterer_init(); _pause(); uriPrefix = uriPrefix_; walletAddress = walletAddress_; freeLimit = freeLimit_; mintLimit = mintLimit_; mintPrice = mintPrice_; maxSupply = maxSupply_; uriSuffix = ".json"; } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function setWalletAddress( address payable walletAddress_ ) external onlyOwner { walletAddress = walletAddress_; } function setFreeLimit(uint256 freeLimit_) external onlyOwner { require(freeLimit_ <= mintLimit, "setFreeLimit: invalid limit value"); freeLimit = freeLimit_; } function setMintLimit(uint256 mintLimit_) external onlyOwner { require(freeLimit <= mintLimit_, "setMintLimit: invalid limit value"); mintLimit = mintLimit_; } function setMintCost(uint256 mintPrice_) external onlyOwner { mintPrice = mintPrice_; } function setUriPrefix(string calldata uriPrefix_) external onlyOwner { uriPrefix = uriPrefix_; } function startMinting(uint256 salt) external onlyOwner { require(!minting, "startMinting: minting already started"); minting = true; _salt = salt; _remain = maxSupply - reserved; } function reserve( uint256 amount, address recipient ) external whenNotPaused nonReentrant onlyOwner reserveCompliance(amount) { _safeMint(recipient, amount); reserved = totalSupply(); } function mint( uint256 amount ) external payable whenNotPaused nonReentrant mintCompliance(amount) { uint256 start = totalSupply() + 1; _safeMint(_msgSender(), amount); uint256 end = totalSupply(); _assignMetadataIds(start, end); minted[_msgSender()] += amount; if (walletAddress != address(0) && address(this).balance > 0) { (bool success, ) = walletAddress.call{value: address(this).balance}( "" ); require(success, "mint: eth transfer failed"); } } function ownerMint( uint256 amount, address recipient ) external whenNotPaused nonReentrant onlyOwner ownerMintCompliance(amount) { uint256 start = totalSupply() + 1; _safeMint(recipient, amount); uint256 end = totalSupply(); _assignMetadataIds(start, end); } function rescueToken(address token) external onlyOwner { require( walletAddress != address(0), "rescueToken: wallet address not set" ); if (token == address(0x0)) { (bool success, ) = walletAddress.call{value: address(this).balance}( "" ); require(success, "rescueToken: eth transfer failed"); return; } IERC20Upgradeable erc20 = IERC20Upgradeable(token); uint256 balance = erc20.balanceOf(address(this)); erc20.safeTransfer(walletAddress, balance); } function setApprovalForAll( address operator, bool approved ) public override(ERC721AUpgradeable, IERC721AUpgradeable) onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve( address operator, uint256 tokenId ) public payable override(ERC721AUpgradeable, IERC721AUpgradeable) onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public payable override(ERC721AUpgradeable, IERC721AUpgradeable) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public payable override(ERC721AUpgradeable, IERC721AUpgradeable) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public payable override(ERC721AUpgradeable, IERC721AUpgradeable) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function tokenURI( uint256 tokenId ) public view virtual override(ERC721AUpgradeable, IERC721AUpgradeable) returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory currentBaseURI = _baseURI(); if (bytes(currentBaseURI).length <= 0) { return ""; } if (tokenId <= reserved) { return string( abi.encodePacked( currentBaseURI, tokenId.toString(), uriSuffix ) ); } return string( abi.encodePacked( currentBaseURI, metadataId[tokenId].toString(), uriSuffix ) ); } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721AUpgradeable, IERC721AUpgradeable, ERC2981Upgradeable) returns (bool) { return super.supportsInterface(interfaceId); } function mintCost( address addr, uint256 amount ) public view returns (uint256) { if (minted[addr] >= freeLimit) { return amount * mintPrice; } else if (amount > freeLimit - minted[addr]) { return (amount + minted[addr] - freeLimit) * mintPrice; } return 0; } function _assignMetadataIds(uint256 start, uint256 end) internal { for (uint256 i = start; i <= end; i++) { metadataId[i] = _getId(i); } } function _getId(uint256 serial) internal returns (uint256) { uint256 pos = _getRand(serial) % _remain; uint256 val = _rand[pos] == 0 ? pos : _rand[pos]; _rand[pos] = _rand[_remain - 1] == 0 ? _remain - 1 : _rand[_remain - 1]; _remain--; return val + reserved + _startTokenId(); } function _getRand(uint256 serial) internal returns (uint256 result) { result = uint256( keccak256( abi.encodePacked(blockhash(block.number - 1), serial, _salt) ) ); _salt += result % 666666; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721AUpgradeable.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721AUpgradeable.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"tokenName_","type":"string"},{"internalType":"string","name":"tokenSymbol_","type":"string"},{"internalType":"string","name":"uriPrefix_","type":"string"},{"internalType":"address payable","name":"walletAddress_","type":"address"},{"internalType":"uint256","name":"freeLimit_","type":"uint256"},{"internalType":"uint256","name":"mintLimit_","type":"uint256"},{"internalType":"uint256","name":"mintPrice_","type":"uint256"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metadataId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"rescueToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"freeLimit_","type":"uint256"}],"name":"setFreeLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintPrice_","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintLimit_","type":"uint256"}],"name":"setMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uriPrefix_","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"walletAddress_","type":"address"}],"name":"setWalletAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"salt","type":"uint256"}],"name":"startMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"walletAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5062000027620002c560201b6200205e1760201c565b54610100900460ff1662000055576200004a620002c560201b6200205e1760201c565b5460ff161562000059565b303b155b620000d15760405162461bcd60e51b815260206004820152603760248201527f455243373231415f5f496e697469616c697a61626c653a20636f6e747261637460448201527f20697320616c726561647920696e697469616c697a656400000000000000000060648201526084015b60405180910390fd5b6000620000e8620002c560201b6200205e1760201c565b54610100900460ff1615905080156200015357600162000112620002c560201b6200205e1760201c565b60000160016101000a81548160ff021916908315150217905550600162000143620002c560201b6200205e1760201c565b805460ff19169115159190911790555b600054610100900460ff1615808015620001745750600054600160ff909116105b80620001a457506200019130620002e960201b620020821760201c565b158015620001a4575060005460ff166001145b620002095760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401620000c8565b6000805460ff1916600117905580156200022d576000805461ff0019166101001790555b62000237620002f8565b6200024162000360565b801562000288576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b508015620002be576000620002a7620002c560201b6200205e1760201c565b80549115156101000261ff00199092169190911790555b506200046d565b7fee151c8401928dc223602bb187aff91b9a56c7cae5476ef1b3287b085a16c85f90565b6001600160a01b03163b151590565b600054610100900460ff16620003545760405162461bcd60e51b815260206004820152602b60248201526000805160206200453383398151915260448201526a6e697469616c697a696e6760a81b6064820152608401620000c8565b6200035e620003bd565b565b6200036a62000425565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620003a03390565b6040516001600160a01b03909116815260200160405180910390a1565b600054610100900460ff16620004195760405162461bcd60e51b815260206004820152602b60248201526000805160206200453383398151915260448201526a6e697469616c697a696e6760a81b6064820152608401620000c8565b6065805460ff19169055565b60655460ff16156200035e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401620000c8565b6140b6806200047d6000396000f3fe6080604052600436106102ae5760003560e01c806370a08231116101755780639e6a1d7d116100dc578063c87b56dd11610095578063e985e9c51161006f578063e985e9c514610841578063f2fde38b14610861578063f8604f1114610881578063fe60d12c146108a157600080fd5b8063c87b56dd146107ea578063d52c57e01461080a578063d5abeb011461082a57600080fd5b80639e6a1d7d14610737578063a0712d6814610757578063a22cb4651461076a578063ac1a386a1461078a578063b88d4fde146107aa578063c23dc68f146107bd57600080fd5b80638462151c1161012e5780638462151c146106805780638545f4ea146106ad5780638da5cb5b146106cd57806395d89b41146106eb578063996517cf1461070057806399a2557a1461071757600080fd5b806370a08231146105db578063715018a6146105fb578063756bbae8146106105780637dc2268c146106305780637ec4a6591461064b5780638456cb591461066b57600080fd5b80634364f1cf116102195780635c975abb116101d25780635c975abb1461052857806362b99ad4146105405780636352211e146105555780636817c76c146105755780636ad5b3ea1461058c5780636bcf049a146105ad57600080fd5b80634364f1cf146104595780634460d3cf1461047957806344b596e11461049957806354fd4d50146104b95780635503a0e8146104e65780635bbb2177146104fb57600080fd5b80631e7269c51161026b5780631e7269c51461039a57806323b872dd146103c8578063269bbebd146103db5780632a55205a146103f25780633f4ba83a1461043157806342842e0e1461044657600080fd5b806301ffc9a7146102b357806303339bcb146102e857806306fdde031461030a578063081812fc1461032c578063095ea7b31461036457806318160ddd14610377575b600080fd5b3480156102bf57600080fd5b506102d36102ce36600461360c565b6108b8565b60405190151581526020015b60405180910390f35b3480156102f457600080fd5b5061030861030336600461363e565b6108c9565b005b34801561031657600080fd5b5061031f6109fb565b6040516102df91906136be565b34801561033857600080fd5b5061034c6103473660046136d1565b610a96565b6040516001600160a01b0390911681526020016102df565b6103086103723660046136ea565b610ae3565b34801561038357600080fd5b5061038c610afc565b6040519081526020016102df565b3480156103a657600080fd5b5061038c6103b5366004613716565b6101366020526000908152604090205481565b6103086103d6366004613733565b610b1c565b3480156103e757600080fd5b5061038c6101305481565b3480156103fe57600080fd5b5061041261040d366004613774565b610b47565b604080516001600160a01b0390931683526020830191909152016102df565b34801561043d57600080fd5b50610308610bf5565b610308610454366004613733565b610c07565b34801561046557600080fd5b5061038c6104743660046136ea565b610c2c565b34801561048557600080fd5b50610308610494366004613716565b610cde565b3480156104a557600080fd5b506103086104b43660046136d1565b610e8b565b3480156104c557600080fd5b5061031f604051806040016040528060018152602001603160f81b81525081565b3480156104f257600080fd5b5061031f610f22565b34801561050757600080fd5b5061051b610516366004613796565b610fb1565b6040516102df9190613846565b34801561053457600080fd5b5060655460ff166102d3565b34801561054c57600080fd5b5061031f61107c565b34801561056157600080fd5b5061034c6105703660046136d1565b61108a565b34801561058157600080fd5b5061038c6101325481565b34801561059857600080fd5b5061012d5461034c906001600160a01b031681565b3480156105b957600080fd5b5061038c6105c83660046136d1565b6101376020526000908152604090205481565b3480156105e757600080fd5b5061038c6105f6366004613716565b611095565b34801561060757600080fd5b506103086110fd565b34801561061c57600080fd5b5061030861062b3660046138d4565b61110f565b34801561063c57600080fd5b50610135546102d39060ff1681565b34801561065757600080fd5b506103086106663660046139a5565b6114b8565b34801561067757600080fd5b506103086114ce565b34801561068c57600080fd5b506106a061069b366004613716565b6114de565b6040516102df91906139e6565b3480156106b957600080fd5b506103086106c83660046136d1565b6115e6565b3480156106d957600080fd5b506033546001600160a01b031661034c565b3480156106f757600080fd5b5061031f6115f4565b34801561070c57600080fd5b5061038c6101315481565b34801561072357600080fd5b506106a0610732366004613a1e565b61160c565b34801561074357600080fd5b506103086107523660046136d1565b611792565b6103086107653660046136d1565b6117fd565b34801561077657600080fd5b50610308610785366004613a61565b611bab565b34801561079657600080fd5b506103086107a5366004613716565b611bbf565b6103086107b8366004613aa5565b611bea565b3480156107c957600080fd5b506107dd6107d83660046136d1565b611c17565b6040516102df9190613b84565b3480156107f657600080fd5b5061031f6108053660046136d1565b611ca4565b34801561081657600080fd5b5061030861082536600461363e565b611d99565b34801561083657600080fd5b5061038c6101335481565b34801561084d57600080fd5b506102d361085c366004613b92565b611f40565b34801561086d57600080fd5b5061030861087c366004613716565b611f7d565b34801561088d57600080fd5b5061030861089c3660046136d1565b611ff3565b3480156108ad57600080fd5b5061038c6101345481565b60006108c382612091565b92915050565b6108d16120c6565b6108d961210c565b6108e1612165565b61013554829060ff16156109625760405162461bcd60e51b815260206004820152603760248201527f72657365727665436f6d706c69616e63653a2063616e6e6f742072657365727660448201527f65206166746572206d696e74696e67207374617274656400000000000000000060648201526084015b60405180910390fd5b610133548161096f610afc565b6109799190613bd6565b11156109d65760405162461bcd60e51b815260206004820152602660248201527f72657365727665436f6d706c69616e63653a206d617820737570706c7920657860448201526518d95959195960d21b6064820152608401610959565b6109e082846121bf565b6109e8610afc565b61013455506109f76001609755565b5050565b6060610a056121e0565b6002018054610a1390613be9565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3f90613be9565b8015610a8c5780601f10610a6157610100808354040283529160200191610a8c565b820191906000526020600020905b815481529060010190602001808311610a6f57829003601f168201915b5050505050905090565b6000610aa182612204565b610abe576040516333d1c03960e21b815260040160405180910390fd5b610ac66121e0565b60009283526006016020525060409020546001600160a01b031690565b81610aed8161224d565b610af78383612306565b505050565b60006001610b086121e0565b60010154610b146121e0565b540303919050565b826001600160a01b0381163314610b3657610b363361224d565b610b41848484612312565b50505050565b600082815260fc602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610bbc57506040805180820190915260fb546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610bdb906001600160601b031687613c23565b610be59190613c50565b91519350909150505b9250929050565b610bfd612165565b610c05612509565b565b826001600160a01b0381163314610c2157610c213361224d565b610b4184848461255b565b610130546001600160a01b03831660009081526101366020526040812054909111610c665761013254610c5f9083613c23565b90506108c3565b6001600160a01b0383166000908152610136602052604090205461013054610c8e9190613c64565b821115610cd55761013254610130546001600160a01b03851660009081526101366020526040902054610cc19085613bd6565b610ccb9190613c64565b610c5f9190613c23565b50600092915050565b610ce6612165565b61012d546001600160a01b0316610d4b5760405162461bcd60e51b815260206004820152602360248201527f726573637565546f6b656e3a2077616c6c65742061646472657373206e6f74206044820152621cd95d60ea1b6064820152608401610959565b6001600160a01b038116610dfd5761012d546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610da7576040519150601f19603f3d011682016040523d82523d6000602084013e610dac565b606091505b50509050806109f75760405162461bcd60e51b815260206004820181905260248201527f726573637565546f6b656e3a20657468207472616e73666572206661696c65646044820152606401610959565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610e46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6a9190613c77565b61012d54909150610af7906001600160a01b03848116911683612576565b50565b610e93612165565b6101355460ff1615610ef55760405162461bcd60e51b815260206004820152602560248201527f73746172744d696e74696e673a206d696e74696e6720616c7265616479207374604482015264185c9d195960da1b6064820152608401610959565b610135805460ff191660011790556101398190556101345461013354610f1b9190613c64565b61013a5550565b61012f8054610f3090613be9565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5c90613be9565b8015610fa95780601f10610f7e57610100808354040283529160200191610fa9565b820191906000526020600020905b815481529060010190602001808311610f8c57829003601f168201915b505050505081565b6060816000816001600160401b03811115610fce57610fce613a8f565b60405190808252806020026020018201604052801561102057816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610fec5790505b50905060005b8281146110735761104e86868381811061104257611042613c90565b90506020020135611c17565b82828151811061106057611060613c90565b6020908102919091010152600101611026565b50949350505050565b61012e8054610f3090613be9565b60006108c3826125c8565b60006001600160a01b0382166110be576040516323d3ad8160e21b815260040160405180910390fd5b6001600160401b036110ce6121e0565b6005016000846001600160a01b03166001600160a01b0316815260200190815260200160002054169050919050565b611105612165565b610c056000612675565b61111761205e565b54610100900460ff166111365761112c61205e565b5460ff161561113a565b303b155b6111ac5760405162461bcd60e51b815260206004820152603760248201527f455243373231415f5f496e697469616c697a61626c653a20636f6e747261637460448201527f20697320616c726561647920696e697469616c697a65640000000000000000006064820152608401610959565b60006111b661205e565b54610100900460ff1615905080156112025760016111d261205e565b80549115156101000261ff001990921691909117905560016111f261205e565b805460ff19169115159190911790555b600054610100900460ff16158080156112225750600054600160ff909116105b8061123c5750303b15801561123c575060005460ff166001145b61129f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610959565b6000805460ff1916600117905580156112c2576000805461ff0019166101001790555b848611156113125760405162461bcd60e51b815260206004820152601f60248201527f696e697469616c697a653a20696e76616c6964206c696d69742076616c7565006044820152606401610959565b6113968d8d8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506126c792505050565b61139e6126fe565b6113a6612733565b6113ae612762565b6113b6612791565b6113be6127c0565b6113c66127e7565b6113ce61282d565b61012e6113dc898b83613cec565b5061012d80546001600160a01b0319166001600160a01b038916179055610130869055610131859055610132849055610133839055604080518082019091526005815264173539b7b760d91b602082015261012f9061143b9082613dab565b508015611482576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5080156114aa57600061149361205e565b80549115156101000261ff00199092169190911790555b505050505050505050505050565b6114c0612165565b61012e610af7828483613cec565b6114d6612165565b610c0561282d565b606060008060006114ee85611095565b90506000816001600160401b0381111561150a5761150a613a8f565b604051908082528060200260200182016040528015611533578160200160208202803683370190505b50905061156060408051608081018252600080825260208201819052918101829052606081019190915290565b60015b8386146115da576115738161286a565b915081604001516115d25781516001600160a01b03161561159357815194505b876001600160a01b0316856001600160a01b0316036115d257808387806001019850815181106115c5576115c5613c90565b6020026020010181815250505b600101611563565b50909695505050505050565b6115ee612165565b61013255565b60606115fe6121e0565b6003018054610a1390613be9565b606081831061162e57604051631960ccad60e11b815260040160405180910390fd5b6000806116396128b1565b9050600185101561164957600194505b80841115611655578093505b600061166087611095565b90508486101561167f5785850381811015611679578091505b50611683565b5060005b6000816001600160401b0381111561169d5761169d613a8f565b6040519080825280602002602001820160405280156116c6578160200160208202803683370190505b509050816000036116dc57935061178b92505050565b60006116e788611c17565b9050600081604001516116f8575080515b885b88811415801561170a5750848714155b1561177f576117188161286a565b925082604001516117775782516001600160a01b03161561173857825191505b8a6001600160a01b0316826001600160a01b031603611777578084888060010199508151811061176a5761176a613c90565b6020026020010181815250505b6001016116fa565b50505092835250909150505b9392505050565b61179a612165565b806101305411156117f75760405162461bcd60e51b815260206004820152602160248201527f7365744d696e744c696d69743a20696e76616c6964206c696d69742076616c756044820152606560f81b6064820152608401610959565b61013155565b6118056120c6565b61180d61210c565b61013554819060ff1661186e5760405162461bcd60e51b815260206004820152602360248201527f6d696e74436f6d706c69616e63653a206d696e74696e67206e6f7420737461726044820152621d195960ea1b6064820152608401610959565b3332146118d25760405162461bcd60e51b815260206004820152602c60248201527f6d696e74436f6d706c69616e63653a20636f6e7472616374206164647265737360448201526b081b9bdd08185b1b1bddd95960a21b6064820152608401610959565b6000811161192e5760405162461bcd60e51b815260206004820152602360248201527f6d696e74436f6d706c69616e63653a20696e76616c6964206d696e7420616d6f6044820152621d5b9d60ea1b6064820152608401610959565b610133548161193b610afc565b6119459190613bd6565b111561199f5760405162461bcd60e51b815260206004820152602360248201527f6d696e74436f6d706c69616e63653a206d617820737570706c7920657863656560448201526219195960ea1b6064820152608401610959565b6101315433600090815261013660205260409020546119bf908390613bd6565b1115611a195760405162461bcd60e51b815260206004820152602360248201527f6d696e74436f6d706c69616e63653a206d696e74206c696d697420657863656560448201526219195960ea1b6064820152608401610959565b611a233382610c2c565b341015611a7c5760405162461bcd60e51b815260206004820152602160248201527f6d696e74436f6d706c69616e63653a20696e73756666696369656e742066756e6044820152601960fa1b6064820152608401610959565b6000611a86610afc565b611a91906001613bd6565b9050611a9d33846121bf565b6000611aa7610afc565b9050611ab382826128c1565b336000908152610136602052604081208054869290611ad3908490613bd6565b909155505061012d546001600160a01b031615801590611af35750600047115b15611b9e5761012d546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611b46576040519150601f19603f3d011682016040523d82523d6000602084013e611b4b565b606091505b5050905080611b9c5760405162461bcd60e51b815260206004820152601960248201527f6d696e743a20657468207472616e73666572206661696c6564000000000000006044820152606401610959565b505b505050610e886001609755565b81611bb58161224d565b610af783836128f5565b611bc7612165565b61012d80546001600160a01b0319166001600160a01b0392909216919091179055565b836001600160a01b0381163314611c0457611c043361224d565b611c1085858585612972565b5050505050565b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080611c755750611c716128b1565b8310155b15611c805792915050565b611c898361286a565b9050806040015115611c9b5792915050565b61178b836129b6565b6060611caf82612204565b611d135760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610959565b6000611d1d6129eb565b90506000815111611d3e575050604080516020810190915260008152919050565b610134548311611d7e5780611d52846129fb565b61012f604051602001611d6793929190613e6a565b604051602081830303815290604052915050919050565b600083815261013760205260409020548190611d52906129fb565b611da16120c6565b611da961210c565b611db1612165565b61013554829060ff16611e175760405162461bcd60e51b815260206004820152602860248201527f6f776e65724d696e74436f6d706c69616e63653a206d696e74696e67206e6f74604482015267081cdd185c9d195960c21b6064820152608401610959565b60008111611e865760405162461bcd60e51b815260206004820152603660248201527f6d696e6f776e65724d696e74436f6d706c69616e636574436f6d706c69616e63604482015275194e881a5b9d985b1a59081b5a5b9d08185b5bdd5b9d60521b6064820152608401610959565b6101335481611e93610afc565b611e9d9190613bd6565b1115611efc5760405162461bcd60e51b815260206004820152602860248201527f6f776e65724d696e74436f6d706c69616e63653a206d617820737570706c7920604482015267195e18d95959195960c21b6064820152608401610959565b6000611f06610afc565b611f11906001613bd6565b9050611f1d83856121bf565b6000611f27610afc565b9050611f3382826128c1565b5050506109f76001609755565b6000611f4a6121e0565b6001600160a01b039384166000908152600791909101602090815260408083209490951682529290925250205460ff1690565b611f85612165565b6001600160a01b038116611fea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610959565b610e8881612675565b611ffb612165565b610131548111156120585760405162461bcd60e51b815260206004820152602160248201527f736574467265654c696d69743a20696e76616c6964206c696d69742076616c756044820152606560f81b6064820152608401610959565b61013055565b7fee151c8401928dc223602bb187aff91b9a56c7cae5476ef1b3287b085a16c85f90565b6001600160a01b03163b151590565b60006001600160e01b0319821663152a902d60e11b14806108c357506301ffc9a760e01b6001600160e01b03198316146108c3565b60655460ff1615610c055760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610959565b60026097540361215e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610959565b6002609755565b6033546001600160a01b03163314610c055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610959565b6109f7828260405180602001604052806000815250612a8d565b6001609755565b7f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c4090565b60008160011115801561221e575061221a6121e0565b5482105b80156108c35750600160e01b6122326121e0565b60008481526004919091016020526040902054161592915050565b6daaeb6d7670e522a718067333cd4e3b15610e8857604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156122ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122de9190613f0a565b610e8857604051633b79c77360e21b81526001600160a01b0382166004820152602401610959565b6109f782826001612b03565b600061231d826125c8565b9050836001600160a01b0316816001600160a01b0316146123505760405162a1148160e81b815260040160405180910390fd5b60008061235c84612bb8565b91509150612381818761236c3390565b6001600160a01b039081169116811491141790565b6123ac5761238f8633611f40565b6123ac57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166123d357604051633a954ecd60e21b815260040160405180910390fd5b80156123de57600082555b6123e66121e0565b6001600160a01b03871660009081526005919091016020526040902080546000190190556124126121e0565b6001600160a01b03861660008181526005929092016020526040909120805460010190554260a01b17600160e11b176124496121e0565b60008681526004919091016020526040812091909155600160e11b841690036124bf57600184016124786121e0565b6000828152600491909101602052604081205490036124bd576124996121e0565b5481146124bd57836124a96121e0565b600083815260049190910160205260409020555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b612511612be0565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610af783838360405180602001604052806000815250611bea565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610af7908490612c29565b60008160011161265c576125da6121e0565b600083815260049190910160205260408120549150600160e01b8216900361265c57806000036126575761260c6121e0565b54821061262c57604051636f96cda160e11b815260040160405180910390fd5b6126346121e0565b60001990920160008181526004939093016020526040909220549050801561262c575b919050565b604051636f96cda160e11b815260040160405180910390fd5b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6126cf61205e565b54610100900460ff166126f45760405162461bcd60e51b815260040161095990613f27565b6109f78282612cfb565b61270661205e565b54610100900460ff1661272b5760405162461bcd60e51b815260040161095990613f27565b610c05612d67565b600054610100900460ff1661275a5760405162461bcd60e51b815260040161095990613f7b565b610c05612d94565b600054610100900460ff166127895760405162461bcd60e51b815260040161095990613f7b565b610c05612dc4565b600054610100900460ff166127b85760405162461bcd60e51b815260040161095990613f7b565b610c05612df7565b600054610100900460ff16610c055760405162461bcd60e51b815260040161095990613f7b565b600054610100900460ff1661280e5760405162461bcd60e51b815260040161095990613f7b565b610c05733cc6cdda760b79bafa08df41ecfa224f810dceb66001612e1e565b6128356120c6565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861253e3390565b6040805160808101825260008082526020820181905291810182905260608101919091526108c36128996121e0565b60008481526004919091016020526040902054612fbd565b60006128bb6121e0565b54919050565b815b818111610af7576128d381613004565b60008281526101376020526040902055806128ed81613fc6565b9150506128c3565b806128fe6121e0565b336000818152600792909201602090815260408084206001600160a01b03881680865290835293819020805460ff19169515159590951790945592518415158152919290917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61297d848484610b1c565b6001600160a01b0383163b15610b415761299984848484613103565b610b41576040516368d2bf6b60e11b815260040160405180910390fd5b6040805160808101825260008082526020820181905291810182905260608101919091526108c36129e6836125c8565b612fbd565b606061012e8054610a1390613be9565b60606000612a08836131ee565b60010190506000816001600160401b03811115612a2757612a27613a8f565b6040519080825280601f01601f191660200182016040528015612a51576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612a5b57509392505050565b612a9783836132c6565b6001600160a01b0383163b15610af7576000612ab16121e0565b5490508281035b612acb6000868380600101945086613103565b612ae8576040516368d2bf6b60e11b815260040160405180910390fd5b818110612ab85781612af86121e0565b5414611c1057600080fd5b6000612b0e8361108a565b90508115612b4d57336001600160a01b03821614612b4d57612b308133611f40565b612b4d576040516367d9dca160e11b815260040160405180910390fd5b83612b566121e0565b6000858152600691909101602052604080822080546001600160a01b0319166001600160a01b0394851617905551859287811692908516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a450505050565b6000806000612bc56121e0565b60009485526006016020525050604090912080549092909150565b60655460ff16610c055760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610959565b6000612c7e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134019092919063ffffffff16565b805190915015610af75780806020019051810190612c9c9190613f0a565b610af75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610959565b612d0361205e565b54610100900460ff16612d285760405162461bcd60e51b815260040161095990613f27565b81612d316121e0565b60020190612d3f9082613dab565b5080612d496121e0565b60030190612d579082613dab565b506001612d626121e0565b555050565b612d6f61205e565b54610100900460ff16610c055760405162461bcd60e51b815260040161095990613f27565b600054610100900460ff16612dbb5760405162461bcd60e51b815260040161095990613f7b565b610c0533612675565b600054610100900460ff16612deb5760405162461bcd60e51b815260040161095990613f7b565b6065805460ff19169055565b600054610100900460ff166121d95760405162461bcd60e51b815260040161095990613f7b565b600054610100900460ff16612e455760405162461bcd60e51b815260040161095990613f7b565b6daaeb6d7670e522a718067333cd4e3b156109f75760405163c3c5a54760e01b81523060048201526daaeb6d7670e522a718067333cd4e9063c3c5a547906024016020604051808303816000875af1158015612ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ec99190613f0a565b6109f7578015612f3d57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015612f2957600080fd5b505af1158015612501573d6000803e3d6000fd5b6001600160a01b03821615612f8c5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401612f0f565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401612f0f565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b60008061013a5461301484613410565b61301e9190613fdf565b60008181526101386020526040812054919250901561304c576000828152610138602052604090205461304e565b815b90506101386000600161013a546130659190613c64565b8152602001908152602001600020546000146130a4576101386000600161013a546130909190613c64565b8152602001908152602001600020546130b4565b600161013a546130b49190613c64565b6000838152610138602052604081209190915561013a8054916130d683613ff3565b91905055506130e3600190565b610134546130f19083613bd6565b6130fb9190613bd6565b949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061313890339089908890889060040161400a565b6020604051808303816000875af1925050508015613173575060408051601f3d908101601f1916820190925261317091810190614047565b60015b6131d1573d8080156131a1576040519150601f19603f3d011682016040523d82523d6000602084013e6131a6565b606091505b5080516000036131c9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061322d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613259576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061327757662386f26fc10000830492506010015b6305f5e100831061328f576305f5e100830492506008015b61271083106132a357612710830492506004015b606483106132b5576064830492506002015b600a83106108c35760010192915050565b60006132d06121e0565b54905060008290036132f55760405163b562e8dd60e01b815260040160405180910390fd5b6801000000000000000182026133096121e0565b6001600160a01b038516600081815260059290920160205260409091208054929092019091554260a01b6001841460e11b17176133446121e0565b600083815260049190910160205260408120919091556001600160a01b0384169083830190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146133ce57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101613396565b50816000036133ef57604051622e076360e81b815260040160405180910390fd5b806133f86121e0565b5550610af79050565b60606130fb848460008561347d565b600061341d600143613c64565b6101395460408051924060208401528201849052606082015260800160408051601f1981840301815291905280516020909101209050613460620a2c2a82613fdf565b61013960008282546134729190613bd6565b909155509092915050565b6060824710156134de5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610959565b600080866001600160a01b031685876040516134fa9190614064565b60006040518083038185875af1925050503d8060008114613537576040519150601f19603f3d011682016040523d82523d6000602084013e61353c565b606091505b509150915061354d87838387613558565b979650505050505050565b606083156135c75782516000036135c0576001600160a01b0385163b6135c05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610959565b50816130fb565b6130fb83838151156135dc5781518083602001fd5b8060405162461bcd60e51b815260040161095991906136be565b6001600160e01b031981168114610e8857600080fd5b60006020828403121561361e57600080fd5b813561178b816135f6565b6001600160a01b0381168114610e8857600080fd5b6000806040838503121561365157600080fd5b82359150602083013561366381613629565b809150509250929050565b60005b83811015613689578181015183820152602001613671565b50506000910152565b600081518084526136aa81602086016020860161366e565b601f01601f19169290920160200192915050565b60208152600061178b6020830184613692565b6000602082840312156136e357600080fd5b5035919050565b600080604083850312156136fd57600080fd5b823561370881613629565b946020939093013593505050565b60006020828403121561372857600080fd5b813561178b81613629565b60008060006060848603121561374857600080fd5b833561375381613629565b9250602084013561376381613629565b929592945050506040919091013590565b6000806040838503121561378757600080fd5b50508035926020909101359150565b600080602083850312156137a957600080fd5b82356001600160401b03808211156137c057600080fd5b818501915085601f8301126137d457600080fd5b8135818111156137e357600080fd5b8660208260051b85010111156137f857600080fd5b60209290920196919550909350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b818110156115da5761387583855161380a565b9284019260809290920191600101613862565b60008083601f84011261389a57600080fd5b5081356001600160401b038111156138b157600080fd5b602083019150836020828501011115610bee57600080fd5b803561265781613629565b60008060008060008060008060008060006101008c8e0312156138f657600080fd5b6001600160401b03808d35111561390c57600080fd5b6139198e8e358f01613888565b909c509a5060208d013581101561392f57600080fd5b61393f8e60208f01358f01613888565b909a50985060408d013581101561395557600080fd5b506139668d60408e01358e01613888565b909750955061397760608d016138c9565b945060808c0135935060a08c0135925060c08c0135915060e08c013590509295989b509295989b9093969950565b600080602083850312156139b857600080fd5b82356001600160401b038111156139ce57600080fd5b6139da85828601613888565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b818110156115da57835183529284019291840191600101613a02565b600080600060608486031215613a3357600080fd5b8335613a3e81613629565b95602085013595506040909401359392505050565b8015158114610e8857600080fd5b60008060408385031215613a7457600080fd5b8235613a7f81613629565b9150602083013561366381613a53565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215613abb57600080fd5b8435613ac681613629565b93506020850135613ad681613629565b92506040850135915060608501356001600160401b0380821115613af957600080fd5b818701915087601f830112613b0d57600080fd5b813581811115613b1f57613b1f613a8f565b604051601f8201601f19908116603f01168101908382118183101715613b4757613b47613a8f565b816040528281528a6020848701011115613b6057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b608081016108c3828461380a565b60008060408385031215613ba557600080fd5b8235613bb081613629565b9150602083013561366381613629565b634e487b7160e01b600052601160045260246000fd5b808201808211156108c3576108c3613bc0565b600181811c90821680613bfd57607f821691505b602082108103613c1d57634e487b7160e01b600052602260045260246000fd5b50919050565b80820281158282048414176108c3576108c3613bc0565b634e487b7160e01b600052601260045260246000fd5b600082613c5f57613c5f613c3a565b500490565b818103818111156108c3576108c3613bc0565b600060208284031215613c8957600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b601f821115610af757600081815260208120601f850160051c81016020861015613ccd5750805b601f850160051c820191505b8181101561250157828155600101613cd9565b6001600160401b03831115613d0357613d03613a8f565b613d1783613d118354613be9565b83613ca6565b6000601f841160018114613d4b5760008515613d335750838201355b600019600387901b1c1916600186901b178355611c10565b600083815260209020601f19861690835b82811015613d7c5786850135825560209485019460019092019101613d5c565b5086821015613d995760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81516001600160401b03811115613dc457613dc4613a8f565b613dd881613dd28454613be9565b84613ca6565b602080601f831160018114613e0d5760008415613df55750858301515b600019600386901b1c1916600185901b178555612501565b600085815260208120601f198616915b82811015613e3c57888601518255948401946001909101908401613e1d565b5085821015613e5a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600084516020613e7d8285838a0161366e565b855191840191613e908184848a0161366e565b8554920191600090613ea181613be9565b60018281168015613eb95760018114613ece57613efa565b60ff1984168752821515830287019450613efa565b896000528560002060005b84811015613ef257815489820152908301908701613ed9565b505082870194505b50929a9950505050505050505050565b600060208284031215613f1c57600080fd5b815161178b81613a53565b60208082526034908201527f455243373231415f5f496e697469616c697a61626c653a20636f6e7472616374604082015273206973206e6f7420696e697469616c697a696e6760601b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600060018201613fd857613fd8613bc0565b5060010190565b600082613fee57613fee613c3a565b500690565b60008161400257614002613bc0565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061403d90830184613692565b9695505050505050565b60006020828403121561405957600080fd5b815161178b816135f6565b6000825161407681846020870161366e565b919091019291505056fea26469706673582212204af7fa9d46cd665251d60efd9200e410e6809ae345b6c572beaa6ee0153aba8f64736f6c63430008120033496e697469616c697a61626c653a20636f6e7472616374206973206e6f742069
Deployed Bytecode
0x6080604052600436106102ae5760003560e01c806370a08231116101755780639e6a1d7d116100dc578063c87b56dd11610095578063e985e9c51161006f578063e985e9c514610841578063f2fde38b14610861578063f8604f1114610881578063fe60d12c146108a157600080fd5b8063c87b56dd146107ea578063d52c57e01461080a578063d5abeb011461082a57600080fd5b80639e6a1d7d14610737578063a0712d6814610757578063a22cb4651461076a578063ac1a386a1461078a578063b88d4fde146107aa578063c23dc68f146107bd57600080fd5b80638462151c1161012e5780638462151c146106805780638545f4ea146106ad5780638da5cb5b146106cd57806395d89b41146106eb578063996517cf1461070057806399a2557a1461071757600080fd5b806370a08231146105db578063715018a6146105fb578063756bbae8146106105780637dc2268c146106305780637ec4a6591461064b5780638456cb591461066b57600080fd5b80634364f1cf116102195780635c975abb116101d25780635c975abb1461052857806362b99ad4146105405780636352211e146105555780636817c76c146105755780636ad5b3ea1461058c5780636bcf049a146105ad57600080fd5b80634364f1cf146104595780634460d3cf1461047957806344b596e11461049957806354fd4d50146104b95780635503a0e8146104e65780635bbb2177146104fb57600080fd5b80631e7269c51161026b5780631e7269c51461039a57806323b872dd146103c8578063269bbebd146103db5780632a55205a146103f25780633f4ba83a1461043157806342842e0e1461044657600080fd5b806301ffc9a7146102b357806303339bcb146102e857806306fdde031461030a578063081812fc1461032c578063095ea7b31461036457806318160ddd14610377575b600080fd5b3480156102bf57600080fd5b506102d36102ce36600461360c565b6108b8565b60405190151581526020015b60405180910390f35b3480156102f457600080fd5b5061030861030336600461363e565b6108c9565b005b34801561031657600080fd5b5061031f6109fb565b6040516102df91906136be565b34801561033857600080fd5b5061034c6103473660046136d1565b610a96565b6040516001600160a01b0390911681526020016102df565b6103086103723660046136ea565b610ae3565b34801561038357600080fd5b5061038c610afc565b6040519081526020016102df565b3480156103a657600080fd5b5061038c6103b5366004613716565b6101366020526000908152604090205481565b6103086103d6366004613733565b610b1c565b3480156103e757600080fd5b5061038c6101305481565b3480156103fe57600080fd5b5061041261040d366004613774565b610b47565b604080516001600160a01b0390931683526020830191909152016102df565b34801561043d57600080fd5b50610308610bf5565b610308610454366004613733565b610c07565b34801561046557600080fd5b5061038c6104743660046136ea565b610c2c565b34801561048557600080fd5b50610308610494366004613716565b610cde565b3480156104a557600080fd5b506103086104b43660046136d1565b610e8b565b3480156104c557600080fd5b5061031f604051806040016040528060018152602001603160f81b81525081565b3480156104f257600080fd5b5061031f610f22565b34801561050757600080fd5b5061051b610516366004613796565b610fb1565b6040516102df9190613846565b34801561053457600080fd5b5060655460ff166102d3565b34801561054c57600080fd5b5061031f61107c565b34801561056157600080fd5b5061034c6105703660046136d1565b61108a565b34801561058157600080fd5b5061038c6101325481565b34801561059857600080fd5b5061012d5461034c906001600160a01b031681565b3480156105b957600080fd5b5061038c6105c83660046136d1565b6101376020526000908152604090205481565b3480156105e757600080fd5b5061038c6105f6366004613716565b611095565b34801561060757600080fd5b506103086110fd565b34801561061c57600080fd5b5061030861062b3660046138d4565b61110f565b34801561063c57600080fd5b50610135546102d39060ff1681565b34801561065757600080fd5b506103086106663660046139a5565b6114b8565b34801561067757600080fd5b506103086114ce565b34801561068c57600080fd5b506106a061069b366004613716565b6114de565b6040516102df91906139e6565b3480156106b957600080fd5b506103086106c83660046136d1565b6115e6565b3480156106d957600080fd5b506033546001600160a01b031661034c565b3480156106f757600080fd5b5061031f6115f4565b34801561070c57600080fd5b5061038c6101315481565b34801561072357600080fd5b506106a0610732366004613a1e565b61160c565b34801561074357600080fd5b506103086107523660046136d1565b611792565b6103086107653660046136d1565b6117fd565b34801561077657600080fd5b50610308610785366004613a61565b611bab565b34801561079657600080fd5b506103086107a5366004613716565b611bbf565b6103086107b8366004613aa5565b611bea565b3480156107c957600080fd5b506107dd6107d83660046136d1565b611c17565b6040516102df9190613b84565b3480156107f657600080fd5b5061031f6108053660046136d1565b611ca4565b34801561081657600080fd5b5061030861082536600461363e565b611d99565b34801561083657600080fd5b5061038c6101335481565b34801561084d57600080fd5b506102d361085c366004613b92565b611f40565b34801561086d57600080fd5b5061030861087c366004613716565b611f7d565b34801561088d57600080fd5b5061030861089c3660046136d1565b611ff3565b3480156108ad57600080fd5b5061038c6101345481565b60006108c382612091565b92915050565b6108d16120c6565b6108d961210c565b6108e1612165565b61013554829060ff16156109625760405162461bcd60e51b815260206004820152603760248201527f72657365727665436f6d706c69616e63653a2063616e6e6f742072657365727660448201527f65206166746572206d696e74696e67207374617274656400000000000000000060648201526084015b60405180910390fd5b610133548161096f610afc565b6109799190613bd6565b11156109d65760405162461bcd60e51b815260206004820152602660248201527f72657365727665436f6d706c69616e63653a206d617820737570706c7920657860448201526518d95959195960d21b6064820152608401610959565b6109e082846121bf565b6109e8610afc565b61013455506109f76001609755565b5050565b6060610a056121e0565b6002018054610a1390613be9565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3f90613be9565b8015610a8c5780601f10610a6157610100808354040283529160200191610a8c565b820191906000526020600020905b815481529060010190602001808311610a6f57829003601f168201915b5050505050905090565b6000610aa182612204565b610abe576040516333d1c03960e21b815260040160405180910390fd5b610ac66121e0565b60009283526006016020525060409020546001600160a01b031690565b81610aed8161224d565b610af78383612306565b505050565b60006001610b086121e0565b60010154610b146121e0565b540303919050565b826001600160a01b0381163314610b3657610b363361224d565b610b41848484612312565b50505050565b600082815260fc602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610bbc57506040805180820190915260fb546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610bdb906001600160601b031687613c23565b610be59190613c50565b91519350909150505b9250929050565b610bfd612165565b610c05612509565b565b826001600160a01b0381163314610c2157610c213361224d565b610b4184848461255b565b610130546001600160a01b03831660009081526101366020526040812054909111610c665761013254610c5f9083613c23565b90506108c3565b6001600160a01b0383166000908152610136602052604090205461013054610c8e9190613c64565b821115610cd55761013254610130546001600160a01b03851660009081526101366020526040902054610cc19085613bd6565b610ccb9190613c64565b610c5f9190613c23565b50600092915050565b610ce6612165565b61012d546001600160a01b0316610d4b5760405162461bcd60e51b815260206004820152602360248201527f726573637565546f6b656e3a2077616c6c65742061646472657373206e6f74206044820152621cd95d60ea1b6064820152608401610959565b6001600160a01b038116610dfd5761012d546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610da7576040519150601f19603f3d011682016040523d82523d6000602084013e610dac565b606091505b50509050806109f75760405162461bcd60e51b815260206004820181905260248201527f726573637565546f6b656e3a20657468207472616e73666572206661696c65646044820152606401610959565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610e46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6a9190613c77565b61012d54909150610af7906001600160a01b03848116911683612576565b50565b610e93612165565b6101355460ff1615610ef55760405162461bcd60e51b815260206004820152602560248201527f73746172744d696e74696e673a206d696e74696e6720616c7265616479207374604482015264185c9d195960da1b6064820152608401610959565b610135805460ff191660011790556101398190556101345461013354610f1b9190613c64565b61013a5550565b61012f8054610f3090613be9565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5c90613be9565b8015610fa95780601f10610f7e57610100808354040283529160200191610fa9565b820191906000526020600020905b815481529060010190602001808311610f8c57829003601f168201915b505050505081565b6060816000816001600160401b03811115610fce57610fce613a8f565b60405190808252806020026020018201604052801561102057816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181610fec5790505b50905060005b8281146110735761104e86868381811061104257611042613c90565b90506020020135611c17565b82828151811061106057611060613c90565b6020908102919091010152600101611026565b50949350505050565b61012e8054610f3090613be9565b60006108c3826125c8565b60006001600160a01b0382166110be576040516323d3ad8160e21b815260040160405180910390fd5b6001600160401b036110ce6121e0565b6005016000846001600160a01b03166001600160a01b0316815260200190815260200160002054169050919050565b611105612165565b610c056000612675565b61111761205e565b54610100900460ff166111365761112c61205e565b5460ff161561113a565b303b155b6111ac5760405162461bcd60e51b815260206004820152603760248201527f455243373231415f5f496e697469616c697a61626c653a20636f6e747261637460448201527f20697320616c726561647920696e697469616c697a65640000000000000000006064820152608401610959565b60006111b661205e565b54610100900460ff1615905080156112025760016111d261205e565b80549115156101000261ff001990921691909117905560016111f261205e565b805460ff19169115159190911790555b600054610100900460ff16158080156112225750600054600160ff909116105b8061123c5750303b15801561123c575060005460ff166001145b61129f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610959565b6000805460ff1916600117905580156112c2576000805461ff0019166101001790555b848611156113125760405162461bcd60e51b815260206004820152601f60248201527f696e697469616c697a653a20696e76616c6964206c696d69742076616c7565006044820152606401610959565b6113968d8d8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506126c792505050565b61139e6126fe565b6113a6612733565b6113ae612762565b6113b6612791565b6113be6127c0565b6113c66127e7565b6113ce61282d565b61012e6113dc898b83613cec565b5061012d80546001600160a01b0319166001600160a01b038916179055610130869055610131859055610132849055610133839055604080518082019091526005815264173539b7b760d91b602082015261012f9061143b9082613dab565b508015611482576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5080156114aa57600061149361205e565b80549115156101000261ff00199092169190911790555b505050505050505050505050565b6114c0612165565b61012e610af7828483613cec565b6114d6612165565b610c0561282d565b606060008060006114ee85611095565b90506000816001600160401b0381111561150a5761150a613a8f565b604051908082528060200260200182016040528015611533578160200160208202803683370190505b50905061156060408051608081018252600080825260208201819052918101829052606081019190915290565b60015b8386146115da576115738161286a565b915081604001516115d25781516001600160a01b03161561159357815194505b876001600160a01b0316856001600160a01b0316036115d257808387806001019850815181106115c5576115c5613c90565b6020026020010181815250505b600101611563565b50909695505050505050565b6115ee612165565b61013255565b60606115fe6121e0565b6003018054610a1390613be9565b606081831061162e57604051631960ccad60e11b815260040160405180910390fd5b6000806116396128b1565b9050600185101561164957600194505b80841115611655578093505b600061166087611095565b90508486101561167f5785850381811015611679578091505b50611683565b5060005b6000816001600160401b0381111561169d5761169d613a8f565b6040519080825280602002602001820160405280156116c6578160200160208202803683370190505b509050816000036116dc57935061178b92505050565b60006116e788611c17565b9050600081604001516116f8575080515b885b88811415801561170a5750848714155b1561177f576117188161286a565b925082604001516117775782516001600160a01b03161561173857825191505b8a6001600160a01b0316826001600160a01b031603611777578084888060010199508151811061176a5761176a613c90565b6020026020010181815250505b6001016116fa565b50505092835250909150505b9392505050565b61179a612165565b806101305411156117f75760405162461bcd60e51b815260206004820152602160248201527f7365744d696e744c696d69743a20696e76616c6964206c696d69742076616c756044820152606560f81b6064820152608401610959565b61013155565b6118056120c6565b61180d61210c565b61013554819060ff1661186e5760405162461bcd60e51b815260206004820152602360248201527f6d696e74436f6d706c69616e63653a206d696e74696e67206e6f7420737461726044820152621d195960ea1b6064820152608401610959565b3332146118d25760405162461bcd60e51b815260206004820152602c60248201527f6d696e74436f6d706c69616e63653a20636f6e7472616374206164647265737360448201526b081b9bdd08185b1b1bddd95960a21b6064820152608401610959565b6000811161192e5760405162461bcd60e51b815260206004820152602360248201527f6d696e74436f6d706c69616e63653a20696e76616c6964206d696e7420616d6f6044820152621d5b9d60ea1b6064820152608401610959565b610133548161193b610afc565b6119459190613bd6565b111561199f5760405162461bcd60e51b815260206004820152602360248201527f6d696e74436f6d706c69616e63653a206d617820737570706c7920657863656560448201526219195960ea1b6064820152608401610959565b6101315433600090815261013660205260409020546119bf908390613bd6565b1115611a195760405162461bcd60e51b815260206004820152602360248201527f6d696e74436f6d706c69616e63653a206d696e74206c696d697420657863656560448201526219195960ea1b6064820152608401610959565b611a233382610c2c565b341015611a7c5760405162461bcd60e51b815260206004820152602160248201527f6d696e74436f6d706c69616e63653a20696e73756666696369656e742066756e6044820152601960fa1b6064820152608401610959565b6000611a86610afc565b611a91906001613bd6565b9050611a9d33846121bf565b6000611aa7610afc565b9050611ab382826128c1565b336000908152610136602052604081208054869290611ad3908490613bd6565b909155505061012d546001600160a01b031615801590611af35750600047115b15611b9e5761012d546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611b46576040519150601f19603f3d011682016040523d82523d6000602084013e611b4b565b606091505b5050905080611b9c5760405162461bcd60e51b815260206004820152601960248201527f6d696e743a20657468207472616e73666572206661696c6564000000000000006044820152606401610959565b505b505050610e886001609755565b81611bb58161224d565b610af783836128f5565b611bc7612165565b61012d80546001600160a01b0319166001600160a01b0392909216919091179055565b836001600160a01b0381163314611c0457611c043361224d565b611c1085858585612972565b5050505050565b6040805160808101825260008082526020820181905291810182905260608101919091526040805160808101825260008082526020820181905291810182905260608101919091526001831080611c755750611c716128b1565b8310155b15611c805792915050565b611c898361286a565b9050806040015115611c9b5792915050565b61178b836129b6565b6060611caf82612204565b611d135760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610959565b6000611d1d6129eb565b90506000815111611d3e575050604080516020810190915260008152919050565b610134548311611d7e5780611d52846129fb565b61012f604051602001611d6793929190613e6a565b604051602081830303815290604052915050919050565b600083815261013760205260409020548190611d52906129fb565b611da16120c6565b611da961210c565b611db1612165565b61013554829060ff16611e175760405162461bcd60e51b815260206004820152602860248201527f6f776e65724d696e74436f6d706c69616e63653a206d696e74696e67206e6f74604482015267081cdd185c9d195960c21b6064820152608401610959565b60008111611e865760405162461bcd60e51b815260206004820152603660248201527f6d696e6f776e65724d696e74436f6d706c69616e636574436f6d706c69616e63604482015275194e881a5b9d985b1a59081b5a5b9d08185b5bdd5b9d60521b6064820152608401610959565b6101335481611e93610afc565b611e9d9190613bd6565b1115611efc5760405162461bcd60e51b815260206004820152602860248201527f6f776e65724d696e74436f6d706c69616e63653a206d617820737570706c7920604482015267195e18d95959195960c21b6064820152608401610959565b6000611f06610afc565b611f11906001613bd6565b9050611f1d83856121bf565b6000611f27610afc565b9050611f3382826128c1565b5050506109f76001609755565b6000611f4a6121e0565b6001600160a01b039384166000908152600791909101602090815260408083209490951682529290925250205460ff1690565b611f85612165565b6001600160a01b038116611fea5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610959565b610e8881612675565b611ffb612165565b610131548111156120585760405162461bcd60e51b815260206004820152602160248201527f736574467265654c696d69743a20696e76616c6964206c696d69742076616c756044820152606560f81b6064820152608401610959565b61013055565b7fee151c8401928dc223602bb187aff91b9a56c7cae5476ef1b3287b085a16c85f90565b6001600160a01b03163b151590565b60006001600160e01b0319821663152a902d60e11b14806108c357506301ffc9a760e01b6001600160e01b03198316146108c3565b60655460ff1615610c055760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610959565b60026097540361215e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610959565b6002609755565b6033546001600160a01b03163314610c055760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610959565b6109f7828260405180602001604052806000815250612a8d565b6001609755565b7f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c4090565b60008160011115801561221e575061221a6121e0565b5482105b80156108c35750600160e01b6122326121e0565b60008481526004919091016020526040902054161592915050565b6daaeb6d7670e522a718067333cd4e3b15610e8857604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156122ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122de9190613f0a565b610e8857604051633b79c77360e21b81526001600160a01b0382166004820152602401610959565b6109f782826001612b03565b600061231d826125c8565b9050836001600160a01b0316816001600160a01b0316146123505760405162a1148160e81b815260040160405180910390fd5b60008061235c84612bb8565b91509150612381818761236c3390565b6001600160a01b039081169116811491141790565b6123ac5761238f8633611f40565b6123ac57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166123d357604051633a954ecd60e21b815260040160405180910390fd5b80156123de57600082555b6123e66121e0565b6001600160a01b03871660009081526005919091016020526040902080546000190190556124126121e0565b6001600160a01b03861660008181526005929092016020526040909120805460010190554260a01b17600160e11b176124496121e0565b60008681526004919091016020526040812091909155600160e11b841690036124bf57600184016124786121e0565b6000828152600491909101602052604081205490036124bd576124996121e0565b5481146124bd57836124a96121e0565b600083815260049190910160205260409020555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b612511612be0565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610af783838360405180602001604052806000815250611bea565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610af7908490612c29565b60008160011161265c576125da6121e0565b600083815260049190910160205260408120549150600160e01b8216900361265c57806000036126575761260c6121e0565b54821061262c57604051636f96cda160e11b815260040160405180910390fd5b6126346121e0565b60001990920160008181526004939093016020526040909220549050801561262c575b919050565b604051636f96cda160e11b815260040160405180910390fd5b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6126cf61205e565b54610100900460ff166126f45760405162461bcd60e51b815260040161095990613f27565b6109f78282612cfb565b61270661205e565b54610100900460ff1661272b5760405162461bcd60e51b815260040161095990613f27565b610c05612d67565b600054610100900460ff1661275a5760405162461bcd60e51b815260040161095990613f7b565b610c05612d94565b600054610100900460ff166127895760405162461bcd60e51b815260040161095990613f7b565b610c05612dc4565b600054610100900460ff166127b85760405162461bcd60e51b815260040161095990613f7b565b610c05612df7565b600054610100900460ff16610c055760405162461bcd60e51b815260040161095990613f7b565b600054610100900460ff1661280e5760405162461bcd60e51b815260040161095990613f7b565b610c05733cc6cdda760b79bafa08df41ecfa224f810dceb66001612e1e565b6128356120c6565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861253e3390565b6040805160808101825260008082526020820181905291810182905260608101919091526108c36128996121e0565b60008481526004919091016020526040902054612fbd565b60006128bb6121e0565b54919050565b815b818111610af7576128d381613004565b60008281526101376020526040902055806128ed81613fc6565b9150506128c3565b806128fe6121e0565b336000818152600792909201602090815260408084206001600160a01b03881680865290835293819020805460ff19169515159590951790945592518415158152919290917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61297d848484610b1c565b6001600160a01b0383163b15610b415761299984848484613103565b610b41576040516368d2bf6b60e11b815260040160405180910390fd5b6040805160808101825260008082526020820181905291810182905260608101919091526108c36129e6836125c8565b612fbd565b606061012e8054610a1390613be9565b60606000612a08836131ee565b60010190506000816001600160401b03811115612a2757612a27613a8f565b6040519080825280601f01601f191660200182016040528015612a51576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612a5b57509392505050565b612a9783836132c6565b6001600160a01b0383163b15610af7576000612ab16121e0565b5490508281035b612acb6000868380600101945086613103565b612ae8576040516368d2bf6b60e11b815260040160405180910390fd5b818110612ab85781612af86121e0565b5414611c1057600080fd5b6000612b0e8361108a565b90508115612b4d57336001600160a01b03821614612b4d57612b308133611f40565b612b4d576040516367d9dca160e11b815260040160405180910390fd5b83612b566121e0565b6000858152600691909101602052604080822080546001600160a01b0319166001600160a01b0394851617905551859287811692908516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a450505050565b6000806000612bc56121e0565b60009485526006016020525050604090912080549092909150565b60655460ff16610c055760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610959565b6000612c7e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134019092919063ffffffff16565b805190915015610af75780806020019051810190612c9c9190613f0a565b610af75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610959565b612d0361205e565b54610100900460ff16612d285760405162461bcd60e51b815260040161095990613f27565b81612d316121e0565b60020190612d3f9082613dab565b5080612d496121e0565b60030190612d579082613dab565b506001612d626121e0565b555050565b612d6f61205e565b54610100900460ff16610c055760405162461bcd60e51b815260040161095990613f27565b600054610100900460ff16612dbb5760405162461bcd60e51b815260040161095990613f7b565b610c0533612675565b600054610100900460ff16612deb5760405162461bcd60e51b815260040161095990613f7b565b6065805460ff19169055565b600054610100900460ff166121d95760405162461bcd60e51b815260040161095990613f7b565b600054610100900460ff16612e455760405162461bcd60e51b815260040161095990613f7b565b6daaeb6d7670e522a718067333cd4e3b156109f75760405163c3c5a54760e01b81523060048201526daaeb6d7670e522a718067333cd4e9063c3c5a547906024016020604051808303816000875af1158015612ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ec99190613f0a565b6109f7578015612f3d57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015612f2957600080fd5b505af1158015612501573d6000803e3d6000fd5b6001600160a01b03821615612f8c5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401612f0f565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401612f0f565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b60008061013a5461301484613410565b61301e9190613fdf565b60008181526101386020526040812054919250901561304c576000828152610138602052604090205461304e565b815b90506101386000600161013a546130659190613c64565b8152602001908152602001600020546000146130a4576101386000600161013a546130909190613c64565b8152602001908152602001600020546130b4565b600161013a546130b49190613c64565b6000838152610138602052604081209190915561013a8054916130d683613ff3565b91905055506130e3600190565b610134546130f19083613bd6565b6130fb9190613bd6565b949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061313890339089908890889060040161400a565b6020604051808303816000875af1925050508015613173575060408051601f3d908101601f1916820190925261317091810190614047565b60015b6131d1573d8080156131a1576040519150601f19603f3d011682016040523d82523d6000602084013e6131a6565b606091505b5080516000036131c9576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061322d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310613259576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061327757662386f26fc10000830492506010015b6305f5e100831061328f576305f5e100830492506008015b61271083106132a357612710830492506004015b606483106132b5576064830492506002015b600a83106108c35760010192915050565b60006132d06121e0565b54905060008290036132f55760405163b562e8dd60e01b815260040160405180910390fd5b6801000000000000000182026133096121e0565b6001600160a01b038516600081815260059290920160205260409091208054929092019091554260a01b6001841460e11b17176133446121e0565b600083815260049190910160205260408120919091556001600160a01b0384169083830190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146133ce57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101613396565b50816000036133ef57604051622e076360e81b815260040160405180910390fd5b806133f86121e0565b5550610af79050565b60606130fb848460008561347d565b600061341d600143613c64565b6101395460408051924060208401528201849052606082015260800160408051601f1981840301815291905280516020909101209050613460620a2c2a82613fdf565b61013960008282546134729190613bd6565b909155509092915050565b6060824710156134de5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610959565b600080866001600160a01b031685876040516134fa9190614064565b60006040518083038185875af1925050503d8060008114613537576040519150601f19603f3d011682016040523d82523d6000602084013e61353c565b606091505b509150915061354d87838387613558565b979650505050505050565b606083156135c75782516000036135c0576001600160a01b0385163b6135c05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610959565b50816130fb565b6130fb83838151156135dc5781518083602001fd5b8060405162461bcd60e51b815260040161095991906136be565b6001600160e01b031981168114610e8857600080fd5b60006020828403121561361e57600080fd5b813561178b816135f6565b6001600160a01b0381168114610e8857600080fd5b6000806040838503121561365157600080fd5b82359150602083013561366381613629565b809150509250929050565b60005b83811015613689578181015183820152602001613671565b50506000910152565b600081518084526136aa81602086016020860161366e565b601f01601f19169290920160200192915050565b60208152600061178b6020830184613692565b6000602082840312156136e357600080fd5b5035919050565b600080604083850312156136fd57600080fd5b823561370881613629565b946020939093013593505050565b60006020828403121561372857600080fd5b813561178b81613629565b60008060006060848603121561374857600080fd5b833561375381613629565b9250602084013561376381613629565b929592945050506040919091013590565b6000806040838503121561378757600080fd5b50508035926020909101359150565b600080602083850312156137a957600080fd5b82356001600160401b03808211156137c057600080fd5b818501915085601f8301126137d457600080fd5b8135818111156137e357600080fd5b8660208260051b85010111156137f857600080fd5b60209290920196919550909350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b818110156115da5761387583855161380a565b9284019260809290920191600101613862565b60008083601f84011261389a57600080fd5b5081356001600160401b038111156138b157600080fd5b602083019150836020828501011115610bee57600080fd5b803561265781613629565b60008060008060008060008060008060006101008c8e0312156138f657600080fd5b6001600160401b03808d35111561390c57600080fd5b6139198e8e358f01613888565b909c509a5060208d013581101561392f57600080fd5b61393f8e60208f01358f01613888565b909a50985060408d013581101561395557600080fd5b506139668d60408e01358e01613888565b909750955061397760608d016138c9565b945060808c0135935060a08c0135925060c08c0135915060e08c013590509295989b509295989b9093969950565b600080602083850312156139b857600080fd5b82356001600160401b038111156139ce57600080fd5b6139da85828601613888565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b818110156115da57835183529284019291840191600101613a02565b600080600060608486031215613a3357600080fd5b8335613a3e81613629565b95602085013595506040909401359392505050565b8015158114610e8857600080fd5b60008060408385031215613a7457600080fd5b8235613a7f81613629565b9150602083013561366381613a53565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215613abb57600080fd5b8435613ac681613629565b93506020850135613ad681613629565b92506040850135915060608501356001600160401b0380821115613af957600080fd5b818701915087601f830112613b0d57600080fd5b813581811115613b1f57613b1f613a8f565b604051601f8201601f19908116603f01168101908382118183101715613b4757613b47613a8f565b816040528281528a6020848701011115613b6057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b608081016108c3828461380a565b60008060408385031215613ba557600080fd5b8235613bb081613629565b9150602083013561366381613629565b634e487b7160e01b600052601160045260246000fd5b808201808211156108c3576108c3613bc0565b600181811c90821680613bfd57607f821691505b602082108103613c1d57634e487b7160e01b600052602260045260246000fd5b50919050565b80820281158282048414176108c3576108c3613bc0565b634e487b7160e01b600052601260045260246000fd5b600082613c5f57613c5f613c3a565b500490565b818103818111156108c3576108c3613bc0565b600060208284031215613c8957600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b601f821115610af757600081815260208120601f850160051c81016020861015613ccd5750805b601f850160051c820191505b8181101561250157828155600101613cd9565b6001600160401b03831115613d0357613d03613a8f565b613d1783613d118354613be9565b83613ca6565b6000601f841160018114613d4b5760008515613d335750838201355b600019600387901b1c1916600186901b178355611c10565b600083815260209020601f19861690835b82811015613d7c5786850135825560209485019460019092019101613d5c565b5086821015613d995760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81516001600160401b03811115613dc457613dc4613a8f565b613dd881613dd28454613be9565b84613ca6565b602080601f831160018114613e0d5760008415613df55750858301515b600019600386901b1c1916600185901b178555612501565b600085815260208120601f198616915b82811015613e3c57888601518255948401946001909101908401613e1d565b5085821015613e5a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600084516020613e7d8285838a0161366e565b855191840191613e908184848a0161366e565b8554920191600090613ea181613be9565b60018281168015613eb95760018114613ece57613efa565b60ff1984168752821515830287019450613efa565b896000528560002060005b84811015613ef257815489820152908301908701613ed9565b505082870194505b50929a9950505050505050505050565b600060208284031215613f1c57600080fd5b815161178b81613a53565b60208082526034908201527f455243373231415f5f496e697469616c697a61626c653a20636f6e7472616374604082015273206973206e6f7420696e697469616c697a696e6760601b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600060018201613fd857613fd8613bc0565b5060010190565b600082613fee57613fee613c3a565b500690565b60008161400257614002613bc0565b506000190190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061403d90830184613692565b9695505050505050565b60006020828403121561405957600080fd5b815161178b816135f6565b6000825161407681846020870161366e565b919091019291505056fea26469706673582212204af7fa9d46cd665251d60efd9200e410e6809ae345b6c572beaa6ee0153aba8f64736f6c63430008120033
Deployed Bytecode Sourcemap
149988:10533:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;158860:280;;;;;;;;;;-1:-1:-1;158860:280:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;158860:280:0;;;;;;;;154509:231;;;;;;;;;;-1:-1:-1;154509:231:0;;;;;:::i;:::-;;:::i;:::-;;24949:124;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;31541:242::-;;;;;;;;;;-1:-1:-1;31541:242:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2153:32:1;;;2135:51;;2123:2;2108:18;31541:242:0;1989:203:1;156642:272:0;;;;;;:::i;:::-;;:::i;20434:371::-;;;;;;;;;;;;;:::i;:::-;;;2663:25:1;;;2651:2;2636:18;20434:371:0;2517:177:1;150637:41:0;;;;;;;;;;-1:-1:-1;150637:41:0;;;;;:::i;:::-;;;;;;;;;;;;;;156922:287;;;;;;:::i;:::-;;:::i;150453:24::-;;;;;;;;;;;;;;;;125849:442;;;;;;;;;;-1:-1:-1;125849:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3857:32:1;;;3839:51;;3921:2;3906:18;;3899:34;;;;3812:18;125849:442:0;3665:274:1;153442:67:0;;;;;;;;;;;;;:::i;157217:295::-;;;;;;:::i;:::-;;:::i;159148:349::-;;;;;;;;;;-1:-1:-1;159148:349:0;;;;;:::i;:::-;;:::i;155734:618::-;;;;;;;;;;-1:-1:-1;155734:618:0;;;;;:::i;:::-;;:::i;154278:223::-;;;;;;;;;;-1:-1:-1;154278:223:0;;;;;:::i;:::-;;:::i;150301:36::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;150301:36:0;;;;;150421:23;;;;;;;;;;;;;:::i;63865:528::-;;;;;;;;;;-1:-1:-1;63865:528:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;94130:86::-;;;;;;;;;;-1:-1:-1;94201:7:0;;;;94130:86;;150391:23;;;;;;;;;;;;;:::i;26390:152::-;;;;;;;;;;-1:-1:-1;26390:152:0;;;;;:::i;:::-;;:::i;150515:24::-;;;;;;;;;;;;;;;;150346:36;;;;;;;;;;-1:-1:-1;150346:36:0;;;;-1:-1:-1;;;;;150346:36:0;;;150685:45;;;;;;;;;;-1:-1:-1;150685:45:0;;;;;:::i;:::-;;;;;;;;;;;;;;21714:257;;;;;;;;;;-1:-1:-1;21714:257:0;;;;;:::i;:::-;;:::i;91096:103::-;;;;;;;;;;;;;:::i;152431:932::-;;;;;;;;;;-1:-1:-1;152431:932:0;;;;;:::i;:::-;;:::i;150609:19::-;;;;;;;;;;-1:-1:-1;150609:19:0;;;;;;;;154160:110;;;;;;;;;;-1:-1:-1;154160:110:0;;;;;:::i;:::-;;:::i;153371:63::-;;;;;;;;;;;;;:::i;67741:900::-;;;;;;;;;;-1:-1:-1;67741:900:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;154051:101::-;;;;;;;;;;-1:-1:-1;154051:101:0;;;;;:::i;:::-;;:::i;90448:87::-;;;;;;;;;;-1:-1:-1;90521:6:0;;-1:-1:-1;;;;;90521:6:0;90448:87;;25149:128;;;;;;;;;;;;;:::i;150484:24::-;;;;;;;;;;;;;;;;64781:2513;;;;;;;;;;-1:-1:-1;64781:2513:0;;;;;:::i;:::-;;:::i;153859:184::-;;;;;;;;;;-1:-1:-1;153859:184:0;;;;;:::i;:::-;;:::i;154748:595::-;;;;;;:::i;:::-;;:::i;156360:274::-;;;;;;;;;;-1:-1:-1;156360:274:0;;;;;:::i;:::-;;:::i;153517:142::-;;;;;;;;;;-1:-1:-1;153517:142:0;;;;;:::i;:::-;;:::i;157520:329::-;;;;;;:::i;:::-;;:::i;63278:428::-;;;;;;;;;;-1:-1:-1;63278:428:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;157857:995::-;;;;;;;;;;-1:-1:-1;157857:995:0;;;;;:::i;:::-;;:::i;155351:375::-;;;;;;;;;;-1:-1:-1;155351:375:0;;;;;:::i;:::-;;:::i;150546:24::-;;;;;;;;;;;;;;;;32538:188;;;;;;;;;;-1:-1:-1;32538:188:0;;;;;:::i;:::-;;:::i;91354:201::-;;;;;;;;;;-1:-1:-1;91354:201:0;;;;;:::i;:::-;;:::i;153667:184::-;;;;;;;;;;-1:-1:-1;153667:184:0;;;;;:::i;:::-;;:::i;150577:23::-;;;;;;;;;;;;;;;;158860:280;159067:4;159096:36;159120:11;159096:23;:36::i;:::-;159089:43;158860:280;-1:-1:-1;;158860:280:0:o;154509:231::-;93735:19;:17;:19::i;:::-;86655:21:::1;:19;:21::i;:::-;90334:13:::2;:11;:13::i;:::-;150927:7:::3;::::0;154650:6;;150927:7:::3;;150926:8;150904:113;;;::::0;-1:-1:-1;;;150904:113:0;;12203:2:1;150904:113:0::3;::::0;::::3;12185:21:1::0;12242:2;12222:18;;;12215:30;12281:34;12261:18;;;12254:62;12352:25;12332:18;;;12325:53;12395:19;;150904:113:0::3;;;;;;;;;151076:9;;151066:6;151050:13;:11;:13::i;:::-;:22;;;;:::i;:::-;:35;;151028:123;;;::::0;-1:-1:-1;;;151028:123:0;;12889:2:1;151028:123:0::3;::::0;::::3;12871:21:1::0;12928:2;12908:18;;;12901:30;12967:34;12947:18;;;12940:62;-1:-1:-1;;;13018:18:1;;;13011:36;13064:19;;151028:123:0::3;12687:402:1::0;151028:123:0::3;154669:28:::4;154679:9;154690:6;154669:9;:28::i;:::-;154719:13;:11;:13::i;:::-;154708:8;:24:::0;-1:-1:-1;86699:20:0::1;85916:1:::0;87219:7;:22;87036:213;86699:20:::1;154509:231:::0;;:::o;24949:124::-;25003:13;25036:23;:21;:23::i;:::-;:29;;25029:36;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24949:124;:::o;31541:242::-;31617:7;31642:16;31650:7;31642;:16::i;:::-;31637:64;;31667:34;;-1:-1:-1;;;31667:34:0;;;;;;;;;;;31637:64;31721:23;:21;:23::i;:::-;:48;;;;:39;;:48;;-1:-1:-1;31721:48:0;;;:54;-1:-1:-1;;;;;31721:54:0;;31541:242::o;156642:272::-;156848:8;138274:30;138295:8;138274:20;:30::i;:::-;156874:32:::1;156888:8;156898:7;156874:13;:32::i;:::-;156642:272:::0;;;:::o;20434:371::-;20495:7;160391:1;20732:23;:21;:23::i;:::-;:36;;;20692:23;:21;:23::i;:::-;:37;:76;:94;;20434:371;-1:-1:-1;20434:371:0:o;156922:287::-;157142:4;-1:-1:-1;;;;;137999:18:0;;138007:10;137999:18;137995:83;;138034:32;138055:10;138034:20;:32::i;:::-;157164:37:::1;157183:4;157189:2;157193:7;157164:18;:37::i;:::-;156922:287:::0;;;;:::o;125849:442::-;125946:7;126004:27;;;:17;:27;;;;;;;;125975:56;;;;;;;;;-1:-1:-1;;;;;125975:56:0;;;;;-1:-1:-1;;;125975:56:0;;;-1:-1:-1;;;;;125975:56:0;;;;;;;;125946:7;;126044:92;;-1:-1:-1;126095:29:0;;;;;;;;;126105:19;126095:29;-1:-1:-1;;;;;126095:29:0;;;;-1:-1:-1;;;126095:29:0;;-1:-1:-1;;;;;126095:29:0;;;;;126044:92;126186:23;;;;126148:21;;126657:5;;126173:36;;-1:-1:-1;;;;;126173:36:0;:10;:36;:::i;:::-;126172:58;;;;:::i;:::-;126251:16;;;-1:-1:-1;126148:82:0;;-1:-1:-1;;125849:442:0;;;;;;:::o;153442:67::-;90334:13;:11;:13::i;:::-;153491:10:::1;:8;:10::i;:::-;153442:67::o:0;157217:295::-;157441:4;-1:-1:-1;;;;;137999:18:0;;138007:10;137999:18;137995:83;;138034:32;138055:10;138034:20;:32::i;:::-;157463:41:::1;157486:4;157492:2;157496:7;157463:22;:41::i;159148:349::-:0;159282:9;;-1:-1:-1;;;;;159266:12:0;;159242:7;159266:12;;;:6;:12;;;;;;159242:7;;-1:-1:-1;159262:209:0;;159324:9;;159315:18;;:6;:18;:::i;:::-;159308:25;;;;159262:209;-1:-1:-1;;;;;159376:12:0;;;;;;:6;:12;;;;;;159364:9;;:24;;159376:12;159364:24;:::i;:::-;159355:6;:33;159351:120;;;159450:9;;159437;;-1:-1:-1;;;;;159422:12:0;;;;;;:6;:12;;;;;;159413:21;;:6;:21;:::i;:::-;:33;;;;:::i;:::-;159412:47;;;;:::i;159351:120::-;-1:-1:-1;159488:1:0;159148:349;;;;:::o;155734:618::-;90334:13;:11;:13::i;:::-;155822::::1;::::0;-1:-1:-1;;;;;155822:13:0::1;155800:112;;;::::0;-1:-1:-1;;;155800:112:0;;14244:2:1;155800:112:0::1;::::0;::::1;14226:21:1::0;14283:2;14263:18;;;14256:30;14322:34;14302:18;;;14295:62;-1:-1:-1;;;14373:18:1;;;14366:33;14416:19;;155800:112:0::1;14042:399:1::0;155800:112:0::1;-1:-1:-1::0;;;;;155929:21:0;::::1;155925:245;;155986:13;::::0;:84:::1;::::0;155968:12:::1;::::0;-1:-1:-1;;;;;155986:13:0::1;::::0;156012:21:::1;::::0;155968:12;155986:84;155968:12;155986:84;156012:21;155986:13;:84:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;155967:103;;;156093:7;156085:52;;;::::0;-1:-1:-1;;;156085:52:0;;14858:2:1;156085:52:0::1;::::0;::::1;14840:21:1::0;;;14877:18;;;14870:30;14936:34;14916:18;;;14909:62;14988:18;;156085:52:0::1;14656:356:1::0;155925:245:0::1;156261:30;::::0;-1:-1:-1;;;156261:30:0;;156285:4:::1;156261:30;::::0;::::1;2135:51:1::0;156226:5:0;;156182:23:::1;::::0;-1:-1:-1;;;;;156261:15:0;::::1;::::0;::::1;::::0;2108:18:1;;156261:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;156321:13;::::0;156243:48;;-1:-1:-1;156302:42:0::1;::::0;-1:-1:-1;;;;;156302:18:0;;::::1;::::0;156321:13:::1;156243:48:::0;156302:18:::1;:42::i;90358:1::-;155734:618:::0;:::o;154278:223::-;90334:13;:11;:13::i;:::-;154353:7:::1;::::0;::::1;;154352:8;154344:58;;;::::0;-1:-1:-1;;;154344:58:0;;15408:2:1;154344:58:0::1;::::0;::::1;15390:21:1::0;15447:2;15427:18;;;15420:30;15486:34;15466:18;;;15459:62;-1:-1:-1;;;15537:18:1;;;15530:35;15582:19;;154344:58:0::1;15206:401:1::0;154344:58:0::1;154415:7;:14:::0;;-1:-1:-1;;154415:14:0::1;154425:4;154415:14;::::0;;154440:5:::1;:12:::0;;;154485:8:::1;::::0;154473:9:::1;::::0;:20:::1;::::0;154485:8;154473:20:::1;:::i;:::-;154463:7;:30:::0;-1:-1:-1;154278:223:0:o;150421:23::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;63865:528::-;64009:23;64100:8;64075:22;64100:8;-1:-1:-1;;;;;64167:36:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64167:36:0;;-1:-1:-1;;64167:36:0;;;;;;;;;;;;64130:73;;64223:9;64218:125;64239:14;64234:1;:19;64218:125;;64295:32;64315:8;;64324:1;64315:11;;;;;;;:::i;:::-;;;;;;;64295:19;:32::i;:::-;64279:10;64290:1;64279:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;64255:3;;64218:125;;;-1:-1:-1;64364:10:0;63865:528;-1:-1:-1;;;;63865:528:0:o;150391:23::-;;;;;;;:::i;26390:152::-;26462:7;26505:27;26524:7;26505:18;:27::i;21714:257::-;21786:7;-1:-1:-1;;;;;21810:19:0;;21806:60;;21838:28;;-1:-1:-1;;;21838:28:0;;;;;;;;;;;21806:60;-1:-1:-1;;;;;21884:23:0;:21;:23::i;:::-;:42;;:49;21927:5;-1:-1:-1;;;;;21884:49:0;-1:-1:-1;;;;;21884:49:0;;;;;;;;;;;;;:79;21877:86;;21714:257;;;:::o;91096:103::-;90334:13;:11;:13::i;:::-;91161:30:::1;91188:1;91161:18;:30::i;152431:932::-:0;2562:38;:36;:38::i;:::-;:52;;;;;;:160;;2671:38;:36;:38::i;:::-;:51;;;2670:52;2562:160;;;4173:4;4240:17;4285:7;2634:16;2540:265;;;;-1:-1:-1;;;2540:265:0;;15946:2:1;2540:265:0;;;15928:21:1;15985:2;15965:18;;;15958:30;16024:34;16004:18;;;15997:62;16095:25;16075:18;;;16068:53;16138:19;;2540:265:0;15744:419:1;2540:265:0;2818:19;2841:38;:36;:38::i;:::-;:52;;;;;;2840:53;;-1:-1:-1;2904:179:0;;;;2994:4;2939:38;:36;:38::i;:::-;:59;;;;;;;-1:-1:-1;;2939:59:0;;;;;;;;;:52;3013:38;:36;:38::i;:::-;:58;;-1:-1:-1;;3013:58:0;;;;;;;;;;2904:179;80607:19:::1;80630:13:::0;::::1;::::0;::::1;;;80629:14;::::0;80677:34;::::1;;;-1:-1:-1::0;80695:12:0::1;::::0;80710:1:::1;80695:12;::::0;;::::1;:16;80677:34;80676:108;;;-1:-1:-1::0;80756:4:0::1;70240:19:::0;:23;;;80717:66:::1;;-1:-1:-1::0;80766:12:0::1;::::0;::::1;;::::0;:17:::1;80717:66;80654:204;;;::::0;-1:-1:-1;;;80654:204:0;;16370:2:1;80654:204:0::1;::::0;::::1;16352:21:1::0;16409:2;16389:18;;;16382:30;16448:34;16428:18;;;16421:62;-1:-1:-1;;;16499:18:1;;;16492:44;16553:19;;80654:204:0::1;16168:410:1::0;80654:204:0::1;80869:12;:16:::0;;-1:-1:-1;;80869:16:0::1;80884:1;80869:16;::::0;;80896:67;::::1;;;80931:13;:20:::0;;-1:-1:-1;;80931:20:0::1;;;::::0;;80896:67:::1;152801:10:::2;152787;:24;;152779:68;;;::::0;-1:-1:-1;;;152779:68:0;;16785:2:1;152779:68:0::2;::::0;::::2;16767:21:1::0;16824:2;16804:18;;;16797:30;16863:33;16843:18;;;16836:61;16914:18;;152779:68:0::2;16583:355:1::0;152779:68:0::2;152860:40;152875:10;;152860:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;152887:12;;152860:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;;;;-1:-1:-1;152860:14:0::2;::::0;-1:-1:-1;;;152860:40:0:i:2;:::-;152911:25;:23;:25::i;:::-;152947:16;:14;:16::i;:::-;152974:17;:15;:17::i;:::-;153002:24;:22;:24::i;:::-;153037:16;:14;:16::i;:::-;153064:32;:30;:32::i;:::-;153107:8;:6;:8::i;:::-;153128:9;:22;153140:10:::0;;153128:9;:22:::2;:::i;:::-;-1:-1:-1::0;153161:13:0::2;:30:::0;;-1:-1:-1;;;;;;153161:30:0::2;-1:-1:-1::0;;;;;153161:30:0;::::2;;::::0;;153202:9:::2;:22:::0;;;153235:9:::2;:22:::0;;;153268:9:::2;:22:::0;;;153301:9:::2;:22:::0;;;153336:19:::2;::::0;;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;;;153336:19:0::2;::::0;::::2;::::0;:9:::2;::::0;:19:::2;::::0;:9;:19:::2;:::i;:::-;;80989:14:::1;80985:102;;;81036:5;81020:21:::0;;-1:-1:-1;;81020:21:0::1;::::0;;81061:14:::1;::::0;-1:-1:-1;20510:36:1;;81061:14:0::1;::::0;20498:2:1;20483:18;81061:14:0::1;;;;;;;80985:102;80596:498;3113:14:::0;3109:107;;;3199:5;3144:38;:36;:38::i;:::-;:60;;;;;;;-1:-1:-1;;3144:60:0;;;;;;;;;3109:107;2255:968;152431:932;;;;;;;;;;;:::o;154160:110::-;90334:13;:11;:13::i;:::-;154240:9:::1;:22;154252:10:::0;;154240:9;:22:::1;:::i;153371:63::-:0;90334:13;:11;:13::i;:::-;153418:8:::1;:6;:8::i;67741:900::-:0;67819:16;67873:19;67907:25;67947:22;67972:16;67982:5;67972:9;:16::i;:::-;67947:41;;68003:25;68045:14;-1:-1:-1;;;;;68031:29:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68031:29:0;;68003:57;;68075:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68075:31:0;160391:1;68121:472;68170:14;68155:11;:29;68121:472;;68222:15;68235:1;68222:12;:15::i;:::-;68210:27;;68260:9;:16;;;68301:8;68256:73;68351:14;;-1:-1:-1;;;;;68351:28:0;;68347:111;;68424:14;;;-1:-1:-1;68347:111:0;68501:5;-1:-1:-1;;;;;68480:26:0;:17;-1:-1:-1;;;;;68480:26:0;;68476:102;;68557:1;68531:8;68540:13;;;;;;68531:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;68476:102;68186:3;;68121:472;;;-1:-1:-1;68614:8:0;;67741:900;-1:-1:-1;;;;;;67741:900:0:o;154051:101::-;90334:13;:11;:13::i;:::-;154122:9:::1;:22:::0;154051:101::o;25149:128::-;25205:13;25238:23;:21;:23::i;:::-;:31;;25231:38;;;;;:::i;64781:2513::-;64924:16;64991:4;64982:5;:13;64978:45;;65004:19;;-1:-1:-1;;;65004:19:0;;;;;;;;;;;64978:45;65038:19;65072:17;65092:14;:12;:14::i;:::-;65072:34;-1:-1:-1;160391:1:0;65184:5;:23;65180:87;;;160391:1;65228:23;;65180:87;65343:9;65336:4;:16;65332:73;;;65380:9;65373:16;;65332:73;65419:25;65447:16;65457:5;65447:9;:16::i;:::-;65419:44;;65641:4;65633:5;:12;65629:278;;;65688:12;;;65723:31;;;65719:111;;;65799:11;65779:31;;65719:111;65647:198;65629:278;;;-1:-1:-1;65890:1:0;65629:278;65921:25;65963:17;-1:-1:-1;;;;;65949:32:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;65949:32:0;;65921:60;;66000:17;66021:1;66000:22;65996:78;;66050:8;-1:-1:-1;66043:15:0;;-1:-1:-1;;;66043:15:0;65996:78;66218:31;66252:26;66272:5;66252:19;:26::i;:::-;66218:60;;66293:25;66538:9;:16;;;66533:92;;-1:-1:-1;66595:14:0;;66533:92;66656:5;66639:478;66668:4;66663:1;:9;;:45;;;;;66691:17;66676:11;:32;;66663:45;66639:478;;;66746:15;66759:1;66746:12;:15::i;:::-;66734:27;;66784:9;:16;;;66825:8;66780:73;66875:14;;-1:-1:-1;;;;;66875:28:0;;66871:111;;66948:14;;;-1:-1:-1;66871:111:0;67025:5;-1:-1:-1;;;;;67004:26:0;:17;-1:-1:-1;;;;;67004:26:0;;67000:102;;67081:1;67055:8;67064:13;;;;;;67055:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;67000:102;66710:3;;66639:478;;;-1:-1:-1;;;67202:29:0;;;-1:-1:-1;67209:8:0;;-1:-1:-1;;64781:2513:0;;;;;;:::o;153859:184::-;90334:13;:11;:13::i;:::-;153952:10:::1;153939:9;;:23;;153931:69;;;::::0;-1:-1:-1;;;153931:69:0;;20759:2:1;153931:69:0::1;::::0;::::1;20741:21:1::0;20798:2;20778:18;;;20771:30;20837:34;20817:18;;;20810:62;-1:-1:-1;;;20888:18:1;;;20881:31;20929:19;;153931:69:0::1;20557:397:1::0;153931:69:0::1;154013:9;:22:::0;153859:184::o;154748:595::-;93735:19;:17;:19::i;:::-;86655:21:::1;:19;:21::i;:::-;151238:7:::2;::::0;154853:6;;151238:7:::2;;151230:55;;;::::0;-1:-1:-1;;;151230:55:0;;21161:2:1;151230:55:0::2;::::0;::::2;21143:21:1::0;21200:2;21180:18;;;21173:30;21239:34;21219:18;;;21212:62;-1:-1:-1;;;21290:18:1;;;21283:33;21333:19;;151230:55:0::2;20959:399:1::0;151230:55:0::2;88538:10:::0;151334:9:::2;151318:25;151296:119;;;::::0;-1:-1:-1;;;151296:119:0;;21565:2:1;151296:119:0::2;::::0;::::2;21547:21:1::0;21604:2;21584:18;;;21577:30;21643:34;21623:18;;;21616:62;-1:-1:-1;;;21694:18:1;;;21687:42;21746:19;;151296:119:0::2;21363:408:1::0;151296:119:0::2;151443:1;151434:6;:10;151426:58;;;::::0;-1:-1:-1;;;151426:58:0;;21978:2:1;151426:58:0::2;::::0;::::2;21960:21:1::0;22017:2;21997:18;;;21990:30;22056:34;22036:18;;;22029:62;-1:-1:-1;;;22107:18:1;;;22100:33;22150:19;;151426:58:0::2;21776:399:1::0;151426:58:0::2;151543:9;;151533:6;151517:13;:11;:13::i;:::-;:22;;;;:::i;:::-;:35;;151495:120;;;::::0;-1:-1:-1;;;151495:120:0;;22382:2:1;151495:120:0::2;::::0;::::2;22364:21:1::0;22421:2;22401:18;;;22394:30;22460:34;22440:18;;;22433:62;-1:-1:-1;;;22511:18:1;;;22504:33;22554:19;;151495:120:0::2;22180:399:1::0;151495:120:0::2;151681:9;::::0;88538:10;151648:20:::2;::::0;;;:6:::2;:20;::::0;;;;;:29:::2;::::0;151671:6;;151648:29:::2;:::i;:::-;:42;;151626:127;;;::::0;-1:-1:-1;;;151626:127:0;;22786:2:1;151626:127:0::2;::::0;::::2;22768:21:1::0;22825:2;22805:18;;;22798:30;22864:34;22844:18;;;22837:62;-1:-1:-1;;;22915:18:1;;;22908:33;22958:19;;151626:127:0::2;22584:399:1::0;151626:127:0::2;151799:30;88538:10:::0;151822:6:::2;151799:8;:30::i;:::-;151786:9;:43;;151764:126;;;::::0;-1:-1:-1;;;151764:126:0;;23190:2:1;151764:126:0::2;::::0;::::2;23172:21:1::0;23229:2;23209:18;;;23202:30;23268:34;23248:18;;;23241:62;-1:-1:-1;;;23319:18:1;;;23312:31;23360:19;;151764:126:0::2;22988:397:1::0;151764:126:0::2;154872:13:::3;154888;:11;:13::i;:::-;:17;::::0;154904:1:::3;154888:17;:::i;:::-;154872:33:::0;-1:-1:-1;154916:31:0::3;88538:10:::0;154940:6:::3;154916:9;:31::i;:::-;154958:11;154972:13;:11;:13::i;:::-;154958:27;;154998:30;155017:5;155024:3;154998:18;:30::i;:::-;88538:10:::0;155041:20:::3;::::0;;;:6:::3;:20;::::0;;;;:30;;155065:6;;155041:20;:30:::3;::::0;155065:6;;155041:30:::3;:::i;:::-;::::0;;;-1:-1:-1;;155088:13:0::3;::::0;-1:-1:-1;;;;;155088:13:0::3;:27:::0;;::::3;::::0;:56:::3;;;155143:1;155119:21;:25;155088:56;155084:252;;;155180:13;::::0;:84:::3;::::0;155162:12:::3;::::0;-1:-1:-1;;;;;155180:13:0::3;::::0;155206:21:::3;::::0;155162:12;155180:84;155162:12;155180:84;155206:21;155180:13;:84:::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;155161:103;;;155287:7;155279:45;;;::::0;-1:-1:-1;;;155279:45:0;;23592:2:1;155279:45:0::3;::::0;::::3;23574:21:1::0;23631:2;23611:18;;;23604:30;23670:27;23650:18;;;23643:55;23715:18;;155279:45:0::3;23390:349:1::0;155279:45:0::3;155146:190;155084:252;154861:482;;86687:1:::2;86699:20:::1;85916:1:::0;87219:7;:22;87036:213;156360:274;156557:8;138274:30;138295:8;138274:20;:30::i;:::-;156583:43:::1;156607:8;156617;156583:23;:43::i;153517:142::-:0;90334:13;:11;:13::i;:::-;153621::::1;:30:::0;;-1:-1:-1;;;;;;153621:30:0::1;-1:-1:-1::0;;;;;153621:30:0;;;::::1;::::0;;;::::1;::::0;;153517:142::o;157520:329::-;157772:4;-1:-1:-1;;;;;137999:18:0;;138007:10;137999:18;137995:83;;138034:32;138055:10;138034:20;:32::i;:::-;157794:47:::1;157817:4;157823:2;157827:7;157836:4;157794:22;:47::i;:::-;157520:329:::0;;;;;:::o;63278:428::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;160391:1:0;63442:7;:25;:54;;;;63482:14;:12;:14::i;:::-;63471:7;:25;;63442:54;63438:103;;;63520:9;63278:428;-1:-1:-1;;63278:428:0:o;63438:103::-;63563:21;63576:7;63563:12;:21::i;:::-;63551:33;;63599:9;:16;;;63595:65;;;63639:9;63278:428;-1:-1:-1;;63278:428:0:o;63595:65::-;63677:21;63690:7;63677:12;:21::i;157857:995::-;158032:13;158085:16;158093:7;158085;:16::i;:::-;158063:113;;;;-1:-1:-1;;;158063:113:0;;23946:2:1;158063:113:0;;;23928:21:1;23985:2;23965:18;;;23958:30;24024:34;24004:18;;;23997:62;-1:-1:-1;;;24075:18:1;;;24068:45;24130:19;;158063:113:0;23744:411:1;158063:113:0;158189:28;158220:10;:8;:10::i;:::-;158189:41;;158279:1;158253:14;158247:28;:33;158243:75;;-1:-1:-1;;158297:9:0;;;;;;;;;-1:-1:-1;158297:9:0;;;157857:995;-1:-1:-1;157857:995:0:o;158243:75::-;158345:8;;158334:7;:19;158330:285;;158466:14;158507:18;:7;:16;:18::i;:::-;158552:9;158423:161;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;158370:233;;;157857:995;;;:::o;158330:285::-;158748:19;;;;:10;:19;;;;;;158711:14;;158748:30;;:28;:30::i;155351:375::-;93735:19;:17;:19::i;:::-;86655:21:::1;:19;:21::i;:::-;90334:13:::2;:11;:13::i;:::-;151982:7:::3;::::0;155541:6;;151982:7:::3;;151974:60;;;::::0;-1:-1:-1;;;151974:60:0;;25623:2:1;151974:60:0::3;::::0;::::3;25605:21:1::0;25662:2;25642:18;;;25635:30;25701:34;25681:18;;;25674:62;-1:-1:-1;;;25752:18:1;;;25745:38;25800:19;;151974:60:0::3;25421:404:1::0;151974:60:0::3;152076:1;152067:6;:10;152045:114;;;::::0;-1:-1:-1;;;152045:114:0;;26032:2:1;152045:114:0::3;::::0;::::3;26014:21:1::0;26071:2;26051:18;;;26044:30;26110:34;26090:18;;;26083:62;-1:-1:-1;;;26161:18:1;;;26154:52;26223:19;;152045:114:0::3;25830:418:1::0;152045:114:0::3;152218:9;;152208:6;152192:13;:11;:13::i;:::-;:22;;;;:::i;:::-;:35;;152170:125;;;::::0;-1:-1:-1;;;152170:125:0;;26455:2:1;152170:125:0::3;::::0;::::3;26437:21:1::0;26494:2;26474:18;;;26467:30;26533:34;26513:18;;;26506:62;-1:-1:-1;;;26584:18:1;;;26577:38;26632:19;;152170:125:0::3;26253:404:1::0;152170:125:0::3;155565:13:::4;155581;:11;:13::i;:::-;:17;::::0;155597:1:::4;155581:17;:::i;:::-;155565:33;;155609:28;155619:9;155630:6;155609:9;:28::i;:::-;155648:11;155662:13;:11;:13::i;:::-;155648:27;;155688:30;155707:5;155714:3;155688:18;:30::i;:::-;155554:172;;90358:1:::3;86699:20:::1;85916:1:::0;87219:7;:22;87036:213;32538:188;32635:4;32659:23;:21;:23::i;:::-;-1:-1:-1;;;;;32659:49:0;;;;;;;:42;;;;;:49;;;;;;;;:59;;;;;;;;;;-1:-1:-1;32659:59:0;;;;;32538:188::o;91354:201::-;90334:13;:11;:13::i;:::-;-1:-1:-1;;;;;91443:22:0;::::1;91435:73;;;::::0;-1:-1:-1;;;91435:73:0;;26864:2:1;91435:73:0::1;::::0;::::1;26846:21:1::0;26903:2;26883:18;;;26876:30;26942:34;26922:18;;;26915:62;-1:-1:-1;;;26993:18:1;;;26986:36;27039:19;;91435:73:0::1;26662:402:1::0;91435:73:0::1;91519:28;91538:8;91519:18;:28::i;153667:184::-:0;90334:13;:11;:13::i;:::-;153761:9:::1;;153747:10;:23;;153739:69;;;::::0;-1:-1:-1;;;153739:69:0;;27271:2:1;153739:69:0::1;::::0;::::1;27253:21:1::0;27310:2;27290:18;;;27283:30;27349:34;27329:18;;;27322:62;-1:-1:-1;;;27400:18:1;;;27393:31;27441:19;;153739:69:0::1;27069:397:1::0;153739:69:0::1;153821:9;:22:::0;153667:184::o;722:164::-;655:58;;722:164::o;69945:326::-;-1:-1:-1;;;;;70240:19:0;;:23;;;69945:326::o;125535:248::-;125659:4;-1:-1:-1;;;;;;125683:52:0;;-1:-1:-1;;;125683:52:0;;:92;;-1:-1:-1;;;;;;;;;;123540:51:0;;;125739:36;123431:168;94289:108;94201:7;;;;94359:9;94351:38;;;;-1:-1:-1;;;94351:38:0;;27673:2:1;94351:38:0;;;27655:21:1;27712:2;27692:18;;;27685:30;-1:-1:-1;;;27731:18:1;;;27724:46;27787:18;;94351:38:0;27471:340:1;86735:293:0;85960:1;86869:7;;:19;86861:63;;;;-1:-1:-1;;;86861:63:0;;28018:2:1;86861:63:0;;;28000:21:1;28057:2;28037:18;;;28030:30;28096:33;28076:18;;;28069:61;28147:18;;86861:63:0;27816:355:1;86861:63:0;85960:1;87002:7;:18;86735:293::o;90613:132::-;90521:6;;-1:-1:-1;;;;;90521:6:0;88538:10;90677:23;90669:68;;;;-1:-1:-1;;;90669:68:0;;28378:2:1;90669:68:0;;;28360:21:1;;;28397:18;;;28390:30;28456:34;28436:18;;;28429:62;28508:18;;90669:68:0;28176:356:1;49615:112:0;49692:27;49702:2;49706:8;49692:27;;;;;;;;;;;;:9;:27::i;87036:213::-;85916:1;87219:7;:22;87036:213::o;6210:164::-;6155:46;;6210:164::o;32984:330::-;33049:4;33105:7;160391:1;33086:26;;:90;;;;;33139:23;:21;:23::i;:::-;:37;33129:47;;33086:90;:201;;;;;-1:-1:-1;;;33214:23:0;:21;:23::i;:::-;:50;;;;:41;;;;;:50;;;;;;:68;:73;33066:221;32984:330;-1:-1:-1;;32984:330:0:o;138418:675::-;136368:42;138609:45;:49;138605:481;;138936:67;;-1:-1:-1;;;138936:67:0;;138987:4;138936:67;;;28749:34:1;-1:-1:-1;;;;;28819:15:1;;28799:18;;;28792:43;136368:42:0;;138936;;28684:18:1;;138936:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;138931:144;;139031:28;;-1:-1:-1;;;139031:28:0;;-1:-1:-1;;;;;2153:32:1;;139031:28:0;;;2135:51:1;2108:18;;139031:28:0;1989:203:1;31258:124:0;31347:27;31356:2;31360:7;31369:4;31347:8;:27::i;35339:2969::-;35481:27;35511;35530:7;35511:18;:27::i;:::-;35481:57;;35596:4;-1:-1:-1;;;;;35555:45:0;35571:19;-1:-1:-1;;;;;35555:45:0;;35551:86;;35609:28;;-1:-1:-1;;;35609:28:0;;;;;;;;;;;35551:86;35651:27;35680:23;35707:35;35734:7;35707:26;:35::i;:::-;35650:92;;;;35842:68;35867:15;35884:4;35890:19;88538:10;;88458:98;35890:19;-1:-1:-1;;;;;33882:32:0;;;33726:28;;34011:20;;34033:30;;34008:56;;33423:659;35842:68;35837:180;;35930:43;35947:4;88538:10;32538:188;:::i;35930:43::-;35925:92;;35982:35;;-1:-1:-1;;;35982:35:0;;;;;;;;;;;35925:92;-1:-1:-1;;;;;36034:16:0;;36030:52;;36059:23;;-1:-1:-1;;;36059:23:0;;;;;;;;;;;36030:52;36231:15;36228:160;;;36371:1;36350:19;36343:30;36228:160;36768:23;:21;:23::i;:::-;-1:-1:-1;;;;;36768:48:0;;;;;;:42;;;;;:48;;;;;36766:50;;-1:-1:-1;;36766:50:0;;;36861:23;:21;:23::i;:::-;-1:-1:-1;;;;;36861:46:0;;;;;;:42;;;;;:46;;;;;;36859:48;;;;;;30360:11;30335:23;30331:41;30318:63;-1:-1:-1;;;30318:63:0;37178:23;:21;:23::i;:::-;:50;;;;:41;;;;;:50;;;;;:199;;;;-1:-1:-1;;;37497:47:0;;:52;;37493:699;;37602:1;37592:11;;37725:23;:21;:23::i;:::-;:54;;;;:41;;;;;:54;;;;;;:59;;37721:456;;37887:23;:21;:23::i;:::-;:37;37872:52;;37868:290;;38115:19;38058:23;:21;:23::i;:::-;:54;;;;:41;;;;;:54;;;;;:76;37868:290;37551:641;37493:699;38239:7;38235:2;-1:-1:-1;;;;;38220:27:0;38229:4;-1:-1:-1;;;;;38220:27:0;;;;;;;;;;;38258:42;35470:2838;;;35339:2969;;;:::o;94985:120::-;93994:16;:14;:16::i;:::-;95044:7:::1;:15:::0;;-1:-1:-1;;95044:15:0::1;::::0;;95075:22:::1;88538:10:::0;95084:12:::1;95075:22;::::0;-1:-1:-1;;;;;2153:32:1;;;2135:51;;2123:2;2108:18;95075:22:0::1;;;;;;;94985:120::o:0;38404:193::-;38550:39;38567:4;38573:2;38577:7;38550:39;;;;;;;;;;;;:16;:39::i;146015:222::-;146170:58;;;-1:-1:-1;;;;;3857:32:1;;146170:58:0;;;3839:51:1;3906:18;;;;3899:34;;;146170:58:0;;;;;;;;;;3812:18:1;;;;146170:58:0;;;;;;;;-1:-1:-1;;;;;146170:58:0;-1:-1:-1;;;146170:58:0;;;146143:86;;146163:5;;146143:19;:86::i;27617:1784::-;27684:14;27734:7;160391:1;27715:26;27711:1634;;27767:23;:21;:23::i;:::-;:50;;;;:41;;;;;:50;;;;;;;-1:-1:-1;;;;27867:24:0;;:29;;27863:1471;;28006:6;28016:1;28006:11;28002:1029;;28057:23;:21;:23::i;:::-;:37;28046:48;;28042:92;;28103:31;;-1:-1:-1;;;28103:31:0;;;;;;;;;;;28042:92;28817:23;:21;:23::i;:::-;-1:-1:-1;;28859:9:0;;;28817:52;;;;:41;;;;;:52;;;;;;;;-1:-1:-1;28923:25:0;;28731:281;28923:25;;27617:1784;;;:::o;27863:1471::-;29362:31;;-1:-1:-1;;;29362:31:0;;;;;;;;;;;91715:191;91808:6;;;-1:-1:-1;;;;;91825:17:0;;;-1:-1:-1;;;;;;91825:17:0;;;;;;;91858:40;;91808:6;;;91825:17;91808:6;;91858:40;;91789:16;;91858:40;91778:128;91715:191;:::o;19137:160::-;3486:38;:36;:38::i;:::-;:52;;;;;;3464:154;;;;-1:-1:-1;;;3464:154:0;;;;;;;:::i;:::-;19249:40:::1;19274:5;19281:7;19249:24;:40::i;62304:122::-:0;3486:38;:36;:38::i;:::-;:52;;;;;;3464:154;;;;-1:-1:-1;;;3464:154:0;;;;;;;:::i;:::-;62383:35:::1;:33;:35::i;89991:97::-:0;82750:13;;;;;;;82742:69;;;;-1:-1:-1;;;82742:69:0;;;;;;;:::i;:::-;90054:26:::1;:24;:26::i;93300:99::-:0;82750:13;;;;;;;82742:69;;;;-1:-1:-1;;;82742:69:0;;;;;;;:::i;:::-;93364:27:::1;:25;:27::i;86002:113::-:0;82750:13;;;;;;;82742:69;;;;-1:-1:-1;;;82742:69:0;;;;;;;:::i;:::-;86073:34:::1;:32;:34::i;125120:60::-:0;82750:13;;;;;;;82742:69;;;;-1:-1:-1;;;82742:69:0;;;;;;;:::i;139676:173::-;82750:13;;;;;;;82742:69;;;;-1:-1:-1;;;82742:69:0;;;;;;;:::i;:::-;139755:86:::1;128917:42;139836:4;139755:51;:86::i;94726:118::-:0;93735:19;:17;:19::i;:::-;94786:7:::1;:14:::0;;-1:-1:-1;;94786:14:0::1;94796:4;94786:14;::::0;;94816:20:::1;94823:12;88538:10:::0;;88458:98;26993:185;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27102:68:0;27121:23;:21;:23::i;:::-;:48;;;;:41;;;;;:48;;;;;;27102:18;:68::i;20097:127::-;20152:7;20179:23;:21;:23::i;:::-;:37;;20097:127;-1:-1:-1;20097:127:0:o;159505:174::-;159598:5;159581:91;159610:3;159605:1;:8;159581:91;;159651:9;159658:1;159651:6;:9::i;:::-;159635:13;;;;:10;:13;;;;;:25;159646:1;159615:3;159646:1;159615:3;:::i;:::-;;;;159581:91;;32123:258;32294:8;32218:23;:21;:23::i;:::-;88538:10;32218:63;;;;:42;;;;;:63;;;;;;;;-1:-1:-1;;;;;32218:73:0;;;;;;;;;;;;:84;;-1:-1:-1;;32218:84:0;;;;;;;;;;;32318:55;;565:14:1;;558:22;540:41;;32218:73:0;;88538:10;;32318:55;;513:18:1;32318:55:0;;;;;;;32123:258;;:::o;39195:407::-;39370:31;39383:4;39389:2;39393:7;39370:12;:31::i;:::-;-1:-1:-1;;;;;39416:14:0;;;:19;39412:183;;39455:56;39486:4;39492:2;39496:7;39505:5;39455:30;:56::i;:::-;39450:145;;39539:40;;-1:-1:-1;;;39539:40:0;;;;;;;;;;;26731:166;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26842:47:0;26861:27;26880:7;26861:18;:27::i;:::-;26842:18;:47::i;160408:110::-;160468:13;160501:9;160494:16;;;;;:::i;108841:727::-;108897:13;108948:14;108965:28;108987:5;108965:21;:28::i;:::-;108996:1;108965:32;108948:49;;109012:20;109046:6;-1:-1:-1;;;;;109035:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;109035:18:0;-1:-1:-1;109012:41:0;-1:-1:-1;109177:28:0;;;109193:2;109177:28;109234:288;-1:-1:-1;;109266:5:0;-1:-1:-1;;;109403:2:0;109392:14;;109387:30;109266:5;109374:44;109464:2;109455:11;;;-1:-1:-1;109485:21:0;109234:288;109485:21;-1:-1:-1;109543:6:0;108841:727;-1:-1:-1;;;108841:727:0:o;48794:737::-;48925:19;48931:2;48935:8;48925:5;:19::i;:::-;-1:-1:-1;;;;;48986:14:0;;;:19;48982:531;;49026:11;49040:23;:21;:23::i;:::-;:37;;-1:-1:-1;49112:14:0;;;49145:233;49176:62;49215:1;49219:2;49223:7;;;;;;49232:5;49176:30;:62::i;:::-;49171:167;;49274:40;;-1:-1:-1;;;49274:40:0;;;;;;;;;;;49171:167;49373:3;49365:5;:11;49145:233;;49484:3;49443:23;:21;:23::i;:::-;:37;:44;49439:58;;49489:8;;;50533:516;50662:13;50678:16;50686:7;50678;:16::i;:::-;50662:32;;50711:13;50707:219;;;88538:10;-1:-1:-1;;;;;50743:28:0;;;50739:187;;50795:44;50812:5;88538:10;32538:188;:::i;50795:44::-;50790:136;;50871:35;;-1:-1:-1;;;50871:35:0;;;;;;;;;;;50790:136;50995:2;50938:23;:21;:23::i;:::-;:48;;;;:39;;;;;:48;;;;;;:59;;-1:-1:-1;;;;;;50938:59:0;-1:-1:-1;;;;;50938:59:0;;;;;;51013:28;50938:48;;51013:28;;;;;;;;;;50938:48;51013:28;50651:398;50533:516;;;:::o;34195:524::-;34297:27;34326:23;34367:53;34423:23;:21;:23::i;:::-;:48;;;;:39;;:48;;-1:-1:-1;;34423:48:0;;;;34675:26;;34423:48;;34675:26;;-1:-1:-1;34195:524:0:o;94474:108::-;94201:7;;;;94533:41;;;;-1:-1:-1;;;94533:41:0;;30271:2:1;94533:41:0;;;30253:21:1;30310:2;30290:18;;;30283:30;-1:-1:-1;;;30329:18:1;;;30322:50;30389:18;;94533:41:0;30069:344:1;149148:727:0;149583:23;149609:69;149637:4;149609:69;;;;;;;;;;;;;;;;;149617:5;-1:-1:-1;;;;;149609:27:0;;;:69;;;;;:::i;:::-;149693:17;;149583:95;;-1:-1:-1;149693:21:0;149689:179;;149790:10;149779:30;;;;;;;;;;;;:::i;:::-;149771:85;;;;-1:-1:-1;;;149771:85:0;;30620:2:1;149771:85:0;;;30602:21:1;30659:2;30639:18;;;30632:30;30698:34;30678:18;;;30671:62;-1:-1:-1;;;30749:18:1;;;30742:40;30799:19;;149771:85:0;30418:406:1;19305:285:0;3486:38;:36;:38::i;:::-;:52;;;;;;3464:154;;;;-1:-1:-1;;;3464:154:0;;;;;;;:::i;:::-;19459:5:::1;19427:23;:21;:23::i;:::-;:29;;::::0;:37:::1;::::0;:29;:37:::1;:::i;:::-;;19509:7;19475:23;:21;:23::i;:::-;:31;;::::0;:41:::1;::::0;:31;:41:::1;:::i;:::-;-1:-1:-1::0;160391:1:0;19527:23:::1;:21;:23::i;:::-;:55:::0;-1:-1:-1;;19305:285:0:o;62434:80::-;3486:38;:36;:38::i;:::-;:52;;;;;;3464:154;;;;-1:-1:-1;;;3464:154:0;;;;;;;:::i;90096:113::-;82750:13;;;;;;;82742:69;;;;-1:-1:-1;;;82742:69:0;;;;;;;:::i;:::-;90169:32:::1;88538:10:::0;90169:18:::1;:32::i;93407:97::-:0;82750:13;;;;;;;82742:69;;;;-1:-1:-1;;;82742:69:0;;;;;;;:::i;:::-;93481:7:::1;:15:::0;;-1:-1:-1;;93481:15:0::1;::::0;;93407:97::o;86123:111::-;82750:13;;;;;;;82742:69;;;;-1:-1:-1;;;82742:69:0;;;;;;;:::i;136529:1111::-;82750:13;;;;;;;82742:69;;;;-1:-1:-1;;;82742:69:0;;;;;;;:::i;:::-;136368:42:::1;136965:45;:49:::0;136961:672:::1;;137036:52;::::0;-1:-1:-1;;;137036:52:0;;137082:4:::1;137036:52;::::0;::::1;2135:51:1::0;136368:42:0::1;::::0;137036:37:::1;::::0;2108:18:1;;137036:52:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;137031:591;;137113:9;137109:498;;;137147:92;::::0;-1:-1:-1;;;137147:92:0;;137201:4:::1;137147:92;::::0;::::1;28749:34:1::0;-1:-1:-1;;;;;28819:15:1;;28799:18;;;28792:43;136368:42:0::1;::::0;137147:45:::1;::::0;28684:18:1;;137147:92:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;137109:498;-1:-1:-1::0;;;;;137292:44:0;::::1;::::0;137288:300:::1;;137365:94;::::0;-1:-1:-1;;;137365:94:0;;137421:4:::1;137365:94;::::0;::::1;28749:34:1::0;-1:-1:-1;;;;;28819:15:1;;28799:18;;;28792:43;136368:42:0::1;::::0;137365:47:::1;::::0;28684:18:1;;137365:94:0::1;28537:304:1::0;137288:300:0::1;137516:48;::::0;-1:-1:-1;;;137516:48:0;;137558:4:::1;137516:48;::::0;::::1;2135:51:1::0;136368:42:0::1;::::0;137516:33:::1;::::0;2108:18:1;;137516:48:0::1;1989:203:1::0;29500:366:0;-1:-1:-1;;;;;;;;;;;;;29610:41:0;;;;17521:3;29696:33;;;-1:-1:-1;;;;;29662:68:0;-1:-1:-1;;;29662:68:0;-1:-1:-1;;;29760:24:0;;:29;;-1:-1:-1;;;29741:48:0;;;;18042:3;29829:28;;;;-1:-1:-1;;;29800:58:0;-1:-1:-1;29500:366:0:o;159687:329::-;159737:7;159757:11;159790:7;;159771:16;159780:6;159771:8;:16::i;:::-;:26;;;;:::i;:::-;159808:11;159822:10;;;:5;:10;;;;;;159757:40;;-1:-1:-1;159808:11:0;159822:15;:34;;159846:10;;;;:5;:10;;;;;;159822:34;;;159840:3;159822:34;159808:48;;159880:5;:18;159896:1;159886:7;;:11;;;;:::i;:::-;159880:18;;;;;;;;;;;;159902:1;159880:23;:58;;159920:5;:18;159936:1;159926:7;;:11;;;;:::i;:::-;159920:18;;;;;;;;;;;;159880:58;;;159916:1;159906:7;;:11;;;;:::i;:::-;159867:10;;;;:5;:10;;;;;:71;;;;159949:7;:9;;;;;;:::i;:::-;;;;;;159993:15;160391:1;;160299:101;159993:15;159982:8;;159976:14;;:3;:14;:::i;:::-;:32;;;;:::i;:::-;159969:39;159687:329;-1:-1:-1;;;;159687:329:0:o;41686:736::-;41883:99;;-1:-1:-1;;;41883:99:0;;41849:4;;-1:-1:-1;;;;;41883:56:0;;;;;:99;;88538:10;;41961:4;;41967:7;;41976:5;;41883:99;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41883:99:0;;;;;;;;-1:-1:-1;;41883:99:0;;;;;;;;;;;;:::i;:::-;;;41866:549;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42173:6;:13;42190:1;42173:18;42169:235;;42219:40;;-1:-1:-1;;;42219:40:0;;;;;;;;;;;42169:235;42362:6;42356:13;42347:6;42343:2;42339:15;42332:38;41866:549;-1:-1:-1;;;;;;42038:75:0;-1:-1:-1;;;42038:75:0;;-1:-1:-1;41686:736:0;;;;;;:::o;105645:922::-;105698:7;;-1:-1:-1;;;105776:15:0;;105772:102;;-1:-1:-1;;;105812:15:0;;;-1:-1:-1;105856:2:0;105846:12;105772:102;105901:6;105892:5;:15;105888:102;;105937:6;105928:15;;;-1:-1:-1;105972:2:0;105962:12;105888:102;106017:6;106008:5;:15;106004:102;;106053:6;106044:15;;;-1:-1:-1;106088:2:0;106078:12;106004:102;106133:5;106124;:14;106120:99;;106168:5;106159:14;;;-1:-1:-1;106202:1:0;106192:11;106120:99;106246:5;106237;:14;106233:99;;106281:5;106272:14;;;-1:-1:-1;106315:1:0;106305:11;106233:99;106359:5;106350;:14;106346:99;;106394:5;106385:14;;;-1:-1:-1;106428:1:0;106418:11;106346:99;106472:5;106463;:14;106459:66;;106508:1;106498:11;106553:6;105645:922;-1:-1:-1;;105645:922:0:o;42884:3062::-;42957:20;42980:23;:21;:23::i;:::-;:37;;-1:-1:-1;42980:37:0;43032:13;;;43028:44;;43054:18;;-1:-1:-1;;;43054:18:0;;;;;;;;;;;43028:44;43622:32;43610:45;;43560:23;:21;:23::i;:::-;-1:-1:-1;;;;;43560:46:0;;;;;;:42;;;;;:46;;;;;;:95;;;;;;;;;30360:11;30335:23;30331:41;-1:-1:-1;30791:15:0;;30765:24;30761:46;30328:52;30318:63;43898:23;:21;:23::i;:::-;:55;;;;:41;;;;;:55;;;;;:197;;;;-1:-1:-1;;;;;44685:25:0;;;44157:23;;;;43940:12;;44685:25;;44922;43898:55;;44775:335;45436:1;45422:12;45418:20;45376:346;45477:3;45468:7;45465:16;45376:346;;45695:7;45685:8;45682:1;45655:25;45652:1;45649;45644:59;45530:1;45517:15;45376:346;;;45380:77;45755:8;45767:1;45755:13;45751:45;;45777:19;;-1:-1:-1;;;45777:19:0;;;;;;;;;;;45751:45;45853:3;45813:23;:21;:23::i;:::-;:43;-1:-1:-1;45878:60:0;;-1:-1:-1;156922:287:0;72702:229;72839:12;72871:52;72893:6;72901:4;72907:1;72910:12;72871:21;:52::i;160024:267::-;160076:14;160189:16;160204:1;160189:12;:16;:::i;:::-;160216:5;;160162:60;;;160179:27;;160162:60;;;32020:19:1;32055:12;;32048:28;;;32092:12;;;32085:28;32129:12;;160162:60:0;;;-1:-1:-1;;160162:60:0;;;;;;;;;160134:103;;160162:60;160134:103;;;;;-1:-1:-1;160268:15:0;160277:6;160134:103;160268:15;:::i;:::-;160259:5;;:24;;;;;;;:::i;:::-;;;;-1:-1:-1;160024:267:0;;;-1:-1:-1;;160024:267:0:o;73822:455::-;73992:12;74050:5;74025:21;:30;;74017:81;;;;-1:-1:-1;;;74017:81:0;;32354:2:1;74017:81:0;;;32336:21:1;32393:2;32373:18;;;32366:30;32432:34;32412:18;;;32405:62;-1:-1:-1;;;32483:18:1;;;32476:36;32529:19;;74017:81:0;32152:402:1;74017:81:0;74110:12;74124:23;74151:6;-1:-1:-1;;;;;74151:11:0;74170:5;74177:4;74151:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74109:73;;;;74200:69;74227:6;74235:7;74244:10;74256:12;74200:26;:69::i;:::-;74193:76;73822:455;-1:-1:-1;;;;;;;73822:455:0:o;75482:644::-;75667:12;75696:7;75692:427;;;75724:10;:17;75745:1;75724:22;75720:290;;-1:-1:-1;;;;;70240:19:0;;;75934:60;;;;-1:-1:-1;;;75934:60:0;;33053:2:1;75934:60:0;;;33035:21:1;33092:2;33072:18;;;33065:30;33131:31;33111:18;;;33104:59;33180:18;;75934:60:0;32851:353:1;75934:60:0;-1:-1:-1;76031:10:0;76024:17;;75692:427;76074:33;76082:10;76094:12;76829:17;;:21;76825:388;;77061:10;77055:17;77118:15;77105:10;77101:2;77097:19;77090:44;76825:388;77188:12;77181:20;;-1:-1:-1;;;77181:20:0;;;;;;;;:::i;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:131::-;-1:-1:-1;;;;;667:31:1;;657:42;;647:70;;713:1;710;703:12;728:315;796:6;804;857:2;845:9;836:7;832:23;828:32;825:52;;;873:1;870;863:12;825:52;909:9;896:23;886:33;;969:2;958:9;954:18;941:32;982:31;1007:5;982:31;:::i;:::-;1032:5;1022:15;;;728:315;;;;;:::o;1048:250::-;1133:1;1143:113;1157:6;1154:1;1151:13;1143:113;;;1233:11;;;1227:18;1214:11;;;1207:39;1179:2;1172:10;1143:113;;;-1:-1:-1;;1290:1:1;1272:16;;1265:27;1048:250::o;1303:271::-;1345:3;1383:5;1377:12;1410:6;1405:3;1398:19;1426:76;1495:6;1488:4;1483:3;1479:14;1472:4;1465:5;1461:16;1426:76;:::i;:::-;1556:2;1535:15;-1:-1:-1;;1531:29:1;1522:39;;;;1563:4;1518:50;;1303:271;-1:-1:-1;;1303:271:1:o;1579:220::-;1728:2;1717:9;1710:21;1691:4;1748:45;1789:2;1778:9;1774:18;1766:6;1748:45;:::i;1804:180::-;1863:6;1916:2;1904:9;1895:7;1891:23;1887:32;1884:52;;;1932:1;1929;1922:12;1884:52;-1:-1:-1;1955:23:1;;1804:180;-1:-1:-1;1804:180:1:o;2197:315::-;2265:6;2273;2326:2;2314:9;2305:7;2301:23;2297:32;2294:52;;;2342:1;2339;2332:12;2294:52;2381:9;2368:23;2400:31;2425:5;2400:31;:::i;:::-;2450:5;2502:2;2487:18;;;;2474:32;;-1:-1:-1;;;2197:315:1:o;2699:247::-;2758:6;2811:2;2799:9;2790:7;2786:23;2782:32;2779:52;;;2827:1;2824;2817:12;2779:52;2866:9;2853:23;2885:31;2910:5;2885:31;:::i;2951:456::-;3028:6;3036;3044;3097:2;3085:9;3076:7;3072:23;3068:32;3065:52;;;3113:1;3110;3103:12;3065:52;3152:9;3139:23;3171:31;3196:5;3171:31;:::i;:::-;3221:5;-1:-1:-1;3278:2:1;3263:18;;3250:32;3291:33;3250:32;3291:33;:::i;:::-;2951:456;;3343:7;;-1:-1:-1;;;3397:2:1;3382:18;;;;3369:32;;2951:456::o;3412:248::-;3480:6;3488;3541:2;3529:9;3520:7;3516:23;3512:32;3509:52;;;3557:1;3554;3547:12;3509:52;-1:-1:-1;;3580:23:1;;;3650:2;3635:18;;;3622:32;;-1:-1:-1;3412:248:1:o;3944:615::-;4030:6;4038;4091:2;4079:9;4070:7;4066:23;4062:32;4059:52;;;4107:1;4104;4097:12;4059:52;4147:9;4134:23;-1:-1:-1;;;;;4217:2:1;4209:6;4206:14;4203:34;;;4233:1;4230;4223:12;4203:34;4271:6;4260:9;4256:22;4246:32;;4316:7;4309:4;4305:2;4301:13;4297:27;4287:55;;4338:1;4335;4328:12;4287:55;4378:2;4365:16;4404:2;4396:6;4393:14;4390:34;;;4420:1;4417;4410:12;4390:34;4473:7;4468:2;4458:6;4455:1;4451:14;4447:2;4443:23;4439:32;4436:45;4433:65;;;4494:1;4491;4484:12;4433:65;4525:2;4517:11;;;;;4547:6;;-1:-1:-1;3944:615:1;;-1:-1:-1;;;;3944:615:1:o;4564:349::-;4648:12;;-1:-1:-1;;;;;4644:38:1;4632:51;;4736:4;4725:16;;;4719:23;-1:-1:-1;;;;;4715:48:1;4699:14;;;4692:72;4827:4;4816:16;;;4810:23;4803:31;4796:39;4780:14;;;4773:63;4889:4;4878:16;;;4872:23;4897:8;4868:38;4852:14;;4845:62;4564:349::o;4918:722::-;5151:2;5203:21;;;5273:13;;5176:18;;;5295:22;;;5122:4;;5151:2;5374:15;;;;5348:2;5333:18;;;5122:4;5417:197;5431:6;5428:1;5425:13;5417:197;;;5480:52;5528:3;5519:6;5513:13;5480:52;:::i;:::-;5589:15;;;;5561:4;5552:14;;;;;5453:1;5446:9;5417:197;;5869:348;5921:8;5931:6;5985:3;5978:4;5970:6;5966:17;5962:27;5952:55;;6003:1;6000;5993:12;5952:55;-1:-1:-1;6026:20:1;;-1:-1:-1;;;;;6058:30:1;;6055:50;;;6101:1;6098;6091:12;6055:50;6138:4;6130:6;6126:17;6114:29;;6190:3;6183:4;6174:6;6166;6162:19;6158:30;6155:39;6152:59;;;6207:1;6204;6197:12;6222:142;6298:20;;6327:31;6298:20;6327:31;:::i;6369:1349::-;6535:6;6543;6551;6559;6567;6575;6583;6591;6599;6607;6615:7;6669:3;6657:9;6648:7;6644:23;6640:33;6637:53;;;6686:1;6683;6676:12;6637:53;-1:-1:-1;;;;;6767:2:1;6755:9;6742:23;6739:31;6736:51;;;6783:1;6780;6773:12;6736:51;6822:76;6890:7;6877:9;6864:23;6853:9;6849:39;6822:76;:::i;:::-;6917:8;;-1:-1:-1;6944:8:1;-1:-1:-1;6995:2:1;6980:18;;6967:32;6964:40;-1:-1:-1;6961:60:1;;;7017:1;7014;7007:12;6961:60;7056:85;7133:7;7126:2;7115:9;7111:18;7098:32;7087:9;7083:48;7056:85;:::i;:::-;7160:8;;-1:-1:-1;7187:8:1;-1:-1:-1;7238:2:1;7223:18;;7210:32;7207:40;-1:-1:-1;7204:60:1;;;7260:1;7257;7250:12;7204:60;;7299:85;7376:7;7369:2;7358:9;7354:18;7341:32;7330:9;7326:48;7299:85;:::i;:::-;7403:8;;-1:-1:-1;7430:8:1;-1:-1:-1;7457:46:1;7499:2;7484:18;;7457:46;:::i;:::-;7447:56;;7550:3;7539:9;7535:19;7522:33;7512:43;;7602:3;7591:9;7587:19;7574:33;7564:43;;7654:3;7643:9;7639:19;7626:33;7616:43;;7707:3;7696:9;7692:19;7679:33;7668:44;;6369:1349;;;;;;;;;;;;;;:::o;7723:411::-;7794:6;7802;7855:2;7843:9;7834:7;7830:23;7826:32;7823:52;;;7871:1;7868;7861:12;7823:52;7911:9;7898:23;-1:-1:-1;;;;;7936:6:1;7933:30;7930:50;;;7976:1;7973;7966:12;7930:50;8015:59;8066:7;8057:6;8046:9;8042:22;8015:59;:::i;:::-;8093:8;;7989:85;;-1:-1:-1;7723:411:1;-1:-1:-1;;;;7723:411:1:o;8139:632::-;8310:2;8362:21;;;8432:13;;8335:18;;;8454:22;;;8281:4;;8310:2;8533:15;;;;8507:2;8492:18;;;8281:4;8576:169;8590:6;8587:1;8584:13;8576:169;;;8651:13;;8639:26;;8720:15;;;;8685:12;;;;8612:1;8605:9;8576:169;;8776:383;8853:6;8861;8869;8922:2;8910:9;8901:7;8897:23;8893:32;8890:52;;;8938:1;8935;8928:12;8890:52;8977:9;8964:23;8996:31;9021:5;8996:31;:::i;:::-;9046:5;9098:2;9083:18;;9070:32;;-1:-1:-1;9149:2:1;9134:18;;;9121:32;;8776:383;-1:-1:-1;;;8776:383:1:o;9164:118::-;9250:5;9243:13;9236:21;9229:5;9226:32;9216:60;;9272:1;9269;9262:12;9287:382;9352:6;9360;9413:2;9401:9;9392:7;9388:23;9384:32;9381:52;;;9429:1;9426;9419:12;9381:52;9468:9;9455:23;9487:31;9512:5;9487:31;:::i;:::-;9537:5;-1:-1:-1;9594:2:1;9579:18;;9566:32;9607:30;9566:32;9607:30;:::i;9934:127::-;9995:10;9990:3;9986:20;9983:1;9976:31;10026:4;10023:1;10016:15;10050:4;10047:1;10040:15;10066:1266;10161:6;10169;10177;10185;10238:3;10226:9;10217:7;10213:23;10209:33;10206:53;;;10255:1;10252;10245:12;10206:53;10294:9;10281:23;10313:31;10338:5;10313:31;:::i;:::-;10363:5;-1:-1:-1;10420:2:1;10405:18;;10392:32;10433:33;10392:32;10433:33;:::i;:::-;10485:7;-1:-1:-1;10539:2:1;10524:18;;10511:32;;-1:-1:-1;10594:2:1;10579:18;;10566:32;-1:-1:-1;;;;;10647:14:1;;;10644:34;;;10674:1;10671;10664:12;10644:34;10712:6;10701:9;10697:22;10687:32;;10757:7;10750:4;10746:2;10742:13;10738:27;10728:55;;10779:1;10776;10769:12;10728:55;10815:2;10802:16;10837:2;10833;10830:10;10827:36;;;10843:18;;:::i;:::-;10918:2;10912:9;10886:2;10972:13;;-1:-1:-1;;10968:22:1;;;10992:2;10964:31;10960:40;10948:53;;;11016:18;;;11036:22;;;11013:46;11010:72;;;11062:18;;:::i;:::-;11102:10;11098:2;11091:22;11137:2;11129:6;11122:18;11177:7;11172:2;11167;11163;11159:11;11155:20;11152:33;11149:53;;;11198:1;11195;11188:12;11149:53;11254:2;11249;11245;11241:11;11236:2;11228:6;11224:15;11211:46;11299:1;11294:2;11289;11281:6;11277:15;11273:24;11266:35;11320:6;11310:16;;;;;;;10066:1266;;;;;;;:::o;11337:266::-;11533:3;11518:19;;11546:51;11522:9;11579:6;11546:51;:::i;11608:388::-;11676:6;11684;11737:2;11725:9;11716:7;11712:23;11708:32;11705:52;;;11753:1;11750;11743:12;11705:52;11792:9;11779:23;11811:31;11836:5;11811:31;:::i;:::-;11861:5;-1:-1:-1;11918:2:1;11903:18;;11890:32;11931:33;11890:32;11931:33;:::i;12425:127::-;12486:10;12481:3;12477:20;12474:1;12467:31;12517:4;12514:1;12507:15;12541:4;12538:1;12531:15;12557:125;12622:9;;;12643:10;;;12640:36;;;12656:18;;:::i;13094:380::-;13173:1;13169:12;;;;13216;;;13237:61;;13291:4;13283:6;13279:17;13269:27;;13237:61;13344:2;13336:6;13333:14;13313:18;13310:38;13307:161;;13390:10;13385:3;13381:20;13378:1;13371:31;13425:4;13422:1;13415:15;13453:4;13450:1;13443:15;13307:161;;13094:380;;;:::o;13479:168::-;13552:9;;;13583;;13600:15;;;13594:22;;13580:37;13570:71;;13621:18;;:::i;13652:127::-;13713:10;13708:3;13704:20;13701:1;13694:31;13744:4;13741:1;13734:15;13768:4;13765:1;13758:15;13784:120;13824:1;13850;13840:35;;13855:18;;:::i;:::-;-1:-1:-1;13889:9:1;;13784:120::o;13909:128::-;13976:9;;;13997:11;;;13994:37;;;14011:18;;:::i;15017:184::-;15087:6;15140:2;15128:9;15119:7;15115:23;15111:32;15108:52;;;15156:1;15153;15146:12;15108:52;-1:-1:-1;15179:16:1;;15017:184;-1:-1:-1;15017:184:1:o;15612:127::-;15673:10;15668:3;15664:20;15661:1;15654:31;15704:4;15701:1;15694:15;15728:4;15725:1;15718:15;17069:545;17171:2;17166:3;17163:11;17160:448;;;17207:1;17232:5;17228:2;17221:17;17277:4;17273:2;17263:19;17347:2;17335:10;17331:19;17328:1;17324:27;17318:4;17314:38;17383:4;17371:10;17368:20;17365:47;;;-1:-1:-1;17406:4:1;17365:47;17461:2;17456:3;17452:12;17449:1;17445:20;17439:4;17435:31;17425:41;;17516:82;17534:2;17527:5;17524:13;17516:82;;;17579:17;;;17560:1;17549:13;17516:82;;17790:1206;-1:-1:-1;;;;;17909:3:1;17906:27;17903:53;;;17936:18;;:::i;:::-;17965:94;18055:3;18015:38;18047:4;18041:11;18015:38;:::i;:::-;18009:4;17965:94;:::i;:::-;18085:1;18110:2;18105:3;18102:11;18127:1;18122:616;;;;18782:1;18799:3;18796:93;;;-1:-1:-1;18855:19:1;;;18842:33;18796:93;-1:-1:-1;;17747:1:1;17743:11;;;17739:24;17735:29;17725:40;17771:1;17767:11;;;17722:57;18902:78;;18095:895;;18122:616;17016:1;17009:14;;;17053:4;17040:18;;-1:-1:-1;;18158:17:1;;;18259:9;18281:229;18295:7;18292:1;18289:14;18281:229;;;18384:19;;;18371:33;18356:49;;18491:4;18476:20;;;;18444:1;18432:14;;;;18311:12;18281:229;;;18285:3;18538;18529:7;18526:16;18523:159;;;18662:1;18658:6;18652:3;18646;18643:1;18639:11;18635:21;18631:34;18627:39;18614:9;18609:3;18605:19;18592:33;18588:79;18580:6;18573:95;18523:159;;;18725:1;18719:3;18716:1;18712:11;18708:19;18702:4;18695:33;18095:895;;17790:1206;;;:::o;19001:1352::-;19127:3;19121:10;-1:-1:-1;;;;;19146:6:1;19143:30;19140:56;;;19176:18;;:::i;:::-;19205:97;19295:6;19255:38;19287:4;19281:11;19255:38;:::i;:::-;19249:4;19205:97;:::i;:::-;19357:4;;19421:2;19410:14;;19438:1;19433:663;;;;20140:1;20157:6;20154:89;;;-1:-1:-1;20209:19:1;;;20203:26;20154:89;-1:-1:-1;;17747:1:1;17743:11;;;17739:24;17735:29;17725:40;17771:1;17767:11;;;17722:57;20256:81;;19403:944;;19433:663;17016:1;17009:14;;;17053:4;17040:18;;-1:-1:-1;;19469:20:1;;;19587:236;19601:7;19598:1;19595:14;19587:236;;;19690:19;;;19684:26;19669:42;;19782:27;;;;19750:1;19738:14;;;;19617:19;;19587:236;;;19591:3;19851:6;19842:7;19839:19;19836:201;;;19912:19;;;19906:26;-1:-1:-1;;19995:1:1;19991:14;;;20007:3;19987:24;19983:37;19979:42;19964:58;19949:74;;19836:201;-1:-1:-1;;;;;20083:1:1;20067:14;;;20063:22;20050:36;;-1:-1:-1;19001:1352:1:o;24160:1256::-;24384:3;24422:6;24416:13;24448:4;24461:64;24518:6;24513:3;24508:2;24500:6;24496:15;24461:64;:::i;:::-;24588:13;;24547:16;;;;24610:68;24588:13;24547:16;24645:15;;;24610:68;:::i;:::-;24767:13;;24700:20;;;24740:1;;24805:36;24767:13;24805:36;:::i;:::-;24860:1;24877:18;;;24904:141;;;;25059:1;25054:337;;;;24870:521;;24904:141;-1:-1:-1;;24939:24:1;;24925:39;;25016:16;;25009:24;24995:39;;24984:51;;;-1:-1:-1;24904:141:1;;25054:337;25085:6;25082:1;25075:17;25133:2;25130:1;25120:16;25158:1;25172:169;25186:8;25183:1;25180:15;25172:169;;;25268:14;;25253:13;;;25246:37;25311:16;;;;25203:10;;25172:169;;;25176:3;;25372:8;25365:5;25361:20;25354:27;;24870:521;-1:-1:-1;25407:3:1;;24160:1256;-1:-1:-1;;;;;;;;;;24160:1256:1:o;28846:245::-;28913:6;28966:2;28954:9;28945:7;28941:23;28937:32;28934:52;;;28982:1;28979;28972:12;28934:52;29014:9;29008:16;29033:28;29055:5;29033:28;:::i;29096:416::-;29298:2;29280:21;;;29337:2;29317:18;;;29310:30;29376:34;29371:2;29356:18;;29349:62;-1:-1:-1;;;29442:2:1;29427:18;;29420:50;29502:3;29487:19;;29096:416::o;29517:407::-;29719:2;29701:21;;;29758:2;29738:18;;;29731:30;29797:34;29792:2;29777:18;;29770:62;-1:-1:-1;;;29863:2:1;29848:18;;29841:41;29914:3;29899:19;;29517:407::o;29929:135::-;29968:3;29989:17;;;29986:43;;30009:18;;:::i;:::-;-1:-1:-1;30056:1:1;30045:13;;29929:135::o;30829:112::-;30861:1;30887;30877:35;;30892:18;;:::i;:::-;-1:-1:-1;30926:9:1;;30829:112::o;30946:136::-;30985:3;31013:5;31003:39;;31022:18;;:::i;:::-;-1:-1:-1;;;31058:18:1;;30946:136::o;31087:489::-;-1:-1:-1;;;;;31356:15:1;;;31338:34;;31408:15;;31403:2;31388:18;;31381:43;31455:2;31440:18;;31433:34;;;31503:3;31498:2;31483:18;;31476:31;;;31281:4;;31524:46;;31550:19;;31542:6;31524:46;:::i;:::-;31516:54;31087:489;-1:-1:-1;;;;;;31087:489:1:o;31581:249::-;31650:6;31703:2;31691:9;31682:7;31678:23;31674:32;31671:52;;;31719:1;31716;31709:12;31671:52;31751:9;31745:16;31770:30;31794:5;31770:30;:::i;32559:287::-;32688:3;32726:6;32720:13;32742:66;32801:6;32796:3;32789:4;32781:6;32777:17;32742:66;:::i;:::-;32824:16;;;;;32559:287;-1:-1:-1;;32559:287:1:o
Swarm Source
ipfs://4af7fa9d46cd665251d60efd9200e410e6809ae345b6c572beaa6ee0153aba8f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.