ERC-721
Overview
Max Total Supply
93 Ageo3rd
Holders
45
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 Ageo3rdLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Ageo3rd
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-11-26 */ // SPDX-License-Identifier: MIT pragma solidity >=0.8.17; // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) /** * @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 MerkleProof { /** * @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) } } } // ERC721A Contracts v4.2.3 // Creator: Chiru Labs // ERC721A Contracts v4.2.3 // Creator: Chiru Labs // ERC721A Contracts v4.2.3 // Creator: Chiru Labs /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * 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); } /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `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); } // ERC721A Contracts v4.2.3 // Creator: Chiru Labs /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].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. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public 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__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // 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(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory 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) } } } /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `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; } } } // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) /** * @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 IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[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); } /** * @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 IERC2981 is IERC165 { /** * @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); } // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) /** * @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 ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } /** * @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 ERC2981 is IERC2981, ERC165 { 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(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ 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]; } } /// @title EIP-721 Metadata Update Extension interface IERC4906 { /// @dev This event emits when the metadata of a token is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFT. event MetadataUpdate(uint256 _tokenId); /// @dev This event emits when the metadata of a range of tokens is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFTs. event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); } // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) // OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol) /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } enum TicketID { SponsorA, SponsorB, SponsorC, Rare, Uncommon, Common, FreeMint } enum PresalePhaseID { HolderSale, FreeMint, AllowList } error PreMaxExceed(uint256 _presaleMax); error MaxSupplyOver(); error NotEnoughFunds(uint256 balance); error NotMintable(); error InvalidMerkleProof(); error AlreadyClaimedMax(); error MintAmountOver(); contract Ageo3rd is ERC721A, IERC4906, ERC2981, ERC721AQueryable, AccessControl { string private constant BASE_EXTENSION = ".json"; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PIE_ROLE = keccak256("PIE_ROLE"); bool public publicSale = false; bool public mintable = true; bool public revealed = false; bool public transferAble = false; string private baseURI = "https://arweave.net/k71TMEyQw3VgvfrxXS91FjsotHA5dE4-xRwvl1vmsdE/"; mapping(PresalePhaseID => bool) public presalePhase; mapping(TicketID => uint256) public nftCost; mapping(TicketID => uint256) public maxSupply; mapping(TicketID => uint256) public totalSupplyCategory; mapping(PresalePhaseID => bytes32) public merkleRoot; mapping(TicketID => string) public notRevealedURI; mapping(uint256 => string) private metadataURI; mapping(TicketID => mapping(PresalePhaseID => mapping(address => uint256))) public whiteListClaimed; mapping(uint256 => TicketID) public tokenCategory; constructor() ERC721A("Ageo3rd", "Ageo3rd") { _grantRole(DEFAULT_ADMIN_ROLE, _msgSender()); _grantRole(MINTER_ROLE, _msgSender()); nftCost[TicketID.SponsorA] = 1 ether; nftCost[TicketID.SponsorB] = 1 ether; nftCost[TicketID.SponsorC] = 1 ether; nftCost[TicketID.Rare] = 0.2 ether; nftCost[TicketID.Uncommon] = 0.1 ether; nftCost[TicketID.Common] = 0.03 ether; maxSupply[TicketID.SponsorA] = 5; maxSupply[TicketID.SponsorB] = 5; maxSupply[TicketID.SponsorC] = 5; maxSupply[TicketID.Rare] = 30; maxSupply[TicketID.Uncommon] = 120; maxSupply[TicketID.Common] = 774; maxSupply[TicketID.FreeMint] = 46; presalePhase[PresalePhaseID.HolderSale] = true; notRevealedURI[TicketID.Common] = "ar://xmpuTV8BzVcQdHJ2ldsc5s5JjFxxSY3V3DnLWJTSjHg"; notRevealedURI[TicketID.FreeMint] = "ar://xmpuTV8BzVcQdHJ2ldsc5s5JjFxxSY3V3DnLWJTSjHg"; notRevealedURI[TicketID.Uncommon] = "ar://2u0d0qJkFbZ_OqsAWW8XttvwvsBeAjmMvwPGcsNmYx4"; notRevealedURI[TicketID.Rare] = "ar://EukgJucyWPuIj2kmefZMGi3-XCsHn_sLpnpNiVZDiaI"; notRevealedURI[TicketID.SponsorA] = "ar://rWNF_KzTFJyIiwZUQuLjlPjo9k1mqaRfD5LWsYzrAv0"; notRevealedURI[TicketID.SponsorB] = "ar://dWt1-2VjI67ee5T24DHs_2uyEWVBVfYGrqoxSsQhJ68"; notRevealedURI[TicketID.SponsorC] = "ar://pAS13Tp3Lvmm6w-Qou5LY_PRuPKr7u2A3HgXnrJDSOo"; merkleRoot[PresalePhaseID.HolderSale] = 0xb722a074bda43273091421a36ae77bcf82e03690f448500590501afed9ddd133; merkleRoot[PresalePhaseID.FreeMint] = 0xb65411246820ba027e36e96755c6998c9aad5cb9dd4b45fa3ea86250ad9dd335; merkleRoot[PresalePhaseID.AllowList] = 0xdf9037afb8164dd193faba554754a067f615cd0afb6f5ddac66fc6e88415c617; } modifier whenMintable() { if (mintable == false) revert NotMintable(); _; } // internal function _baseURI() internal view override returns (string memory) { return baseURI; } function tokenURI(uint256 tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { if (revealed) { return revealedURI(tokenId); } else { return notRevealedURI[tokenCategory[tokenId]]; } } function revealedURI(uint256 tokenId) internal view returns (string memory) { if (bytes(metadataURI[tokenId]).length == 0) { return string(abi.encodePacked(ERC721A.tokenURI(tokenId), BASE_EXTENSION)); } else { return metadataURI[tokenId]; } } function setTokenMetadataURI(uint256 tokenId, string memory metadata) external onlyRole(DEFAULT_ADMIN_ROLE) { metadataURI[tokenId] = metadata; emit MetadataUpdate(tokenId); } function setNotRevealedURI(TicketID _ticket, string memory _metadata) external onlyRole(DEFAULT_ADMIN_ROLE) { notRevealedURI[_ticket] = _metadata; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } /** * @notice Set the merkle root for the allow list mint */ function setMerkleRoot(bytes32 _merkleRoot, PresalePhaseID _phase) external onlyRole(DEFAULT_ADMIN_ROLE) { merkleRoot[_phase] = _merkleRoot; } function setMaxSupply(uint256 _maxSupply, TicketID _ticket) external onlyRole(DEFAULT_ADMIN_ROLE) { maxSupply[_ticket] = _maxSupply; } function setTransferAble(bool flg) external onlyRole(DEFAULT_ADMIN_ROLE) { transferAble = flg; } function setRevealed(bool flg) external onlyRole(DEFAULT_ADMIN_ROLE) { revealed = flg; } function publicMint(address _to, uint256 _mintAmount, TicketID _ticket) external payable whenMintable { if (totalSupplyCategory[_ticket] + _mintAmount > maxSupply[_ticket]) revert MaxSupplyOver(); if (msg.value < nftCost[_ticket] * _mintAmount) revert NotEnoughFunds(msg.value); if (!publicSale) revert NotMintable(); uint256 _firstTokenId = _nextTokenId(); _mint(_to, _mintAmount); totalSupplyCategory[_ticket] = totalSupplyCategory[_ticket] + _mintAmount; for (uint i = _firstTokenId; i < _firstTokenId + _mintAmount; i++) { tokenCategory[i] = _ticket; } } function preMint(uint256 _mintAmount, uint256 _presaleMax, bytes32[] calldata _merkleProof, TicketID _ticket, PresalePhaseID _phase) external payable whenMintable { _preMint(_mintAmount, _presaleMax, _merkleProof, msg.sender, _ticket, _phase); } function _preMint(uint256 _mintAmount, uint256 _presaleMax, bytes32[] calldata _merkleProof, address _recipient, TicketID _ticket, PresalePhaseID _phase) internal { if (totalSupplyCategory[_ticket] + _mintAmount > maxSupply[_ticket]) revert MaxSupplyOver(); if (msg.value < nftCost[_ticket] * _mintAmount) revert NotEnoughFunds(msg.value); if (!presalePhase[_phase]) revert NotMintable(); bytes32 leaf = keccak256(abi.encodePacked(_recipient, _presaleMax)); if (_ticket == TicketID.Common) { if (whiteListClaimed[_ticket][_phase][_recipient] + _mintAmount > 20) revert AlreadyClaimedMax(); } else { if (whiteListClaimed[_ticket][_phase][_recipient] + _mintAmount > _presaleMax) revert AlreadyClaimedMax(); } if (!MerkleProof.verifyCalldata(_merkleProof, merkleRoot[_phase], leaf)) revert InvalidMerkleProof(); uint256 _firstTokenId = _nextTokenId(); _mint(_recipient, _mintAmount); whiteListClaimed[_ticket][_phase][_recipient] += _mintAmount; totalSupplyCategory[_ticket] = totalSupplyCategory[_ticket] + _mintAmount; for (uint i = _firstTokenId; i < _firstTokenId + _mintAmount; i++) { tokenCategory[i] = _ticket; } } function mintPie( uint256 _mintAmount, uint256 _presaleMax, bytes32[] calldata _merkleProof, address _recipient, TicketID _ticket, PresalePhaseID _phase ) external payable whenMintable onlyRole(PIE_ROLE) { _preMint(_mintAmount, _presaleMax, _merkleProof, _recipient, _ticket, _phase); } function ownerMint(address _address, uint256 _mintAmount, TicketID _ticket) external onlyRole(MINTER_ROLE) { uint256 _firstTokenId = _nextTokenId(); _safeMint(_address, _mintAmount); totalSupplyCategory[_ticket] = totalSupplyCategory[_ticket] + _mintAmount; for (uint i = _firstTokenId; i < _firstTokenId + _mintAmount; i++) { tokenCategory[i] = _ticket; } } function _beforeTokenTransfers(address from, address /*to*/, uint256 /* startTokenId */, uint256 /*quantity*/) internal virtual override { if (from != address(0)) { require(transferAble == true, "LOCKED"); } } function setPresalePhase(bool _state, PresalePhaseID _phase) external onlyRole(DEFAULT_ADMIN_ROLE) { presalePhase[_phase] = _state; } function setPresaleCost(uint256 _cost, TicketID ticket) external onlyRole(DEFAULT_ADMIN_ROLE) { nftCost[ticket] = _cost; } function setPublicPhase(bool _state) external onlyRole(DEFAULT_ADMIN_ROLE) { publicSale = _state; } function setMintable(bool _state) external onlyRole(DEFAULT_ADMIN_ROLE) { mintable = _state; } function setBaseURI(string memory _newBaseURI) external onlyRole(DEFAULT_ADMIN_ROLE) { baseURI = _newBaseURI; emit BatchMetadataUpdate(_startTokenId(), totalSupply()); } // 0x82791D709A6C6E5E73cBa845Eb473200ab49B90C function withdraw() external virtual onlyRole(DEFAULT_ADMIN_ROLE) { payable(0x82791D709A6C6E5E73cBa845Eb473200ab49B90C).transfer(address(this).balance); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, IERC721A, ERC2981, AccessControl) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId) || AccessControl.supportsInterface(interfaceId); } function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyRole(DEFAULT_ADMIN_ROLE) { _setDefaultRoyalty(receiver, feeNumerator); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyClaimedMax","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidMerkleProof","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MaxSupplyOver","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"NotEnoughFunds","type":"error"},{"inputs":[],"name":"NotMintable","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":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","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":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PIE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","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 IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum TicketID","name":"","type":"uint8"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum PresalePhaseID","name":"","type":"uint8"}],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_presaleMax","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"enum TicketID","name":"_ticket","type":"uint8"},{"internalType":"enum PresalePhaseID","name":"_phase","type":"uint8"}],"name":"mintPie","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum TicketID","name":"","type":"uint8"}],"name":"nftCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum TicketID","name":"","type":"uint8"}],"name":"notRevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"enum TicketID","name":"_ticket","type":"uint8"}],"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":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_presaleMax","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"enum TicketID","name":"_ticket","type":"uint8"},{"internalType":"enum PresalePhaseID","name":"_phase","type":"uint8"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"enum PresalePhaseID","name":"","type":"uint8"}],"name":"presalePhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"enum TicketID","name":"_ticket","type":"uint8"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","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":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"enum TicketID","name":"_ticket","type":"uint8"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"enum PresalePhaseID","name":"_phase","type":"uint8"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setMintable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum TicketID","name":"_ticket","type":"uint8"},{"internalType":"string","name":"_metadata","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"},{"internalType":"enum TicketID","name":"ticket","type":"uint8"}],"name":"setPresaleCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"},{"internalType":"enum PresalePhaseID","name":"_phase","type":"uint8"}],"name":"setPresalePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPublicPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"flg","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"metadata","type":"string"}],"name":"setTokenMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"flg","type":"bool"}],"name":"setTransferAble","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":"","type":"uint256"}],"name":"tokenCategory","outputs":[{"internalType":"enum TicketID","name":"","type":"uint8"}],"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":"enum TicketID","name":"","type":"uint8"}],"name":"totalSupplyCategory","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferAble","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"enum TicketID","name":"","type":"uint8"},{"internalType":"enum PresalePhaseID","name":"","type":"uint8"},{"internalType":"address","name":"","type":"address"}],"name":"whiteListClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600b805463ffffffff191661010017905560e060409081526080818152906200401b60a039600c9062000033908262000760565b503480156200004157600080fd5b506040805180820182526007808252661059d95bccdc9960ca1b602080840182905284518086019095529184529083015290600262000081838262000760565b50600362000090828262000760565b505060016000908155620000a691503362000616565b620000d27f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000616565b670de0b6b3a76400007fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c8190557fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be9582078190557f9adb202b1492743bc00c81d33cdc6423fa8c79109027eb6a845391e8fc1f0481556702c68af0bb1400007fe0283e559c29e31ee7f56467acc9dd307779c843a883aeeb3bf5c6128c9081445567016345785d8a00007fa1d6913cd9e08c872be3e7525cca82e4fc0fc298a783f19022be725b19be685a55666a94d74f4300007fb9bec7e2561f624fe753ff070f1599b306cbf59fafd4e8d5a8184a1ea1841bce5560057ff4803e074bd026baaf6ed2e288c9515f68c72fb7216eebdd7cae1718a53ec3758190557f169f97de0d9a84d840042b17d3c6b9638b3d6fd9024c9eb0c7a306a17b49f88f8190557fa74ba3945261e09fde15ba3db55005b205e61eeb4ad811ac0faa2b315bffeead55601e7f45f76dafbbad695564362934e24d72eedc57f9fc1a65f39bca62176cc82968285560787f367ccd2d0ac16bf7110a5dffe0801fdc9452a95a1adb7e1a12fe97dd3e9a4edd556103067f6bda57492eba051cb4a12a1e19df47c9755d78165341d4009b1d09b3f361620455602e7fb5a1e7cda73b1608e93d4d50ab796c3d35aa6216cb006a1f920df154d13ff6185560008052600d60209081527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee805460ff1916600117905560408051606081019091526030808252909162003feb90830139600560005260126020527f45429b9195d4ec5c0cf6c69e9c21a4ca0ea773b702c2de5735f85d2631f26746906200034b908262000760565b5060405180606001604052806030815260200162003feb60309139600660005260126020527f1223f9031f9dca49a7844c397098ce9a4e80513444d0a8bb59820dff564808e4906200039e908262000760565b5060405180606001604052806030815260200162003f8b60309139600460005260126020527fb4fcd034df3d20faa1c133b66d862ce92732727d40916b48ffb4020cb00fe05390620003f1908262000760565b506040518060600160405280603081526020016200408b60309139600360005260126020527f0f36ad39aee03e7108cc48f54934702a5f0d4066f10344cebf8198978d86976a9062000444908262000760565b5060405180606001604052806030815260200162003fbb603091396000805260126020527f7e7fa33969761a458e04f477e039a608702b4f924981d6653935a8319a08ad7b9062000496908262000760565b50604051806060016040528060308152602001620040bb60309139600160005260126020527f71a67924699a20698523213e55fe499d539379d7769cd5567e2c45d583f815a390620004e9908262000760565b506040518060600160405280603081526020016200405b60309139600260005260126020527f8e1fee8c88a9e04123b21e90cae2727a7715bf522a1e46eb5934ccd05203a6b2906200053c908262000760565b5060116020527fb722a074bda43273091421a36ae77bcf82e03690f448500590501afed9ddd1337f4ad3b33220dddc71b994a52d72c06b10862965f7d926534c05c00fb7e819e7b7557fb65411246820ba027e36e96755c6998c9aad5cb9dd4b45fa3ea86250ad9dd3357f17bc176d2408558f6e4111feebc3cab4e16b63e967be91cde721f4c8a488b5525560026000527fdf9037afb8164dd193faba554754a067f615cd0afb6f5ddac66fc6e88415c6177f08037d7b151cc412d25674a4e66b334d9ae9d2e5517a7feaae5cdb828bf1c628556200082c565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff16620006b7576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620006763390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620006e657607f821691505b6020821081036200070757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200075b57600081815260208120601f850160051c81016020861015620007365750805b601f850160051c820191505b81811015620007575782815560010162000742565b5050505b505050565b81516001600160401b038111156200077c576200077c620006bb565b62000794816200078d8454620006d1565b846200070d565b602080601f831160018114620007cc5760008415620007b35750858301515b600019600386901b1c1916600185901b17855562000757565b600085815260208120601f198616915b82811015620007fd57888601518255948401946001909101908401620007dc565b50858210156200081c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61374f806200083c6000396000f3fe60806040526004361061028b5760003560e01c806355f804b31161015657806355f804b3146106725780635bbb2177146106925780636352211e146106bf578063678ec55c146106df5780636797fdda146107005780636c5b32f21461072057806370a082311461074057806370cf0448146107605780637ae0f496146107805780638462151c146107ad5780639060b17b146107da57806391d14854146107fa57806395d89b411461081a57806399a2557a1461082f578063a0c6d4651461084f578063a217fddf1461086f578063a22cb46514610884578063b0c1eb43146108a4578063b88d4fde146108d8578063c23dc68f146108eb578063c87b56dd14610918578063d539139314610938578063d547741f1461096c578063d913bea91461098c578063e0a80853146109ac578063e334b267146109cc578063e985e9c5146109fc578063f3ee530114610a4557600080fd5b806301ffc9a71461029057806304634d8d146102c557806306fdde03146102e7578063081812fc14610309578063095ea7b3146103415780630c2987511461035457806318160ddd146103675780631b67cb251461038a578063219ef15b146103b757806322d7fccb146103d757806323b872dd14610415578063248a9ca314610428578063285d70d4146104485780632a55205a146104685780632c46e691146104a75780632d8120b5146104c75780632f2ff15d146104f45780632f639e081461051457806333bc1c5c1461053457806336568abe1461054e5780633a215f461461056e5780633ccfd60b146105ab57806341cffc41146105c057806342842e0e146105e057806347ddb4a0146105f35780634bf365df146106205780634ff07aa21461063f5780635183022714610652575b600080fd5b34801561029c57600080fd5b506102b06102ab366004612c10565b610a58565b60405190151581526020015b60405180910390f35b3480156102d157600080fd5b506102e56102e0366004612c44565b610a87565b005b3480156102f357600080fd5b506102fc610aa1565b6040516102bc9190612cd7565b34801561031557600080fd5b50610329610324366004612cea565b610b33565b6040516001600160a01b0390911681526020016102bc565b6102e561034f366004612d03565b610b77565b6102e5610362366004612d3c565b610c17565b34801561037357600080fd5b5061037c610e47565b6040519081526020016102bc565b34801561039657600080fd5b5061037c6103a5366004612d78565b60106020526000908152604090205481565b3480156103c357600080fd5b506102fc6103d2366004612d78565b610e55565b3480156103e357600080fd5b5061037c6103f2366004612da2565b601460209081526000938452604080852082529284528284209052825290205481565b6102e5610423366004612ddc565b610eef565b34801561043457600080fd5b5061037c610443366004612cea565b611083565b34801561045457600080fd5b506102e5610463366004612e28565b611098565b34801561047457600080fd5b50610488610483366004612e43565b6110be565b604080516001600160a01b0390931683526020830191909152016102bc565b3480156104b357600080fd5b506102e56104c2366004612f10565b61116c565b3480156104d357600080fd5b5061037c6104e2366004612d78565b600f6020526000908152604090205481565b34801561050057600080fd5b506102e561050f366004612f56565b6111c8565b34801561052057600080fd5b506102e561052f366004612f82565b6111e4565b34801561054057600080fd5b50600b546102b09060ff1681565b34801561055a57600080fd5b506102e5610569366004612f56565b61122d565b34801561057a57600080fd5b5061059e610589366004612cea565b60156020526000908152604090205460ff1681565b6040516102bc9190612fbb565b3480156105b757600080fd5b506102e56112ab565b3480156105cc57600080fd5b506102e56105db366004612d3c565b6112f6565b6102e56105ee366004612ddc565b6113fb565b3480156105ff57600080fd5b5061037c61060e366004612d78565b600e6020526000908152604090205481565b34801561062c57600080fd5b50600b546102b090610100900460ff1681565b6102e561064d366004613027565b611416565b34801561065e57600080fd5b50600b546102b09062010000900460ff1681565b34801561067e57600080fd5b506102e561068d36600461309d565b611452565b34801561069e57600080fd5b506106b26106ad3660046130d1565b6114b1565b6040516102bc919061314e565b3480156106cb57600080fd5b506103296106da366004612cea565b611563565b3480156106eb57600080fd5b50600b546102b0906301000000900460ff1681565b34801561070c57600080fd5b506102e561071b366004613190565b61156e565b34801561072c57600080fd5b506102e561073b366004612e28565b6115a1565b34801561074c57600080fd5b5061037c61075b3660046131b3565b6115cb565b34801561076c57600080fd5b506102e561077b3660046131ce565b611619565b34801561078c57600080fd5b5061037c61079b3660046131f8565b60116020526000908152604090205481565b3480156107b957600080fd5b506107cd6107c83660046131b3565b611670565b6040516102bc9190613213565b3480156107e657600080fd5b506102e56107f536600461324b565b611756565b34801561080657600080fd5b506102b0610815366004612f56565b6117a9565b34801561082657600080fd5b506102fc6117d4565b34801561083b57600080fd5b506107cd61084a366004613282565b6117e3565b34801561085b57600080fd5b506102e561086a366004612e28565b61196a565b34801561087b57600080fd5b5061037c600081565b34801561089057600080fd5b506102e561089f3660046132b5565b611989565b3480156108b057600080fd5b5061037c7f838a662c853782ef794b54001a73c3bcf60975ab166f7eaac58d57755fe55ae781565b6102e56108e63660046132df565b6119f5565b3480156108f757600080fd5b5061090b610906366004612cea565b611a39565b6040516102bc919061335a565b34801561092457600080fd5b506102fc610933366004612cea565b611a89565b34801561094457600080fd5b5061037c7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b34801561097857600080fd5b506102e5610987366004612f56565b611b81565b34801561099857600080fd5b506102e56109a7366004612f82565b611b9d565b3480156109b857600080fd5b506102e56109c7366004612e28565b611bbf565b3480156109d857600080fd5b506102b06109e73660046131f8565b600d6020526000908152604090205460ff1681565b348015610a0857600080fd5b506102b0610a17366004613368565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102e5610a53366004613392565b611be7565b6000610a6382611c57565b80610a725750610a7282611ca5565b80610a815750610a8182611cda565b92915050565b6000610a9281611cff565b610a9c8383611d0c565b505050565b606060028054610ab09061341a565b80601f0160208091040260200160405190810160405280929190818152602001828054610adc9061341a565b8015610b295780601f10610afe57610100808354040283529160200191610b29565b820191906000526020600020905b815481529060010190602001808311610b0c57829003601f168201915b5050505050905090565b6000610b3e82611e05565b610b5b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b8282611563565b9050336001600160a01b03821614610bbb57610b9e8133610a17565b610bbb576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600b54610100900460ff161515600003610c4457604051630952c8a960e11b815260040160405180910390fd5b600f6000826006811115610c5a57610c5a612fa5565b6006811115610c6b57610c6b612fa5565b8152602001908152602001600020548260106000846006811115610c9157610c91612fa5565b6006811115610ca257610ca2612fa5565b815260200190815260200160002054610cbb919061346a565b1115610cda57604051638353b89160e01b815260040160405180910390fd5b81600e6000836006811115610cf157610cf1612fa5565b6006811115610d0257610d02612fa5565b815260200190815260200160002054610d1b919061347d565b341015610d4257604051638228b9cb60e01b81523460048201526024015b60405180910390fd5b600b5460ff16610d6557604051630952c8a960e11b815260040160405180910390fd5b600054610d728484611e3a565b8260106000846006811115610d8957610d89612fa5565b6006811115610d9a57610d9a612fa5565b815260200190815260200160002054610db3919061346a565b60106000846006811115610dc957610dc9612fa5565b6006811115610dda57610dda612fa5565b8152602081019190915260400160002055805b610df7848361346a565b811015610e40576000818152601560205260409020805484919060ff19166001836006811115610e2957610e29612fa5565b021790555080610e3881613494565b915050610ded565b5050505050565b600154600054036000190190565b60126020526000908152604090208054610e6e9061341a565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9a9061341a565b8015610ee75780601f10610ebc57610100808354040283529160200191610ee7565b820191906000526020600020905b815481529060010190602001808311610eca57829003601f168201915b505050505081565b6000610efa82611f2f565b9050836001600160a01b0316816001600160a01b031614610f2d5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610f7a57610f5d8633610a17565b610f7a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610fa157604051633a954ecd60e21b815260040160405180910390fd5b610fae8686866001611f9e565b8015610fb957600082555b6001600160a01b03868116600090815260056020526040808220805460001901905591871681522080546001019055610ff685600160e11b611ff4565b600085815260046020526040812091909155600160e11b8416900361104b576001840160008181526004602052604081205490036110495760005481146110495760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206136fa83398151915260405160405180910390a45b505050505050565b6000908152600a602052604090206001015490565b60006110a381611cff565b50600b80549115156101000261ff0019909216919091179055565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111335750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611152906001600160601b03168761347d565b61115c91906134ad565b91519350909150505b9250929050565b600061117781611cff565b600083815260136020526040902061118f8382613515565b506040518381527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a1505050565b6111d182611083565b6111da81611cff565b610a9c8383612009565b60006111ef81611cff565b82600e600084600681111561120657611206612fa5565b600681111561121757611217612fa5565b8152602081019190915260400160002055505050565b6001600160a01b038116331461129d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610d39565b6112a7828261208f565b5050565b60006112b681611cff565b6040517382791d709a6c6e5e73cba845eb473200ab49b90c904780156108fc02916000818181858888f193505050501580156112a7573d6000803e3d6000fd5b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661132081611cff565b60005461132d85856120f6565b836010600085600681111561134457611344612fa5565b600681111561135557611355612fa5565b81526020019081526020016000205461136e919061346a565b6010600085600681111561138457611384612fa5565b600681111561139557611395612fa5565b8152602081019190915260400160002055805b6113b2858361346a565b81101561107b576000818152601560205260409020805485919060ff191660018360068111156113e4576113e4612fa5565b0217905550806113f381613494565b9150506113a8565b610a9c838383604051806020016040528060008152506119f5565b600b54610100900460ff16151560000361144357604051630952c8a960e11b815260040160405180910390fd5b61107b86868686338787612110565b600061145d81611cff565b600c6114698382613515565b507f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6001611495610e47565b6040805192835260208301919091520160405180910390a15050565b6060816000816001600160401b038111156114ce576114ce612e65565b60405190808252806020026020018201604052801561150757816020015b6114f4612bd3565b8152602001906001900390816114ec5790505b50905060005b82811461155a57611535868683818110611529576115296135d4565b90506020020135611a39565b828281518110611547576115476135d4565b602090810291909101015260010161150d565b50949350505050565b6000610a8182611f2f565b600061157981611cff565b826011600084600281111561159057611590612fa5565b600281111561121757611217612fa5565b60006115ac81611cff565b50600b805491151563010000000263ff00000019909216919091179055565b60006001600160a01b0382166115f4576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b600061162481611cff565b82600d600084600281111561163b5761163b612fa5565b600281111561164c5761164c612fa5565b81526020810191909152604001600020805460ff1916911515919091179055505050565b60606000806000611680856115cb565b90506000816001600160401b0381111561169c5761169c612e65565b6040519080825280602002602001820160405280156116c5578160200160208202803683370190505b5090506116d0612bd3565b60015b83861461174a576116e381612612565b915081604001516117425781516001600160a01b03161561170357815194505b876001600160a01b0316856001600160a01b0316036117425780838780600101985081518110611735576117356135d4565b6020026020010181815250505b6001016116d3565b50909695505050505050565b600061176181611cff565b816012600085600681111561177857611778612fa5565b600681111561178957611789612fa5565b815260200190815260200160002090816117a39190613515565b50505050565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060038054610ab09061341a565b606081831061180557604051631960ccad60e11b815260040160405180910390fd5b60008061181160005490565b9050600185101561182157600194505b8084111561182d578093505b6000611838876115cb565b9050848610156118575785850381811015611851578091505b5061185b565b5060005b6000816001600160401b0381111561187557611875612e65565b60405190808252806020026020018201604052801561189e578160200160208202803683370190505b509050816000036118b457935061196392505050565b60006118bf88611a39565b9050600081604001516118d0575080515b885b8881141580156118e25750848714155b15611957576118f081612612565b9250826040015161194f5782516001600160a01b03161561191057825191505b8a6001600160a01b0316826001600160a01b03160361194f5780848880600101995081518110611942576119426135d4565b6020026020010181815250505b6001016118d2565b50505092835250909150505b9392505050565b600061197581611cff565b50600b805460ff1916911515919091179055565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611a00848484610eef565b6001600160a01b0383163b156117a357611a1c84848484612632565b6117a3576040516368d2bf6b60e11b815260040160405180910390fd5b611a41612bd3565b611a49612bd3565b6001831080611a5a57506000548310155b15611a655792915050565b611a6e83612612565b9050806040015115611a805792915050565b6119638361271e565b600b5460609062010000900460ff1615611aa657610a8182612737565b6000828152601560205260408120546012919060ff166006811115611acd57611acd612fa5565b6006811115611ade57611ade612fa5565b81526020019081526020016000208054611af79061341a565b80601f0160208091040260200160405190810160405280929190818152602001828054611b239061341a565b8015611b705780601f10611b4557610100808354040283529160200191611b70565b820191906000526020600020905b815481529060010190602001808311611b5357829003601f168201915b50505050509050919050565b919050565b611b8a82611083565b611b9381611cff565b610a9c838361208f565b6000611ba881611cff565b82600f600084600681111561120657611206612fa5565b6000611bca81611cff565b50600b8054911515620100000262ff000019909216919091179055565b600b54610100900460ff161515600003611c1457604051630952c8a960e11b815260040160405180910390fd5b7f838a662c853782ef794b54001a73c3bcf60975ab166f7eaac58d57755fe55ae7611c3e81611cff565b611c4d88888888888888612110565b5050505050505050565b60006301ffc9a760e01b6001600160e01b031983161480611c8857506380ac58cd60e01b6001600160e01b03198316145b80610a815750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b1480610a8157506301ffc9a760e01b6001600160e01b0319831614610a81565b60006001600160e01b03198216637965db0b60e01b1480610a815750610a8182611ca5565b611d0981336127c4565b50565b6127106001600160601b0382161115611d7a5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610d39565b6001600160a01b038216611dcc5760405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b6044820152606401610d39565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b600081600111158015611e19575060005482105b8015610a81575050600090815260046020526040902054600160e01b161590565b6000805490829003611e5f5760405163b562e8dd60e01b815260040160405180910390fd5b611e6c6000848385611f9e565b6001600160a01b038316600090815260056020526040902080546001600160401b018402019055611ea3836001841460e11b611ff4565b6000828152600460205260408120919091556001600160a01b0384169083830190839083906000805160206136fa8339815191528180a4600183015b818114611f0557808360006000805160206136fa833981519152600080a4600101611edf565b5081600003611f2657604051622e076360e81b815260040160405180910390fd5b60005550505050565b60008180600111611f8557600054811015611f855760008181526004602052604081205490600160e01b82169003611f83575b80600003611963575060001901600081815260046020526040902054611f62565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b038416156117a357600b546301000000900460ff1615156001146117a35760405162461bcd60e51b81526020600482015260066024820152651313d0d2d15160d21b6044820152606401610d39565b4260a01b176001600160a01b03919091161790565b61201382826117a9565b6112a7576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561204b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61209982826117a9565b156112a7576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6112a782826040518060200160405280600081525061281d565b600f600083600681111561212657612126612fa5565b600681111561213757612137612fa5565b815260200190815260200160002054876010600085600681111561215d5761215d612fa5565b600681111561216e5761216e612fa5565b815260200190815260200160002054612187919061346a565b11156121a657604051638353b89160e01b815260040160405180910390fd5b86600e60008460068111156121bd576121bd612fa5565b60068111156121ce576121ce612fa5565b8152602001908152602001600020546121e7919061347d565b34101561220957604051638228b9cb60e01b8152346004820152602401610d39565b600d600082600281111561221f5761221f612fa5565b600281111561223057612230612fa5565b815260208101919091526040016000205460ff1661226157604051630952c8a960e11b815260040160405180910390fd5b6040516001600160601b0319606085901b1660208201526034810187905260009060540160408051601f198184030181529190528051602090910120905060058360068111156122b3576122b3612fa5565b0361237557601488601460008660068111156122d1576122d1612fa5565b60068111156122e2576122e2612fa5565b8152602001908152602001600020600085600281111561230457612304612fa5565b600281111561231557612315612fa5565b81526020019081526020016000206000876001600160a01b03166001600160a01b0316815260200190815260200160002054612351919061346a565b111561237057604051630ce2eab560e11b815260040160405180910390fd5b61242c565b86886014600086600681111561238d5761238d612fa5565b600681111561239e5761239e612fa5565b815260200190815260200160002060008560028111156123c0576123c0612fa5565b60028111156123d1576123d1612fa5565b81526020019081526020016000206000876001600160a01b03166001600160a01b031681526020019081526020016000205461240d919061346a565b111561242c57604051630ce2eab560e11b815260040160405180910390fd5b61246d86866011600086600281111561244757612447612fa5565b600281111561245857612458612fa5565b81526020019081526020016000205484612883565b61248a5760405163582f497d60e11b815260040160405180910390fd5b600054612497858a611e3a565b88601460008660068111156124ae576124ae612fa5565b60068111156124bf576124bf612fa5565b815260200190815260200160002060008560028111156124e1576124e1612fa5565b60028111156124f2576124f2612fa5565b81526020019081526020016000206000876001600160a01b03166001600160a01b031681526020019081526020016000206000828254612532919061346a565b909155508990506010600086600681111561254f5761254f612fa5565b600681111561256057612560612fa5565b815260200190815260200160002054612579919061346a565b6010600086600681111561258f5761258f612fa5565b60068111156125a0576125a0612fa5565b8152602081019190915260400160002055805b6125bd8a8361346a565b811015612606576000818152601560205260409020805486919060ff191660018360068111156125ef576125ef612fa5565b0217905550806125fe81613494565b9150506125b3565b50505050505050505050565b61261a612bd3565b600082815260046020526040902054610a819061289b565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906126679033908990889088906004016135ea565b6020604051808303816000875af19250505080156126a2575060408051601f3d908101601f1916820190925261269f91810190613627565b60015b612700573d8080156126d0576040519150601f19603f3d011682016040523d82523d6000602084013e6126d5565b606091505b5080516000036126f8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b612726612bd3565b610a8161273283611f2f565b61289b565b60008181526013602052604090208054606091906127549061341a565b90506000036127ab57612766826128de565b60405180604001604052806005815260200164173539b7b760d91b815250604051602001612795929190613644565b6040516020818303038152906040529050919050565b60008281526013602052604090208054611af79061341a565b6127ce82826117a9565b6112a7576127db81612961565b6127e6836020612973565b6040516020016127f7929190613673565b60408051601f198184030181529082905262461bcd60e51b8252610d3991600401612cd7565b6128278383611e3a565b6001600160a01b0383163b15610a9c576000548281035b6128516000868380600101945086612632565b61286e576040516368d2bf6b60e11b815260040160405180910390fd5b81811061283e578160005414610e4057600080fd5b600082612891868685612b0e565b1495945050505050565b6128a3612bd3565b6001600160a01b03821681526001600160401b0360a083901c166020820152600160e01b82161515604082015260e89190911c606082015290565b60606128e982611e05565b61290657604051630a14c4b560e41b815260040160405180910390fd5b6000612910612b51565b905080516000036129305760405180602001604052806000815250611963565b8061293a84612b60565b60405160200161294b929190613644565b6040516020818303038152906040529392505050565b6060610a816001600160a01b03831660145b6060600061298283600261347d565b61298d90600261346a565b6001600160401b038111156129a4576129a4612e65565b6040519080825280601f01601f1916602001820160405280156129ce576020820181803683370190505b509050600360fc1b816000815181106129e9576129e96135d4565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612a1857612a186135d4565b60200101906001600160f81b031916908160001a9053506000612a3c84600261347d565b612a4790600161346a565b90505b6001811115612abf576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612a7b57612a7b6135d4565b1a60f81b828281518110612a9157612a916135d4565b60200101906001600160f81b031916908160001a90535060049490941c93612ab8816136e2565b9050612a4a565b5083156119635760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d39565b600081815b8481101561155a57612b3d82878784818110612b3157612b316135d4565b90506020020135612ba4565b915080612b4981613494565b915050612b13565b6060600c8054610ab09061341a565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480612b7a5750819003601f19909101908152919050565b6000818310612bc0576000828152602084905260409020611963565b6000838152602083905260409020611963565b60408051608081018252600080825260208201819052918101829052606081019190915290565b6001600160e01b031981168114611d0957600080fd5b600060208284031215612c2257600080fd5b813561196381612bfa565b80356001600160a01b0381168114611b7c57600080fd5b60008060408385031215612c5757600080fd5b612c6083612c2d565b915060208301356001600160601b0381168114612c7c57600080fd5b809150509250929050565b60005b83811015612ca2578181015183820152602001612c8a565b50506000910152565b60008151808452612cc3816020860160208601612c87565b601f01601f19169290920160200192915050565b6020815260006119636020830184612cab565b600060208284031215612cfc57600080fd5b5035919050565b60008060408385031215612d1657600080fd5b612d1f83612c2d565b946020939093013593505050565b803560078110611b7c57600080fd5b600080600060608486031215612d5157600080fd5b612d5a84612c2d565b925060208401359150612d6f60408501612d2d565b90509250925092565b600060208284031215612d8a57600080fd5b61196382612d2d565b803560038110611b7c57600080fd5b600080600060608486031215612db757600080fd5b612dc084612d2d565b9250612dce60208501612d93565b9150612d6f60408501612c2d565b600080600060608486031215612df157600080fd5b612dfa84612c2d565b9250612e0860208501612c2d565b9150604084013590509250925092565b80358015158114611b7c57600080fd5b600060208284031215612e3a57600080fd5b61196382612e18565b60008060408385031215612e5657600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612e9557612e95612e65565b604051601f8501601f19908116603f01168101908282118183101715612ebd57612ebd612e65565b81604052809350858152868686011115612ed657600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612f0157600080fd5b61196383833560208501612e7b565b60008060408385031215612f2357600080fd5b8235915060208301356001600160401b03811115612f4057600080fd5b612f4c85828601612ef0565b9150509250929050565b60008060408385031215612f6957600080fd5b82359150612f7960208401612c2d565b90509250929050565b60008060408385031215612f9557600080fd5b82359150612f7960208401612d2d565b634e487b7160e01b600052602160045260246000fd5b6020810160078310612fdd57634e487b7160e01b600052602160045260246000fd5b91905290565b60008083601f840112612ff557600080fd5b5081356001600160401b0381111561300c57600080fd5b6020830191508360208260051b850101111561116557600080fd5b60008060008060008060a0878903121561304057600080fd5b863595506020870135945060408701356001600160401b0381111561306457600080fd5b61307089828a01612fe3565b9095509350613083905060608801612d2d565b915061309160808801612d93565b90509295509295509295565b6000602082840312156130af57600080fd5b81356001600160401b038111156130c557600080fd5b61271684828501612ef0565b600080602083850312156130e457600080fd5b82356001600160401b038111156130fa57600080fd5b61310685828601612fe3565b90969095509350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b8181101561174a5761317d838551613112565b928401926080929092019160010161316a565b600080604083850312156131a357600080fd5b82359150612f7960208401612d93565b6000602082840312156131c557600080fd5b61196382612c2d565b600080604083850312156131e157600080fd5b6131ea83612e18565b9150612f7960208401612d93565b60006020828403121561320a57600080fd5b61196382612d93565b6020808252825182820181905260009190848201906040850190845b8181101561174a5783518352928401929184019160010161322f565b6000806040838503121561325e57600080fd5b61326783612d2d565b915060208301356001600160401b03811115612f4057600080fd5b60008060006060848603121561329757600080fd5b6132a084612c2d565b95602085013595506040909401359392505050565b600080604083850312156132c857600080fd5b6132d183612c2d565b9150612f7960208401612e18565b600080600080608085870312156132f557600080fd5b6132fe85612c2d565b935061330c60208601612c2d565b92506040850135915060608501356001600160401b0381111561332e57600080fd5b8501601f8101871361333f57600080fd5b61334e87823560208401612e7b565b91505092959194509250565b60808101610a818284613112565b6000806040838503121561337b57600080fd5b61338483612c2d565b9150612f7960208401612c2d565b600080600080600080600060c0888a0312156133ad57600080fd5b873596506020880135955060408801356001600160401b038111156133d157600080fd5b6133dd8a828b01612fe3565b90965094506133f0905060608901612c2d565b92506133fe60808901612d2d565b915061340c60a08901612d93565b905092959891949750929550565b600181811c9082168061342e57607f821691505b60208210810361344e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610a8157610a81613454565b8082028115828204841417610a8157610a81613454565b6000600182016134a6576134a6613454565b5060010190565b6000826134ca57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610a9c57600081815260208120601f850160051c810160208610156134f65750805b601f850160051c820191505b8181101561107b57828155600101613502565b81516001600160401b0381111561352e5761352e612e65565b6135428161353c845461341a565b846134cf565b602080601f831160018114613577576000841561355f5750858301515b600019600386901b1c1916600185901b17855561107b565b600085815260208120601f198616915b828110156135a657888601518255948401946001909101908401613587565b50858210156135c45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061361d90830184612cab565b9695505050505050565b60006020828403121561363957600080fd5b815161196381612bfa565b60008351613656818460208801612c87565b83519083019061366a818360208801612c87565b01949350505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516136a5816017850160208801612c87565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516136d6816028840160208801612c87565b01602801949350505050565b6000816136f1576136f1613454565b50600019019056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122041643eae61331d57c58b83f684001cf2ece40bb7af97f9bca0d919bf389f179464736f6c6343000811003361723a2f2f3275306430714a6b46625a5f4f717341575738587474767776734265416a6d4d7677504763734e6d59783461723a2f2f72574e465f4b7a54464a794969775a5551754c6a6c506a6f396b316d7161526644354c5773597a7241763061723a2f2f786d7075545638427a56635164484a326c6473633573354a6a4678785359335633446e4c574a54536a486768747470733a2f2f617277656176652e6e65742f6b3731544d457951773356677666727858533931466a736f744841356445342d785277766c31766d7364452f61723a2f2f70415331335470334c766d6d36772d516f75354c595f505275504b7237753241334867586e724a44534f6f61723a2f2f45756b674a756379575075496a326b6d65665a4d4769332d584373486e5f734c706e704e69565a4469614961723a2f2f645774312d32566a4936376565355432344448735f327579455756425666594772716f78537351684a3638
Deployed Bytecode
0x60806040526004361061028b5760003560e01c806355f804b31161015657806355f804b3146106725780635bbb2177146106925780636352211e146106bf578063678ec55c146106df5780636797fdda146107005780636c5b32f21461072057806370a082311461074057806370cf0448146107605780637ae0f496146107805780638462151c146107ad5780639060b17b146107da57806391d14854146107fa57806395d89b411461081a57806399a2557a1461082f578063a0c6d4651461084f578063a217fddf1461086f578063a22cb46514610884578063b0c1eb43146108a4578063b88d4fde146108d8578063c23dc68f146108eb578063c87b56dd14610918578063d539139314610938578063d547741f1461096c578063d913bea91461098c578063e0a80853146109ac578063e334b267146109cc578063e985e9c5146109fc578063f3ee530114610a4557600080fd5b806301ffc9a71461029057806304634d8d146102c557806306fdde03146102e7578063081812fc14610309578063095ea7b3146103415780630c2987511461035457806318160ddd146103675780631b67cb251461038a578063219ef15b146103b757806322d7fccb146103d757806323b872dd14610415578063248a9ca314610428578063285d70d4146104485780632a55205a146104685780632c46e691146104a75780632d8120b5146104c75780632f2ff15d146104f45780632f639e081461051457806333bc1c5c1461053457806336568abe1461054e5780633a215f461461056e5780633ccfd60b146105ab57806341cffc41146105c057806342842e0e146105e057806347ddb4a0146105f35780634bf365df146106205780634ff07aa21461063f5780635183022714610652575b600080fd5b34801561029c57600080fd5b506102b06102ab366004612c10565b610a58565b60405190151581526020015b60405180910390f35b3480156102d157600080fd5b506102e56102e0366004612c44565b610a87565b005b3480156102f357600080fd5b506102fc610aa1565b6040516102bc9190612cd7565b34801561031557600080fd5b50610329610324366004612cea565b610b33565b6040516001600160a01b0390911681526020016102bc565b6102e561034f366004612d03565b610b77565b6102e5610362366004612d3c565b610c17565b34801561037357600080fd5b5061037c610e47565b6040519081526020016102bc565b34801561039657600080fd5b5061037c6103a5366004612d78565b60106020526000908152604090205481565b3480156103c357600080fd5b506102fc6103d2366004612d78565b610e55565b3480156103e357600080fd5b5061037c6103f2366004612da2565b601460209081526000938452604080852082529284528284209052825290205481565b6102e5610423366004612ddc565b610eef565b34801561043457600080fd5b5061037c610443366004612cea565b611083565b34801561045457600080fd5b506102e5610463366004612e28565b611098565b34801561047457600080fd5b50610488610483366004612e43565b6110be565b604080516001600160a01b0390931683526020830191909152016102bc565b3480156104b357600080fd5b506102e56104c2366004612f10565b61116c565b3480156104d357600080fd5b5061037c6104e2366004612d78565b600f6020526000908152604090205481565b34801561050057600080fd5b506102e561050f366004612f56565b6111c8565b34801561052057600080fd5b506102e561052f366004612f82565b6111e4565b34801561054057600080fd5b50600b546102b09060ff1681565b34801561055a57600080fd5b506102e5610569366004612f56565b61122d565b34801561057a57600080fd5b5061059e610589366004612cea565b60156020526000908152604090205460ff1681565b6040516102bc9190612fbb565b3480156105b757600080fd5b506102e56112ab565b3480156105cc57600080fd5b506102e56105db366004612d3c565b6112f6565b6102e56105ee366004612ddc565b6113fb565b3480156105ff57600080fd5b5061037c61060e366004612d78565b600e6020526000908152604090205481565b34801561062c57600080fd5b50600b546102b090610100900460ff1681565b6102e561064d366004613027565b611416565b34801561065e57600080fd5b50600b546102b09062010000900460ff1681565b34801561067e57600080fd5b506102e561068d36600461309d565b611452565b34801561069e57600080fd5b506106b26106ad3660046130d1565b6114b1565b6040516102bc919061314e565b3480156106cb57600080fd5b506103296106da366004612cea565b611563565b3480156106eb57600080fd5b50600b546102b0906301000000900460ff1681565b34801561070c57600080fd5b506102e561071b366004613190565b61156e565b34801561072c57600080fd5b506102e561073b366004612e28565b6115a1565b34801561074c57600080fd5b5061037c61075b3660046131b3565b6115cb565b34801561076c57600080fd5b506102e561077b3660046131ce565b611619565b34801561078c57600080fd5b5061037c61079b3660046131f8565b60116020526000908152604090205481565b3480156107b957600080fd5b506107cd6107c83660046131b3565b611670565b6040516102bc9190613213565b3480156107e657600080fd5b506102e56107f536600461324b565b611756565b34801561080657600080fd5b506102b0610815366004612f56565b6117a9565b34801561082657600080fd5b506102fc6117d4565b34801561083b57600080fd5b506107cd61084a366004613282565b6117e3565b34801561085b57600080fd5b506102e561086a366004612e28565b61196a565b34801561087b57600080fd5b5061037c600081565b34801561089057600080fd5b506102e561089f3660046132b5565b611989565b3480156108b057600080fd5b5061037c7f838a662c853782ef794b54001a73c3bcf60975ab166f7eaac58d57755fe55ae781565b6102e56108e63660046132df565b6119f5565b3480156108f757600080fd5b5061090b610906366004612cea565b611a39565b6040516102bc919061335a565b34801561092457600080fd5b506102fc610933366004612cea565b611a89565b34801561094457600080fd5b5061037c7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b34801561097857600080fd5b506102e5610987366004612f56565b611b81565b34801561099857600080fd5b506102e56109a7366004612f82565b611b9d565b3480156109b857600080fd5b506102e56109c7366004612e28565b611bbf565b3480156109d857600080fd5b506102b06109e73660046131f8565b600d6020526000908152604090205460ff1681565b348015610a0857600080fd5b506102b0610a17366004613368565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102e5610a53366004613392565b611be7565b6000610a6382611c57565b80610a725750610a7282611ca5565b80610a815750610a8182611cda565b92915050565b6000610a9281611cff565b610a9c8383611d0c565b505050565b606060028054610ab09061341a565b80601f0160208091040260200160405190810160405280929190818152602001828054610adc9061341a565b8015610b295780601f10610afe57610100808354040283529160200191610b29565b820191906000526020600020905b815481529060010190602001808311610b0c57829003601f168201915b5050505050905090565b6000610b3e82611e05565b610b5b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b8282611563565b9050336001600160a01b03821614610bbb57610b9e8133610a17565b610bbb576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600b54610100900460ff161515600003610c4457604051630952c8a960e11b815260040160405180910390fd5b600f6000826006811115610c5a57610c5a612fa5565b6006811115610c6b57610c6b612fa5565b8152602001908152602001600020548260106000846006811115610c9157610c91612fa5565b6006811115610ca257610ca2612fa5565b815260200190815260200160002054610cbb919061346a565b1115610cda57604051638353b89160e01b815260040160405180910390fd5b81600e6000836006811115610cf157610cf1612fa5565b6006811115610d0257610d02612fa5565b815260200190815260200160002054610d1b919061347d565b341015610d4257604051638228b9cb60e01b81523460048201526024015b60405180910390fd5b600b5460ff16610d6557604051630952c8a960e11b815260040160405180910390fd5b600054610d728484611e3a565b8260106000846006811115610d8957610d89612fa5565b6006811115610d9a57610d9a612fa5565b815260200190815260200160002054610db3919061346a565b60106000846006811115610dc957610dc9612fa5565b6006811115610dda57610dda612fa5565b8152602081019190915260400160002055805b610df7848361346a565b811015610e40576000818152601560205260409020805484919060ff19166001836006811115610e2957610e29612fa5565b021790555080610e3881613494565b915050610ded565b5050505050565b600154600054036000190190565b60126020526000908152604090208054610e6e9061341a565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9a9061341a565b8015610ee75780601f10610ebc57610100808354040283529160200191610ee7565b820191906000526020600020905b815481529060010190602001808311610eca57829003601f168201915b505050505081565b6000610efa82611f2f565b9050836001600160a01b0316816001600160a01b031614610f2d5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610f7a57610f5d8633610a17565b610f7a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610fa157604051633a954ecd60e21b815260040160405180910390fd5b610fae8686866001611f9e565b8015610fb957600082555b6001600160a01b03868116600090815260056020526040808220805460001901905591871681522080546001019055610ff685600160e11b611ff4565b600085815260046020526040812091909155600160e11b8416900361104b576001840160008181526004602052604081205490036110495760005481146110495760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03166000805160206136fa83398151915260405160405180910390a45b505050505050565b6000908152600a602052604090206001015490565b60006110a381611cff565b50600b80549115156101000261ff0019909216919091179055565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111335750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611152906001600160601b03168761347d565b61115c91906134ad565b91519350909150505b9250929050565b600061117781611cff565b600083815260136020526040902061118f8382613515565b506040518381527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a1505050565b6111d182611083565b6111da81611cff565b610a9c8383612009565b60006111ef81611cff565b82600e600084600681111561120657611206612fa5565b600681111561121757611217612fa5565b8152602081019190915260400160002055505050565b6001600160a01b038116331461129d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610d39565b6112a7828261208f565b5050565b60006112b681611cff565b6040517382791d709a6c6e5e73cba845eb473200ab49b90c904780156108fc02916000818181858888f193505050501580156112a7573d6000803e3d6000fd5b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661132081611cff565b60005461132d85856120f6565b836010600085600681111561134457611344612fa5565b600681111561135557611355612fa5565b81526020019081526020016000205461136e919061346a565b6010600085600681111561138457611384612fa5565b600681111561139557611395612fa5565b8152602081019190915260400160002055805b6113b2858361346a565b81101561107b576000818152601560205260409020805485919060ff191660018360068111156113e4576113e4612fa5565b0217905550806113f381613494565b9150506113a8565b610a9c838383604051806020016040528060008152506119f5565b600b54610100900460ff16151560000361144357604051630952c8a960e11b815260040160405180910390fd5b61107b86868686338787612110565b600061145d81611cff565b600c6114698382613515565b507f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6001611495610e47565b6040805192835260208301919091520160405180910390a15050565b6060816000816001600160401b038111156114ce576114ce612e65565b60405190808252806020026020018201604052801561150757816020015b6114f4612bd3565b8152602001906001900390816114ec5790505b50905060005b82811461155a57611535868683818110611529576115296135d4565b90506020020135611a39565b828281518110611547576115476135d4565b602090810291909101015260010161150d565b50949350505050565b6000610a8182611f2f565b600061157981611cff565b826011600084600281111561159057611590612fa5565b600281111561121757611217612fa5565b60006115ac81611cff565b50600b805491151563010000000263ff00000019909216919091179055565b60006001600160a01b0382166115f4576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b600061162481611cff565b82600d600084600281111561163b5761163b612fa5565b600281111561164c5761164c612fa5565b81526020810191909152604001600020805460ff1916911515919091179055505050565b60606000806000611680856115cb565b90506000816001600160401b0381111561169c5761169c612e65565b6040519080825280602002602001820160405280156116c5578160200160208202803683370190505b5090506116d0612bd3565b60015b83861461174a576116e381612612565b915081604001516117425781516001600160a01b03161561170357815194505b876001600160a01b0316856001600160a01b0316036117425780838780600101985081518110611735576117356135d4565b6020026020010181815250505b6001016116d3565b50909695505050505050565b600061176181611cff565b816012600085600681111561177857611778612fa5565b600681111561178957611789612fa5565b815260200190815260200160002090816117a39190613515565b50505050565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060038054610ab09061341a565b606081831061180557604051631960ccad60e11b815260040160405180910390fd5b60008061181160005490565b9050600185101561182157600194505b8084111561182d578093505b6000611838876115cb565b9050848610156118575785850381811015611851578091505b5061185b565b5060005b6000816001600160401b0381111561187557611875612e65565b60405190808252806020026020018201604052801561189e578160200160208202803683370190505b509050816000036118b457935061196392505050565b60006118bf88611a39565b9050600081604001516118d0575080515b885b8881141580156118e25750848714155b15611957576118f081612612565b9250826040015161194f5782516001600160a01b03161561191057825191505b8a6001600160a01b0316826001600160a01b03160361194f5780848880600101995081518110611942576119426135d4565b6020026020010181815250505b6001016118d2565b50505092835250909150505b9392505050565b600061197581611cff565b50600b805460ff1916911515919091179055565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611a00848484610eef565b6001600160a01b0383163b156117a357611a1c84848484612632565b6117a3576040516368d2bf6b60e11b815260040160405180910390fd5b611a41612bd3565b611a49612bd3565b6001831080611a5a57506000548310155b15611a655792915050565b611a6e83612612565b9050806040015115611a805792915050565b6119638361271e565b600b5460609062010000900460ff1615611aa657610a8182612737565b6000828152601560205260408120546012919060ff166006811115611acd57611acd612fa5565b6006811115611ade57611ade612fa5565b81526020019081526020016000208054611af79061341a565b80601f0160208091040260200160405190810160405280929190818152602001828054611b239061341a565b8015611b705780601f10611b4557610100808354040283529160200191611b70565b820191906000526020600020905b815481529060010190602001808311611b5357829003601f168201915b50505050509050919050565b919050565b611b8a82611083565b611b9381611cff565b610a9c838361208f565b6000611ba881611cff565b82600f600084600681111561120657611206612fa5565b6000611bca81611cff565b50600b8054911515620100000262ff000019909216919091179055565b600b54610100900460ff161515600003611c1457604051630952c8a960e11b815260040160405180910390fd5b7f838a662c853782ef794b54001a73c3bcf60975ab166f7eaac58d57755fe55ae7611c3e81611cff565b611c4d88888888888888612110565b5050505050505050565b60006301ffc9a760e01b6001600160e01b031983161480611c8857506380ac58cd60e01b6001600160e01b03198316145b80610a815750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b1480610a8157506301ffc9a760e01b6001600160e01b0319831614610a81565b60006001600160e01b03198216637965db0b60e01b1480610a815750610a8182611ca5565b611d0981336127c4565b50565b6127106001600160601b0382161115611d7a5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610d39565b6001600160a01b038216611dcc5760405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b6044820152606401610d39565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b600081600111158015611e19575060005482105b8015610a81575050600090815260046020526040902054600160e01b161590565b6000805490829003611e5f5760405163b562e8dd60e01b815260040160405180910390fd5b611e6c6000848385611f9e565b6001600160a01b038316600090815260056020526040902080546001600160401b018402019055611ea3836001841460e11b611ff4565b6000828152600460205260408120919091556001600160a01b0384169083830190839083906000805160206136fa8339815191528180a4600183015b818114611f0557808360006000805160206136fa833981519152600080a4600101611edf565b5081600003611f2657604051622e076360e81b815260040160405180910390fd5b60005550505050565b60008180600111611f8557600054811015611f855760008181526004602052604081205490600160e01b82169003611f83575b80600003611963575060001901600081815260046020526040902054611f62565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b038416156117a357600b546301000000900460ff1615156001146117a35760405162461bcd60e51b81526020600482015260066024820152651313d0d2d15160d21b6044820152606401610d39565b4260a01b176001600160a01b03919091161790565b61201382826117a9565b6112a7576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561204b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61209982826117a9565b156112a7576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6112a782826040518060200160405280600081525061281d565b600f600083600681111561212657612126612fa5565b600681111561213757612137612fa5565b815260200190815260200160002054876010600085600681111561215d5761215d612fa5565b600681111561216e5761216e612fa5565b815260200190815260200160002054612187919061346a565b11156121a657604051638353b89160e01b815260040160405180910390fd5b86600e60008460068111156121bd576121bd612fa5565b60068111156121ce576121ce612fa5565b8152602001908152602001600020546121e7919061347d565b34101561220957604051638228b9cb60e01b8152346004820152602401610d39565b600d600082600281111561221f5761221f612fa5565b600281111561223057612230612fa5565b815260208101919091526040016000205460ff1661226157604051630952c8a960e11b815260040160405180910390fd5b6040516001600160601b0319606085901b1660208201526034810187905260009060540160408051601f198184030181529190528051602090910120905060058360068111156122b3576122b3612fa5565b0361237557601488601460008660068111156122d1576122d1612fa5565b60068111156122e2576122e2612fa5565b8152602001908152602001600020600085600281111561230457612304612fa5565b600281111561231557612315612fa5565b81526020019081526020016000206000876001600160a01b03166001600160a01b0316815260200190815260200160002054612351919061346a565b111561237057604051630ce2eab560e11b815260040160405180910390fd5b61242c565b86886014600086600681111561238d5761238d612fa5565b600681111561239e5761239e612fa5565b815260200190815260200160002060008560028111156123c0576123c0612fa5565b60028111156123d1576123d1612fa5565b81526020019081526020016000206000876001600160a01b03166001600160a01b031681526020019081526020016000205461240d919061346a565b111561242c57604051630ce2eab560e11b815260040160405180910390fd5b61246d86866011600086600281111561244757612447612fa5565b600281111561245857612458612fa5565b81526020019081526020016000205484612883565b61248a5760405163582f497d60e11b815260040160405180910390fd5b600054612497858a611e3a565b88601460008660068111156124ae576124ae612fa5565b60068111156124bf576124bf612fa5565b815260200190815260200160002060008560028111156124e1576124e1612fa5565b60028111156124f2576124f2612fa5565b81526020019081526020016000206000876001600160a01b03166001600160a01b031681526020019081526020016000206000828254612532919061346a565b909155508990506010600086600681111561254f5761254f612fa5565b600681111561256057612560612fa5565b815260200190815260200160002054612579919061346a565b6010600086600681111561258f5761258f612fa5565b60068111156125a0576125a0612fa5565b8152602081019190915260400160002055805b6125bd8a8361346a565b811015612606576000818152601560205260409020805486919060ff191660018360068111156125ef576125ef612fa5565b0217905550806125fe81613494565b9150506125b3565b50505050505050505050565b61261a612bd3565b600082815260046020526040902054610a819061289b565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906126679033908990889088906004016135ea565b6020604051808303816000875af19250505080156126a2575060408051601f3d908101601f1916820190925261269f91810190613627565b60015b612700573d8080156126d0576040519150601f19603f3d011682016040523d82523d6000602084013e6126d5565b606091505b5080516000036126f8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b612726612bd3565b610a8161273283611f2f565b61289b565b60008181526013602052604090208054606091906127549061341a565b90506000036127ab57612766826128de565b60405180604001604052806005815260200164173539b7b760d91b815250604051602001612795929190613644565b6040516020818303038152906040529050919050565b60008281526013602052604090208054611af79061341a565b6127ce82826117a9565b6112a7576127db81612961565b6127e6836020612973565b6040516020016127f7929190613673565b60408051601f198184030181529082905262461bcd60e51b8252610d3991600401612cd7565b6128278383611e3a565b6001600160a01b0383163b15610a9c576000548281035b6128516000868380600101945086612632565b61286e576040516368d2bf6b60e11b815260040160405180910390fd5b81811061283e578160005414610e4057600080fd5b600082612891868685612b0e565b1495945050505050565b6128a3612bd3565b6001600160a01b03821681526001600160401b0360a083901c166020820152600160e01b82161515604082015260e89190911c606082015290565b60606128e982611e05565b61290657604051630a14c4b560e41b815260040160405180910390fd5b6000612910612b51565b905080516000036129305760405180602001604052806000815250611963565b8061293a84612b60565b60405160200161294b929190613644565b6040516020818303038152906040529392505050565b6060610a816001600160a01b03831660145b6060600061298283600261347d565b61298d90600261346a565b6001600160401b038111156129a4576129a4612e65565b6040519080825280601f01601f1916602001820160405280156129ce576020820181803683370190505b509050600360fc1b816000815181106129e9576129e96135d4565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612a1857612a186135d4565b60200101906001600160f81b031916908160001a9053506000612a3c84600261347d565b612a4790600161346a565b90505b6001811115612abf576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612a7b57612a7b6135d4565b1a60f81b828281518110612a9157612a916135d4565b60200101906001600160f81b031916908160001a90535060049490941c93612ab8816136e2565b9050612a4a565b5083156119635760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610d39565b600081815b8481101561155a57612b3d82878784818110612b3157612b316135d4565b90506020020135612ba4565b915080612b4981613494565b915050612b13565b6060600c8054610ab09061341a565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480612b7a5750819003601f19909101908152919050565b6000818310612bc0576000828152602084905260409020611963565b6000838152602083905260409020611963565b60408051608081018252600080825260208201819052918101829052606081019190915290565b6001600160e01b031981168114611d0957600080fd5b600060208284031215612c2257600080fd5b813561196381612bfa565b80356001600160a01b0381168114611b7c57600080fd5b60008060408385031215612c5757600080fd5b612c6083612c2d565b915060208301356001600160601b0381168114612c7c57600080fd5b809150509250929050565b60005b83811015612ca2578181015183820152602001612c8a565b50506000910152565b60008151808452612cc3816020860160208601612c87565b601f01601f19169290920160200192915050565b6020815260006119636020830184612cab565b600060208284031215612cfc57600080fd5b5035919050565b60008060408385031215612d1657600080fd5b612d1f83612c2d565b946020939093013593505050565b803560078110611b7c57600080fd5b600080600060608486031215612d5157600080fd5b612d5a84612c2d565b925060208401359150612d6f60408501612d2d565b90509250925092565b600060208284031215612d8a57600080fd5b61196382612d2d565b803560038110611b7c57600080fd5b600080600060608486031215612db757600080fd5b612dc084612d2d565b9250612dce60208501612d93565b9150612d6f60408501612c2d565b600080600060608486031215612df157600080fd5b612dfa84612c2d565b9250612e0860208501612c2d565b9150604084013590509250925092565b80358015158114611b7c57600080fd5b600060208284031215612e3a57600080fd5b61196382612e18565b60008060408385031215612e5657600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612e9557612e95612e65565b604051601f8501601f19908116603f01168101908282118183101715612ebd57612ebd612e65565b81604052809350858152868686011115612ed657600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612f0157600080fd5b61196383833560208501612e7b565b60008060408385031215612f2357600080fd5b8235915060208301356001600160401b03811115612f4057600080fd5b612f4c85828601612ef0565b9150509250929050565b60008060408385031215612f6957600080fd5b82359150612f7960208401612c2d565b90509250929050565b60008060408385031215612f9557600080fd5b82359150612f7960208401612d2d565b634e487b7160e01b600052602160045260246000fd5b6020810160078310612fdd57634e487b7160e01b600052602160045260246000fd5b91905290565b60008083601f840112612ff557600080fd5b5081356001600160401b0381111561300c57600080fd5b6020830191508360208260051b850101111561116557600080fd5b60008060008060008060a0878903121561304057600080fd5b863595506020870135945060408701356001600160401b0381111561306457600080fd5b61307089828a01612fe3565b9095509350613083905060608801612d2d565b915061309160808801612d93565b90509295509295509295565b6000602082840312156130af57600080fd5b81356001600160401b038111156130c557600080fd5b61271684828501612ef0565b600080602083850312156130e457600080fd5b82356001600160401b038111156130fa57600080fd5b61310685828601612fe3565b90969095509350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b8181101561174a5761317d838551613112565b928401926080929092019160010161316a565b600080604083850312156131a357600080fd5b82359150612f7960208401612d93565b6000602082840312156131c557600080fd5b61196382612c2d565b600080604083850312156131e157600080fd5b6131ea83612e18565b9150612f7960208401612d93565b60006020828403121561320a57600080fd5b61196382612d93565b6020808252825182820181905260009190848201906040850190845b8181101561174a5783518352928401929184019160010161322f565b6000806040838503121561325e57600080fd5b61326783612d2d565b915060208301356001600160401b03811115612f4057600080fd5b60008060006060848603121561329757600080fd5b6132a084612c2d565b95602085013595506040909401359392505050565b600080604083850312156132c857600080fd5b6132d183612c2d565b9150612f7960208401612e18565b600080600080608085870312156132f557600080fd5b6132fe85612c2d565b935061330c60208601612c2d565b92506040850135915060608501356001600160401b0381111561332e57600080fd5b8501601f8101871361333f57600080fd5b61334e87823560208401612e7b565b91505092959194509250565b60808101610a818284613112565b6000806040838503121561337b57600080fd5b61338483612c2d565b9150612f7960208401612c2d565b600080600080600080600060c0888a0312156133ad57600080fd5b873596506020880135955060408801356001600160401b038111156133d157600080fd5b6133dd8a828b01612fe3565b90965094506133f0905060608901612c2d565b92506133fe60808901612d2d565b915061340c60a08901612d93565b905092959891949750929550565b600181811c9082168061342e57607f821691505b60208210810361344e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610a8157610a81613454565b8082028115828204841417610a8157610a81613454565b6000600182016134a6576134a6613454565b5060010190565b6000826134ca57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610a9c57600081815260208120601f850160051c810160208610156134f65750805b601f850160051c820191505b8181101561107b57828155600101613502565b81516001600160401b0381111561352e5761352e612e65565b6135428161353c845461341a565b846134cf565b602080601f831160018114613577576000841561355f5750858301515b600019600386901b1c1916600185901b17855561107b565b600085815260208120601f198616915b828110156135a657888601518255948401946001909101908401613587565b50858210156135c45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061361d90830184612cab565b9695505050505050565b60006020828403121561363957600080fd5b815161196381612bfa565b60008351613656818460208801612c87565b83519083019061366a818360208801612c87565b01949350505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516136a5816017850160208801612c87565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516136d6816028840160208801612c87565b01602801949350505050565b6000816136f1576136f1613454565b50600019019056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122041643eae61331d57c58b83f684001cf2ece40bb7af97f9bca0d919bf389f179464736f6c63430008110033
Deployed Bytecode Sourcemap
104184:9538:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;113258:288;;;;;;;;;;-1:-1:-1;113258:288:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;113258:288:0;;;;;;;;113554:165;;;;;;;;;;-1:-1:-1;113554:165:0;;;;;:::i;:::-;;:::i;:::-;;31169:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;37660:218::-;;;;;;;;;;-1:-1:-1;37660:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2238:32:1;;;2220:51;;2208:2;2193:18;37660:218:0;2074:203:1;37093:408:0;;;;;;:::i;:::-;;:::i;109018:650::-;;;;;;:::i;:::-;;:::i;26920:323::-;;;;;;;;;;;;;:::i;:::-;;;3193:25:1;;;3181:2;3166:18;26920:323:0;3047:177:1;104867:55:0;;;;;;;;;;-1:-1:-1;104867:55:0;;;;;:::i;:::-;;;;;;;;;;;;;;104988:49;;;;;;;;;;-1:-1:-1;104988:49:0;;;;;:::i;:::-;;:::i;105097:99::-;;;;;;;;;;-1:-1:-1;105097:99:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41299:2825;;;;;;:::i;:::-;;:::i;99931:131::-;;;;;;;;;;-1:-1:-1;99931:131:0;;;;;:::i;:::-;;:::i;112715:108::-;;;;;;;;;;-1:-1:-1;112715:108:0;;;;;:::i;:::-;;:::i;73719:442::-;;;;;;;;;;-1:-1:-1;73719:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;5483:32:1;;;5465:51;;5547:2;5532:18;;5525:34;;;;5438:18;73719:442:0;5291:274:1;107908:197:0;;;;;;;;;;-1:-1:-1;107908:197:0;;;;;:::i;:::-;;:::i;104815:45::-;;;;;;;;;;-1:-1:-1;104815:45:0;;;;;:::i;:::-;;;;;;;;;;;;;;100372:147;;;;;;;;;;-1:-1:-1;100372:147:0;;;;;:::i;:::-;;:::i;112450:136::-;;;;;;;;;;-1:-1:-1;112450:136:0;;;;;:::i;:::-;;:::i;104460:30::-;;;;;;;;;;-1:-1:-1;104460:30:0;;;;;;;;101516:218;;;;;;;;;;-1:-1:-1;101516:218:0;;;;;:::i;:::-;;:::i;105203:49::-;;;;;;;;;;-1:-1:-1;105203:49:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;:::i;113082:168::-;;;;;;;;;;;;;:::i;111613:421::-;;;;;;;;;;-1:-1:-1;111613:421:0;;;;;:::i;:::-;;:::i;44220:193::-;;;;;;:::i;:::-;;:::i;104765:43::-;;;;;;;;;;-1:-1:-1;104765:43:0;;;;;:::i;:::-;;;;;;;;;;;;;;104497:27;;;;;;;;;;-1:-1:-1;104497:27:0;;;;;;;;;;;109676:259;;;;;;:::i;:::-;;:::i;104531:28::-;;;;;;;;;;-1:-1:-1;104531:28:0;;;;;;;;;;;112831:192;;;;;;;;;;-1:-1:-1;112831:192:0;;;;;:::i;:::-;;:::i;64816:528::-;;;;;;;;;;-1:-1:-1;64816:528:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;32562:152::-;;;;;;;;;;-1:-1:-1;32562:152:0;;;;;:::i;:::-;;:::i;104566:32::-;;;;;;;;;;-1:-1:-1;104566:32:0;;;;;;;;;;;108470:156;;;;;;;;;;-1:-1:-1;108470:156:0;;;;;:::i;:::-;;:::i;108790:110::-;;;;;;;;;;-1:-1:-1;108790:110:0;;;;;:::i;:::-;;:::i;28104:233::-;;;;;;;;;;-1:-1:-1;28104:233:0;;;;;:::i;:::-;;:::i;112295:147::-;;;;;;;;;;-1:-1:-1;112295:147:0;;;;;:::i;:::-;;:::i;104929:52::-;;;;;;;;;;-1:-1:-1;104929:52:0;;;;;:::i;:::-;;;;;;;;;;;;;;68692:900;;;;;;;;;;-1:-1:-1;68692:900:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;108113:162::-;;;;;;;;;;-1:-1:-1;108113:162:0;;;;;:::i;:::-;;:::i;98404:147::-;;;;;;;;;;-1:-1:-1;98404:147:0;;;;;:::i;:::-;;:::i;31345:104::-;;;;;;;;;;;;;:::i;65732:2513::-;;;;;;;;;;-1:-1:-1;65732:2513:0;;;;;:::i;:::-;;:::i;112594:113::-;;;;;;;;;;-1:-1:-1;112594:113:0;;;;;:::i;:::-;;:::i;97509:49::-;;;;;;;;;;-1:-1:-1;97509:49:0;97554:4;97509:49;;38218:234;;;;;;;;;;-1:-1:-1;38218:234:0;;;;;:::i;:::-;;:::i;104395:56::-;;;;;;;;;;;;104430:21;104395:56;;45011:407;;;;;;:::i;:::-;;:::i;64229:428::-;;;;;;;;;;-1:-1:-1;64229:428:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;107321:271::-;;;;;;;;;;-1:-1:-1;107321:271:0;;;;;:::i;:::-;;:::i;104326:62::-;;;;;;;;;;;;104364:24;104326:62;;100812:149;;;;;;;;;;-1:-1:-1;100812:149:0;;;;;:::i;:::-;;:::i;108634:148::-;;;;;;;;;;-1:-1:-1;108634:148:0;;;;;:::i;:::-;;:::i;108908:102::-;;;;;;;;;;-1:-1:-1;108908:102:0;;;;;:::i;:::-;;:::i;104707:51::-;;;;;;;;;;-1:-1:-1;104707:51:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;38609:164;;;;;;;;;;-1:-1:-1;38609:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;38730:25:0;;;38706:4;38730:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;38609:164;111246:359;;;;;;:::i;:::-;;:::i;113258:288::-;113386:4;113410:38;113436:11;113410:25;:38::i;:::-;:80;;;;113452:38;113478:11;113452:25;:38::i;:::-;113410:128;;;;113494:44;113526:11;113494:31;:44::i;:::-;113403:135;113258:288;-1:-1:-1;;113258:288:0:o;113554:165::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;113669:42:::1;113688:8;113698:12;113669:18;:42::i;:::-;113554:165:::0;;;:::o;31169:100::-;31223:13;31256:5;31249:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31169:100;:::o;37660:218::-;37736:7;37761:16;37769:7;37761;:16::i;:::-;37756:64;;37786:34;;-1:-1:-1;;;37786:34:0;;;;;;;;;;;37756:64;-1:-1:-1;37840:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;37840:30:0;;37660:218::o;37093:408::-;37182:13;37198:16;37206:7;37198;:16::i;:::-;37182:32;-1:-1:-1;61426:10:0;-1:-1:-1;;;;;37231:28:0;;;37227:175;;37279:44;37296:5;61426:10;38609:164;:::i;37279:44::-;37274:128;;37351:35;;-1:-1:-1;;;37351:35:0;;;;;;;;;;;37274:128;37414:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;37414:35:0;-1:-1:-1;;;;;37414:35:0;;;;;;;;;37465:28;;37414:24;;37465:28;;;;;;;37171:330;37093:408;;:::o;109018:650::-;107129:8;;;;;;;:17;;107141:5;107129:17;107125:43;;107155:13;;-1:-1:-1;;;107155:13:0;;;;;;;;;;;107125:43;109180:9:::1;:18;109190:7;109180:18;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;109166:11;109135:19;:28;109155:7;109135:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:42;;;;:::i;:::-;:63;109131:91;;;109207:15;;-1:-1:-1::0;;;109207:15:0::1;;;;;;;;;;;109131:91;109268:11;109249:7;:16;109257:7;109249:16;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:30;;;;:::i;:::-;109237:9;:42;109233:80;;;109288:25;::::0;-1:-1:-1;;;109288:25:0;;109303:9:::1;109288:25;::::0;::::1;3193::1::0;3166:18;;109288:25:0::1;;;;;;;;109233:80;109329:10;::::0;::::1;;109324:37;;109348:13;;-1:-1:-1::0;;;109348:13:0::1;;;;;;;;;;;109324:37;109374:21;26689:13:::0;109423:23:::1;109429:3:::0;109434:11;109423:5:::1;:23::i;:::-;109519:11;109488:19;:28;109508:7;109488:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:42;;;;:::i;:::-;109457:19;:28;109477:7;109457:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;109457:28:0;:73;109555:13;109541:120:::1;109574:27;109590:11:::0;109574:13;:27:::1;:::i;:::-;109570:1;:31;109541:120;;;109623:16;::::0;;;:13:::1;:16;::::0;;;;:26;;109642:7;;109623:16;-1:-1:-1;;109623:26:0::1;::::0;109642:7;109623:26:::1;::::0;::::1;;;;;;:::i;:::-;;;::::0;;-1:-1:-1;109603:3:0;::::1;::::0;::::1;:::i;:::-;;;;109541:120;;;;109120:548;109018:650:::0;;;:::o;26920:323::-;108375:1;27194:12;26981:7;27178:13;:28;-1:-1:-1;;27178:46:0;;26920:323::o;104988:49::-;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;41299:2825::-;41441:27;41471;41490:7;41471:18;:27::i;:::-;41441:57;;41556:4;-1:-1:-1;;;;;41515:45:0;41531:19;-1:-1:-1;;;;;41515:45:0;;41511:86;;41569:28;;-1:-1:-1;;;41569:28:0;;;;;;;;;;;41511:86;41611:27;40407:24;;;:15;:24;;;;;40635:26;;61426:10;40032:30;;;-1:-1:-1;;;;;39725:28:0;;40010:20;;;40007:56;41797:180;;41890:43;41907:4;61426:10;38609:164;:::i;41890:43::-;41885:92;;41942:35;;-1:-1:-1;;;41942:35:0;;;;;;;;;;;41885:92;-1:-1:-1;;;;;41994:16:0;;41990:52;;42019:23;;-1:-1:-1;;;42019:23:0;;;;;;;;;;;41990:52;42055:43;42077:4;42083:2;42087:7;42096:1;42055:21;:43::i;:::-;42191:15;42188:160;;;42331:1;42310:19;42303:30;42188:160;-1:-1:-1;;;;;42728:24:0;;;;;;;:18;:24;;;;;;42726:26;;-1:-1:-1;;42726:26:0;;;42797:22;;;;;;42795:24;;-1:-1:-1;42795:24:0;;;43119:146;42797:22;-1:-1:-1;;;43119:18:0;:146::i;:::-;43090:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;43385:47:0;;:52;;43381:627;;43490:1;43480:11;;43458:19;43613:30;;;:17;:30;;;;;;:35;;43609:384;;43751:13;;43736:11;:28;43732:242;;43898:30;;;;:17;:30;;;;;:52;;;43732:242;43439:569;43381:627;44055:7;44051:2;-1:-1:-1;;;;;44036:27:0;44045:4;-1:-1:-1;;;;;44036:27:0;-1:-1:-1;;;;;;;;;;;44036:27:0;;;;;;;;;44074:42;41430:2694;;;41299:2825;;;:::o;99931:131::-;100005:7;100032:12;;;:6;:12;;;;;:22;;;;99931:131::o;112715:108::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;-1:-1:-1;112798:8:0::1;:17:::0;;;::::1;;;;-1:-1:-1::0;;112798:17:0;;::::1;::::0;;;::::1;::::0;;112715:108::o;73719:442::-;73816:7;73874:27;;;:17;:27;;;;;;;;73845:56;;;;;;;;;-1:-1:-1;;;;;73845:56:0;;;;;-1:-1:-1;;;73845:56:0;;;-1:-1:-1;;;;;73845:56:0;;;;;;;;73816:7;;73914:92;;-1:-1:-1;73965:29:0;;;;;;;;;73975:19;73965:29;-1:-1:-1;;;;;73965:29:0;;;;-1:-1:-1;;;73965:29:0;;-1:-1:-1;;;;;73965:29:0;;;;;73914:92;74056:23;;;;74018:21;;74527:5;;74043:36;;-1:-1:-1;;;;;74043:36:0;:10;:36;:::i;:::-;74042:58;;;;:::i;:::-;74121:16;;;-1:-1:-1;74018:82:0;;-1:-1:-1;;73719:442:0;;;;;;:::o;107908:197::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;108027:20:::1;::::0;;;:11:::1;:20;::::0;;;;:31:::1;108050:8:::0;108027:20;:31:::1;:::i;:::-;-1:-1:-1::0;108074:23:0::1;::::0;3193:25:1;;;108074:23:0::1;::::0;3181:2:1;3166:18;108074:23:0::1;;;;;;;107908:197:::0;;;:::o;100372:147::-;100455:18;100468:4;100455:12;:18::i;:::-;98000:16;98011:4;98000:10;:16::i;:::-;100486:25:::1;100497:4;100503:7;100486:10;:25::i;112450:136::-:0;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;112573:5:::1;112555:7;:15;112563:6;112555:15;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;112555:15:0;:23;-1:-1:-1;;;112450:136:0:o;101516:218::-;-1:-1:-1;;;;;101612:23:0;;61426:10;101612:23;101604:83;;;;-1:-1:-1;;;101604:83:0;;19261:2:1;101604:83:0;;;19243:21:1;19300:2;19280:18;;;19273:30;19339:34;19319:18;;;19312:62;-1:-1:-1;;;19390:18:1;;;19383:45;19445:19;;101604:83:0;19059:411:1;101604:83:0;101700:26;101712:4;101718:7;101700:11;:26::i;:::-;101516:218;;:::o;113082:168::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;113159:83:::1;::::0;113167:42:::1;::::0;113220:21:::1;113159:83:::0;::::1;;;::::0;::::1;::::0;;;113220:21;113167:42;113159:83;::::1;;;;;;;;;;;;;::::0;::::1;;;;111613:421:::0;104364:24;98000:16;98011:4;98000:10;:16::i;:::-;111731:21:::1;26689:13:::0;111780:32:::1;111790:8:::0;111800:11;111780:9:::1;:32::i;:::-;111885:11;111854:19;:28;111874:7;111854:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:42;;;;:::i;:::-;111823:19;:28;111843:7;111823:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;111823:28:0;:73;111921:13;111907:120:::1;111940:27;111956:11:::0;111940:13;:27:::1;:::i;:::-;111936:1;:31;111907:120;;;111989:16;::::0;;;:13:::1;:16;::::0;;;;:26;;112008:7;;111989:16;-1:-1:-1;;111989:26:0::1;::::0;112008:7;111989:26:::1;::::0;::::1;;;;;;:::i;:::-;;;::::0;;-1:-1:-1;111969:3:0;::::1;::::0;::::1;:::i;:::-;;;;111907:120;;44220:193:::0;44366:39;44383:4;44389:2;44393:7;44366:39;;;;;;;;;;;;:16;:39::i;109676:259::-;107129:8;;;;;;;:17;;107141:5;107129:17;107125:43;;107155:13;;-1:-1:-1;;;107155:13:0;;;;;;;;;;;107125:43;109850:77:::1;109859:11;109872;109885:12;;109899:10;109911:7;109920:6;109850:8;:77::i;112831:192::-:0;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;112927:7:::1;:21;112937:11:::0;112927:7;:21:::1;:::i;:::-;-1:-1:-1::0;112964:51:0::1;108375:1:::0;113001:13:::1;:11;:13::i;:::-;112964:51;::::0;;19649:25:1;;;19705:2;19690:18;;19683:34;;;;19622:18;112964:51:0::1;;;;;;;112831:192:::0;;:::o;64816:528::-;64960:23;65051:8;65026:22;65051:8;-1:-1:-1;;;;;65118:36:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;65081:73;;65174:9;65169:125;65190:14;65185:1;:19;65169:125;;65246:32;65266:8;;65275:1;65266:11;;;;;;;:::i;:::-;;;;;;;65246:19;:32::i;:::-;65230:10;65241:1;65230:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;65206:3;;65169:125;;;-1:-1:-1;65315:10:0;64816:528;-1:-1:-1;;;;64816:528:0:o;32562:152::-;32634:7;32677:27;32696:7;32677:18;:27::i;108470:156::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;108607:11:::1;108586:10;:18;108597:6;108586:18;;;;;;;;:::i;:::-;;;;;;;;;:::i;108790:110::-:0;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;-1:-1:-1;108874:12:0::1;:18:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;108874:18:0;;::::1;::::0;;;::::1;::::0;;108790:110::o;28104:233::-;28176:7;-1:-1:-1;;;;;28200:19:0;;28196:60;;28228:28;;-1:-1:-1;;;28228:28:0;;;;;;;;;;;28196:60;-1:-1:-1;;;;;;28274:25:0;;;;;:18;:25;;;;;;-1:-1:-1;;;;;28274:55:0;;28104:233::o;112295:147::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;112428:6:::1;112405:12;:20;112418:6;112405:20;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;112405:20:0;:29;;-1:-1:-1;;112405:29:0::1;::::0;::::1;;::::0;;;::::1;::::0;;-1:-1:-1;;;112295:147:0:o;68692:900::-;68770:16;68824:19;68858:25;68898:22;68923:16;68933:5;68923:9;:16::i;:::-;68898:41;;68954:25;68996:14;-1:-1:-1;;;;;68982:29:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68982:29:0;;68954:57;;69026:31;;:::i;:::-;108375:1;69072:472;69121:14;69106:11;:29;69072:472;;69173:15;69186:1;69173:12;:15::i;:::-;69161:27;;69211:9;:16;;;69252:8;69207:73;69302:14;;-1:-1:-1;;;;;69302:28:0;;69298:111;;69375:14;;;-1:-1:-1;69298:111:0;69452:5;-1:-1:-1;;;;;69431:26:0;:17;-1:-1:-1;;;;;69431:26:0;;69427:102;;69508:1;69482:8;69491:13;;;;;;69482:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;69427:102;69137:3;;69072:472;;;-1:-1:-1;69565:8:0;;68692:900;-1:-1:-1;;;;;;68692:900:0:o;108113:162::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;108258:9:::1;108232:14;:23;108247:7;108232:23;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;:35;;;;;;:::i;:::-;;108113:162:::0;;;:::o;98404:147::-;98490:4;98514:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;98514:29:0;;;;;;;;;;;;;;;98404:147::o;31345:104::-;31401:13;31434:7;31427:14;;;;;:::i;65732:2513::-;65875:16;65942:4;65933:5;:13;65929:45;;65955:19;;-1:-1:-1;;;65955:19:0;;;;;;;;;;;65929:45;65989:19;66023:17;66043:14;26662:7;26689:13;;26607:103;66043:14;66023:34;-1:-1:-1;108375:1:0;66135:5;:23;66131:87;;;108375:1;66179:23;;66131:87;66294:9;66287:4;:16;66283:73;;;66331:9;66324:16;;66283:73;66370:25;66398:16;66408:5;66398:9;:16::i;:::-;66370:44;;66592:4;66584:5;:12;66580:278;;;66639:12;;;66674:31;;;66670:111;;;66750:11;66730:31;;66670:111;66598:198;66580:278;;;-1:-1:-1;66841:1:0;66580:278;66872:25;66914:17;-1:-1:-1;;;;;66900:32:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66900:32:0;;66872:60;;66951:17;66972:1;66951:22;66947:78;;67001:8;-1:-1:-1;66994:15:0;;-1:-1:-1;;;66994:15:0;66947:78;67169:31;67203:26;67223:5;67203:19;:26::i;:::-;67169:60;;67244:25;67489:9;:16;;;67484:92;;-1:-1:-1;67546:14:0;;67484:92;67607:5;67590:478;67619:4;67614:1;:9;;:45;;;;;67642:17;67627:11;:32;;67614:45;67590:478;;;67697:15;67710:1;67697:12;:15::i;:::-;67685:27;;67735:9;:16;;;67776:8;67731:73;67826:14;;-1:-1:-1;;;;;67826:28:0;;67822:111;;67899:14;;;-1:-1:-1;67822:111:0;67976:5;-1:-1:-1;;;;;67955:26:0;:17;-1:-1:-1;;;;;67955:26:0;;67951:102;;68032:1;68006:8;68015:13;;;;;;68006:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;67951:102;67661:3;;67590:478;;;-1:-1:-1;;;68153:29:0;;;-1:-1:-1;68160:8:0;;-1:-1:-1;;65732:2513:0;;;;;;:::o;112594:113::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;-1:-1:-1;112680:10:0::1;:19:::0;;-1:-1:-1;;112680:19:0::1;::::0;::::1;;::::0;;;::::1;::::0;;112594:113::o;38218:234::-;61426:10;38313:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;38313:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;38313:60:0;;;;;;;;;;38389:55;;540:41:1;;;38313:49:0;;61426:10;38389:55;;513:18:1;38389:55:0;;;;;;;38218:234;;:::o;45011:407::-;45186:31;45199:4;45205:2;45209:7;45186:12;:31::i;:::-;-1:-1:-1;;;;;45232:14:0;;;:19;45228:183;;45271:56;45302:4;45308:2;45312:7;45321:5;45271:30;:56::i;:::-;45266:145;;45355:40;;-1:-1:-1;;;45355:40:0;;;;;;;;;;;64229:428;64313:21;;:::i;:::-;64347:31;;:::i;:::-;108375:1;64393:7;:25;:54;;;-1:-1:-1;26662:7:0;26689:13;64422:7;:25;;64393:54;64389:103;;;64471:9;64229:428;-1:-1:-1;;64229:428:0:o;64389:103::-;64514:21;64527:7;64514:12;:21::i;:::-;64502:33;;64550:9;:16;;;64546:65;;;64590:9;64229:428;-1:-1:-1;;64229:428:0:o;64546:65::-;64628:21;64641:7;64628:12;:21::i;107321:271::-;107443:8;;107413:13;;107443:8;;;;;107439:146;;;107475:20;107487:7;107475:11;:20::i;107439:146::-;107535:38;107550:22;;;:13;:22;;;;;;107535:14;;:38;107550:22;;107535:38;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;107528:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107321:271;;;:::o;107439:146::-;107321:271;;;:::o;100812:149::-;100896:18;100909:4;100896:12;:18::i;:::-;98000:16;98011:4;98000:10;:16::i;:::-;100927:26:::1;100939:4;100945:7;100927:11;:26::i;108634:148::-:0;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;108764:10:::1;108743:9;:18;108753:7;108743:18;;;;;;;;:::i;108908:102::-:0;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;-1:-1:-1;108988:8:0::1;:14:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;108988:14:0;;::::1;::::0;;;::::1;::::0;;108908:102::o;111246:359::-;107129:8;;;;;;;:17;;107141:5;107129:17;107125:43;;107155:13;;-1:-1:-1;;;107155:13:0;;;;;;;;;;;107125:43;104430:21:::1;98000:16;98011:4;98000:10;:16::i;:::-;111520:77:::2;111529:11;111542;111555:12;;111569:10;111581:7;111590:6;111520:8;:77::i;:::-;107179:1:::1;111246:359:::0;;;;;;;:::o;30267:639::-;30352:4;-1:-1:-1;;;;;;;;;30676:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;30753:25:0;;;30676:102;:179;;;-1:-1:-1;;;;;;;;30830:25:0;-1:-1:-1;;;30830:25:0;;30267:639::o;73449:215::-;73551:4;-1:-1:-1;;;;;;73575:41:0;;-1:-1:-1;;;73575:41:0;;:81;;-1:-1:-1;;;;;;;;;;72180:40:0;;;73620:36;72071:157;98108:204;98193:4;-1:-1:-1;;;;;;98217:47:0;;-1:-1:-1;;;98217:47:0;;:87;;;98268:36;98292:11;98268:23;:36::i;98855:105::-;98922:30;98933:4;61426:10;98922;:30::i;:::-;98855:105;:::o;74811:332::-;74527:5;-1:-1:-1;;;;;74914:33:0;;;;74906:88;;;;-1:-1:-1;;;74906:88:0;;20062:2:1;74906:88:0;;;20044:21:1;20101:2;20081:18;;;20074:30;20140:34;20120:18;;;20113:62;-1:-1:-1;;;20191:18:1;;;20184:40;20241:19;;74906:88:0;19860:406:1;74906:88:0;-1:-1:-1;;;;;75013:22:0;;75005:60;;;;-1:-1:-1;;;75005:60:0;;20473:2:1;75005:60:0;;;20455:21:1;20512:2;20492:18;;;20485:30;-1:-1:-1;;;20531:18:1;;;20524:55;20596:18;;75005:60:0;20271:349:1;75005:60:0;75100:35;;;;;;;;;-1:-1:-1;;;;;75100:35:0;;;;;;-1:-1:-1;;;;;75100:35:0;;;;;;;;;;-1:-1:-1;;;75078:57:0;;;;:19;:57;74811:332::o;39031:282::-;39096:4;39152:7;108375:1;39133:26;;:66;;;;;39186:13;;39176:7;:23;39133:66;:153;;;;-1:-1:-1;;39237:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;39237:44:0;:49;;39031:282::o;48680:2966::-;48753:20;48776:13;;;48804;;;48800:44;;48826:18;;-1:-1:-1;;;48826:18:0;;;;;;;;;;;48800:44;48857:61;48887:1;48891:2;48895:12;48909:8;48857:21;:61::i;:::-;-1:-1:-1;;;;;49332:22:0;;;;;;:18;:22;;22401:2;49332:22;;:71;;-1:-1:-1;;;;;49358:45:0;;49332:71;;;49680:139;49332:22;-1:-1:-1;36382:15:0;;36356:24;36352:46;49680:18;:139::i;:::-;49646:31;;;;:17;:31;;;;;:173;;;;-1:-1:-1;;;;;50409:25:0;;;49881:23;;;;49664:12;;50409:25;;-1:-1:-1;;;;;;;;;;;49646:31:0;;50499:335;51160:1;51146:12;51142:20;51100:346;51201:3;51192:7;51189:16;51100:346;;51419:7;51409:8;51406:1;-1:-1:-1;;;;;;;;;;;51376:1:0;51373;51368:59;51254:1;51241:15;51100:346;;;51104:77;51479:8;51491:1;51479:13;51475:45;;51501:19;;-1:-1:-1;;;51501:19:0;;;;;;;;;;;51475:45;51537:13;:19;-1:-1:-1;113554:165:0;;;:::o;33717:1275::-;33784:7;33819;;108375:1;33868:23;33864:1061;;33921:13;;33914:4;:20;33910:1015;;;33959:14;33976:23;;;:17;:23;;;;;;;-1:-1:-1;;;34065:24:0;;:29;;34061:845;;34730:113;34737:6;34747:1;34737:11;34730:113;;-1:-1:-1;;;34808:6:0;34790:25;;;;:17;:25;;;;;;34730:113;;34061:845;33936:989;33910:1015;34953:31;;-1:-1:-1;;;34953:31:0;;;;;;;;;;;112042:245;-1:-1:-1;;;;;112194:18:0;;;112190:90;;112237:12;;;;;;;:20;;112253:4;112237:20;112229:39;;;;-1:-1:-1;;;112229:39:0;;20827:2:1;112229:39:0;;;20809:21:1;20866:1;20846:18;;;20839:29;-1:-1:-1;;;20884:18:1;;;20877:36;20930:18;;112229:39:0;20625:329:1;35540:450:0;35951:11;35926:23;35922:41;35919:52;-1:-1:-1;;;;;35777:28:0;;;;35909:63;;35540:450::o;103113:238::-;103197:22;103205:4;103211:7;103197;:22::i;:::-;103192:152;;103236:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;103236:29:0;;;;;;;;;:36;;-1:-1:-1;;103236:36:0;103268:4;103236:36;;;103319:12;61426:10;;61339:105;103319:12;-1:-1:-1;;;;;103292:40:0;103310:7;-1:-1:-1;;;;;103292:40:0;103304:4;103292:40;;;;;;;;;;103113:238;;:::o;103531:239::-;103615:22;103623:4;103629:7;103615;:22::i;:::-;103611:152;;;103686:5;103654:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;103654:29:0;;;;;;;;;;:37;;-1:-1:-1;;103654:37:0;;;103711:40;61426:10;;103654:12;;103711:40;;103686:5;103711:40;103531:239;;:::o;55171:112::-;55248:27;55258:2;55262:8;55248:27;;;;;;;;;;;;:9;:27::i;109943:1295::-;110166:9;:18;110176:7;110166:18;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;110152:11;110121:19;:28;110141:7;110121:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:42;;;;:::i;:::-;:63;110117:91;;;110193:15;;-1:-1:-1;;;110193:15:0;;;;;;;;;;;110117:91;110254:11;110235:7;:16;110243:7;110235:16;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:30;;;;:::i;:::-;110223:9;:42;110219:80;;;110274:25;;-1:-1:-1;;;110274:25:0;;110289:9;110274:25;;;3193::1;3166:18;;110274:25:0;3047:177:1;110219:80:0;110315:12;:20;110328:6;110315:20;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;110315:20:0;;;;110310:47;;110344:13;;-1:-1:-1;;;110344:13:0;;;;;;;;;;;110310:47;110393:41;;-1:-1:-1;;;;;;21161:2:1;21132:15;;;21128:45;110393:41:0;;;21116:58:1;21190:12;;;21183:28;;;110368:12:0;;21227::1;;110393:41:0;;;-1:-1:-1;;110393:41:0;;;;;;;;;110383:52;;110393:41;110383:52;;;;;-1:-1:-1;110461:15:0;110450:7;:26;;;;;;;;:::i;:::-;;110446:293;;110559:2;110545:11;110497:16;:25;110514:7;110497:25;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;:33;110523:6;110497:33;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;:45;110531:10;-1:-1:-1;;;;;110497:45:0;-1:-1:-1;;;;;110497:45:0;;;;;;;;;;;;;:59;;;;:::i;:::-;:64;110493:96;;;110570:19;;-1:-1:-1;;;110570:19:0;;;;;;;;;;;110493:96;110446:293;;;110688:11;110674;110626:16;:25;110643:7;110626:25;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;:33;110652:6;110626:33;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;:45;110660:10;-1:-1:-1;;;;;110626:45:0;-1:-1:-1;;;;;110626:45:0;;;;;;;;;;;;;:59;;;;:::i;:::-;:73;110622:105;;;110708:19;;-1:-1:-1;;;110708:19:0;;;;;;;;;;;110622:105;110756:66;110783:12;;110797:10;:18;110808:6;110797:18;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;110817:4;110756:26;:66::i;:::-;110751:100;;110831:20;;-1:-1:-1;;;110831:20:0;;;;;;;;;;;110751:100;110864:21;26689:13;110913:30;110919:10;110931:11;110913:5;:30::i;:::-;111003:11;110954:16;:25;110971:7;110954:25;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;:33;110980:6;110954:33;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;:45;110988:10;-1:-1:-1;;;;;110954:45:0;-1:-1:-1;;;;;110954:45:0;;;;;;;;;;;;;:60;;;;;;;:::i;:::-;;;;-1:-1:-1;111089:11:0;;-1:-1:-1;111058:19:0;:28;111078:7;111058:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:42;;;;:::i;:::-;111027:19;:28;111047:7;111027:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;111027:28:0;:73;111125:13;111111:120;111144:27;111160:11;111144:13;:27;:::i;:::-;111140:1;:31;111111:120;;;111193:16;;;;:13;:16;;;;;:26;;111212:7;;111193:16;-1:-1:-1;;111193:26:0;;111212:7;111193:26;;;;;;;;:::i;:::-;;;;;-1:-1:-1;111173:3:0;;;;:::i;:::-;;;;111111:120;;;;110106:1132;;109943:1295;;;;;;;:::o;33165:161::-;33233:21;;:::i;:::-;33293:24;;;;:17;:24;;;;;;33274:44;;:18;:44::i;47502:716::-;47686:88;;-1:-1:-1;;;47686:88:0;;47665:4;;-1:-1:-1;;;;;47686:45:0;;;;;:88;;61426:10;;47753:4;;47759:7;;47768:5;;47686:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47686:88:0;;;;;;;;-1:-1:-1;;47686:88:0;;;;;;;;;;;;:::i;:::-;;;47682:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47969:6;:13;47986:1;47969:18;47965:235;;48015:40;;-1:-1:-1;;;48015:40:0;;;;;;;;;;;47965:235;48158:6;48152:13;48143:6;48139:2;48135:15;48128:38;47682:529;-1:-1:-1;;;;;;47845:64:0;-1:-1:-1;;;47845:64:0;;-1:-1:-1;47682:529:0;47502:716;;;;;;:::o;32903:166::-;32973:21;;:::i;:::-;33014:47;33033:27;33052:7;33033:18;:27::i;:::-;33014:18;:47::i;107600:300::-;107697:20;;;;:11;:20;;;;;107691:34;;107661:13;;107697:20;107691:34;;;:::i;:::-;;;107729:1;107691:39;107687:206;;107778:25;107795:7;107778:16;:25::i;:::-;107805:14;;;;;;;;;;;;;-1:-1:-1;;;107805:14:0;;;107761:59;;;;;;;;;:::i;:::-;;;;;;;;;;;;;107747:74;;107600:300;;;:::o;107687:206::-;107861:20;;;;:11;:20;;;;;107854:27;;;;;:::i;99250:492::-;99339:22;99347:4;99353:7;99339;:22::i;:::-;99334:401;;99527:28;99547:7;99527:19;:28::i;:::-;99628:38;99656:4;99663:2;99628:19;:38::i;:::-;99432:257;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;99432:257:0;;;;;;;;;;-1:-1:-1;;;99378:345:0;;;;;;;:::i;54398:689::-;54529:19;54535:2;54539:8;54529:5;:19::i;:::-;-1:-1:-1;;;;;54590:14:0;;;:19;54586:483;;54630:11;54644:13;54692:14;;;54725:233;54756:62;54795:1;54799:2;54803:7;;;;;;54812:5;54756:30;:62::i;:::-;54751:167;;54854:40;;-1:-1:-1;;;54854:40:0;;;;;;;;;;;54751:167;54953:3;54945:5;:11;54725:233;;55040:3;55023:13;;:20;55019:34;;55045:8;;;1482:208;1617:4;1678;1641:33;1662:5;;1669:4;1641:20;:33::i;:::-;:41;;1482:208;-1:-1:-1;;;;;1482:208:0:o;35091:366::-;35157:31;;:::i;:::-;-1:-1:-1;;;;;35201:41:0;;;;-1:-1:-1;;;;;22922:3:0;35287:33;;;35253:68;:24;;;:68;-1:-1:-1;;;35351:24:0;;:29;;35332:16;;;:48;23443:3;35420:28;;;;35391:19;;;:58;35201:9;35091:366::o;31555:318::-;31628:13;31659:16;31667:7;31659;:16::i;:::-;31654:59;;31684:29;;-1:-1:-1;;;31684:29:0;;;;;;;;;;;31654:59;31726:21;31750:10;:8;:10::i;:::-;31726:34;;31784:7;31778:21;31803:1;31778:26;:87;;;;;;;;;;;;;;;;;31831:7;31840:18;31850:7;31840:9;:18::i;:::-;31814:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;31771:94;31555:318;-1:-1:-1;;;31555:318:0:o;95549:151::-;95607:13;95640:52;-1:-1:-1;;;;;95652:22:0;;93704:2;94945:447;95020:13;95046:19;95078:10;95082:6;95078:1;:10;:::i;:::-;:14;;95091:1;95078:14;:::i;:::-;-1:-1:-1;;;;;95068:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;95068:25:0;;95046:47;;-1:-1:-1;;;95104:6:0;95111:1;95104:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;95104:15:0;;;;;;;;;-1:-1:-1;;;95130:6:0;95137:1;95130:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;95130:15:0;;;;;;;;-1:-1:-1;95161:9:0;95173:10;95177:6;95173:1;:10;:::i;:::-;:14;;95186:1;95173:14;:::i;:::-;95161:26;;95156:131;95193:1;95189;:5;95156:131;;;-1:-1:-1;;;95237:5:0;95245:3;95237:11;95228:21;;;;;;;:::i;:::-;;;;95216:6;95223:1;95216:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;95216:33:0;;;;;;;;-1:-1:-1;95274:1:0;95264:11;;;;;95196:3;;;:::i;:::-;;;95156:131;;;-1:-1:-1;95305:10:0;;95297:55;;;;-1:-1:-1;;;95297:55:0;;23659:2:1;95297:55:0;;;23641:21:1;;;23678:18;;;23671:30;23737:34;23717:18;;;23710:62;23789:18;;95297:55:0;23457:356:1;2461:306:0;2554:7;2597:4;2554:7;2612:118;2632:16;;;2612:118;;;2685:33;2695:12;2709:5;;2715:1;2709:8;;;;;;;:::i;:::-;;;;;;;2685:9;:33::i;:::-;2670:48;-1:-1:-1;2650:3:0;;;;:::i;:::-;;;;2612:118;;107213:100;107265:13;107298:7;107291:14;;;;;:::i;61546:1745::-;61611:17;62045:4;62038;62032:11;62028:22;62137:1;62131:4;62124:15;62212:4;62209:1;62205:12;62198:19;;;62294:1;62289:3;62282:14;62398:3;62637:5;62619:428;62685:1;62680:3;62676:11;62669:18;;62856:2;62850:4;62846:13;62842:2;62838:22;62833:3;62825:36;62950:2;62940:13;;63007:25;62619:428;63007:25;-1:-1:-1;63077:13:0;;;-1:-1:-1;;63192:14:0;;;63254:19;;;63192:14;61546:1745;-1:-1:-1;61546:1745:0:o;9091:149::-;9154:7;9185:1;9181;:5;:51;;9316:13;9410:15;;;9446:4;9439:15;;;9493:4;9477:21;;9181:51;;;9316:13;9410:15;;;9446:4;9439:15;;;9493:4;9477:21;;9189:20;9248:268;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;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:173::-;660:20;;-1:-1:-1;;;;;709:31:1;;699:42;;689:70;;755:1;752;745:12;770:358;837:6;845;898:2;886:9;877:7;873:23;869:32;866:52;;;914:1;911;904:12;866:52;937:29;956:9;937:29;:::i;:::-;927:39;-1:-1:-1;1016:2:1;1001:18;;988:32;-1:-1:-1;;;;;1049:30:1;;1039:41;;1029:69;;1094:1;1091;1084:12;1029:69;1117:5;1107:15;;;770:358;;;;;:::o;1133:250::-;1218:1;1228:113;1242:6;1239:1;1236:13;1228:113;;;1318:11;;;1312:18;1299:11;;;1292:39;1264:2;1257:10;1228:113;;;-1:-1:-1;;1375:1:1;1357:16;;1350:27;1133:250::o;1388:271::-;1430:3;1468:5;1462:12;1495:6;1490:3;1483:19;1511:76;1580:6;1573:4;1568:3;1564:14;1557:4;1550:5;1546:16;1511:76;:::i;:::-;1641:2;1620:15;-1:-1:-1;;1616:29:1;1607:39;;;;1648:4;1603:50;;1388:271;-1:-1:-1;;1388:271:1:o;1664:220::-;1813:2;1802:9;1795:21;1776:4;1833:45;1874:2;1863:9;1859:18;1851:6;1833:45;:::i;1889:180::-;1948:6;2001:2;1989:9;1980:7;1976:23;1972:32;1969:52;;;2017:1;2014;2007:12;1969:52;-1:-1:-1;2040:23:1;;1889:180;-1:-1:-1;1889:180:1:o;2282:254::-;2350:6;2358;2411:2;2399:9;2390:7;2386:23;2382:32;2379:52;;;2427:1;2424;2417:12;2379:52;2450:29;2469:9;2450:29;:::i;:::-;2440:39;2526:2;2511:18;;;;2498:32;;-1:-1:-1;;;2282:254:1:o;2541:149::-;2615:20;;2664:1;2654:12;;2644:40;;2680:1;2677;2670:12;2695:347;2785:6;2793;2801;2854:2;2842:9;2833:7;2829:23;2825:32;2822:52;;;2870:1;2867;2860:12;2822:52;2893:29;2912:9;2893:29;:::i;:::-;2883:39;;2969:2;2958:9;2954:18;2941:32;2931:42;;2992:44;3032:2;3021:9;3017:18;2992:44;:::i;:::-;2982:54;;2695:347;;;;;:::o;3229:205::-;3301:6;3354:2;3342:9;3333:7;3329:23;3325:32;3322:52;;;3370:1;3367;3360:12;3322:52;3393:35;3418:9;3393:35;:::i;3439:155::-;3519:20;;3568:1;3558:12;;3548:40;;3584:1;3581;3574:12;3599:384;3708:6;3716;3724;3777:2;3765:9;3756:7;3752:23;3748:32;3745:52;;;3793:1;3790;3783:12;3745:52;3816:35;3841:9;3816:35;:::i;:::-;3806:45;;3870:50;3916:2;3905:9;3901:18;3870:50;:::i;:::-;3860:60;;3939:38;3973:2;3962:9;3958:18;3939:38;:::i;3988:328::-;4065:6;4073;4081;4134:2;4122:9;4113:7;4109:23;4105:32;4102:52;;;4150:1;4147;4140:12;4102:52;4173:29;4192:9;4173:29;:::i;:::-;4163:39;;4221:38;4255:2;4244:9;4240:18;4221:38;:::i;:::-;4211:48;;4306:2;4295:9;4291:18;4278:32;4268:42;;3988:328;;;;;:::o;4688:160::-;4753:20;;4809:13;;4802:21;4792:32;;4782:60;;4838:1;4835;4828:12;4853:180;4909:6;4962:2;4950:9;4941:7;4937:23;4933:32;4930:52;;;4978:1;4975;4968:12;4930:52;5001:26;5017:9;5001:26;:::i;5038:248::-;5106:6;5114;5167:2;5155:9;5146:7;5142:23;5138:32;5135:52;;;5183:1;5180;5173:12;5135:52;-1:-1:-1;;5206:23:1;;;5276:2;5261:18;;;5248:32;;-1:-1:-1;5038:248:1:o;5570:127::-;5631:10;5626:3;5622:20;5619:1;5612:31;5662:4;5659:1;5652:15;5686:4;5683:1;5676:15;5702:632;5767:5;-1:-1:-1;;;;;5838:2:1;5830:6;5827:14;5824:40;;;5844:18;;:::i;:::-;5919:2;5913:9;5887:2;5973:15;;-1:-1:-1;;5969:24:1;;;5995:2;5965:33;5961:42;5949:55;;;6019:18;;;6039:22;;;6016:46;6013:72;;;6065:18;;:::i;:::-;6105:10;6101:2;6094:22;6134:6;6125:15;;6164:6;6156;6149:22;6204:3;6195:6;6190:3;6186:16;6183:25;6180:45;;;6221:1;6218;6211:12;6180:45;6271:6;6266:3;6259:4;6251:6;6247:17;6234:44;6326:1;6319:4;6310:6;6302;6298:19;6294:30;6287:41;;;;5702:632;;;;;:::o;6339:222::-;6382:5;6435:3;6428:4;6420:6;6416:17;6412:27;6402:55;;6453:1;6450;6443:12;6402:55;6475:80;6551:3;6542:6;6529:20;6522:4;6514:6;6510:17;6475:80;:::i;6566:390::-;6644:6;6652;6705:2;6693:9;6684:7;6680:23;6676:32;6673:52;;;6721:1;6718;6711:12;6673:52;6757:9;6744:23;6734:33;;6818:2;6807:9;6803:18;6790:32;-1:-1:-1;;;;;6837:6:1;6834:30;6831:50;;;6877:1;6874;6867:12;6831:50;6900;6942:7;6933:6;6922:9;6918:22;6900:50;:::i;:::-;6890:60;;;6566:390;;;;;:::o;6961:254::-;7029:6;7037;7090:2;7078:9;7069:7;7065:23;7061:32;7058:52;;;7106:1;7103;7096:12;7058:52;7142:9;7129:23;7119:33;;7171:38;7205:2;7194:9;7190:18;7171:38;:::i;:::-;7161:48;;6961:254;;;;;:::o;7220:273::-;7301:6;7309;7362:2;7350:9;7341:7;7337:23;7333:32;7330:52;;;7378:1;7375;7368:12;7330:52;7414:9;7401:23;7391:33;;7443:44;7483:2;7472:9;7468:18;7443:44;:::i;7498:127::-;7559:10;7554:3;7550:20;7547:1;7540:31;7590:4;7587:1;7580:15;7614:4;7611:1;7604:15;7630:341;7775:2;7760:18;;7808:1;7797:13;;7787:144;;7853:10;7848:3;7844:20;7841:1;7834:31;7888:4;7885:1;7878:15;7916:4;7913:1;7906:15;7787:144;7940:25;;;7630:341;:::o;7976:367::-;8039:8;8049:6;8103:3;8096:4;8088:6;8084:17;8080:27;8070:55;;8121:1;8118;8111:12;8070:55;-1:-1:-1;8144:20:1;;-1:-1:-1;;;;;8176:30:1;;8173:50;;;8219:1;8216;8209:12;8173:50;8256:4;8248:6;8244:17;8232:29;;8316:3;8309:4;8299:6;8296:1;8292:14;8284:6;8280:27;8276:38;8273:47;8270:67;;;8333:1;8330;8323:12;8348:773;8502:6;8510;8518;8526;8534;8542;8595:3;8583:9;8574:7;8570:23;8566:33;8563:53;;;8612:1;8609;8602:12;8563:53;8648:9;8635:23;8625:33;;8705:2;8694:9;8690:18;8677:32;8667:42;;8760:2;8749:9;8745:18;8732:32;-1:-1:-1;;;;;8779:6:1;8776:30;8773:50;;;8819:1;8816;8809:12;8773:50;8858:70;8920:7;8911:6;8900:9;8896:22;8858:70;:::i;:::-;8947:8;;-1:-1:-1;8832:96:1;-1:-1:-1;9001:44:1;;-1:-1:-1;9041:2:1;9026:18;;9001:44;:::i;:::-;8991:54;;9064:51;9110:3;9099:9;9095:19;9064:51;:::i;:::-;9054:61;;8348:773;;;;;;;;:::o;9126:322::-;9195:6;9248:2;9236:9;9227:7;9223:23;9219:32;9216:52;;;9264:1;9261;9254:12;9216:52;9304:9;9291:23;-1:-1:-1;;;;;9329:6:1;9326:30;9323:50;;;9369:1;9366;9359:12;9323:50;9392;9434:7;9425:6;9414:9;9410:22;9392:50;:::i;9453:437::-;9539:6;9547;9600:2;9588:9;9579:7;9575:23;9571:32;9568:52;;;9616:1;9613;9606:12;9568:52;9656:9;9643:23;-1:-1:-1;;;;;9681:6:1;9678:30;9675:50;;;9721:1;9718;9711:12;9675:50;9760:70;9822:7;9813:6;9802:9;9798:22;9760:70;:::i;:::-;9849:8;;9734:96;;-1:-1:-1;9453:437:1;-1:-1:-1;;;;9453:437:1:o;9895:349::-;9979:12;;-1:-1:-1;;;;;9975:38:1;9963:51;;10067:4;10056:16;;;10050:23;-1:-1:-1;;;;;10046:48:1;10030:14;;;10023:72;10158:4;10147:16;;;10141:23;10134:31;10127:39;10111:14;;;10104:63;10220:4;10209:16;;;10203:23;10228:8;10199:38;10183:14;;10176:62;9895:349::o;10249:722::-;10482:2;10534:21;;;10604:13;;10507:18;;;10626:22;;;10453:4;;10482:2;10705:15;;;;10679:2;10664:18;;;10453:4;10748:197;10762:6;10759:1;10756:13;10748:197;;;10811:52;10859:3;10850:6;10844:13;10811:52;:::i;:::-;10920:15;;;;10892:4;10883:14;;;;;10784:1;10777:9;10748:197;;10976:285;11063:6;11071;11124:2;11112:9;11103:7;11099:23;11095:32;11092:52;;;11140:1;11137;11130:12;11092:52;11176:9;11163:23;11153:33;;11205:50;11251:2;11240:9;11236:18;11205:50;:::i;11266:186::-;11325:6;11378:2;11366:9;11357:7;11353:23;11349:32;11346:52;;;11394:1;11391;11384:12;11346:52;11417:29;11436:9;11417:29;:::i;11457:285::-;11541:6;11549;11602:2;11590:9;11581:7;11577:23;11573:32;11570:52;;;11618:1;11615;11608:12;11570:52;11641:26;11657:9;11641:26;:::i;:::-;11631:36;;11686:50;11732:2;11721:9;11717:18;11686:50;:::i;11747:217::-;11825:6;11878:2;11866:9;11857:7;11853:23;11849:32;11846:52;;;11894:1;11891;11884:12;11846:52;11917:41;11948:9;11917:41;:::i;11969:632::-;12140:2;12192:21;;;12262:13;;12165:18;;;12284:22;;;12111:4;;12140:2;12363:15;;;;12337:2;12322:18;;;12111:4;12406:169;12420:6;12417:1;12414:13;12406:169;;;12481:13;;12469:26;;12550:15;;;;12515:12;;;;12442:1;12435:9;12406:169;;12606:415;12697:6;12705;12758:2;12746:9;12737:7;12733:23;12729:32;12726:52;;;12774:1;12771;12764:12;12726:52;12797:35;12822:9;12797:35;:::i;:::-;12787:45;;12883:2;12872:9;12868:18;12855:32;-1:-1:-1;;;;;12902:6:1;12899:30;12896:50;;;12942:1;12939;12932:12;13026:322;13103:6;13111;13119;13172:2;13160:9;13151:7;13147:23;13143:32;13140:52;;;13188:1;13185;13178:12;13140:52;13211:29;13230:9;13211:29;:::i;:::-;13201:39;13287:2;13272:18;;13259:32;;-1:-1:-1;13338:2:1;13323:18;;;13310:32;;13026:322;-1:-1:-1;;;13026:322:1:o;13353:254::-;13418:6;13426;13479:2;13467:9;13458:7;13454:23;13450:32;13447:52;;;13495:1;13492;13485:12;13447:52;13518:29;13537:9;13518:29;:::i;:::-;13508:39;;13566:35;13597:2;13586:9;13582:18;13566:35;:::i;13612:667::-;13707:6;13715;13723;13731;13784:3;13772:9;13763:7;13759:23;13755:33;13752:53;;;13801:1;13798;13791:12;13752:53;13824:29;13843:9;13824:29;:::i;:::-;13814:39;;13872:38;13906:2;13895:9;13891:18;13872:38;:::i;:::-;13862:48;;13957:2;13946:9;13942:18;13929:32;13919:42;;14012:2;14001:9;13997:18;13984:32;-1:-1:-1;;;;;14031:6:1;14028:30;14025:50;;;14071:1;14068;14061:12;14025:50;14094:22;;14147:4;14139:13;;14135:27;-1:-1:-1;14125:55:1;;14176:1;14173;14166:12;14125:55;14199:74;14265:7;14260:2;14247:16;14242:2;14238;14234:11;14199:74;:::i;:::-;14189:84;;;13612:667;;;;;;;:::o;14284:266::-;14480:3;14465:19;;14493:51;14469:9;14526:6;14493:51;:::i;14555:260::-;14623:6;14631;14684:2;14672:9;14663:7;14659:23;14655:32;14652:52;;;14700:1;14697;14690:12;14652:52;14723:29;14742:9;14723:29;:::i;:::-;14713:39;;14771:38;14805:2;14794:9;14790:18;14771:38;:::i;14820:848::-;14983:6;14991;14999;15007;15015;15023;15031;15084:3;15072:9;15063:7;15059:23;15055:33;15052:53;;;15101:1;15098;15091:12;15052:53;15137:9;15124:23;15114:33;;15194:2;15183:9;15179:18;15166:32;15156:42;;15249:2;15238:9;15234:18;15221:32;-1:-1:-1;;;;;15268:6:1;15265:30;15262:50;;;15308:1;15305;15298:12;15262:50;15347:70;15409:7;15400:6;15389:9;15385:22;15347:70;:::i;:::-;15436:8;;-1:-1:-1;15321:96:1;-1:-1:-1;15490:38:1;;-1:-1:-1;15524:2:1;15509:18;;15490:38;:::i;:::-;15480:48;;15547:45;15587:3;15576:9;15572:19;15547:45;:::i;:::-;15537:55;;15611:51;15657:3;15646:9;15642:19;15611:51;:::i;:::-;15601:61;;14820:848;;;;;;;;;;:::o;15673:380::-;15752:1;15748:12;;;;15795;;;15816:61;;15870:4;15862:6;15858:17;15848:27;;15816:61;15923:2;15915:6;15912:14;15892:18;15889:38;15886:161;;15969:10;15964:3;15960:20;15957:1;15950:31;16004:4;16001:1;15994:15;16032:4;16029:1;16022:15;15886:161;;15673:380;;;:::o;16058:127::-;16119:10;16114:3;16110:20;16107:1;16100:31;16150:4;16147:1;16140:15;16174:4;16171:1;16164:15;16190:125;16255:9;;;16276:10;;;16273:36;;;16289:18;;:::i;16320:168::-;16393:9;;;16424;;16441:15;;;16435:22;;16421:37;16411:71;;16462:18;;:::i;16493:135::-;16532:3;16553:17;;;16550:43;;16573:18;;:::i;:::-;-1:-1:-1;16620:1:1;16609:13;;16493:135::o;16633:217::-;16673:1;16699;16689:132;;16743:10;16738:3;16734:20;16731:1;16724:31;16778:4;16775:1;16768:15;16806:4;16803:1;16796:15;16689:132;-1:-1:-1;16835:9:1;;16633:217::o;16981:545::-;17083:2;17078:3;17075:11;17072:448;;;17119:1;17144:5;17140:2;17133:17;17189:4;17185:2;17175:19;17259:2;17247:10;17243:19;17240:1;17236:27;17230:4;17226:38;17295:4;17283:10;17280:20;17277:47;;;-1:-1:-1;17318:4:1;17277:47;17373:2;17368:3;17364:12;17361:1;17357:20;17351:4;17347:31;17337:41;;17428:82;17446:2;17439:5;17436:13;17428:82;;;17491:17;;;17472:1;17461:13;17428:82;;17702:1352;17828:3;17822:10;-1:-1:-1;;;;;17847:6:1;17844:30;17841:56;;;17877:18;;:::i;:::-;17906:97;17996:6;17956:38;17988:4;17982:11;17956:38;:::i;:::-;17950:4;17906:97;:::i;:::-;18058:4;;18122:2;18111:14;;18139:1;18134:663;;;;18841:1;18858:6;18855:89;;;-1:-1:-1;18910:19:1;;;18904:26;18855:89;-1:-1:-1;;17659:1:1;17655:11;;;17651:24;17647:29;17637:40;17683:1;17679:11;;;17634:57;18957:81;;18104:944;;18134:663;16928:1;16921:14;;;16965:4;16952:18;;-1:-1:-1;;18170:20:1;;;18288:236;18302:7;18299:1;18296:14;18288:236;;;18391:19;;;18385:26;18370:42;;18483:27;;;;18451:1;18439:14;;;;18318:19;;18288:236;;;18292:3;18552:6;18543:7;18540:19;18537:201;;;18613:19;;;18607:26;-1:-1:-1;;18696:1:1;18692:14;;;18708:3;18688:24;18684:37;18680:42;18665:58;18650:74;;18537:201;-1:-1:-1;;;;;18784:1:1;18768:14;;;18764:22;18751:36;;-1:-1:-1;17702:1352:1:o;19728:127::-;19789:10;19784:3;19780:20;19777:1;19770:31;19820:4;19817:1;19810:15;19844:4;19841:1;19834:15;21250:489;-1:-1:-1;;;;;21519:15:1;;;21501:34;;21571:15;;21566:2;21551:18;;21544:43;21618:2;21603:18;;21596:34;;;21666:3;21661:2;21646:18;;21639:31;;;21444:4;;21687:46;;21713:19;;21705:6;21687:46;:::i;:::-;21679:54;21250:489;-1:-1:-1;;;;;;21250:489:1:o;21744:249::-;21813:6;21866:2;21854:9;21845:7;21841:23;21837:32;21834:52;;;21882:1;21879;21872:12;21834:52;21914:9;21908:16;21933:30;21957:5;21933:30;:::i;21998:496::-;22177:3;22215:6;22209:13;22231:66;22290:6;22285:3;22278:4;22270:6;22266:17;22231:66;:::i;:::-;22360:13;;22319:16;;;;22382:70;22360:13;22319:16;22429:4;22417:17;;22382:70;:::i;:::-;22468:20;;21998:496;-1:-1:-1;;;;21998:496:1:o;22499:812::-;-1:-1:-1;;;22905:3:1;22898:38;22880:3;22965:6;22959:13;22981:75;23049:6;23044:2;23039:3;23035:12;23028:4;23020:6;23016:17;22981:75;:::i;:::-;-1:-1:-1;;;23115:2:1;23075:16;;;23107:11;;;23100:40;23165:13;;23187:76;23165:13;23249:2;23241:11;;23234:4;23222:17;;23187:76;:::i;:::-;23283:17;23302:2;23279:26;;22499:812;-1:-1:-1;;;;22499:812:1:o;23316:136::-;23355:3;23383:5;23373:39;;23392:18;;:::i;:::-;-1:-1:-1;;;23428:18:1;;23316:136::o
Swarm Source
ipfs://41643eae61331d57c58b83f684001cf2ece40bb7af97f9bca0d919bf389f1794
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.