ETH Price: $2,334.58 (-0.59%)

Token

CNP HUGS (CNPH)
 

Overview

Max Total Supply

6,666 CNPH

Holders

857

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
6 CNPH
0x0a074814c8ed6d96d31efa521c881d4d330d292f
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
CNPH

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license
File 1 of 42 : CNPH.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.11;

import "./MultiPhaseERC721Drop.sol";

contract CNPH is MultiPhaseERC721Drop {
    using TWStrings for uint256;

    constructor(
        string memory _name,
        string memory _symbol,
        address _royaltyRecipient,
        uint128 _royaltyBps,
        address _primarySaleRecipient
    )
        MultiPhaseERC721Drop(_name, _symbol, _royaltyRecipient, _royaltyBps, _primarySaleRecipient)
    {
        nextTokenIdToLazyMint = _startTokenId();
    }

    function _startTokenId() internal pure override returns (uint256) {
        return 1;
    }

    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        (uint256 batchId, ) = _getBatchId(_tokenId);
        string memory batchUri = _getBaseURI(_tokenId);

        if (isEncryptedBatch(batchId)) {
            return string(abi.encodePacked(batchUri, "0", ".json"));
        } else {
            return string(abi.encodePacked(batchUri, _tokenId.toString(), ".json"));
        }
    }
}

File 2 of 42 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./interface/IERC165.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;
    }
}

File 3 of 42 : ERC721AVirtualApprove.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

////////// CHANGELOG: turn `approve` to virtual //////////

import "./interface/IERC721A.sol";
import "./interface/IERC721Receiver.sol";
import "../lib/TWAddress.sol";
import "../openzeppelin-presets/utils/Context.sol";
import "../lib/TWStrings.sol";
import "./ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721A {
    using TWAddress for address;
    using TWStrings for uint256;

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _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 _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary 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 {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    TokenOwnership memory ownership = _ownerships[curr];
                    if (!ownership.burned) {
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        while (true) {
                            curr--;
                            ownership = _ownerships[curr];
                            if (ownership.addr != address(0)) {
                                return ownership;
                            }
                        }
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    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, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner)
            if (!isApprovedForAll(owner, _msgSender())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract())
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @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 (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, 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.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @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.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

        // 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 {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @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 {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

        // 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 {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @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 {}
}

File 4 of 42 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * [EIP](https://eips.ethereum.org/EIPS/eip-165).
 *
 * 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
     * [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 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 5 of 42 : IERC20.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
interface IERC20 {
    function totalSupply() external view returns (uint256);

    function balanceOf(address who) external view returns (uint256);

    function allowance(address owner, address spender) external view returns (uint256);

    function transfer(address to, uint256 value) external returns (bool);

    function approve(address spender, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 6 of 42 : IERC2981.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @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 payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 7 of 42 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface 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);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address);

    /**
     * @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
    ) external;

    /**
     * @dev Transfers `tokenId` token 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;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address);

    /**
     * @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 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);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 8 of 42 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import "./IERC721.sol";
import "./IERC721Metadata.sol";

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A is IERC721, IERC721Metadata {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * 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();

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);
}

File 9 of 42 : IERC721Metadata.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @title ERC-721 Non-Fungible Token Standard, optional metadata extension
/// @dev See https://eips.ethereum.org/EIPS/eip-721
///  Note: the ERC-165 identifier for this interface is 0x5b5e139f.
/* is ERC721 */
interface IERC721Metadata {
    /// @notice A descriptive name for a collection of NFTs in this contract
    function name() external view returns (string memory);

    /// @notice An abbreviated name for NFTs in this contract
    function symbol() external view returns (string memory);

    /// @notice A distinct Uniform Resource Identifier (URI) for a given asset.
    /// @dev Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC
    ///  3986. The URI may point to a JSON file that conforms to the "ERC721
    ///  Metadata JSON Schema".
    function tokenURI(uint256 _tokenId) external view returns (string memory);
}

File 10 of 42 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 42 : ContractMetadata.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IContractMetadata.sol";

/**
 *  @title   Contract Metadata
 *  @notice  Thirdweb's `ContractMetadata` is a contract extension for any base contracts. It lets you set a metadata URI
 *           for you contract.
 *           Additionally, `ContractMetadata` is necessary for NFT contracts that want royalties to get distributed on OpenSea.
 */

abstract contract ContractMetadata is IContractMetadata {
    /// @notice Returns the contract metadata URI.
    string public override contractURI;

    /**
     *  @notice         Lets a contract admin set the URI for contract-level metadata.
     *  @dev            Caller should be authorized to setup contractURI, e.g. contract admin.
     *                  See {_canSetContractURI}.
     *                  Emits {ContractURIUpdated Event}.
     *
     *  @param _uri     keccak256 hash of the role. e.g. keccak256("TRANSFER_ROLE")
     */
    function setContractURI(string memory _uri) external override {
        if (!_canSetContractURI()) {
            revert("Not authorized");
        }

        _setupContractURI(_uri);
    }

    /// @dev Lets a contract admin set the URI for contract-level metadata.
    function _setupContractURI(string memory _uri) internal {
        string memory prevURI = contractURI;
        contractURI = _uri;

        emit ContractURIUpdated(prevURI, _uri);
    }

    /// @dev Returns whether contract metadata can be set in the given execution context.
    function _canSetContractURI() internal view virtual returns (bool);
}

File 12 of 42 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import { OperatorFilterer } from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 13 of 42 : DelayedReveal.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IDelayedReveal.sol";

/**
 *  @title   Delayed Reveal
 *  @notice  Thirdweb's `DelayedReveal` is a contract extension for base NFT contracts. It lets you create batches of
 *           'delayed-reveal' NFTs. You can learn more about the usage of delayed reveal NFTs here - https://blog.thirdweb.com/delayed-reveal-nfts
 */

abstract contract DelayedReveal is IDelayedReveal {
    /// @dev Mapping from tokenId of a batch of tokens => to delayed reveal data.
    mapping(uint256 => bytes) public encryptedData;

    /// @dev Sets the delayed reveal data for a batchId.
    function _setEncryptedData(uint256 _batchId, bytes memory _encryptedData) internal {
        encryptedData[_batchId] = _encryptedData;
    }

    /**
     *  @notice             Returns revealed URI for a batch of NFTs.
     *  @dev                Reveal encrypted base URI for `_batchId` with caller/admin's `_key` used for encryption.
     *                      Reverts if there's no encrypted URI for `_batchId`.
     *                      See {encryptDecrypt}.
     *
     *  @param _batchId     ID of the batch for which URI is being revealed.
     *  @param _key         Secure key used by caller/admin for encryption of baseURI.
     *
     *  @return revealedURI Decrypted base URI.
     */
    function getRevealURI(uint256 _batchId, bytes calldata _key) public view returns (string memory revealedURI) {
        bytes memory data = encryptedData[_batchId];
        if (data.length == 0) {
            revert("Nothing to reveal");
        }

        (bytes memory encryptedURI, bytes32 provenanceHash) = abi.decode(data, (bytes, bytes32));

        revealedURI = string(encryptDecrypt(encryptedURI, _key));

        require(keccak256(abi.encodePacked(revealedURI, _key, block.chainid)) == provenanceHash, "Incorrect key");
    }

    /**
     *  @notice         Encrypt/decrypt data on chain.
     *  @dev            Encrypt/decrypt given `data` with `key`. Uses inline assembly.
     *                  See: https://ethereum.stackexchange.com/questions/69825/decrypt-message-on-chain
     *
     *  @param data     Bytes of data to encrypt/decrypt.
     *  @param key      Secure key used by caller for encryption/decryption.
     *
     *  @return result  Output after encryption/decryption of given data.
     */
    function encryptDecrypt(bytes memory data, bytes calldata key) public pure override returns (bytes memory result) {
        // Store data length on stack for later use
        uint256 length = data.length;

        // solhint-disable-next-line no-inline-assembly
        assembly {
            // Set result to free memory pointer
            result := mload(0x40)
            // Increase free memory pointer by lenght + 32
            mstore(0x40, add(add(result, length), 32))
            // Set result length
            mstore(result, length)
        }

        // Iterate over the data stepping by 32 bytes
        for (uint256 i = 0; i < length; i += 32) {
            // Generate hash of the key and offset
            bytes32 hash = keccak256(abi.encodePacked(key, i));

            bytes32 chunk;
            // solhint-disable-next-line no-inline-assembly
            assembly {
                // Read 32-bytes data chunk
                chunk := mload(add(data, add(i, 32)))
            }
            // XOR the chunk with hash
            chunk ^= hash;
            // solhint-disable-next-line no-inline-assembly
            assembly {
                // Write 32-byte encrypted chunk
                mstore(add(result, add(i, 32)), chunk)
            }
        }
    }

    /**
     *  @notice         Returns whether the relvant batch of NFTs is subject to a delayed reveal.
     *  @dev            Returns `true` if `_batchId`'s base URI is encrypted.
     *  @param _batchId ID of a batch of NFTs.
     */
    function isEncryptedBatch(uint256 _batchId) public view returns (bool) {
        return encryptedData[_batchId].length > 0;
    }
}

File 14 of 42 : Drop.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IDrop.sol";
import "../lib/MerkleProof.sol";

abstract contract Drop is IDrop {
    /*///////////////////////////////////////////////////////////////
                            State variables
    //////////////////////////////////////////////////////////////*/

    /// @dev The active conditions for claiming tokens.
    ClaimConditionList public claimCondition;

    /*///////////////////////////////////////////////////////////////
                            Drop logic
    //////////////////////////////////////////////////////////////*/

    /// @dev Lets an account claim tokens.
    function claim(
        address _receiver,
        uint256 _quantity,
        address _currency,
        uint256 _pricePerToken,
        AllowlistProof calldata _allowlistProof,
        bytes memory _data
    ) public payable virtual override {
        _beforeClaim(_receiver, _quantity, _currency, _pricePerToken, _allowlistProof, _data);

        uint256 activeConditionId = getActiveClaimConditionId();

        verifyClaim(activeConditionId, _dropMsgSender(), _quantity, _currency, _pricePerToken, _allowlistProof);

        // Update contract state.
        claimCondition.conditions[activeConditionId].supplyClaimed += _quantity;
        claimCondition.supplyClaimedByWallet[activeConditionId][_dropMsgSender()] += _quantity;

        // If there's a price, collect price.
        _collectPriceOnClaim(address(0), _quantity, _currency, _pricePerToken);

        // Mint the relevant tokens to claimer.
        uint256 startTokenId = _transferTokensOnClaim(_receiver, _quantity);

        emit TokensClaimed(activeConditionId, _dropMsgSender(), _receiver, startTokenId, _quantity);

        _afterClaim(_receiver, _quantity, _currency, _pricePerToken, _allowlistProof, _data);
    }

    /// @dev Lets a contract admin set claim conditions.
    function setClaimConditions(ClaimCondition[] calldata _conditions, bool _resetClaimEligibility)
        external
        virtual
        override
    {
        if (!_canSetClaimConditions()) {
            revert("Not authorized");
        }

        uint256 existingStartIndex = claimCondition.currentStartId;
        uint256 existingPhaseCount = claimCondition.count;

        /**
         *  The mapping `supplyClaimedByWallet` uses a claim condition's UID as a key.
         *
         *  If `_resetClaimEligibility == true`, we assign completely new UIDs to the claim
         *  conditions in `_conditions`, effectively resetting the restrictions on claims expressed
         *  by `supplyClaimedByWallet`.
         */
        uint256 newStartIndex = existingStartIndex;
        if (_resetClaimEligibility) {
            newStartIndex = existingStartIndex + existingPhaseCount;
        }

        claimCondition.count = _conditions.length;
        claimCondition.currentStartId = newStartIndex;

        uint256 lastConditionStartTimestamp;
        for (uint256 i = 0; i < _conditions.length; i++) {
            require(i == 0 || lastConditionStartTimestamp < _conditions[i].startTimestamp, "ST");

            uint256 supplyClaimedAlready = claimCondition.conditions[newStartIndex + i].supplyClaimed;
            if (supplyClaimedAlready > _conditions[i].maxClaimableSupply) {
                revert("max supply claimed");
            }

            claimCondition.conditions[newStartIndex + i] = _conditions[i];
            claimCondition.conditions[newStartIndex + i].supplyClaimed = supplyClaimedAlready;

            lastConditionStartTimestamp = _conditions[i].startTimestamp;
        }

        /**
         *  Gas refunds (as much as possible)
         *
         *  If `_resetClaimEligibility == true`, we assign completely new UIDs to the claim
         *  conditions in `_conditions`. So, we delete claim conditions with UID < `newStartIndex`.
         *
         *  If `_resetClaimEligibility == false`, and there are more existing claim conditions
         *  than in `_conditions`, we delete the existing claim conditions that don't get replaced
         *  by the conditions in `_conditions`.
         */
        if (_resetClaimEligibility) {
            for (uint256 i = existingStartIndex; i < newStartIndex; i++) {
                delete claimCondition.conditions[i];
            }
        } else {
            if (existingPhaseCount > _conditions.length) {
                for (uint256 i = _conditions.length; i < existingPhaseCount; i++) {
                    delete claimCondition.conditions[newStartIndex + i];
                }
            }
        }

        emit ClaimConditionsUpdated(_conditions, _resetClaimEligibility);
    }

    /// @dev Checks a request to claim NFTs against the active claim condition's criteria.
    function verifyClaim(
        uint256 _conditionId,
        address _claimer,
        uint256 _quantity,
        address _currency,
        uint256 _pricePerToken,
        AllowlistProof calldata _allowlistProof
    ) public view returns (bool isOverride) {
        ClaimCondition memory currentClaimPhase = claimCondition.conditions[_conditionId];
        uint256 claimLimit = currentClaimPhase.quantityLimitPerWallet;
        uint256 claimPrice = currentClaimPhase.pricePerToken;
        address claimCurrency = currentClaimPhase.currency;

        if (currentClaimPhase.merkleRoot != bytes32(0)) {
            (isOverride, ) = MerkleProof.verify(
                _allowlistProof.proof,
                currentClaimPhase.merkleRoot,
                keccak256(
                    abi.encodePacked(
                        _claimer,
                        _allowlistProof.quantityLimitPerWallet,
                        _allowlistProof.pricePerToken,
                        _allowlistProof.currency
                    )
                )
            );
        }

        if (isOverride) {
            claimLimit = _allowlistProof.quantityLimitPerWallet != 0
                ? _allowlistProof.quantityLimitPerWallet
                : claimLimit;
            claimPrice = _allowlistProof.pricePerToken != type(uint256).max
                ? _allowlistProof.pricePerToken
                : claimPrice;
            claimCurrency = _allowlistProof.pricePerToken != type(uint256).max && _allowlistProof.currency != address(0)
                ? _allowlistProof.currency
                : claimCurrency;
        }

        uint256 supplyClaimedByWallet = claimCondition.supplyClaimedByWallet[_conditionId][_claimer];

        if (_currency != claimCurrency || _pricePerToken != claimPrice) {
            revert("!PriceOrCurrency");
        }

        if (_quantity == 0 || (_quantity + supplyClaimedByWallet > claimLimit)) {
            revert("!Qty");
        }
        if (currentClaimPhase.supplyClaimed + _quantity > currentClaimPhase.maxClaimableSupply) {
            revert("!MaxSupply");
        }

        if (currentClaimPhase.startTimestamp > block.timestamp) {
            revert("cant claim yet");
        }
    }

    /// @dev At any given moment, returns the uid for the active claim condition.
    function getActiveClaimConditionId() public view returns (uint256) {
        for (uint256 i = claimCondition.currentStartId + claimCondition.count; i > claimCondition.currentStartId; i--) {
            if (block.timestamp >= claimCondition.conditions[i - 1].startTimestamp) {
                return i - 1;
            }
        }

        revert("!CONDITION.");
    }

    /// @dev Returns the claim condition at the given uid.
    function getClaimConditionById(uint256 _conditionId) external view returns (ClaimCondition memory condition) {
        condition = claimCondition.conditions[_conditionId];
    }

    /// @dev Returns the supply claimed by claimer for a given conditionId.
    function getSupplyClaimedByWallet(uint256 _conditionId, address _claimer)
        public
        view
        returns (uint256 supplyClaimedByWallet)
    {
        supplyClaimedByWallet = claimCondition.supplyClaimedByWallet[_conditionId][_claimer];
    }

    /*////////////////////////////////////////////////////////////////////
        Optional hooks that can be implemented in the derived contract
    ///////////////////////////////////////////////////////////////////*/

    /// @dev Exposes the ability to override the msg sender.
    function _dropMsgSender() internal virtual returns (address) {
        return msg.sender;
    }

    /// @dev Runs before every `claim` function call.
    function _beforeClaim(
        address _receiver,
        uint256 _quantity,
        address _currency,
        uint256 _pricePerToken,
        AllowlistProof calldata _allowlistProof,
        bytes memory _data
    ) internal virtual {}

    /// @dev Runs after every `claim` function call.
    function _afterClaim(
        address _receiver,
        uint256 _quantity,
        address _currency,
        uint256 _pricePerToken,
        AllowlistProof calldata _allowlistProof,
        bytes memory _data
    ) internal virtual {}

    /*///////////////////////////////////////////////////////////////
        Virtual functions: to be implemented in derived contract
    //////////////////////////////////////////////////////////////*/

    /// @dev Collects and distributes the primary sale value of NFTs being claimed.
    function _collectPriceOnClaim(
        address _primarySaleRecipient,
        uint256 _quantityToClaim,
        address _currency,
        uint256 _pricePerToken
    ) internal virtual;

    /// @dev Transfers the NFTs being claimed.
    function _transferTokensOnClaim(address _to, uint256 _quantityBeingClaimed)
        internal
        virtual
        returns (uint256 startTokenId);

    /// @dev Determine what wallet can update claim conditions
    function _canSetClaimConditions() internal view virtual returns (bool);
}

File 15 of 42 : Multicall.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "../lib/TWAddress.sol";
import "./interface/IMulticall.sol";

/**
 * @dev Provides a function to batch together multiple calls in a single external call.
 *
 * _Available since v4.1._
 */
contract Multicall is IMulticall {
    /**
     *  @notice Receives and executes a batch of function calls on this contract.
     *  @dev Receives and executes a batch of function calls on this contract.
     *
     *  @param data The bytes data that makes up the batch of function calls to execute.
     *  @return results The bytes data that makes up the result of the batch of function calls executed.
     */
    function multicall(bytes[] calldata data) external virtual override returns (bytes[] memory results) {
        results = new bytes[](data.length);
        for (uint256 i = 0; i < data.length; i++) {
            results[i] = TWAddress.functionDelegateCall(address(this), data[i]);
        }
        return results;
    }
}

File 16 of 42 : OperatorFilterToggle.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IOperatorFilterToggle.sol";

abstract contract OperatorFilterToggle is IOperatorFilterToggle {
    bool public operatorRestriction;

    function setOperatorRestriction(bool _restriction) external {
        require(_canSetOperatorRestriction(), "Not authorized to set operator restriction.");
        _setOperatorRestriction(_restriction);
    }

    function _setOperatorRestriction(bool _restriction) internal {
        operatorRestriction = _restriction;
        emit OperatorRestriction(_restriction);
    }

    function _canSetOperatorRestriction() internal virtual returns (bool);
}

File 17 of 42 : OperatorFilterer.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IOperatorFilterRegistry.sol";
import "./OperatorFilterToggle.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */

abstract contract OperatorFilterer is OperatorFilterToggle {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (operatorRestriction) {
            if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
                if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                    revert OperatorNotAllowed(operator);
                }
            }
        }
    }
}

File 18 of 42 : Ownable.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IOwnable.sol";

/**
 *  @title   Ownable
 *  @notice  Thirdweb's `Ownable` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *           who the 'owner' of the inheriting smart contract is, and lets the inheriting contract perform conditional logic that uses
 *           information about who the contract's owner is.
 */

abstract contract Ownable is IOwnable {
    /// @dev Owner of the contract (purpose: OpenSea compatibility)
    address private _owner;

    /// @dev Reverts if caller is not the owner.
    modifier onlyOwner() {
        if (msg.sender != _owner) {
            revert("Not authorized");
        }
        _;
    }

    /**
     *  @notice Returns the owner of the contract.
     */
    function owner() public view override returns (address) {
        return _owner;
    }

    /**
     *  @notice Lets an authorized wallet set a new owner for the contract.
     *  @param _newOwner The address to set as the new owner of the contract.
     */
    function setOwner(address _newOwner) external override {
        if (!_canSetOwner()) {
            revert("Not authorized");
        }
        _setupOwner(_newOwner);
    }

    /// @dev Lets a contract admin set a new owner for the contract. The new owner must be a contract admin.
    function _setupOwner(address _newOwner) internal {
        address _prevOwner = _owner;
        _owner = _newOwner;

        emit OwnerUpdated(_prevOwner, _newOwner);
    }

    /// @dev Returns whether owner can be set in the given execution context.
    function _canSetOwner() internal view virtual returns (bool);
}

File 19 of 42 : PrimarySale.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IPrimarySale.sol";

/**
 *  @title   Primary Sale
 *  @notice  Thirdweb's `PrimarySale` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *           the recipient of primary sales, and lets the inheriting contract perform conditional logic that uses information about
 *           primary sales, if desired.
 */

abstract contract PrimarySale is IPrimarySale {
    /// @dev The address that receives all primary sales value.
    address private recipient;

    /// @dev Returns primary sale recipient address.
    function primarySaleRecipient() public view override returns (address) {
        return recipient;
    }

    /**
     *  @notice         Updates primary sale recipient.
     *  @dev            Caller should be authorized to set primary sales info.
     *                  See {_canSetPrimarySaleRecipient}.
     *                  Emits {PrimarySaleRecipientUpdated Event}; See {_setupPrimarySaleRecipient}.
     *
     *  @param _saleRecipient   Address to be set as new recipient of primary sales.
     */
    function setPrimarySaleRecipient(address _saleRecipient) external override {
        if (!_canSetPrimarySaleRecipient()) {
            revert("Not authorized");
        }
        _setupPrimarySaleRecipient(_saleRecipient);
    }

    /// @dev Lets a contract admin set the recipient for all primary sales.
    function _setupPrimarySaleRecipient(address _saleRecipient) internal {
        recipient = _saleRecipient;
        emit PrimarySaleRecipientUpdated(_saleRecipient);
    }

    /// @dev Returns whether primary sale recipient can be set in the given execution context.
    function _canSetPrimarySaleRecipient() internal view virtual returns (bool);
}

File 20 of 42 : Royalty.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./interface/IRoyalty.sol";

/**
 *  @title   Royalty
 *  @notice  Thirdweb's `Royalty` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *           the recipient of royalty fee and the royalty fee basis points, and lets the inheriting contract perform conditional logic
 *           that uses information about royalty fees, if desired.
 *
 *  @dev     The `Royalty` contract is ERC2981 compliant.
 */

abstract contract Royalty is IRoyalty {
    /// @dev The (default) address that receives all royalty value.
    address private royaltyRecipient;

    /// @dev The (default) % of a sale to take as royalty (in basis points).
    uint16 private royaltyBps;

    /// @dev Token ID => royalty recipient and bps for token
    mapping(uint256 => RoyaltyInfo) private royaltyInfoForToken;

    /**
     *  @notice   View royalty info for a given token and sale price.
     *  @dev      Returns royalty amount and recipient for `tokenId` and `salePrice`.
     *  @param tokenId          The tokenID of the NFT for which to query royalty info.
     *  @param salePrice        Sale price of the token.
     *
     *  @return receiver        Address of royalty recipient account.
     *  @return royaltyAmount   Royalty amount calculated at current royaltyBps value.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        virtual
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        (address recipient, uint256 bps) = getRoyaltyInfoForToken(tokenId);
        receiver = recipient;
        royaltyAmount = (salePrice * bps) / 10_000;
    }

    /**
     *  @notice          View royalty info for a given token.
     *  @dev             Returns royalty recipient and bps for `_tokenId`.
     *  @param _tokenId  The tokenID of the NFT for which to query royalty info.
     */
    function getRoyaltyInfoForToken(uint256 _tokenId) public view override returns (address, uint16) {
        RoyaltyInfo memory royaltyForToken = royaltyInfoForToken[_tokenId];

        return
            royaltyForToken.recipient == address(0)
                ? (royaltyRecipient, uint16(royaltyBps))
                : (royaltyForToken.recipient, uint16(royaltyForToken.bps));
    }

    /**
     *  @notice Returns the defualt royalty recipient and BPS for this contract's NFTs.
     */
    function getDefaultRoyaltyInfo() external view override returns (address, uint16) {
        return (royaltyRecipient, uint16(royaltyBps));
    }

    /**
     *  @notice         Updates default royalty recipient and bps.
     *  @dev            Caller should be authorized to set royalty info.
     *                  See {_canSetRoyaltyInfo}.
     *                  Emits {DefaultRoyalty Event}; See {_setupDefaultRoyaltyInfo}.
     *
     *  @param _royaltyRecipient   Address to be set as default royalty recipient.
     *  @param _royaltyBps         Updated royalty bps.
     */
    function setDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps) external override {
        if (!_canSetRoyaltyInfo()) {
            revert("Not authorized");
        }

        _setupDefaultRoyaltyInfo(_royaltyRecipient, _royaltyBps);
    }

    /// @dev Lets a contract admin update the default royalty recipient and bps.
    function _setupDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps) internal {
        if (_royaltyBps > 10_000) {
            revert("Exceeds max bps");
        }

        royaltyRecipient = _royaltyRecipient;
        royaltyBps = uint16(_royaltyBps);

        emit DefaultRoyalty(_royaltyRecipient, _royaltyBps);
    }

    /**
     *  @notice         Updates default royalty recipient and bps for a particular token.
     *  @dev            Sets royalty info for `_tokenId`. Caller should be authorized to set royalty info.
     *                  See {_canSetRoyaltyInfo}.
     *                  Emits {RoyaltyForToken Event}; See {_setupRoyaltyInfoForToken}.
     *
     *  @param _recipient   Address to be set as royalty recipient for given token Id.
     *  @param _bps         Updated royalty bps for the token Id.
     */
    function setRoyaltyInfoForToken(
        uint256 _tokenId,
        address _recipient,
        uint256 _bps
    ) external override {
        if (!_canSetRoyaltyInfo()) {
            revert("Not authorized");
        }

        _setupRoyaltyInfoForToken(_tokenId, _recipient, _bps);
    }

    /// @dev Lets a contract admin set the royalty recipient and bps for a particular token Id.
    function _setupRoyaltyInfoForToken(
        uint256 _tokenId,
        address _recipient,
        uint256 _bps
    ) internal {
        if (_bps > 10_000) {
            revert("Exceeds max bps");
        }

        royaltyInfoForToken[_tokenId] = RoyaltyInfo({ recipient: _recipient, bps: _bps });

        emit RoyaltyForToken(_tokenId, _recipient, _bps);
    }

    /// @dev Returns whether royalty info can be set in the given execution context.
    function _canSetRoyaltyInfo() internal view virtual returns (bool);
}

File 21 of 42 : IClaimCondition.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  The interface `IClaimCondition` is written for thirdweb's 'Drop' contracts, which are distribution mechanisms for tokens.
 *
 *  A claim condition defines criteria under which accounts can mint tokens. Claim conditions can be overwritten
 *  or added to by the contract admin. At any moment, there is only one active claim condition.
 */

interface IClaimCondition {
    /**
     *  @notice The criteria that make up a claim condition.
     *
     *  @param startTimestamp                 The unix timestamp after which the claim condition applies.
     *                                        The same claim condition applies until the `startTimestamp`
     *                                        of the next claim condition.
     *
     *  @param maxClaimableSupply             The maximum total number of tokens that can be claimed under
     *                                        the claim condition.
     *
     *  @param supplyClaimed                  At any given point, the number of tokens that have been claimed
     *                                        under the claim condition.
     *
     *  @param quantityLimitPerWallet         The maximum number of tokens that can be claimed by a wallet.
     *
     *  @param merkleRoot                     The allowlist of addresses that can claim tokens under the claim
     *                                        condition.
     *
     *  @param pricePerToken                  The price required to pay per token claimed.
     *
     *  @param currency                       The currency in which the `pricePerToken` must be paid.
     *
     *  @param metadata                       Claim condition metadata.
     */
    struct ClaimCondition {
        uint256 startTimestamp;
        uint256 maxClaimableSupply;
        uint256 supplyClaimed;
        uint256 quantityLimitPerWallet;
        bytes32 merkleRoot;
        uint256 pricePerToken;
        address currency;
        string metadata;
    }
}

File 22 of 42 : IClaimConditionMultiPhase.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./IClaimCondition.sol";

/**
 *  The interface `IClaimConditionMultiPhase` is written for thirdweb's 'Drop' contracts, which are distribution mechanisms for tokens.
 *
 *  An authorized wallet can set a series of claim conditions, ordered by their respective `startTimestamp`.
 *  A claim condition defines criteria under which accounts can mint tokens. Claim conditions can be overwritten
 *  or added to by the contract admin. At any moment, there is only one active claim condition.
 */

interface IClaimConditionMultiPhase is IClaimCondition {
    /**
     *  @notice The set of all claim conditions, at any given moment.
     *  Claim Phase ID = [currentStartId, currentStartId + length - 1];
     *
     *  @param currentStartId           The uid for the first claim condition amongst the current set of
     *                                  claim conditions. The uid for each next claim condition is one
     *                                  more than the previous claim condition's uid.
     *
     *  @param count                    The total number of phases / claim conditions in the list
     *                                  of claim conditions.
     *
     *  @param conditions                   The claim conditions at a given uid. Claim conditions
     *                                  are ordered in an ascending order by their `startTimestamp`.
     *
     *  @param supplyClaimedByWallet    Map from a claim condition uid and account to supply claimed by account.
     */
    struct ClaimConditionList {
        uint256 currentStartId;
        uint256 count;
        mapping(uint256 => ClaimCondition) conditions;
        mapping(uint256 => mapping(address => uint256)) supplyClaimedByWallet;
    }
}

File 23 of 42 : IContractMetadata.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  Thirdweb's `ContractMetadata` is a contract extension for any base contracts. It lets you set a metadata URI
 *  for you contract.
 *
 *  Additionally, `ContractMetadata` is necessary for NFT contracts that want royalties to get distributed on OpenSea.
 */

interface IContractMetadata {
    /// @dev Returns the metadata URI of the contract.
    function contractURI() external view returns (string memory);

    /**
     *  @dev Sets contract URI for the storefront-level metadata of the contract.
     *       Only module admin can call this function.
     */
    function setContractURI(string calldata _uri) external;

    /// @dev Emitted when the contract URI is updated.
    event ContractURIUpdated(string prevURI, string newURI);
}

File 24 of 42 : IDelayedReveal.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  Thirdweb's `DelayedReveal` is a contract extension for base NFT contracts. It lets you create batches of
 *  'delayed-reveal' NFTs. You can learn more about the usage of delayed reveal NFTs here - https://blog.thirdweb.com/delayed-reveal-nfts
 */

interface IDelayedReveal {
    /// @dev Emitted when tokens are revealed.
    event TokenURIRevealed(uint256 indexed index, string revealedURI);

    /**
     *  @notice Reveals a batch of delayed reveal NFTs.
     *
     *  @param identifier The ID for the batch of delayed-reveal NFTs to reveal.
     *
     *  @param key        The key with which the base URI for the relevant batch of NFTs was encrypted.
     */
    function reveal(uint256 identifier, bytes calldata key) external returns (string memory revealedURI);

    /**
     *  @notice Performs XOR encryption/decryption.
     *
     *  @param data The data to encrypt. In the case of delayed-reveal NFTs, this is the "revealed" state
     *              base URI of the relevant batch of NFTs.
     *
     *  @param key  The key with which to encrypt data
     */
    function encryptDecrypt(bytes memory data, bytes calldata key) external pure returns (bytes memory result);
}

File 25 of 42 : IDrop.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "./IClaimConditionMultiPhase.sol";

/**
 *  The interface `IDrop` is written for thirdweb's 'Drop' contracts, which are distribution mechanisms for tokens.
 *
 *  An authorized wallet can set a series of claim conditions, ordered by their respective `startTimestamp`.
 *  A claim condition defines criteria under which accounts can mint tokens. Claim conditions can be overwritten
 *  or added to by the contract admin. At any moment, there is only one active claim condition.
 */

interface IDrop is IClaimConditionMultiPhase {
    /**
     *  @param proof Prood of concerned wallet's inclusion in an allowlist.
     *  @param quantityLimitPerWallet The total quantity of tokens the allowlisted wallet is eligible to claim over time.
     *  @param pricePerToken The price per token the allowlisted wallet must pay to claim tokens.
     *  @param currency The currency in which the allowlisted wallet must pay the price for claiming tokens.
     */
    struct AllowlistProof {
        bytes32[] proof;
        uint256 quantityLimitPerWallet;
        uint256 pricePerToken;
        address currency;
    }

    /// @notice Emitted when tokens are claimed via `claim`.
    event TokensClaimed(
        uint256 indexed claimConditionIndex,
        address indexed claimer,
        address indexed receiver,
        uint256 startTokenId,
        uint256 quantityClaimed
    );

    /// @notice Emitted when the contract's claim conditions are updated.
    event ClaimConditionsUpdated(ClaimCondition[] claimConditions, bool resetEligibility);

    /**
     *  @notice Lets an account claim a given quantity of NFTs.
     *
     *  @param receiver                       The receiver of the NFTs to claim.
     *  @param quantity                       The quantity of NFTs to claim.
     *  @param currency                       The currency in which to pay for the claim.
     *  @param pricePerToken                  The price per token to pay for the claim.
     *  @param allowlistProof                 The proof of the claimer's inclusion in the merkle root allowlist
     *                                        of the claim conditions that apply.
     *  @param data                           Arbitrary bytes data that can be leveraged in the implementation of this interface.
     */
    function claim(
        address receiver,
        uint256 quantity,
        address currency,
        uint256 pricePerToken,
        AllowlistProof calldata allowlistProof,
        bytes memory data
    ) external payable;

    /**
     *  @notice Lets a contract admin (account with `DEFAULT_ADMIN_ROLE`) set claim conditions.
     *
     *  @param phases                   Claim conditions in ascending order by `startTimestamp`.
     *
     *  @param resetClaimEligibility    Whether to honor the restrictions applied to wallets who have claimed tokens in the current conditions,
     *                                  in the new claim conditions being set.
     *
     */
    function setClaimConditions(ClaimCondition[] calldata phases, bool resetClaimEligibility) external;
}

File 26 of 42 : ILazyMint.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  Thirdweb's `LazyMint` is a contract extension for any base NFT contract. It lets you 'lazy mint' any number of NFTs
 *  at once. Here, 'lazy mint' means defining the metadata for particular tokenIds of your NFT contract, without actually
 *  minting a non-zero balance of NFTs of those tokenIds.
 */

interface ILazyMint {
    /// @dev Emitted when tokens are lazy minted.
    event TokensLazyMinted(uint256 indexed startTokenId, uint256 endTokenId, string baseURI, bytes encryptedBaseURI);

    /**
     *  @notice Lazy mints a given amount of NFTs.
     *
     *  @param amount           The number of NFTs to lazy mint.
     *
     *  @param baseURIForTokens The base URI for the 'n' number of NFTs being lazy minted, where the metadata for each
     *                          of those NFTs is `${baseURIForTokens}/${tokenId}`.
     *
     *  @param extraData        Additional bytes data to be used at the discretion of the consumer of the contract.
     *
     *  @return batchId         A unique integer identifier for the batch of NFTs lazy minted together.
     */
    function lazyMint(
        uint256 amount,
        string calldata baseURIForTokens,
        bytes calldata extraData
    ) external returns (uint256 batchId);
}

File 27 of 42 : IMulticall.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 * @dev Provides a function to batch together multiple calls in a single external call.
 *
 * _Available since v4.1._
 */
interface IMulticall {
    /**
     * @dev Receives and executes a batch of function calls on this contract.
     */
    function multicall(bytes[] calldata data) external returns (bytes[] memory results);
}

File 28 of 42 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    function register(address registrant) external;

    function registerAndSubscribe(address registrant, address subscription) external;

    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    function unregister(address addr) external;

    function updateOperator(
        address registrant,
        address operator,
        bool filtered
    ) external;

    function updateOperators(
        address registrant,
        address[] calldata operators,
        bool filtered
    ) external;

    function updateCodeHash(
        address registrant,
        bytes32 codehash,
        bool filtered
    ) external;

    function updateCodeHashes(
        address registrant,
        bytes32[] calldata codeHashes,
        bool filtered
    ) external;

    function subscribe(address registrant, address registrantToSubscribe) external;

    function unsubscribe(address registrant, bool copyExistingEntries) external;

    function subscriptionOf(address addr) external returns (address registrant);

    function subscribers(address registrant) external returns (address[] memory);

    function subscriberAt(address registrant, uint256 index) external returns (address);

    function copyEntriesOf(address registrant, address registrantToCopy) external;

    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    function filteredOperators(address addr) external returns (address[] memory);

    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    function isRegistered(address addr) external returns (bool);

    function codeHashOf(address addr) external returns (bytes32);
}

File 29 of 42 : IOperatorFilterToggle.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

interface IOperatorFilterToggle {
    event OperatorRestriction(bool restriction);

    function operatorRestriction() external view returns (bool);

    function setOperatorRestriction(bool restriction) external;
}

File 30 of 42 : IOwnable.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  Thirdweb's `Ownable` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *  who the 'owner' of the inheriting smart contract is, and lets the inheriting contract perform conditional logic that uses
 *  information about who the contract's owner is.
 */

interface IOwnable {
    /// @dev Returns the owner of the contract.
    function owner() external view returns (address);

    /// @dev Lets a module admin set a new owner for the contract. The new owner must be a module admin.
    function setOwner(address _newOwner) external;

    /// @dev Emitted when a new Owner is set.
    event OwnerUpdated(address indexed prevOwner, address indexed newOwner);
}

File 31 of 42 : IPrimarySale.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  Thirdweb's `Primary` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *  the recipient of primary sales, and lets the inheriting contract perform conditional logic that uses information about
 *  primary sales, if desired.
 */

interface IPrimarySale {
    /// @dev The adress that receives all primary sales value.
    function primarySaleRecipient() external view returns (address);

    /// @dev Lets a module admin set the default recipient of all primary sales.
    function setPrimarySaleRecipient(address _saleRecipient) external;

    /// @dev Emitted when a new sale recipient is set.
    event PrimarySaleRecipientUpdated(address indexed recipient);
}

File 32 of 42 : IRoyalty.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "../../eip/interface/IERC2981.sol";

/**
 *  Thirdweb's `Royalty` is a contract extension to be used with any base contract. It exposes functions for setting and reading
 *  the recipient of royalty fee and the royalty fee basis points, and lets the inheriting contract perform conditional logic
 *  that uses information about royalty fees, if desired.
 *
 *  The `Royalty` contract is ERC2981 compliant.
 */

interface IRoyalty is IERC2981 {
    struct RoyaltyInfo {
        address recipient;
        uint256 bps;
    }

    /// @dev Returns the royalty recipient and fee bps.
    function getDefaultRoyaltyInfo() external view returns (address, uint16);

    /// @dev Lets a module admin update the royalty bps and recipient.
    function setDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps) external;

    /// @dev Lets a module admin set the royalty recipient for a particular token Id.
    function setRoyaltyInfoForToken(
        uint256 tokenId,
        address recipient,
        uint256 bps
    ) external;

    /// @dev Returns the royalty recipient for a particular token Id.
    function getRoyaltyInfoForToken(uint256 tokenId) external view returns (address, uint16);

    /// @dev Emitted when royalty info is updated.
    event DefaultRoyalty(address indexed newRoyaltyRecipient, uint256 newRoyaltyBps);

    /// @dev Emitted when royalty recipient for tokenId is set
    event RoyaltyForToken(uint256 indexed tokenId, address indexed royaltyRecipient, uint256 royaltyBps);
}

File 33 of 42 : IWETH.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

interface IWETH {
    function deposit() external payable;

    function withdraw(uint256 amount) external;

    function transfer(address to, uint256 value) external returns (bool);
}

File 34 of 42 : CurrencyTransferLib.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

// Helper interfaces
import { IWETH } from "../interfaces/IWETH.sol";

import "../openzeppelin-presets/token/ERC20/utils/SafeERC20.sol";

library CurrencyTransferLib {
    using SafeERC20 for IERC20;

    /// @dev The address interpreted as native token of the chain.
    address public constant NATIVE_TOKEN = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

    /// @dev Transfers a given amount of currency.
    function transferCurrency(
        address _currency,
        address _from,
        address _to,
        uint256 _amount
    ) internal {
        if (_amount == 0) {
            return;
        }

        if (_currency == NATIVE_TOKEN) {
            safeTransferNativeToken(_to, _amount);
        } else {
            safeTransferERC20(_currency, _from, _to, _amount);
        }
    }

    /// @dev Transfers a given amount of currency. (With native token wrapping)
    function transferCurrencyWithWrapper(
        address _currency,
        address _from,
        address _to,
        uint256 _amount,
        address _nativeTokenWrapper
    ) internal {
        if (_amount == 0) {
            return;
        }

        if (_currency == NATIVE_TOKEN) {
            if (_from == address(this)) {
                // withdraw from weth then transfer withdrawn native token to recipient
                IWETH(_nativeTokenWrapper).withdraw(_amount);
                safeTransferNativeTokenWithWrapper(_to, _amount, _nativeTokenWrapper);
            } else if (_to == address(this)) {
                // store native currency in weth
                require(_amount == msg.value, "msg.value != amount");
                IWETH(_nativeTokenWrapper).deposit{ value: _amount }();
            } else {
                safeTransferNativeTokenWithWrapper(_to, _amount, _nativeTokenWrapper);
            }
        } else {
            safeTransferERC20(_currency, _from, _to, _amount);
        }
    }

    /// @dev Transfer `amount` of ERC20 token from `from` to `to`.
    function safeTransferERC20(
        address _currency,
        address _from,
        address _to,
        uint256 _amount
    ) internal {
        if (_from == _to) {
            return;
        }

        if (_from == address(this)) {
            IERC20(_currency).safeTransfer(_to, _amount);
        } else {
            IERC20(_currency).safeTransferFrom(_from, _to, _amount);
        }
    }

    /// @dev Transfers `amount` of native token to `to`.
    function safeTransferNativeToken(address to, uint256 value) internal {
        // solhint-disable avoid-low-level-calls
        // slither-disable-next-line low-level-calls
        (bool success, ) = to.call{ value: value }("");
        require(success, "native token transfer failed");
    }

    /// @dev Transfers `amount` of native token to `to`. (With native token wrapping)
    function safeTransferNativeTokenWithWrapper(
        address to,
        uint256 value,
        address _nativeTokenWrapper
    ) internal {
        // solhint-disable avoid-low-level-calls
        // slither-disable-next-line low-level-calls
        (bool success, ) = to.call{ value: value }("");
        if (!success) {
            IWETH(_nativeTokenWrapper).deposit{ value: value }();
            IERC20(_nativeTokenWrapper).safeTransfer(to, value);
        }
    }
}

File 35 of 42 : MerkleProof.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * Source: https://github.com/ensdomains/governance/blob/master/contracts/MerkleProof.sol
 */
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, uint256) {
        bytes32 computedHash = leaf;
        uint256 index = 0;

        for (uint256 i = 0; i < proof.length; i++) {
            index *= 2;
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
                index += 1;
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return (computedHash == root, index);
    }
}

File 36 of 42 : TWAddress.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 * @dev Collection of functions related to the address type
 */
library TWAddress {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * [EIP1884](https://eips.ethereum.org/EIPS/eip-1884) increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 37 of 42 : TWStrings.sol
// SPDX-License-Identifier: Apache 2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 * @dev String operations.
 */
library TWStrings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @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] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 38 of 42 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../../../../eip/interface/IERC20.sol";
import "../../../../lib/TWAddress.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using TWAddress for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 39 of 42 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 40 of 42 : ExtendedBatchMintMetadata.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

/**
 *  @title   Batch-mint Metadata
 *  @notice  The `BatchMintMetadata` is a contract extension for any base NFT contract. It lets the smart contract
 *           using this extension set metadata for `n` number of NFTs all at once. This is enabled by storing a single
 *           base URI for a batch of `n` NFTs, where the metadata for each NFT in a relevant batch is `baseURI/tokenId`.
 */

abstract contract ExtendedBatchMintMetadata {
    /// @dev Largest tokenId of each batch of tokens with the same baseURI.
    uint256[] private batchIds;

    /// @dev Mapping from id of a batch of tokens => to base URI for the respective batch of tokens.
    mapping(uint256 => string) private baseURI;

    /// @dev Emitted when the base URI is updated.
    event BaseURIUpdated(string baseURI);

    /// @dev Sets the base URI for all the batches of tokens.
    function setBaseURI(string memory _baseURI) external {
        if (!_canSetBaseURI()) {
            revert("Not authorized");
        }

        uint256 numOfTokenBatches = getBaseURICount();
        uint256[] memory indices = batchIds;

        for (uint256 i = 0; i < numOfTokenBatches; i += 1) {
            baseURI[indices[i]] = _baseURI;
        }

        emit BaseURIUpdated(_baseURI);
    }

    /**
     *  @notice         Returns the count of batches of NFTs.
     *  @dev            Each batch of tokens has an in ID and an associated `baseURI`.
     *                  See {batchIds}.
     */
    function getBaseURICount() public view returns (uint256) {
        return batchIds.length;
    }

    /**
     *  @notice         Returns the ID for the batch of tokens the given tokenId belongs to.
     *  @dev            See {getBaseURICount}.
     *  @param _index   ID of a token.
     */
    function getBatchIdAtIndex(uint256 _index) public view returns (uint256) {
        if (_index >= getBaseURICount()) {
            revert("Invalid index");
        }
        return batchIds[_index];
    }

    /// @dev Returns the id for the batch of tokens the given tokenId belongs to.
    function _getBatchId(uint256 _tokenId) internal view returns (uint256 batchId, uint256 index) {
        uint256 numOfTokenBatches = getBaseURICount();
        uint256[] memory indices = batchIds;

        for (uint256 i = 0; i < numOfTokenBatches; i += 1) {
            if (_tokenId < indices[i]) {
                index = i;
                batchId = indices[i];

                return (batchId, index);
            }
        }

        revert("Invalid tokenId");
    }

    /// @dev Returns the baseURI for a token. The intended metadata URI for the token is baseURI + tokenId.
    function _getBaseURI(uint256 _tokenId) internal view returns (string memory) {
        uint256 numOfTokenBatches = getBaseURICount();
        uint256[] memory indices = batchIds;

        for (uint256 i = 0; i < numOfTokenBatches; i += 1) {
            if (_tokenId < indices[i]) {
                return baseURI[indices[i]];
            }
        }
        revert("Invalid tokenId");
    }

    /// @dev Sets the base URI for the batch of tokens with the given batchId.
    function _setBaseURI(uint256 _batchId, string memory _baseURI) internal {
        baseURI[_batchId] = _baseURI;
    }

    /// @dev Mints a batch of tokenIds and associates a common baseURI to all those Ids.
    function _batchMintMetadata(
        uint256 _startId,
        uint256 _amountToMint,
        string memory _baseURIForTokens
    ) internal returns (uint256 nextTokenIdToMint, uint256 batchId) {
        batchId = _startId + _amountToMint;
        nextTokenIdToMint = batchId;

        batchIds.push(batchId);

        baseURI[batchId] = _baseURIForTokens;
    }

    /// @dev Returns whether base URIs can be set in the given execution context.
    function _canSetBaseURI() internal view virtual returns (bool);
}

File 41 of 42 : ExtendedLazyMint.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import "@thirdweb-dev/contracts/extension/interface/ILazyMint.sol";
import "./ExtendedBatchMintMetadata.sol";

/**
 *  The `LazyMint` is a contract extension for any base NFT contract. It lets you 'lazy mint' any number of NFTs
 *  at once. Here, 'lazy mint' means defining the metadata for particular tokenIds of your NFT contract, without actually
 *  minting a non-zero balance of NFTs of those tokenIds.
 */

abstract contract ExtendedLazyMint is ILazyMint, ExtendedBatchMintMetadata {
    /// @notice The tokenId assigned to the next new NFT to be lazy minted.
    uint256 internal nextTokenIdToLazyMint;

    /**
     *  @notice                  Lets an authorized address lazy mint a given amount of NFTs.
     *
     *  @param _amount           The number of NFTs to lazy mint.
     *  @param _baseURIForTokens The base URI for the 'n' number of NFTs being lazy minted, where the metadata for each
     *                           of those NFTs is `${baseURIForTokens}/${tokenId}`.
     *  @param _data             Additional bytes data to be used at the discretion of the consumer of the contract.
     *  @return batchId          A unique integer identifier for the batch of NFTs lazy minted together.
     */
    function lazyMint(
        uint256 _amount,
        string calldata _baseURIForTokens,
        bytes calldata _data
    ) public virtual override returns (uint256 batchId) {
        if (!_canLazyMint()) {
            revert("Not authorized");
        }

        if (_amount == 0) {
            revert("0 amt");
        }

        uint256 startId = nextTokenIdToLazyMint;

        (nextTokenIdToLazyMint, batchId) = _batchMintMetadata(startId, _amount, _baseURIForTokens);

        emit TokensLazyMinted(startId, startId + _amount - 1, _baseURIForTokens, _data);

        return batchId;
    }

    /// @dev Returns whether lazy minting can be performed in the given execution context.
    function _canLazyMint() internal view virtual returns (bool);
}

File 42 of 42 : MultiPhaseERC721Drop.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;

/// @author thirdweb

import { ERC721A } from "@thirdweb-dev/contracts/eip/ERC721AVirtualApprove.sol";

import "@thirdweb-dev/contracts/extension/ContractMetadata.sol";
import "@thirdweb-dev/contracts/extension/Multicall.sol";
import "@thirdweb-dev/contracts/extension/Ownable.sol";
import "@thirdweb-dev/contracts/extension/Royalty.sol";
import "./ExtendedBatchMintMetadata.sol";
import "@thirdweb-dev/contracts/extension/PrimarySale.sol";
import "@thirdweb-dev/contracts/extension/Drop.sol";
import "./ExtendedLazyMint.sol";
import "@thirdweb-dev/contracts/extension/DelayedReveal.sol";
import "@thirdweb-dev/contracts/extension/DefaultOperatorFilterer.sol";

import "@thirdweb-dev/contracts/lib/TWStrings.sol";
import "@thirdweb-dev/contracts/lib/CurrencyTransferLib.sol";

/**
 *      BASE:      ERC721A
 *      EXTENSION: DropSinglePhase
 *
 *  The `ERC721Drop` contract implements the ERC721 NFT standard, along with the ERC721A optimization to the standard.
 *  It includes the following additions to standard ERC721 logic:
 *
 *      - Contract metadata for royalty support on platforms such as OpenSea that use
 *        off-chain information to distribute roaylties.
 *
 *      - Ownership of the contract, with the ability to restrict certain functions to
 *        only be called by the contract's owner.
 *
 *      - Multicall capability to perform multiple actions atomically
 *
 *      - EIP 2981 compliance for royalty support on NFT marketplaces.
 *
 *  The `drop` mechanism in the `DropSinglePhase` extension is a distribution mechanism for lazy minted tokens. It lets
 *  you set restrictions such as a price to charge, an allowlist etc. when an address atttempts to mint lazy minted tokens.
 *
 *  The `ERC721Drop` contract lets you lazy mint tokens, and distribute those lazy minted tokens via the drop mechanism.
 */

contract MultiPhaseERC721Drop is
    ERC721A,
    ContractMetadata,
    Multicall,
    Ownable,
    Royalty,
    ExtendedBatchMintMetadata,
    PrimarySale,
    ExtendedLazyMint,
    DelayedReveal,
    DefaultOperatorFilterer,
    Drop
{
    using TWStrings for uint256;

    /*///////////////////////////////////////////////////////////////
                            Constructor
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        address _royaltyRecipient,
        uint128 _royaltyBps,
        address _primarySaleRecipient
    ) ERC721A(_name, _symbol) {
        _setupOwner(msg.sender);
        _setupDefaultRoyaltyInfo(_royaltyRecipient, _royaltyBps);
        _setupPrimarySaleRecipient(_primarySaleRecipient);
        _setOperatorRestriction(true);
    }

    /*//////////////////////////////////////////////////////////////
                            ERC165 Logic
    //////////////////////////////////////////////////////////////*/

    /// @dev See ERC165: https://eips.ethereum.org/EIPS/eip-165
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, IERC165) returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f || // ERC165 Interface ID for ERC721Metadata
            interfaceId == type(IERC2981).interfaceId; // ERC165 ID for ERC2981
    }

    /*///////////////////////////////////////////////////////////////
                    Overriden ERC 721 logic
    //////////////////////////////////////////////////////////////*/

    /**
     *  @notice         Returns the metadata URI for an NFT.
     *  @dev            See `BatchMintMetadata` for handling of metadata in this contract.
     *
     *  @param _tokenId The tokenId of an NFT.
     */
    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
        (uint256 batchId, ) = _getBatchId(_tokenId);
        string memory batchUri = _getBaseURI(_tokenId);

        if (isEncryptedBatch(batchId)) {
            return string(abi.encodePacked(batchUri, "0"));
        } else {
            return string(abi.encodePacked(batchUri, _tokenId.toString()));
        }
    }

    /*///////////////////////////////////////////////////////////////
                    Overriden lazy minting logic
    //////////////////////////////////////////////////////////////*/

    /**
     *  @notice                  Lets an authorized address lazy mint a given amount of NFTs.
     *
     *  @param _amount           The number of NFTs to lazy mint.
     *  @param _baseURIForTokens The placeholder base URI for the 'n' number of NFTs being lazy minted, where the
     *                           metadata for each of those NFTs is `${baseURIForTokens}/${tokenId}`.
     *  @param _data             The encrypted base URI + provenance hash for the batch of NFTs being lazy minted.
     *  @return batchId          A unique integer identifier for the batch of NFTs lazy minted together.
     */
    function lazyMint(
        uint256 _amount,
        string calldata _baseURIForTokens,
        bytes calldata _data
    ) public virtual override returns (uint256 batchId) {
        if (_data.length > 0) {
            (bytes memory encryptedURI, bytes32 provenanceHash) = abi.decode(_data, (bytes, bytes32));
            if (encryptedURI.length != 0 && provenanceHash != "") {
                _setEncryptedData(nextTokenIdToLazyMint + _amount, _data);
            }
        }

        return ExtendedLazyMint.lazyMint(_amount, _baseURIForTokens, _data);
    }

    /// @notice The tokenId assigned to the next new NFT to be lazy minted.
    function nextTokenIdToMint() public view virtual returns (uint256) {
        return nextTokenIdToLazyMint;
    }

    /// @notice The tokenId assigned to the next new NFT to be claimed.
    function nextTokenIdToClaim() public view virtual returns (uint256) {
        return _currentIndex;
    }

    /*///////////////////////////////////////////////////////////////
                        Delayed reveal logic
    //////////////////////////////////////////////////////////////*/

    /**
     *  @notice       Lets an authorized address reveal a batch of delayed reveal NFTs.
     *
     *  @param _index The ID for the batch of delayed-reveal NFTs to reveal.
     *  @param _key   The key with which the base URI for the relevant batch of NFTs was encrypted.
     */
    function reveal(uint256 _index, bytes calldata _key) public virtual override returns (string memory revealedURI) {
        require(_canReveal(), "Not authorized");

        uint256 batchId = getBatchIdAtIndex(_index);
        revealedURI = getRevealURI(batchId, _key);

        _setEncryptedData(batchId, "");
        _setBaseURI(batchId, revealedURI);

        emit TokenURIRevealed(_index, revealedURI);
    }

    /*//////////////////////////////////////////////////////////////
                        Minting/burning logic
    //////////////////////////////////////////////////////////////*/

    /**
     *  @notice         Lets an owner or approved operator burn the NFT of the given tokenId.
     *  @dev            ERC721A's `_burn(uint256,bool)` internally checks for token approvals.
     *
     *  @param _tokenId The tokenId of the NFT to burn.
     */
    function burn(uint256 _tokenId) external virtual {
        _burn(_tokenId, true);
    }

    /*//////////////////////////////////////////////////////////////
                        ERC-721 overrides
    //////////////////////////////////////////////////////////////*/

    /// @dev See {ERC721-setApprovalForAll}.
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override(ERC721A)
        onlyAllowedOperatorApproval(operator)
    {
        super.setApprovalForAll(operator, approved);
    }

    /// @dev See {ERC721-approve}.
    function approve(address operator, uint256 tokenId)
        public
        virtual
        override(ERC721A)
        onlyAllowedOperatorApproval(operator)
    {
        super.approve(operator, tokenId);
    }

    /// @dev See {ERC721-_transferFrom}.
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override(ERC721A) onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    /// @dev See {ERC721-_safeTransferFrom}.
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override(ERC721A) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    /// @dev See {ERC721-_safeTransferFrom}.
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override(ERC721A) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }

    /*///////////////////////////////////////////////////////////////
                        Internal functions
    //////////////////////////////////////////////////////////////*/

    /// @dev Runs before every `claim` function call.
    function _beforeClaim(
        address,
        uint256 _quantity,
        address,
        uint256,
        AllowlistProof calldata,
        bytes memory
    ) internal view virtual override {
        if (_currentIndex + _quantity > nextTokenIdToLazyMint) {
            revert("Not enough minted tokens");
        }
    }

    /// @dev Collects and distributes the primary sale value of NFTs being claimed.
    function _collectPriceOnClaim(
        address _primarySaleRecipient,
        uint256 _quantityToClaim,
        address _currency,
        uint256 _pricePerToken
    ) internal virtual override {
        if (_pricePerToken == 0) {
            return;
        }

        uint256 totalPrice = _quantityToClaim * _pricePerToken;

        if (_currency == CurrencyTransferLib.NATIVE_TOKEN) {
            if (msg.value != totalPrice) {
                revert("Must send total price");
            }
        }

        address saleRecipient = _primarySaleRecipient == address(0) ? primarySaleRecipient() : _primarySaleRecipient;
        CurrencyTransferLib.transferCurrency(_currency, msg.sender, saleRecipient, totalPrice);
    }

    /// @dev Transfers the NFTs being claimed.
    function _transferTokensOnClaim(address _to, uint256 _quantityBeingClaimed)
        internal
        virtual
        override
        returns (uint256 startTokenId)
    {
        startTokenId = _currentIndex;
        _safeMint(_to, _quantityBeingClaimed);
    }

    /// @dev Checks whether primary sale recipient can be set in the given execution context.
    function _canSetPrimarySaleRecipient() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Checks whether owner can be set in the given execution context.
    function _canSetOwner() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Checks whether royalty info can be set in the given execution context.
    function _canSetRoyaltyInfo() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Checks whether contract metadata can be set in the given execution context.
    function _canSetContractURI() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Checks whether platform fee info can be set in the given execution context.
    function _canSetClaimConditions() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Returns whether lazy minting can be done in the given execution context.
    function _canLazyMint() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Checks whether NFTs can be revealed in the given execution context.
    function _canReveal() internal view virtual returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Returns whether operator restriction can be set in the given execution context.
    function _canSetOperatorRestriction() internal virtual override returns (bool) {
        return msg.sender == owner();
    }

    /// @dev Checks whether base URIs can be set in the given execution context.
    function _canSetBaseURI() internal view virtual override returns (bool) {
        return msg.sender == owner();
    }

    /*///////////////////////////////////////////////////////////////
                        Miscellaneous
    //////////////////////////////////////////////////////////////*/

    function _dropMsgSender() internal view virtual override returns (address) {
        return msg.sender;
    }
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_royaltyRecipient","type":"address"},{"internalType":"uint128","name":"_royaltyBps","type":"uint128"},{"internalType":"address","name":"_primarySaleRecipient","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"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":"string","name":"baseURI","type":"string"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"startTimestamp","type":"uint256"},{"internalType":"uint256","name":"maxClaimableSupply","type":"uint256"},{"internalType":"uint256","name":"supplyClaimed","type":"uint256"},{"internalType":"uint256","name":"quantityLimitPerWallet","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"string","name":"metadata","type":"string"}],"indexed":false,"internalType":"struct IClaimCondition.ClaimCondition[]","name":"claimConditions","type":"tuple[]"},{"indexed":false,"internalType":"bool","name":"resetEligibility","type":"bool"}],"name":"ClaimConditionsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"prevURI","type":"string"},{"indexed":false,"internalType":"string","name":"newURI","type":"string"}],"name":"ContractURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newRoyaltyRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"newRoyaltyBps","type":"uint256"}],"name":"DefaultRoyalty","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"restriction","type":"bool"}],"name":"OperatorRestriction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"prevOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"}],"name":"PrimarySaleRecipientUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"royaltyRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"royaltyBps","type":"uint256"}],"name":"RoyaltyForToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"string","name":"revealedURI","type":"string"}],"name":"TokenURIRevealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"claimConditionIndex","type":"uint256"},{"indexed":true,"internalType":"address","name":"claimer","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"startTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantityClaimed","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"startTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"baseURI","type":"string"},{"indexed":false,"internalType":"bytes","name":"encryptedBaseURI","type":"bytes"}],"name":"TokensLazyMinted","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":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"address","name":"_currency","type":"address"},{"internalType":"uint256","name":"_pricePerToken","type":"uint256"},{"components":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"quantityLimitPerWallet","type":"uint256"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"address","name":"currency","type":"address"}],"internalType":"struct IDrop.AllowlistProof","name":"_allowlistProof","type":"tuple"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimCondition","outputs":[{"internalType":"uint256","name":"currentStartId","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"key","type":"bytes"}],"name":"encryptDecrypt","outputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"encryptedData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getActiveClaimConditionId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURICount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getBatchIdAtIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_conditionId","type":"uint256"}],"name":"getClaimConditionById","outputs":[{"components":[{"internalType":"uint256","name":"startTimestamp","type":"uint256"},{"internalType":"uint256","name":"maxClaimableSupply","type":"uint256"},{"internalType":"uint256","name":"supplyClaimed","type":"uint256"},{"internalType":"uint256","name":"quantityLimitPerWallet","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"string","name":"metadata","type":"string"}],"internalType":"struct IClaimCondition.ClaimCondition","name":"condition","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDefaultRoyaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_batchId","type":"uint256"},{"internalType":"bytes","name":"_key","type":"bytes"}],"name":"getRevealURI","outputs":[{"internalType":"string","name":"revealedURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getRoyaltyInfoForToken","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_conditionId","type":"uint256"},{"internalType":"address","name":"_claimer","type":"address"}],"name":"getSupplyClaimedByWallet","outputs":[{"internalType":"uint256","name":"supplyClaimedByWallet","type":"uint256"}],"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":"uint256","name":"_batchId","type":"uint256"}],"name":"isEncryptedBatch","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"string","name":"_baseURIForTokens","type":"string"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"lazyMint","outputs":[{"internalType":"uint256","name":"batchId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenIdToClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenIdToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorRestriction","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"primarySaleRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"bytes","name":"_key","type":"bytes"}],"name":"reveal","outputs":[{"internalType":"string","name":"revealedURI","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"startTimestamp","type":"uint256"},{"internalType":"uint256","name":"maxClaimableSupply","type":"uint256"},{"internalType":"uint256","name":"supplyClaimed","type":"uint256"},{"internalType":"uint256","name":"quantityLimitPerWallet","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"address","name":"currency","type":"address"},{"internalType":"string","name":"metadata","type":"string"}],"internalType":"struct IClaimCondition.ClaimCondition[]","name":"_conditions","type":"tuple[]"},{"internalType":"bool","name":"_resetClaimEligibility","type":"bool"}],"name":"setClaimConditions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyRecipient","type":"address"},{"internalType":"uint256","name":"_royaltyBps","type":"uint256"}],"name":"setDefaultRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_restriction","type":"bool"}],"name":"setOperatorRestriction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_saleRecipient","type":"address"}],"name":"setPrimarySaleRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_bps","type":"uint256"}],"name":"setRoyaltyInfoForToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_conditionId","type":"uint256"},{"internalType":"address","name":"_claimer","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"address","name":"_currency","type":"address"},{"internalType":"uint256","name":"_pricePerToken","type":"uint256"},{"components":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"quantityLimitPerWallet","type":"uint256"},{"internalType":"uint256","name":"pricePerToken","type":"uint256"},{"internalType":"address","name":"currency","type":"address"}],"internalType":"struct IDrop.AllowlistProof","name":"_allowlistProof","type":"tuple"}],"name":"verifyClaim","outputs":[{"internalType":"bool","name":"isOverride","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162004ebe38038062004ebe83398101604081905262000034916200054e565b8484848484733cc6cdda760b79bafa08df41ecfa224f810dceb66001868681600290805190602001906200006a929190620003be565b50805162000080906003906020840190620003be565b50600160005550506daaeb6d7670e522a718067333cd4e3b15620001cd5780156200011b57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620000fc57600080fd5b505af115801562000111573d6000803e3d6000fd5b50505050620001cd565b6001600160a01b038216156200016c5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000e1565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001b357600080fd5b505af1158015620001c8573d6000803e3d6000fd5b505050505b50620001db90503362000230565b620001f0836001600160801b03841662000282565b620001fb816200032d565b62000207600162000377565b50505050506200021c6200022b60201b60201c565b600f55506200063b9350505050565b600190565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a35050565b612710811115620002cb5760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d61782062707360881b604482015260640160405180910390fd5b600a80546001600160a01b0384166001600160b01b03199091168117600160a01b61ffff851602179091556040518281527f90d7ec04bcb8978719414f82e52e4cb651db41d0e6f8cea6118c2191e6183adb9060200160405180910390a25050565b600e80546001600160a01b0319166001600160a01b0383169081179091556040517f299d17e95023f496e0ffc4909cff1a61f74bb5eb18de6f900f4155bfa1b3b33390600090a250565b6011805460ff19168215159081179091556040519081527f38475885990d8dfe9ca01f0ef160a1b5514426eab9ddbc953a3353410ba780969060200160405180910390a150565b828054620003cc90620005fe565b90600052602060002090601f016020900481019282620003f057600085556200043b565b82601f106200040b57805160ff19168380011785556200043b565b828001600101855582156200043b579182015b828111156200043b5782518255916020019190600101906200041e565b50620004499291506200044d565b5090565b5b808211156200044957600081556001016200044e565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200048c57600080fd5b81516001600160401b0380821115620004a957620004a962000464565b604051601f8301601f19908116603f01168101908282118183101715620004d457620004d462000464565b81604052838152602092508683858801011115620004f157600080fd5b600091505b83821015620005155785820183015181830184015290820190620004f6565b83821115620005275760008385830101525b9695505050505050565b80516001600160a01b03811681146200054957600080fd5b919050565b600080600080600060a086880312156200056757600080fd5b85516001600160401b03808211156200057f57600080fd5b6200058d89838a016200047a565b96506020880151915080821115620005a457600080fd5b50620005b3888289016200047a565b945050620005c46040870162000531565b60608701519093506001600160801b0381168114620005e257600080fd5b9150620005f26080870162000531565b90509295509295909350565b600181811c908216806200061357607f821691505b602082108114156200063557634e487b7160e01b600052602260045260246000fd5b50919050565b614873806200064b6000396000f3fe6080604052600436106102935760003560e01c80636f8934f41161015a578063acd083f8116100c1578063ce8056421161007a578063ce80564214610848578063d37c353b14610868578063d637ed5914610888578063e7150322146108b8578063e8a3d485146108d8578063e985e9c5146108ed57600080fd5b8063acd083f814610771578063ad1eefc514610786578063b24f2d39146107c8578063b88d4fde146107f3578063c68907de14610813578063c87b56dd1461082857600080fd5b806395d89b411161011357806395d89b41146106af5780639bcf7a15146106c45780639fc4d68f146106e4578063a05112fc14610704578063a22cb46514610724578063ac9650d81461074457600080fd5b80636f8934f4146105f157806370a082311461061e57806374bc7db71461063e57806384bb1e421461065e5780638da5cb5b14610671578063938e3d7b1461068f57600080fd5b80633b1475a7116101fe578063504c6e01116101b7578063504c6e011461054257806355f804b31461055c578063600dd5ea1461057c5780636352211e1461059c57806363b45e2d146105bc5780636f4f2837146105d157600080fd5b80633b1475a71461046957806341f434341461047e57806342842e0e146104a057806342966c68146104c0578063492e224b146104e05780634cc157df1461050057600080fd5b806318160ddd1161025057806318160ddd1461038357806323a2902b146103aa57806323b872dd146103ca5780632419f51b146103ea5780632a55205a1461040a57806332f0cd641461044957600080fd5b806301ffc9a71461029857806306fdde03146102cd578063079fe40e146102ef578063081812fc14610321578063095ea7b31461034157806313af403514610363575b600080fd5b3480156102a457600080fd5b506102b86102b33660046138df565b610936565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e26109a3565b6040516102c49190613954565b3480156102fb57600080fd5b50600e546001600160a01b03165b6040516001600160a01b0390911681526020016102c4565b34801561032d57600080fd5b5061030961033c366004613967565b610a35565b34801561034d57600080fd5b5061036161035c366004613995565b610a79565b005b34801561036f57600080fd5b5061036161037e3660046139c1565b610a92565b34801561038f57600080fd5b5060015460005403600019015b6040519081526020016102c4565b3480156103b657600080fd5b506102b86103c53660046139f6565b610acb565b3480156103d657600080fd5b506103616103e5366004613a73565b610e91565b3480156103f657600080fd5b5061039c610405366004613967565b610ebc565b34801561041657600080fd5b5061042a610425366004613ab4565b610f2a565b604080516001600160a01b0390931683526020830191909152016102c4565b34801561045557600080fd5b50610361610464366004613ae4565b610f67565b34801561047557600080fd5b50600f5461039c565b34801561048a57600080fd5b506103096daaeb6d7670e522a718067333cd4e81565b3480156104ac57600080fd5b506103616104bb366004613a73565b610fd8565b3480156104cc57600080fd5b506103616104db366004613967565b610ffd565b3480156104ec57600080fd5b506102b86104fb366004613967565b611008565b34801561050c57600080fd5b5061052061051b366004613967565b61102e565b604080516001600160a01b03909316835261ffff9091166020830152016102c4565b34801561054e57600080fd5b506011546102b89060ff1681565b34801561056857600080fd5b50610361610577366004613bac565b611099565b34801561058857600080fd5b50610361610597366004613995565b6111ba565b3480156105a857600080fd5b506103096105b7366004613967565b6111ec565b3480156105c857600080fd5b50600c5461039c565b3480156105dd57600080fd5b506103616105ec3660046139c1565b6111fe565b3480156105fd57600080fd5b5061061161060c366004613967565b61122b565b6040516102c49190613bf4565b34801561062a57600080fd5b5061039c6106393660046139c1565b611388565b34801561064a57600080fd5b50610361610659366004613cac565b6113d6565b61036161066c366004613d22565b61171a565b34801561067d57600080fd5b506009546001600160a01b0316610309565b34801561069b57600080fd5b506103616106aa366004613bac565b611806565b3480156106bb57600080fd5b506102e2611833565b3480156106d057600080fd5b506103616106df366004613daf565b611842565b3480156106f057600080fd5b506102e26106ff366004613e17565b611871565b34801561071057600080fd5b506102e261071f366004613967565b6119f2565b34801561073057600080fd5b5061036161073f366004613e62565b611a8c565b34801561075057600080fd5b5061076461075f366004613e9b565b611aa0565b6040516102c49190613edc565b34801561077d57600080fd5b5060005461039c565b34801561079257600080fd5b5061039c6107a1366004613f3e565b60009182526015602090815260408084206001600160a01b03909316845291905290205490565b3480156107d457600080fd5b50600a546001600160a01b03811690600160a01b900461ffff16610520565b3480156107ff57600080fd5b5061036161080e366004613f63565b611b94565b34801561081f57600080fd5b5061039c611bc1565b34801561083457600080fd5b506102e2610843366004613967565b611c64565b34801561085457600080fd5b506102e2610863366004613e17565b611cd3565b34801561087457600080fd5b5061039c610883366004613fce565b611d76565b34801561089457600080fd5b506012546013546108a3919082565b604080519283526020830191909152016102c4565b3480156108c457600080fd5b506102e26108d3366004614047565b611e0e565b3480156108e457600080fd5b506102e2611e83565b3480156108f957600080fd5b506102b86109083660046140a2565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006301ffc9a760e01b6001600160e01b03198316148061096757506380ac58cd60e01b6001600160e01b03198316145b806109825750635b5e139f60e01b6001600160e01b03198316145b8061099d57506001600160e01b0319821663152a902d60e11b145b92915050565b6060600280546109b2906140d0565b80601f01602080910402602001604051908101604052809291908181526020018280546109de906140d0565b8015610a2b5780601f10610a0057610100808354040283529160200191610a2b565b820191906000526020600020905b815481529060010190602001808311610a0e57829003601f168201915b5050505050905090565b6000610a4082611e90565b610a5d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b81610a8381611ec9565b610a8d8383611f8d565b505050565b610a9a61200f565b610abf5760405162461bcd60e51b8152600401610ab690614105565b60405180910390fd5b610ac88161203c565b50565b6000868152601460209081526040808320815161010081018352815481526001820154938101939093526002810154918301919091526003810154606083015260048101546080830152600581015460a083015260068101546001600160a01b031660c08301526007810180548493929160e0840191610b4a906140d0565b80601f0160208091040260200160405190810160405280929190818152602001828054610b76906140d0565b8015610bc35780601f10610b9857610100808354040283529160200191610bc3565b820191906000526020600020905b815481529060010190602001808311610ba657829003601f168201915b50505091909252505050606081015160a082015160c08301516080840151939450919290919015610ca857610ca4610bfb878061412d565b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250505060808088015191508d9060208b01359060408c013590610c50908d0160608e016139c1565b6040516bffffffffffffffffffffffff19606095861b811660208301526034820194909452605481019290925290921b1660748201526088016040516020818303038152906040528051906020012061208e565b5094505b8415610d2d576020860135610cbd5782610cc3565b85602001355b925060001986604001351415610cd95781610cdf565b85604001355b9150600019866040013514158015610d1057506000610d0460808801606089016139c1565b6001600160a01b031614155b610d1a5780610d2a565b610d2a60808701606088016139c1565b90505b60008b81526015602090815260408083206001600160a01b03808f16855292529091205490898116908316141580610d655750828814155b15610da55760405162461bcd60e51b815260206004820152601060248201526f2150726963654f7243757272656e637960801b6044820152606401610ab6565b891580610dba575083610db8828c61418c565b115b15610df05760405162461bcd60e51b8152600401610ab6906020808252600490820152632151747960e01b604082015260600190565b84602001518a8660400151610e05919061418c565b1115610e405760405162461bcd60e51b815260206004820152600a602482015269214d6178537570706c7960b01b6044820152606401610ab6565b8451421015610e825760405162461bcd60e51b815260206004820152600e60248201526d18d85b9d0818db185a5b481e595d60921b6044820152606401610ab6565b50505050509695505050505050565b826001600160a01b0381163314610eab57610eab33611ec9565b610eb684848461215c565b50505050565b6000610ec7600c5490565b8210610f055760405162461bcd60e51b815260206004820152600d60248201526c092dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610ab6565b600c8281548110610f1857610f186141a4565b90600052602060002001549050919050565b600080600080610f398661102e565b90945084925061ffff169050612710610f5282876141ba565b610f5c91906141ef565b925050509250929050565b610f6f61200f565b610fcf5760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420617574686f72697a656420746f20736574206f70657261746f72207260448201526a32b9ba3934b1ba34b7b71760a91b6064820152608401610ab6565b610ac881612167565b826001600160a01b0381163314610ff257610ff233611ec9565b610eb68484846121ae565b610ac88160016121c9565b60008181526010602052604081208054829190611024906140d0565b9050119050919050565b6000818152600b60209081526040808320815180830190925280546001600160a01b031680835260019091015492820192909252829115611075578051602082015161108f565b600a546001600160a01b03811690600160a01b900461ffff165b9250925050915091565b6110a161200f565b6110bd5760405162461bcd60e51b8152600401610ab690614105565b60006110c8600c5490565b90506000600c80548060200260200160405190810160405280929190818152602001828054801561111857602002820191906000526020600020905b815481526020019060010190808311611104575b5050505050905060005b8281101561117d5783600d6000848481518110611141576111416141a4565b60200260200101518152602001908152602001600020908051906020019061116a9291906137fa565b5061117660018261418c565b9050611122565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad836040516111ad9190613954565b60405180910390a1505050565b6111c261200f565b6111de5760405162461bcd60e51b8152600401610ab690614105565b6111e8828261237c565b5050565b60006111f782612422565b5192915050565b61120661200f565b6112225760405162461bcd60e51b8152600401610ab690614105565b610ac881612544565b61127f60405180610100016040528060008152602001600081526020016000815260200160008152602001600080191681526020016000815260200160006001600160a01b03168152602001606081525090565b600082815260146020908152604091829020825161010081018452815481526001820154928101929092526002810154928201929092526003820154606082015260048201546080820152600582015460a082015260068201546001600160a01b031660c082015260078201805491929160e0840191906112ff906140d0565b80601f016020809104026020016040519081016040528092919081815260200182805461132b906140d0565b80156113785780601f1061134d57610100808354040283529160200191611378565b820191906000526020600020905b81548152906001019060200180831161135b57829003601f168201915b5050505050815250509050919050565b60006001600160a01b0382166113b1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6113de61200f565b6113fa5760405162461bcd60e51b8152600401610ab690614105565b60125460135481831561141457611411828461418c565b90505b601385905560128190556000805b868110156115c75780158061145a5750878782818110611444576114446141a4565b90506020028101906114569190614203565b3582105b61148b5760405162461bcd60e51b815260206004820152600260248201526114d560f21b6044820152606401610ab6565b600060148161149a848761418c565b81526020019081526020016000206002015490508888838181106114c0576114c06141a4565b90506020028101906114d29190614203565b6020013581111561151a5760405162461bcd60e51b81526020600482015260126024820152711b585e081cdd5c1c1b1e4818db185a5b595960721b6044820152606401610ab6565b88888381811061152c5761152c6141a4565b905060200281019061153e9190614203565b6014600061154c858861418c565b81526020019081526020016000208181611566919061436e565b5081905060146000611578858861418c565b815260208101919091526040016000206002015588888381811061159e5761159e6141a4565b90506020028101906115b09190614203565b3592508190506115bf816143ec565b915050611422565b50841561164757835b8281101561164157600081815260146020526040812081815560018101829055600281018290556003810182905560048101829055600581018290556006810180546001600160a01b03191690559061162c600783018261387e565b50508080611639906143ec565b9150506115d0565b506116d6565b858311156116d657855b838110156116d45760146000611667838661418c565b81526020810191909152604001600090812081815560018101829055600281018290556003810182905560048101829055600581018290556006810180546001600160a01b0319169055906116bf600783018261387e565b505080806116cc906143ec565b915050611651565b505b7fbf4016fceeaaa4ac5cf4be865b559ff85825ab4ca7aa7b661d16e2f544c0309887878760405161170993929190614475565b60405180910390a150505050505050565b61172886868686868661258e565b6000611732611bc1565b9050611742813388888888610acb565b506000818152601460205260408120600201805488929061176490849061418c565b909155505060008181526015602090815260408083203384529091528120805488929061179290849061418c565b909155506117a5905060008787876125f5565b60006117b188886126ab565b60408051828152602081018a90529192506001600160a01b038a1691339185917ffa76a4010d9533e3e964f2930a65fb6042a12fa6ff5b08281837a10b0be7321e910160405180910390a45050505050505050565b61180e61200f565b61182a5760405162461bcd60e51b8152600401610ab690614105565b610ac8816126b8565b6060600380546109b2906140d0565b61184a61200f565b6118665760405162461bcd60e51b8152600401610ab690614105565b610a8d83838361279a565b60008381526010602052604081208054606092919061188f906140d0565b80601f01602080910402602001604051908101604052809291908181526020018280546118bb906140d0565b80156119085780601f106118dd57610100808354040283529160200191611908565b820191906000526020600020905b8154815290600101906020018083116118eb57829003601f168201915b505050505090508051600014156119555760405162461bcd60e51b8152602060048201526011602482015270139bdd1a1a5b99c81d1bc81c995d99585b607a1b6044820152606401610ab6565b6000808280602001905181019061196c919061455d565b9150915061197b828787611e0e565b9350808487874660405160200161199594939291906145dd565b60405160208183030381529060405280519060200120146119e85760405162461bcd60e51b815260206004820152600d60248201526c496e636f7272656374206b657960981b6044820152606401610ab6565b5050509392505050565b60106020526000908152604090208054611a0b906140d0565b80601f0160208091040260200160405190810160405280929190818152602001828054611a37906140d0565b8015611a845780601f10611a5957610100808354040283529160200191611a84565b820191906000526020600020905b815481529060010190602001808311611a6757829003601f168201915b505050505081565b81611a9681611ec9565b610a8d8383612863565b6060816001600160401b03811115611aba57611aba613b01565b604051908082528060200260200182016040528015611aed57816020015b6060815260200190600190039081611ad85790505b50905060005b82811015611b8d57611b5d30858584818110611b1157611b116141a4565b9050602002810190611b239190614223565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506128f992505050565b828281518110611b6f57611b6f6141a4565b60200260200101819052508080611b85906143ec565b915050611af3565b5092915050565b836001600160a01b0381163314611bae57611bae33611ec9565b611bba85858585612925565b5050505050565b6013546012546000918291611bd6919061418c565b90505b601254811115611c2d5760146000611bf2600184614606565b8152602001908152602001600020600001544210611c1b57611c15600182614606565b91505090565b80611c258161461d565b915050611bd9565b5060405162461bcd60e51b815260206004820152600b60248201526a10a1a7a72224aa24a7a71760a91b6044820152606401610ab6565b60606000611c7183612969565b5090506000611c7f84612a6e565b9050611c8a82611008565b15611cb85780604051602001611ca09190614634565b60405160208183030381529060405292505050919050565b80611cc285612bcf565b604051602001611ca0929190614667565b6060611cdd61200f565b611cf95760405162461bcd60e51b8152600401610ab690614105565b6000611d0485610ebc565b9050611d11818585611871565b9150611d2c8160405180602001604052806000815250612cd4565b611d368183612cf3565b847f6df1d8db2a036436ffe0b2d1833f2c5f1e624818dfce2578c0faa4b83ef9998d83604051611d669190613954565b60405180910390a2509392505050565b60008115611df757600080611d8d848601866146a6565b915091508151600014158015611da257508015155b15611df457611df488600f54611db8919061418c565b86868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612cd492505050565b50505b611e048686868686612d12565b9695505050505050565b8251604080518083016020019091528181529060005b81811015611e7a576000858583604051602001611e43939291906146ea565b60408051601f19818403018152919052805160209182012088840182015118858401820152611e7391508261418c565b9050611e24565b50509392505050565b60088054611a0b906140d0565b600081600111158015611ea4575060005482105b801561099d575050600090815260046020526040902054600160e01b900460ff161590565b60115460ff1615610ac8576daaeb6d7670e522a718067333cd4e3b15610ac857604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611f41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6591906146fc565b610ac857604051633b79c77360e21b81526001600160a01b0382166004820152602401610ab6565b6000611f98826111ec565b9050806001600160a01b0316836001600160a01b03161415611fcd5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161461200457611fe78133610908565b612004576040516367d9dca160e11b815260040160405180910390fd5b610a8d838383612e1c565b60006120236009546001600160a01b031690565b6001600160a01b0316336001600160a01b031614905090565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a35050565b6000808281805b8751811015612150576120a96002836141ba565b915060008882815181106120bf576120bf6141a4565b6020026020010151905080841161210157604080516020810186905290810182905260600160405160208183030381529060405280519060200120935061213d565b604080516020810183905290810185905260600160405160208183030381529060405280519060200120935060018361213a919061418c565b92505b5080612148816143ec565b915050612095565b50941495939450505050565b610a8d838383612e78565b6011805460ff19168215159081179091556040519081527f38475885990d8dfe9ca01f0ef160a1b5514426eab9ddbc953a3353410ba780969060200160405180910390a150565b610a8d83838360405180602001604052806000815250611b94565b60006121d483612422565b8051909150821561223a576000336001600160a01b03831614806121fd57506121fd8233610908565b8061221857503361220d86610a35565b6001600160a01b0316145b90508061223857604051632ce44b5f60e11b815260040160405180910390fd5b505b61224660008583612e1c565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661234457600054821461234457805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b0384169060008051602061481e833981519152908390a4505060018054810190555050565b6127108111156123c05760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d61782062707360881b6044820152606401610ab6565b600a80546001600160a01b0384166001600160b01b03199091168117600160a01b61ffff851602179091556040518281527f90d7ec04bcb8978719414f82e52e4cb651db41d0e6f8cea6118c2191e6183adb9060200160405180910390a25050565b6040805160608101825260008082526020820181905291810191909152818060011161252b5760005481101561252b57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906125295780516001600160a01b0316156124c0579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612524579392505050565b6124c0565b505b604051636f96cda160e11b815260040160405180910390fd5b600e80546001600160a01b0319166001600160a01b0383169081179091556040517f299d17e95023f496e0ffc4909cff1a61f74bb5eb18de6f900f4155bfa1b3b33390600090a250565b600f548560005461259f919061418c565b11156125ed5760405162461bcd60e51b815260206004820152601860248201527f4e6f7420656e6f756768206d696e74656420746f6b656e7300000000000000006044820152606401610ab6565b505050505050565b806125ff57610eb6565b600061260b82856141ba565b90506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415612679578034146126795760405162461bcd60e51b81526020600482015260156024820152744d7573742073656e6420746f74616c20707269636560581b6044820152606401610ab6565b60006001600160a01b03861615612690578561269d565b600e546001600160a01b03165b90506125ed84338385613051565b60005461099d838361309b565b6000600880546126c7906140d0565b80601f01602080910402602001604051908101604052809291908181526020018280546126f3906140d0565b80156127405780601f1061271557610100808354040283529160200191612740565b820191906000526020600020905b81548152906001019060200180831161272357829003601f168201915b5050855193945061275c936008935060208701925090506137fa565b507fc9c7c3fe08b88b4df9d4d47ef47d2c43d55c025a0ba88ca442580ed9e7348a16818360405161278e929190614719565b60405180910390a15050565b6127108111156127de5760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d61782062707360881b6044820152606401610ab6565b6040805180820182526001600160a01b0384811680835260208084018681526000898152600b8352869020945185546001600160a01b031916941693909317845591516001909301929092559151838152909185917f7365cf4122f072a3365c20d54eff9b38d73c096c28e1892ec8f5b0e403a0f12d910160405180910390a3505050565b6001600160a01b03821633141561288d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b606061291e83836040518060600160405280602781526020016147f7602791396130b5565b9392505050565b612930848484612e78565b6001600160a01b0383163b15610eb65761294c84848484613188565b610eb6576040516368d2bf6b60e11b815260040160405180910390fd5b6000806000612977600c5490565b90506000600c8054806020026020016040519081016040528092919081815260200182805480156129c757602002820191906000526020600020905b8154815260200190600101908083116129b3575b5050505050905060005b82811015612a33578181815181106129eb576129eb6141a4565b6020026020010151861015612a2157809350818181518110612a0f57612a0f6141a4565b60200260200101519450505050915091565b612a2c60018261418c565b90506129d1565b5060405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081d1bdad95b9259608a1b6044820152606401610ab6565b60606000612a7b600c5490565b90506000600c805480602002602001604051908101604052809291908181526020018280548015612acb57602002820191906000526020600020905b815481526020019060010190808311612ab7575b5050505050905060005b82811015612a3357818181518110612aef57612aef6141a4565b6020026020010151851015612bbd57600d6000838381518110612b1457612b146141a4565b602002602001015181526020019081526020016000208054612b35906140d0565b80601f0160208091040260200160405190810160405280929190818152602001828054612b61906140d0565b8015612bae5780601f10612b8357610100808354040283529160200191612bae565b820191906000526020600020905b815481529060010190602001808311612b9157829003601f168201915b50505050509350505050919050565b612bc860018261418c565b9050612ad5565b606081612bf35750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612c1d5780612c07816143ec565b9150612c169050600a836141ef565b9150612bf7565b6000816001600160401b03811115612c3757612c37613b01565b6040519080825280601f01601f191660200182016040528015612c61576020820181803683370190505b5090505b8415612ccc57612c76600183614606565b9150612c83600a86614747565b612c8e90603061418c565b60f81b818381518110612ca357612ca36141a4565b60200101906001600160f81b031916908160001a905350612cc5600a866141ef565b9450612c65565b949350505050565b60008281526010602090815260409091208251610a8d928401906137fa565b6000828152600d602090815260409091208251610a8d928401906137fa565b6000612d1c61200f565b612d385760405162461bcd60e51b8152600401610ab690614105565b85612d6d5760405162461bcd60e51b81526020600482015260056024820152640c08185b5d60da1b6044820152606401610ab6565b6000600f549050612db5818888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061327092505050565b600f919091559150807f2a0365091ef1a40953c670dce28177e37520648a6fdc91506bffac0ab045570d6001612deb8a8461418c565b612df59190614606565b88888888604051612e0a95949392919061475b565b60405180910390a25095945050505050565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612e8382612422565b9050836001600160a01b031681600001516001600160a01b031614612eba5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612ed85750612ed88533610908565b80612ef3575033612ee884610a35565b6001600160a01b0316145b905080612f1357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612f3a57604051633a954ecd60e21b815260040160405180910390fd5b612f4660008487612e1c565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661301a57600054821461301a57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b031660008051602061481e83398151915260405160405180910390a4611bba565b8061305b57610eb6565b6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561308f5761308a82826132dd565b610eb6565b610eb684848484613380565b6111e88282604051806020016040528060008152506133d9565b60606001600160a01b0384163b61311d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610ab6565b600080856001600160a01b0316856040516131389190614794565b600060405180830381855af49150503d8060008114613173576040519150601f19603f3d011682016040523d82523d6000602084013e613178565b606091505b5091509150611e04828286613579565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906131bd9033908990889088906004016147a6565b6020604051808303816000875af19250505080156131f8575060408051601f3d908101601f191682019092526131f5918101906147d9565b60015b613253573d808015613226576040519150601f19603f3d011682016040523d82523d6000602084013e61322b565b606091505b50805161324b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008061327d848661418c565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7018190556000818152600d6020908152604090912085519294508493506132d49290918601906137fa565b50935093915050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461332a576040519150601f19603f3d011682016040523d82523d6000602084013e61332f565b606091505b5050905080610a8d5760405162461bcd60e51b815260206004820152601c60248201527f6e617469766520746f6b656e207472616e73666572206661696c6564000000006044820152606401610ab6565b816001600160a01b0316836001600160a01b0316141561339f57610eb6565b6001600160a01b0383163014156133c45761308a6001600160a01b03851683836135b2565b610eb66001600160a01b038516848484613615565b6000546001600160a01b03841661340257604051622e076360e81b815260040160405180910390fd5b826134205760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15613536575b60405182906001600160a01b0388169060009060008051602061481e833981519152908290a46134ff6000878480600101955087613188565b61351c576040516368d2bf6b60e11b815260040160405180910390fd5b8082106134c657826000541461353157600080fd5b613569565b5b6040516001830192906001600160a01b0388169060009060008051602061481e833981519152908290a4808210613537575b506000908155610eb69085838684565b6060831561358857508161291e565b8251156135985782518084602001fd5b8160405162461bcd60e51b8152600401610ab69190613954565b6040516001600160a01b038316602482015260448101829052610a8d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261364d565b6040516001600160a01b0380851660248301528316604482015260648101829052610eb69085906323b872dd60e01b906084016135de565b60006136a2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661371f9092919063ffffffff16565b805190915015610a8d57808060200190518101906136c091906146fc565b610a8d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610ab6565b6060612ccc8484600085856001600160a01b0385163b6137815760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ab6565b600080866001600160a01b0316858760405161379d9190614794565b60006040518083038185875af1925050503d80600081146137da576040519150601f19603f3d011682016040523d82523d6000602084013e6137df565b606091505b50915091506137ef828286613579565b979650505050505050565b828054613806906140d0565b90600052602060002090601f016020900481019282613828576000855561386e565b82601f1061384157805160ff191683800117855561386e565b8280016001018555821561386e579182015b8281111561386e578251825591602001919060010190613853565b5061387a9291506138b4565b5090565b50805461388a906140d0565b6000825580601f1061389a575050565b601f016020900490600052602060002090810190610ac891905b5b8082111561387a57600081556001016138b5565b6001600160e01b031981168114610ac857600080fd5b6000602082840312156138f157600080fd5b813561291e816138c9565b60005b838110156139175781810151838201526020016138ff565b83811115610eb65750506000910152565b600081518084526139408160208601602086016138fc565b601f01601f19169290920160200192915050565b60208152600061291e6020830184613928565b60006020828403121561397957600080fd5b5035919050565b6001600160a01b0381168114610ac857600080fd5b600080604083850312156139a857600080fd5b82356139b381613980565b946020939093013593505050565b6000602082840312156139d357600080fd5b813561291e81613980565b6000608082840312156139f057600080fd5b50919050565b60008060008060008060c08789031215613a0f57600080fd5b863595506020870135613a2181613980565b9450604087013593506060870135613a3881613980565b92506080870135915060a08701356001600160401b03811115613a5a57600080fd5b613a6689828a016139de565b9150509295509295509295565b600080600060608486031215613a8857600080fd5b8335613a9381613980565b92506020840135613aa381613980565b929592945050506040919091013590565b60008060408385031215613ac757600080fd5b50508035926020909101359150565b8015158114610ac857600080fd5b600060208284031215613af657600080fd5b813561291e81613ad6565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613b3f57613b3f613b01565b604052919050565b60006001600160401b03821115613b6057613b60613b01565b50601f01601f191660200190565b6000613b81613b7c84613b47565b613b17565b9050828152838383011115613b9557600080fd5b828260208301376000602084830101529392505050565b600060208284031215613bbe57600080fd5b81356001600160401b03811115613bd457600080fd5b8201601f81018413613be557600080fd5b612ccc84823560208401613b6e565b6020815281516020820152602082015160408201526040820151606082015260608201516080820152608082015160a082015260a082015160c082015260018060a01b0360c08301511660e0820152600060e0830151610100808185015250612ccc610120840182613928565b60008083601f840112613c7357600080fd5b5081356001600160401b03811115613c8a57600080fd5b6020830191508360208260051b8501011115613ca557600080fd5b9250929050565b600080600060408486031215613cc157600080fd5b83356001600160401b03811115613cd757600080fd5b613ce386828701613c61565b9094509250506020840135613cf781613ad6565b809150509250925092565b600082601f830112613d1357600080fd5b61291e83833560208501613b6e565b60008060008060008060c08789031215613d3b57600080fd5b8635613d4681613980565b9550602087013594506040870135613d5d81613980565b93506060870135925060808701356001600160401b0380821115613d8057600080fd5b613d8c8a838b016139de565b935060a0890135915080821115613da257600080fd5b50613a6689828a01613d02565b600080600060608486031215613dc457600080fd5b833592506020840135613aa381613980565b60008083601f840112613de857600080fd5b5081356001600160401b03811115613dff57600080fd5b602083019150836020828501011115613ca557600080fd5b600080600060408486031215613e2c57600080fd5b8335925060208401356001600160401b03811115613e4957600080fd5b613e5586828701613dd6565b9497909650939450505050565b60008060408385031215613e7557600080fd5b8235613e8081613980565b91506020830135613e9081613ad6565b809150509250929050565b60008060208385031215613eae57600080fd5b82356001600160401b03811115613ec457600080fd5b613ed085828601613c61565b90969095509350505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015613f3157603f19888603018452613f1f858351613928565b94509285019290850190600101613f03565b5092979650505050505050565b60008060408385031215613f5157600080fd5b823591506020830135613e9081613980565b60008060008060808587031215613f7957600080fd5b8435613f8481613980565b93506020850135613f9481613980565b92506040850135915060608501356001600160401b03811115613fb657600080fd5b613fc287828801613d02565b91505092959194509250565b600080600080600060608688031215613fe657600080fd5b8535945060208601356001600160401b038082111561400457600080fd5b61401089838a01613dd6565b9096509450604088013591508082111561402957600080fd5b5061403688828901613dd6565b969995985093965092949392505050565b60008060006040848603121561405c57600080fd5b83356001600160401b038082111561407357600080fd5b61407f87838801613d02565b9450602086013591508082111561409557600080fd5b50613e5586828701613dd6565b600080604083850312156140b557600080fd5b82356140c081613980565b91506020830135613e9081613980565b600181811c908216806140e457607f821691505b602082108114156139f057634e487b7160e01b600052602260045260246000fd5b6020808252600e908201526d139bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b6000808335601e1984360301811261414457600080fd5b8301803591506001600160401b0382111561415e57600080fd5b6020019150600581901b3603821315613ca557600080fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561419f5761419f614176565b500190565b634e487b7160e01b600052603260045260246000fd5b60008160001904831182151516156141d4576141d4614176565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826141fe576141fe6141d9565b500490565b6000823560fe1983360301811261421957600080fd5b9190910192915050565b6000808335601e1984360301811261423a57600080fd5b8301803591506001600160401b0382111561425457600080fd5b602001915036819003821315613ca557600080fd5b601f821115610a8d57600081815260208120601f850160051c810160208610156142905750805b601f850160051c820191505b818110156125ed5782815560010161429c565b6001600160401b038311156142c6576142c6613b01565b6142da836142d483546140d0565b83614269565b6000601f84116001811461430e57600085156142f65750838201355b600019600387901b1c1916600186901b178355611bba565b600083815260209020601f19861690835b8281101561433f578685013582556020948501946001909201910161431f565b508682101561435c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b813581556020820135600182015560408201356002820155606082013560038201556080820135600482015560a082013560058201556006810160c08301356143b681613980565b81546001600160a01b0319166001600160a01b03919091161790556143de60e0830183614223565b610eb68183600786016142af565b600060001982141561440057614400614176565b5060010190565b6000808335601e1984360301811261441e57600080fd5b83016020810192503590506001600160401b0381111561443d57600080fd5b803603831315613ca557600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60408082528181018490526000906060808401600587901b850182018885805b8a81101561454757888403605f190185528235368d900360fe190181126144ba578283fd5b8c018035855260208082013581870152888201358987015287820135888701526080808301359087015260a080830135908701526101009060c08084013561450181613980565b6001600160a01b03169088015260e061451c84820185614407565b945083828a0152614530848a01868361444c565b998301999850505094909401935050600101614495565b50505086151560208701529350612ccc92505050565b6000806040838503121561457057600080fd5b82516001600160401b0381111561458657600080fd5b8301601f8101851361459757600080fd5b80516145a5613b7c82613b47565b8181528660208385010111156145ba57600080fd5b6145cb8260208301602086016138fc565b60209590950151949694955050505050565b600085516145ef818460208a016138fc565b820184868237909301918252506020019392505050565b60008282101561461857614618614176565b500390565b60008161462c5761462c614176565b506000190190565b600082516146468184602087016138fc565b600360fc1b92019182525064173539b7b760d91b6001820152600601919050565b600083516146798184602088016138fc565b83519083019061468d8183602088016138fc565b64173539b7b760d91b9101908152600501949350505050565b600080604083850312156146b957600080fd5b82356001600160401b038111156146cf57600080fd5b6146db85828601613d02565b95602094909401359450505050565b82848237909101908152602001919050565b60006020828403121561470e57600080fd5b815161291e81613ad6565b60408152600061472c6040830185613928565b828103602084015261473e8185613928565b95945050505050565b600082614756576147566141d9565b500690565b85815260606020820152600061477560608301868861444c565b828103604084015261478881858761444c565b98975050505050505050565b600082516142198184602087016138fc565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e0490830184613928565b6000602082840312156147eb57600080fd5b815161291e816138c956fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220a2c66945a1104d9c51dda9966048080ceef5afa32afbfe3704ccb733acfa0faf64736f6c634300080b003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000e8c0886a86059b6b7bc4c6a6a45d144d9dc2912900000000000000000000000000000000000000000000000000000000000003e80000000000000000000000006393beef8afdc6cca471bea2b445192f9355bb720000000000000000000000000000000000000000000000000000000000000008434e5020485547530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004434e504800000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102935760003560e01c80636f8934f41161015a578063acd083f8116100c1578063ce8056421161007a578063ce80564214610848578063d37c353b14610868578063d637ed5914610888578063e7150322146108b8578063e8a3d485146108d8578063e985e9c5146108ed57600080fd5b8063acd083f814610771578063ad1eefc514610786578063b24f2d39146107c8578063b88d4fde146107f3578063c68907de14610813578063c87b56dd1461082857600080fd5b806395d89b411161011357806395d89b41146106af5780639bcf7a15146106c45780639fc4d68f146106e4578063a05112fc14610704578063a22cb46514610724578063ac9650d81461074457600080fd5b80636f8934f4146105f157806370a082311461061e57806374bc7db71461063e57806384bb1e421461065e5780638da5cb5b14610671578063938e3d7b1461068f57600080fd5b80633b1475a7116101fe578063504c6e01116101b7578063504c6e011461054257806355f804b31461055c578063600dd5ea1461057c5780636352211e1461059c57806363b45e2d146105bc5780636f4f2837146105d157600080fd5b80633b1475a71461046957806341f434341461047e57806342842e0e146104a057806342966c68146104c0578063492e224b146104e05780634cc157df1461050057600080fd5b806318160ddd1161025057806318160ddd1461038357806323a2902b146103aa57806323b872dd146103ca5780632419f51b146103ea5780632a55205a1461040a57806332f0cd641461044957600080fd5b806301ffc9a71461029857806306fdde03146102cd578063079fe40e146102ef578063081812fc14610321578063095ea7b31461034157806313af403514610363575b600080fd5b3480156102a457600080fd5b506102b86102b33660046138df565b610936565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e26109a3565b6040516102c49190613954565b3480156102fb57600080fd5b50600e546001600160a01b03165b6040516001600160a01b0390911681526020016102c4565b34801561032d57600080fd5b5061030961033c366004613967565b610a35565b34801561034d57600080fd5b5061036161035c366004613995565b610a79565b005b34801561036f57600080fd5b5061036161037e3660046139c1565b610a92565b34801561038f57600080fd5b5060015460005403600019015b6040519081526020016102c4565b3480156103b657600080fd5b506102b86103c53660046139f6565b610acb565b3480156103d657600080fd5b506103616103e5366004613a73565b610e91565b3480156103f657600080fd5b5061039c610405366004613967565b610ebc565b34801561041657600080fd5b5061042a610425366004613ab4565b610f2a565b604080516001600160a01b0390931683526020830191909152016102c4565b34801561045557600080fd5b50610361610464366004613ae4565b610f67565b34801561047557600080fd5b50600f5461039c565b34801561048a57600080fd5b506103096daaeb6d7670e522a718067333cd4e81565b3480156104ac57600080fd5b506103616104bb366004613a73565b610fd8565b3480156104cc57600080fd5b506103616104db366004613967565b610ffd565b3480156104ec57600080fd5b506102b86104fb366004613967565b611008565b34801561050c57600080fd5b5061052061051b366004613967565b61102e565b604080516001600160a01b03909316835261ffff9091166020830152016102c4565b34801561054e57600080fd5b506011546102b89060ff1681565b34801561056857600080fd5b50610361610577366004613bac565b611099565b34801561058857600080fd5b50610361610597366004613995565b6111ba565b3480156105a857600080fd5b506103096105b7366004613967565b6111ec565b3480156105c857600080fd5b50600c5461039c565b3480156105dd57600080fd5b506103616105ec3660046139c1565b6111fe565b3480156105fd57600080fd5b5061061161060c366004613967565b61122b565b6040516102c49190613bf4565b34801561062a57600080fd5b5061039c6106393660046139c1565b611388565b34801561064a57600080fd5b50610361610659366004613cac565b6113d6565b61036161066c366004613d22565b61171a565b34801561067d57600080fd5b506009546001600160a01b0316610309565b34801561069b57600080fd5b506103616106aa366004613bac565b611806565b3480156106bb57600080fd5b506102e2611833565b3480156106d057600080fd5b506103616106df366004613daf565b611842565b3480156106f057600080fd5b506102e26106ff366004613e17565b611871565b34801561071057600080fd5b506102e261071f366004613967565b6119f2565b34801561073057600080fd5b5061036161073f366004613e62565b611a8c565b34801561075057600080fd5b5061076461075f366004613e9b565b611aa0565b6040516102c49190613edc565b34801561077d57600080fd5b5060005461039c565b34801561079257600080fd5b5061039c6107a1366004613f3e565b60009182526015602090815260408084206001600160a01b03909316845291905290205490565b3480156107d457600080fd5b50600a546001600160a01b03811690600160a01b900461ffff16610520565b3480156107ff57600080fd5b5061036161080e366004613f63565b611b94565b34801561081f57600080fd5b5061039c611bc1565b34801561083457600080fd5b506102e2610843366004613967565b611c64565b34801561085457600080fd5b506102e2610863366004613e17565b611cd3565b34801561087457600080fd5b5061039c610883366004613fce565b611d76565b34801561089457600080fd5b506012546013546108a3919082565b604080519283526020830191909152016102c4565b3480156108c457600080fd5b506102e26108d3366004614047565b611e0e565b3480156108e457600080fd5b506102e2611e83565b3480156108f957600080fd5b506102b86109083660046140a2565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006301ffc9a760e01b6001600160e01b03198316148061096757506380ac58cd60e01b6001600160e01b03198316145b806109825750635b5e139f60e01b6001600160e01b03198316145b8061099d57506001600160e01b0319821663152a902d60e11b145b92915050565b6060600280546109b2906140d0565b80601f01602080910402602001604051908101604052809291908181526020018280546109de906140d0565b8015610a2b5780601f10610a0057610100808354040283529160200191610a2b565b820191906000526020600020905b815481529060010190602001808311610a0e57829003601f168201915b5050505050905090565b6000610a4082611e90565b610a5d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b81610a8381611ec9565b610a8d8383611f8d565b505050565b610a9a61200f565b610abf5760405162461bcd60e51b8152600401610ab690614105565b60405180910390fd5b610ac88161203c565b50565b6000868152601460209081526040808320815161010081018352815481526001820154938101939093526002810154918301919091526003810154606083015260048101546080830152600581015460a083015260068101546001600160a01b031660c08301526007810180548493929160e0840191610b4a906140d0565b80601f0160208091040260200160405190810160405280929190818152602001828054610b76906140d0565b8015610bc35780601f10610b9857610100808354040283529160200191610bc3565b820191906000526020600020905b815481529060010190602001808311610ba657829003601f168201915b50505091909252505050606081015160a082015160c08301516080840151939450919290919015610ca857610ca4610bfb878061412d565b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250505060808088015191508d9060208b01359060408c013590610c50908d0160608e016139c1565b6040516bffffffffffffffffffffffff19606095861b811660208301526034820194909452605481019290925290921b1660748201526088016040516020818303038152906040528051906020012061208e565b5094505b8415610d2d576020860135610cbd5782610cc3565b85602001355b925060001986604001351415610cd95781610cdf565b85604001355b9150600019866040013514158015610d1057506000610d0460808801606089016139c1565b6001600160a01b031614155b610d1a5780610d2a565b610d2a60808701606088016139c1565b90505b60008b81526015602090815260408083206001600160a01b03808f16855292529091205490898116908316141580610d655750828814155b15610da55760405162461bcd60e51b815260206004820152601060248201526f2150726963654f7243757272656e637960801b6044820152606401610ab6565b891580610dba575083610db8828c61418c565b115b15610df05760405162461bcd60e51b8152600401610ab6906020808252600490820152632151747960e01b604082015260600190565b84602001518a8660400151610e05919061418c565b1115610e405760405162461bcd60e51b815260206004820152600a602482015269214d6178537570706c7960b01b6044820152606401610ab6565b8451421015610e825760405162461bcd60e51b815260206004820152600e60248201526d18d85b9d0818db185a5b481e595d60921b6044820152606401610ab6565b50505050509695505050505050565b826001600160a01b0381163314610eab57610eab33611ec9565b610eb684848461215c565b50505050565b6000610ec7600c5490565b8210610f055760405162461bcd60e51b815260206004820152600d60248201526c092dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610ab6565b600c8281548110610f1857610f186141a4565b90600052602060002001549050919050565b600080600080610f398661102e565b90945084925061ffff169050612710610f5282876141ba565b610f5c91906141ef565b925050509250929050565b610f6f61200f565b610fcf5760405162461bcd60e51b815260206004820152602b60248201527f4e6f7420617574686f72697a656420746f20736574206f70657261746f72207260448201526a32b9ba3934b1ba34b7b71760a91b6064820152608401610ab6565b610ac881612167565b826001600160a01b0381163314610ff257610ff233611ec9565b610eb68484846121ae565b610ac88160016121c9565b60008181526010602052604081208054829190611024906140d0565b9050119050919050565b6000818152600b60209081526040808320815180830190925280546001600160a01b031680835260019091015492820192909252829115611075578051602082015161108f565b600a546001600160a01b03811690600160a01b900461ffff165b9250925050915091565b6110a161200f565b6110bd5760405162461bcd60e51b8152600401610ab690614105565b60006110c8600c5490565b90506000600c80548060200260200160405190810160405280929190818152602001828054801561111857602002820191906000526020600020905b815481526020019060010190808311611104575b5050505050905060005b8281101561117d5783600d6000848481518110611141576111416141a4565b60200260200101518152602001908152602001600020908051906020019061116a9291906137fa565b5061117660018261418c565b9050611122565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad836040516111ad9190613954565b60405180910390a1505050565b6111c261200f565b6111de5760405162461bcd60e51b8152600401610ab690614105565b6111e8828261237c565b5050565b60006111f782612422565b5192915050565b61120661200f565b6112225760405162461bcd60e51b8152600401610ab690614105565b610ac881612544565b61127f60405180610100016040528060008152602001600081526020016000815260200160008152602001600080191681526020016000815260200160006001600160a01b03168152602001606081525090565b600082815260146020908152604091829020825161010081018452815481526001820154928101929092526002810154928201929092526003820154606082015260048201546080820152600582015460a082015260068201546001600160a01b031660c082015260078201805491929160e0840191906112ff906140d0565b80601f016020809104026020016040519081016040528092919081815260200182805461132b906140d0565b80156113785780601f1061134d57610100808354040283529160200191611378565b820191906000526020600020905b81548152906001019060200180831161135b57829003601f168201915b5050505050815250509050919050565b60006001600160a01b0382166113b1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6113de61200f565b6113fa5760405162461bcd60e51b8152600401610ab690614105565b60125460135481831561141457611411828461418c565b90505b601385905560128190556000805b868110156115c75780158061145a5750878782818110611444576114446141a4565b90506020028101906114569190614203565b3582105b61148b5760405162461bcd60e51b815260206004820152600260248201526114d560f21b6044820152606401610ab6565b600060148161149a848761418c565b81526020019081526020016000206002015490508888838181106114c0576114c06141a4565b90506020028101906114d29190614203565b6020013581111561151a5760405162461bcd60e51b81526020600482015260126024820152711b585e081cdd5c1c1b1e4818db185a5b595960721b6044820152606401610ab6565b88888381811061152c5761152c6141a4565b905060200281019061153e9190614203565b6014600061154c858861418c565b81526020019081526020016000208181611566919061436e565b5081905060146000611578858861418c565b815260208101919091526040016000206002015588888381811061159e5761159e6141a4565b90506020028101906115b09190614203565b3592508190506115bf816143ec565b915050611422565b50841561164757835b8281101561164157600081815260146020526040812081815560018101829055600281018290556003810182905560048101829055600581018290556006810180546001600160a01b03191690559061162c600783018261387e565b50508080611639906143ec565b9150506115d0565b506116d6565b858311156116d657855b838110156116d45760146000611667838661418c565b81526020810191909152604001600090812081815560018101829055600281018290556003810182905560048101829055600581018290556006810180546001600160a01b0319169055906116bf600783018261387e565b505080806116cc906143ec565b915050611651565b505b7fbf4016fceeaaa4ac5cf4be865b559ff85825ab4ca7aa7b661d16e2f544c0309887878760405161170993929190614475565b60405180910390a150505050505050565b61172886868686868661258e565b6000611732611bc1565b9050611742813388888888610acb565b506000818152601460205260408120600201805488929061176490849061418c565b909155505060008181526015602090815260408083203384529091528120805488929061179290849061418c565b909155506117a5905060008787876125f5565b60006117b188886126ab565b60408051828152602081018a90529192506001600160a01b038a1691339185917ffa76a4010d9533e3e964f2930a65fb6042a12fa6ff5b08281837a10b0be7321e910160405180910390a45050505050505050565b61180e61200f565b61182a5760405162461bcd60e51b8152600401610ab690614105565b610ac8816126b8565b6060600380546109b2906140d0565b61184a61200f565b6118665760405162461bcd60e51b8152600401610ab690614105565b610a8d83838361279a565b60008381526010602052604081208054606092919061188f906140d0565b80601f01602080910402602001604051908101604052809291908181526020018280546118bb906140d0565b80156119085780601f106118dd57610100808354040283529160200191611908565b820191906000526020600020905b8154815290600101906020018083116118eb57829003601f168201915b505050505090508051600014156119555760405162461bcd60e51b8152602060048201526011602482015270139bdd1a1a5b99c81d1bc81c995d99585b607a1b6044820152606401610ab6565b6000808280602001905181019061196c919061455d565b9150915061197b828787611e0e565b9350808487874660405160200161199594939291906145dd565b60405160208183030381529060405280519060200120146119e85760405162461bcd60e51b815260206004820152600d60248201526c496e636f7272656374206b657960981b6044820152606401610ab6565b5050509392505050565b60106020526000908152604090208054611a0b906140d0565b80601f0160208091040260200160405190810160405280929190818152602001828054611a37906140d0565b8015611a845780601f10611a5957610100808354040283529160200191611a84565b820191906000526020600020905b815481529060010190602001808311611a6757829003601f168201915b505050505081565b81611a9681611ec9565b610a8d8383612863565b6060816001600160401b03811115611aba57611aba613b01565b604051908082528060200260200182016040528015611aed57816020015b6060815260200190600190039081611ad85790505b50905060005b82811015611b8d57611b5d30858584818110611b1157611b116141a4565b9050602002810190611b239190614223565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506128f992505050565b828281518110611b6f57611b6f6141a4565b60200260200101819052508080611b85906143ec565b915050611af3565b5092915050565b836001600160a01b0381163314611bae57611bae33611ec9565b611bba85858585612925565b5050505050565b6013546012546000918291611bd6919061418c565b90505b601254811115611c2d5760146000611bf2600184614606565b8152602001908152602001600020600001544210611c1b57611c15600182614606565b91505090565b80611c258161461d565b915050611bd9565b5060405162461bcd60e51b815260206004820152600b60248201526a10a1a7a72224aa24a7a71760a91b6044820152606401610ab6565b60606000611c7183612969565b5090506000611c7f84612a6e565b9050611c8a82611008565b15611cb85780604051602001611ca09190614634565b60405160208183030381529060405292505050919050565b80611cc285612bcf565b604051602001611ca0929190614667565b6060611cdd61200f565b611cf95760405162461bcd60e51b8152600401610ab690614105565b6000611d0485610ebc565b9050611d11818585611871565b9150611d2c8160405180602001604052806000815250612cd4565b611d368183612cf3565b847f6df1d8db2a036436ffe0b2d1833f2c5f1e624818dfce2578c0faa4b83ef9998d83604051611d669190613954565b60405180910390a2509392505050565b60008115611df757600080611d8d848601866146a6565b915091508151600014158015611da257508015155b15611df457611df488600f54611db8919061418c565b86868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612cd492505050565b50505b611e048686868686612d12565b9695505050505050565b8251604080518083016020019091528181529060005b81811015611e7a576000858583604051602001611e43939291906146ea565b60408051601f19818403018152919052805160209182012088840182015118858401820152611e7391508261418c565b9050611e24565b50509392505050565b60088054611a0b906140d0565b600081600111158015611ea4575060005482105b801561099d575050600090815260046020526040902054600160e01b900460ff161590565b60115460ff1615610ac8576daaeb6d7670e522a718067333cd4e3b15610ac857604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611f41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6591906146fc565b610ac857604051633b79c77360e21b81526001600160a01b0382166004820152602401610ab6565b6000611f98826111ec565b9050806001600160a01b0316836001600160a01b03161415611fcd5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161461200457611fe78133610908565b612004576040516367d9dca160e11b815260040160405180910390fd5b610a8d838383612e1c565b60006120236009546001600160a01b031690565b6001600160a01b0316336001600160a01b031614905090565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a35050565b6000808281805b8751811015612150576120a96002836141ba565b915060008882815181106120bf576120bf6141a4565b6020026020010151905080841161210157604080516020810186905290810182905260600160405160208183030381529060405280519060200120935061213d565b604080516020810183905290810185905260600160405160208183030381529060405280519060200120935060018361213a919061418c565b92505b5080612148816143ec565b915050612095565b50941495939450505050565b610a8d838383612e78565b6011805460ff19168215159081179091556040519081527f38475885990d8dfe9ca01f0ef160a1b5514426eab9ddbc953a3353410ba780969060200160405180910390a150565b610a8d83838360405180602001604052806000815250611b94565b60006121d483612422565b8051909150821561223a576000336001600160a01b03831614806121fd57506121fd8233610908565b8061221857503361220d86610a35565b6001600160a01b0316145b90508061223857604051632ce44b5f60e11b815260040160405180910390fd5b505b61224660008583612e1c565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661234457600054821461234457805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b0384169060008051602061481e833981519152908390a4505060018054810190555050565b6127108111156123c05760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d61782062707360881b6044820152606401610ab6565b600a80546001600160a01b0384166001600160b01b03199091168117600160a01b61ffff851602179091556040518281527f90d7ec04bcb8978719414f82e52e4cb651db41d0e6f8cea6118c2191e6183adb9060200160405180910390a25050565b6040805160608101825260008082526020820181905291810191909152818060011161252b5760005481101561252b57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906125295780516001600160a01b0316156124c0579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612524579392505050565b6124c0565b505b604051636f96cda160e11b815260040160405180910390fd5b600e80546001600160a01b0319166001600160a01b0383169081179091556040517f299d17e95023f496e0ffc4909cff1a61f74bb5eb18de6f900f4155bfa1b3b33390600090a250565b600f548560005461259f919061418c565b11156125ed5760405162461bcd60e51b815260206004820152601860248201527f4e6f7420656e6f756768206d696e74656420746f6b656e7300000000000000006044820152606401610ab6565b505050505050565b806125ff57610eb6565b600061260b82856141ba565b90506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415612679578034146126795760405162461bcd60e51b81526020600482015260156024820152744d7573742073656e6420746f74616c20707269636560581b6044820152606401610ab6565b60006001600160a01b03861615612690578561269d565b600e546001600160a01b03165b90506125ed84338385613051565b60005461099d838361309b565b6000600880546126c7906140d0565b80601f01602080910402602001604051908101604052809291908181526020018280546126f3906140d0565b80156127405780601f1061271557610100808354040283529160200191612740565b820191906000526020600020905b81548152906001019060200180831161272357829003601f168201915b5050855193945061275c936008935060208701925090506137fa565b507fc9c7c3fe08b88b4df9d4d47ef47d2c43d55c025a0ba88ca442580ed9e7348a16818360405161278e929190614719565b60405180910390a15050565b6127108111156127de5760405162461bcd60e51b815260206004820152600f60248201526e45786365656473206d61782062707360881b6044820152606401610ab6565b6040805180820182526001600160a01b0384811680835260208084018681526000898152600b8352869020945185546001600160a01b031916941693909317845591516001909301929092559151838152909185917f7365cf4122f072a3365c20d54eff9b38d73c096c28e1892ec8f5b0e403a0f12d910160405180910390a3505050565b6001600160a01b03821633141561288d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b606061291e83836040518060600160405280602781526020016147f7602791396130b5565b9392505050565b612930848484612e78565b6001600160a01b0383163b15610eb65761294c84848484613188565b610eb6576040516368d2bf6b60e11b815260040160405180910390fd5b6000806000612977600c5490565b90506000600c8054806020026020016040519081016040528092919081815260200182805480156129c757602002820191906000526020600020905b8154815260200190600101908083116129b3575b5050505050905060005b82811015612a33578181815181106129eb576129eb6141a4565b6020026020010151861015612a2157809350818181518110612a0f57612a0f6141a4565b60200260200101519450505050915091565b612a2c60018261418c565b90506129d1565b5060405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081d1bdad95b9259608a1b6044820152606401610ab6565b60606000612a7b600c5490565b90506000600c805480602002602001604051908101604052809291908181526020018280548015612acb57602002820191906000526020600020905b815481526020019060010190808311612ab7575b5050505050905060005b82811015612a3357818181518110612aef57612aef6141a4565b6020026020010151851015612bbd57600d6000838381518110612b1457612b146141a4565b602002602001015181526020019081526020016000208054612b35906140d0565b80601f0160208091040260200160405190810160405280929190818152602001828054612b61906140d0565b8015612bae5780601f10612b8357610100808354040283529160200191612bae565b820191906000526020600020905b815481529060010190602001808311612b9157829003601f168201915b50505050509350505050919050565b612bc860018261418c565b9050612ad5565b606081612bf35750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612c1d5780612c07816143ec565b9150612c169050600a836141ef565b9150612bf7565b6000816001600160401b03811115612c3757612c37613b01565b6040519080825280601f01601f191660200182016040528015612c61576020820181803683370190505b5090505b8415612ccc57612c76600183614606565b9150612c83600a86614747565b612c8e90603061418c565b60f81b818381518110612ca357612ca36141a4565b60200101906001600160f81b031916908160001a905350612cc5600a866141ef565b9450612c65565b949350505050565b60008281526010602090815260409091208251610a8d928401906137fa565b6000828152600d602090815260409091208251610a8d928401906137fa565b6000612d1c61200f565b612d385760405162461bcd60e51b8152600401610ab690614105565b85612d6d5760405162461bcd60e51b81526020600482015260056024820152640c08185b5d60da1b6044820152606401610ab6565b6000600f549050612db5818888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061327092505050565b600f919091559150807f2a0365091ef1a40953c670dce28177e37520648a6fdc91506bffac0ab045570d6001612deb8a8461418c565b612df59190614606565b88888888604051612e0a95949392919061475b565b60405180910390a25095945050505050565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612e8382612422565b9050836001600160a01b031681600001516001600160a01b031614612eba5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612ed85750612ed88533610908565b80612ef3575033612ee884610a35565b6001600160a01b0316145b905080612f1357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612f3a57604051633a954ecd60e21b815260040160405180910390fd5b612f4660008487612e1c565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661301a57600054821461301a57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b031660008051602061481e83398151915260405160405180910390a4611bba565b8061305b57610eb6565b6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561308f5761308a82826132dd565b610eb6565b610eb684848484613380565b6111e88282604051806020016040528060008152506133d9565b60606001600160a01b0384163b61311d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610ab6565b600080856001600160a01b0316856040516131389190614794565b600060405180830381855af49150503d8060008114613173576040519150601f19603f3d011682016040523d82523d6000602084013e613178565b606091505b5091509150611e04828286613579565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906131bd9033908990889088906004016147a6565b6020604051808303816000875af19250505080156131f8575060408051601f3d908101601f191682019092526131f5918101906147d9565b60015b613253573d808015613226576040519150601f19603f3d011682016040523d82523d6000602084013e61322b565b606091505b50805161324b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60008061327d848661418c565b600c8054600181019091557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7018190556000818152600d6020908152604090912085519294508493506132d49290918601906137fa565b50935093915050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461332a576040519150601f19603f3d011682016040523d82523d6000602084013e61332f565b606091505b5050905080610a8d5760405162461bcd60e51b815260206004820152601c60248201527f6e617469766520746f6b656e207472616e73666572206661696c6564000000006044820152606401610ab6565b816001600160a01b0316836001600160a01b0316141561339f57610eb6565b6001600160a01b0383163014156133c45761308a6001600160a01b03851683836135b2565b610eb66001600160a01b038516848484613615565b6000546001600160a01b03841661340257604051622e076360e81b815260040160405180910390fd5b826134205760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15613536575b60405182906001600160a01b0388169060009060008051602061481e833981519152908290a46134ff6000878480600101955087613188565b61351c576040516368d2bf6b60e11b815260040160405180910390fd5b8082106134c657826000541461353157600080fd5b613569565b5b6040516001830192906001600160a01b0388169060009060008051602061481e833981519152908290a4808210613537575b506000908155610eb69085838684565b6060831561358857508161291e565b8251156135985782518084602001fd5b8160405162461bcd60e51b8152600401610ab69190613954565b6040516001600160a01b038316602482015260448101829052610a8d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261364d565b6040516001600160a01b0380851660248301528316604482015260648101829052610eb69085906323b872dd60e01b906084016135de565b60006136a2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661371f9092919063ffffffff16565b805190915015610a8d57808060200190518101906136c091906146fc565b610a8d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610ab6565b6060612ccc8484600085856001600160a01b0385163b6137815760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ab6565b600080866001600160a01b0316858760405161379d9190614794565b60006040518083038185875af1925050503d80600081146137da576040519150601f19603f3d011682016040523d82523d6000602084013e6137df565b606091505b50915091506137ef828286613579565b979650505050505050565b828054613806906140d0565b90600052602060002090601f016020900481019282613828576000855561386e565b82601f1061384157805160ff191683800117855561386e565b8280016001018555821561386e579182015b8281111561386e578251825591602001919060010190613853565b5061387a9291506138b4565b5090565b50805461388a906140d0565b6000825580601f1061389a575050565b601f016020900490600052602060002090810190610ac891905b5b8082111561387a57600081556001016138b5565b6001600160e01b031981168114610ac857600080fd5b6000602082840312156138f157600080fd5b813561291e816138c9565b60005b838110156139175781810151838201526020016138ff565b83811115610eb65750506000910152565b600081518084526139408160208601602086016138fc565b601f01601f19169290920160200192915050565b60208152600061291e6020830184613928565b60006020828403121561397957600080fd5b5035919050565b6001600160a01b0381168114610ac857600080fd5b600080604083850312156139a857600080fd5b82356139b381613980565b946020939093013593505050565b6000602082840312156139d357600080fd5b813561291e81613980565b6000608082840312156139f057600080fd5b50919050565b60008060008060008060c08789031215613a0f57600080fd5b863595506020870135613a2181613980565b9450604087013593506060870135613a3881613980565b92506080870135915060a08701356001600160401b03811115613a5a57600080fd5b613a6689828a016139de565b9150509295509295509295565b600080600060608486031215613a8857600080fd5b8335613a9381613980565b92506020840135613aa381613980565b929592945050506040919091013590565b60008060408385031215613ac757600080fd5b50508035926020909101359150565b8015158114610ac857600080fd5b600060208284031215613af657600080fd5b813561291e81613ad6565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613b3f57613b3f613b01565b604052919050565b60006001600160401b03821115613b6057613b60613b01565b50601f01601f191660200190565b6000613b81613b7c84613b47565b613b17565b9050828152838383011115613b9557600080fd5b828260208301376000602084830101529392505050565b600060208284031215613bbe57600080fd5b81356001600160401b03811115613bd457600080fd5b8201601f81018413613be557600080fd5b612ccc84823560208401613b6e565b6020815281516020820152602082015160408201526040820151606082015260608201516080820152608082015160a082015260a082015160c082015260018060a01b0360c08301511660e0820152600060e0830151610100808185015250612ccc610120840182613928565b60008083601f840112613c7357600080fd5b5081356001600160401b03811115613c8a57600080fd5b6020830191508360208260051b8501011115613ca557600080fd5b9250929050565b600080600060408486031215613cc157600080fd5b83356001600160401b03811115613cd757600080fd5b613ce386828701613c61565b9094509250506020840135613cf781613ad6565b809150509250925092565b600082601f830112613d1357600080fd5b61291e83833560208501613b6e565b60008060008060008060c08789031215613d3b57600080fd5b8635613d4681613980565b9550602087013594506040870135613d5d81613980565b93506060870135925060808701356001600160401b0380821115613d8057600080fd5b613d8c8a838b016139de565b935060a0890135915080821115613da257600080fd5b50613a6689828a01613d02565b600080600060608486031215613dc457600080fd5b833592506020840135613aa381613980565b60008083601f840112613de857600080fd5b5081356001600160401b03811115613dff57600080fd5b602083019150836020828501011115613ca557600080fd5b600080600060408486031215613e2c57600080fd5b8335925060208401356001600160401b03811115613e4957600080fd5b613e5586828701613dd6565b9497909650939450505050565b60008060408385031215613e7557600080fd5b8235613e8081613980565b91506020830135613e9081613ad6565b809150509250929050565b60008060208385031215613eae57600080fd5b82356001600160401b03811115613ec457600080fd5b613ed085828601613c61565b90969095509350505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015613f3157603f19888603018452613f1f858351613928565b94509285019290850190600101613f03565b5092979650505050505050565b60008060408385031215613f5157600080fd5b823591506020830135613e9081613980565b60008060008060808587031215613f7957600080fd5b8435613f8481613980565b93506020850135613f9481613980565b92506040850135915060608501356001600160401b03811115613fb657600080fd5b613fc287828801613d02565b91505092959194509250565b600080600080600060608688031215613fe657600080fd5b8535945060208601356001600160401b038082111561400457600080fd5b61401089838a01613dd6565b9096509450604088013591508082111561402957600080fd5b5061403688828901613dd6565b969995985093965092949392505050565b60008060006040848603121561405c57600080fd5b83356001600160401b038082111561407357600080fd5b61407f87838801613d02565b9450602086013591508082111561409557600080fd5b50613e5586828701613dd6565b600080604083850312156140b557600080fd5b82356140c081613980565b91506020830135613e9081613980565b600181811c908216806140e457607f821691505b602082108114156139f057634e487b7160e01b600052602260045260246000fd5b6020808252600e908201526d139bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b6000808335601e1984360301811261414457600080fd5b8301803591506001600160401b0382111561415e57600080fd5b6020019150600581901b3603821315613ca557600080fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561419f5761419f614176565b500190565b634e487b7160e01b600052603260045260246000fd5b60008160001904831182151516156141d4576141d4614176565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826141fe576141fe6141d9565b500490565b6000823560fe1983360301811261421957600080fd5b9190910192915050565b6000808335601e1984360301811261423a57600080fd5b8301803591506001600160401b0382111561425457600080fd5b602001915036819003821315613ca557600080fd5b601f821115610a8d57600081815260208120601f850160051c810160208610156142905750805b601f850160051c820191505b818110156125ed5782815560010161429c565b6001600160401b038311156142c6576142c6613b01565b6142da836142d483546140d0565b83614269565b6000601f84116001811461430e57600085156142f65750838201355b600019600387901b1c1916600186901b178355611bba565b600083815260209020601f19861690835b8281101561433f578685013582556020948501946001909201910161431f565b508682101561435c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b813581556020820135600182015560408201356002820155606082013560038201556080820135600482015560a082013560058201556006810160c08301356143b681613980565b81546001600160a01b0319166001600160a01b03919091161790556143de60e0830183614223565b610eb68183600786016142af565b600060001982141561440057614400614176565b5060010190565b6000808335601e1984360301811261441e57600080fd5b83016020810192503590506001600160401b0381111561443d57600080fd5b803603831315613ca557600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60408082528181018490526000906060808401600587901b850182018885805b8a81101561454757888403605f190185528235368d900360fe190181126144ba578283fd5b8c018035855260208082013581870152888201358987015287820135888701526080808301359087015260a080830135908701526101009060c08084013561450181613980565b6001600160a01b03169088015260e061451c84820185614407565b945083828a0152614530848a01868361444c565b998301999850505094909401935050600101614495565b50505086151560208701529350612ccc92505050565b6000806040838503121561457057600080fd5b82516001600160401b0381111561458657600080fd5b8301601f8101851361459757600080fd5b80516145a5613b7c82613b47565b8181528660208385010111156145ba57600080fd5b6145cb8260208301602086016138fc565b60209590950151949694955050505050565b600085516145ef818460208a016138fc565b820184868237909301918252506020019392505050565b60008282101561461857614618614176565b500390565b60008161462c5761462c614176565b506000190190565b600082516146468184602087016138fc565b600360fc1b92019182525064173539b7b760d91b6001820152600601919050565b600083516146798184602088016138fc565b83519083019061468d8183602088016138fc565b64173539b7b760d91b9101908152600501949350505050565b600080604083850312156146b957600080fd5b82356001600160401b038111156146cf57600080fd5b6146db85828601613d02565b95602094909401359450505050565b82848237909101908152602001919050565b60006020828403121561470e57600080fd5b815161291e81613ad6565b60408152600061472c6040830185613928565b828103602084015261473e8185613928565b95945050505050565b600082614756576147566141d9565b500690565b85815260606020820152600061477560608301868861444c565b828103604084015261478881858761444c565b98975050505050505050565b600082516142198184602087016138fc565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e0490830184613928565b6000602082840312156147eb57600080fd5b815161291e816138c956fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220a2c66945a1104d9c51dda9966048080ceef5afa32afbfe3704ccb733acfa0faf64736f6c634300080b0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000e8c0886a86059b6b7bc4c6a6a45d144d9dc2912900000000000000000000000000000000000000000000000000000000000003e80000000000000000000000006393beef8afdc6cca471bea2b445192f9355bb720000000000000000000000000000000000000000000000000000000000000008434e5020485547530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004434e504800000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): CNP HUGS
Arg [1] : _symbol (string): CNPH
Arg [2] : _royaltyRecipient (address): 0xE8C0886A86059b6B7Bc4C6A6A45d144D9dc29129
Arg [3] : _royaltyBps (uint128): 1000
Arg [4] : _primarySaleRecipient (address): 0x6393beef8AfdC6CCa471BEA2b445192F9355Bb72

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000e8c0886a86059b6b7bc4c6a6a45d144d9dc29129
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 0000000000000000000000006393beef8afdc6cca471bea2b445192f9355bb72
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [6] : 434e502048554753000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 434e504800000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

103:944:38:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3019:444:41;;;;;;;;;;-1:-1:-1;3019:444:41;;;;;:::i;:::-;;:::i;:::-;;;661:14:42;;654:22;636:41;;624:2;609:18;3019:444:41;;;;;;;;6131:98:1;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;676:104:17:-;;;;;;;;;;-1:-1:-1;764:9:17;;-1:-1:-1;;;;;764:9:17;676:104;;;-1:-1:-1;;;;;1603:32:42;;;1585:51;;1573:2;1558:18;676:104:17;1439:203:42;7617:200:1;;;;;;;;;;-1:-1:-1;7617:200:1;;;;;:::i;:::-;;:::i;7971:208:41:-;;;;;;;;;;-1:-1:-1;7971:208:41;;;;;:::i;:::-;;:::i;:::-;;1133:173:16;;;;;;;;;;-1:-1:-1;1133:173:16;;;;;:::i;:::-;;:::i;2284:306:1:-;;;;;;;;;;-1:-1:-1;611:1:38;2543:12:1;2337:7;2527:13;:28;-1:-1:-1;;2527:46:1;2284:306;;;2686:25:42;;;2674:2;2659:18;2284:306:1;2540:177:42;4806:2222:12;;;;;;;;;;-1:-1:-1;4806:2222:12;;;;;:::i;:::-;;:::i;8226:208:41:-;;;;;;;;;;-1:-1:-1;8226:208:41;;;;;:::i;:::-;;:::i;1854:203:39:-;;;;;;;;;;-1:-1:-1;1854:203:39;;;;;:::i;:::-;;:::i;1421:347:18:-;;;;;;;;;;-1:-1:-1;1421:347:18;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;4654:32:42;;;4636:51;;4718:2;4703:18;;4696:34;;;;4609:18;1421:347:18;4462:274:42;243:208:14;;;;;;;;;;-1:-1:-1;243:208:14;;;;;:::i;:::-;;:::i;5740:112:41:-;;;;;;;;;;-1:-1:-1;5824:21:41;;5740:112;;806:142:15;;;;;;;;;;;;905:42;806:142;;8485:216:41;;;;;;;;;;-1:-1:-1;8485:216:41;;;;;:::i;:::-;;:::i;7384:87::-;;;;;;;;;;-1:-1:-1;7384:87:41;;;;;:::i;:::-;;:::i;3937:129:11:-;;;;;;;;;;-1:-1:-1;3937:129:11;;;;;:::i;:::-;;:::i;2008:381:18:-;;;;;;;;;;-1:-1:-1;2008:381:18;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;5540:32:42;;;5522:51;;5621:6;5609:19;;;5604:2;5589:18;;5582:47;5495:18;2008:381:18;5350:285:42;205:31:14;;;;;;;;;;-1:-1:-1;205:31:14;;;;;;;;948:398:39;;;;;;;;;;-1:-1:-1;948:398:39;;;;;:::i;:::-;;:::i;3087:256:18:-;;;;;;;;;;-1:-1:-1;3087:256:18;;;;;:::i;:::-;;:::i;5946:123:1:-;;;;;;;;;;-1:-1:-1;5946:123:1;;;;;:::i;:::-;;:::i;1557:96:39:-;;;;;;;;;;-1:-1:-1;1631:8:39;:15;1557:96;;1189:228:17;;;;;;;;;;-1:-1:-1;1189:228:17;;;;;:::i;:::-;;:::i;7548:177:12:-;;;;;;;;;;-1:-1:-1;7548:177:12;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3372:203:1:-;;;;;;;;;;-1:-1:-1;3372:203:1;;;;;:::i;:::-;;:::i;1949:2760:12:-;;;;;;;;;;-1:-1:-1;1949:2760:12;;;;;:::i;:::-;;:::i;699:1187::-;;;;;;:::i;:::-;;:::i;871:86:16:-;;;;;;;;;;-1:-1:-1;944:6:16;;-1:-1:-1;;;;;944:6:16;871:86;;1003:188:9;;;;;;;;;;-1:-1:-1;1003:188:9;;;;;:::i;:::-;;:::i;6293:102:1:-;;;;;;;;;;;;;:::i;4281:288:18:-;;;;;;;;;;-1:-1:-1;4281:288:18;;;;;:::i;:::-;;:::i;1383:534:11:-;;;;;;;;;;-1:-1:-1;1383:534:11;;;;;:::i;:::-;;:::i;568:46::-;;;;;;;;;;-1:-1:-1;568:46:11;;;;;:::i;:::-;;:::i;7703:227:41:-;;;;;;;;;;-1:-1:-1;7703:227:41;;;;;:::i;:::-;;:::i;698:319:13:-;;;;;;;;;;-1:-1:-1;698:319:13;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;5930:105:41:-;;;;;;;;;;-1:-1:-1;5989:7:41;6015:13;5930:105;;7807:255:12;;;;;;;;;;-1:-1:-1;7807:255:12;;;;;:::i;:::-;7926:29;7995:50;;;:36;:50;;;;;;;;-1:-1:-1;;;;;7995:60:12;;;;;;;;;;;;7807:255;2499:144:18;;;;;;;;;;-1:-1:-1;2599:16:18;;-1:-1:-1;;;;;2599:16:18;;;-1:-1:-1;;;2624:10:18;;;;2499:144;;8752:249:41;;;;;;;;;;-1:-1:-1;8752:249:41;;;;;:::i;:::-;;:::i;7116:367:12:-;;;;;;;;;;;;;:::i;625:420:38:-;;;;;;;;;;-1:-1:-1;625:420:38;;;;;:::i;:::-;;:::i;6514:411:41:-;;;;;;;;;;-1:-1:-1;6514:411:41;;;;;:::i;:::-;;:::i;5099:559::-;;;;;;;;;;-1:-1:-1;5099:559:41;;;;;:::i;:::-;;:::i;430:40:12:-;;;;;;;;;;-1:-1:-1;430:40:12;;;;;;;;;;;;;15199:25:42;;;15255:2;15240:18;;15233:34;;;;15172:18;430:40:12;15025:248:42;2409:1283:11;;;;;;;;;;-1:-1:-1;2409:1283:11;;;;;:::i;:::-;;:::i;565:34:9:-;;;;;;;;;;;;;:::i;8232:162:1:-;;;;;;;;;;-1:-1:-1;8232:162:1;;;;;:::i;:::-;-1:-1:-1;;;;;8352:25:1;;;8329:4;8352:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;8232:162;3019:444:41;3122:4;-1:-1:-1;;;;;;;;;3157:25:41;;;;:100;;-1:-1:-1;;;;;;;;;;3232:25:41;;;3157:100;:175;;;-1:-1:-1;;;;;;;;;;3307:25:41;;;3157:175;:274;;;-1:-1:-1;;;;;;;3390:41:41;;-1:-1:-1;;;3390:41:41;3157:274;3138:293;3019:444;-1:-1:-1;;3019:444:41:o;6131:98:1:-;6185:13;6217:5;6210:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6131:98;:::o;7617:200::-;7685:7;7709:16;7717:7;7709;:16::i;:::-;7704:64;;7734:34;;-1:-1:-1;;;7734:34:1;;;;;;;;;;;7704:64;-1:-1:-1;7786:24:1;;;;:15;:24;;;;;;-1:-1:-1;;;;;7786:24:1;;7617:200::o;7971:208:41:-;8116:8;2296:30:15;2317:8;2296:20;:30::i;:::-;8140:32:41::1;8154:8;8164:7;8140:13;:32::i;:::-;7971:208:::0;;;:::o;1133:173:16:-;1203:14;:12;:14::i;:::-;1198:70;;1233:24;;-1:-1:-1;;;1233:24:16;;;;;;;:::i;:::-;;;;;;;;1198:70;1277:22;1289:9;1277:11;:22::i;:::-;1133:173;:::o;4806:2222:12:-;5045:15;5114:39;;;:25;:39;;;;;;;;5072:81;;;;;;;;;;;;;;;;;;;;;;5114:25;5072:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5072:81:12;;;;;;;;;;5045:15;;5072:81;5114:39;5072:81;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5072:81:12;;;;-1:-1:-1;;;5184:40:12;;;;5255:31;;;;5320:26;;;;5361:28;;;;5072:81;;-1:-1:-1;5184:40:12;;5255:31;;5320:26;5361:42;5357:515;;5436:425;5472:21;:15;;:21;:::i;:::-;5436:425;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5511:28:12;;;;;;-1:-1:-1;5630:8:12;;5664:38;;;;;5728:29;;;;;5783:24;;;;;;;;:::i;:::-;5588:241;;-1:-1:-1;;17865:2:42;17861:15;;;17857:24;;5588:241:12;;;17845:37:42;17898:12;;;17891:28;;;;17935:12;;;17928:28;;;;17990:15;;;17986:24;17972:12;;;17965:46;18027:13;;5588:241:12;;;;;;;;;;;;5557:290;;;;;;5436:18;:425::i;:::-;-1:-1:-1;5419:442:12;-1:-1:-1;5357:515:12;5886:10;5882:534;;;5925:38;;;;:129;;6044:10;5925:129;;;5987:15;:38;;;5925:129;5912:142;;-1:-1:-1;;6081:15:12;:29;;;:50;;:127;;6198:10;6081:127;;;6150:15;:29;;;6081:127;6068:140;;-1:-1:-1;;6238:15:12;:29;;;:50;;:92;;;;-1:-1:-1;6328:1:12;6292:24;;;;;;;;:::i;:::-;-1:-1:-1;;;;;6292:38:12;;;6238:92;:167;;6392:13;6238:167;;;6349:24;;;;;;;;:::i;:::-;6222:183;;5882:534;6426:29;6458:50;;;:36;:50;;;;;;;;-1:-1:-1;;;;;6458:60:12;;;;;;;;;;;;6533:26;;;;;;;;;:58;;;6581:10;6563:14;:28;;6533:58;6529:115;;;6607:26;;-1:-1:-1;;;6607:26:12;;18253:2:42;6607:26:12;;;18235:21:42;18292:2;18272:18;;;18265:30;-1:-1:-1;;;18311:18:42;;;18304:46;18367:18;;6607:26:12;18051:340:42;6529:115:12;6658:14;;;:66;;-1:-1:-1;6713:10:12;6677:33;6689:21;6677:9;:33;:::i;:::-;:46;6658:66;6654:111;;;6740:14;;-1:-1:-1;;;6740:14:12;;;;;;18863:2:42;18845:21;;;18902:1;18882:18;;;18875:29;-1:-1:-1;;;18935:2:42;18920:18;;18913:34;18979:2;18964:18;;18661:327;6654:111:12;6824:17;:36;;;6812:9;6778:17;:31;;;:43;;;;:::i;:::-;:82;6774:133;;;6876:20;;-1:-1:-1;;;6876:20:12;;19195:2:42;6876:20:12;;;19177:21:42;19234:2;19214:18;;;19207:30;-1:-1:-1;;;19253:18:42;;;19246:40;19303:18;;6876:20:12;18993:334:42;6774:133:12;6921:32;;6956:15;-1:-1:-1;6917:105:12;;;6987:24;;-1:-1:-1;;;6987:24:12;;19534:2:42;6987:24:12;;;19516:21:42;19573:2;19553:18;;;19546:30;-1:-1:-1;;;19592:18:42;;;19585:44;19646:18;;6987:24:12;19332:338:42;6917:105:12;5062:1966;;;;;4806:2222;;;;;;;;:::o;8226:208:41:-;8374:4;-1:-1:-1;;;;;2123:18:15;;2131:10;2123:18;2119:81;;2157:32;2178:10;2157:20;:32::i;:::-;8390:37:41::1;8409:4;8415:2;8419:7;8390:18;:37::i;:::-;8226:208:::0;;;;:::o;1854:203:39:-;1918:7;1951:17;1631:8;:15;;1557:96;1951:17;1941:6;:27;1937:81;;1984:23;;-1:-1:-1;;;1984:23:39;;19877:2:42;1984:23:39;;;19859:21:42;19916:2;19896:18;;;19889:30;-1:-1:-1;;;19935:18:42;;;19928:43;19988:18;;1984:23:39;19675:337:42;1937:81:39;2034:8;2043:6;2034:16;;;;;;;;:::i;:::-;;;;;;;;;2027:23;;1854:203;;;:::o;1421:347:18:-;1558:16;1576:21;1614:17;1633:11;1648:31;1671:7;1648:22;:31::i;:::-;1613:66;;-1:-1:-1;1613:66:18;;-1:-1:-1;1613:66:18;;;-1:-1:-1;1755:6:18;1736:15;1613:66;1736:9;:15;:::i;:::-;1735:26;;;;:::i;:::-;1719:42;;1603:165;;1421:347;;;;;:::o;243:208:14:-;321:28;:26;:28::i;:::-;313:84;;;;-1:-1:-1;;;313:84:14;;20781:2:42;313:84:14;;;20763:21:42;20820:2;20800:18;;;20793:30;20859:34;20839:18;;;20832:62;-1:-1:-1;;;20910:18:42;;;20903:41;20961:19;;313:84:14;20579:407:42;313:84:14;407:37;431:12;407:23;:37::i;8485:216:41:-;8637:4;-1:-1:-1;;;;;2123:18:15;;2131:10;2123:18;2119:81;;2157:32;2178:10;2157:20;:32::i;:::-;8653:41:41::1;8676:4;8682:2;8686:7;8653:22;:41::i;7384:87::-:0;7443:21;7449:8;7459:4;7443:5;:21::i;3937:129:11:-;4002:4;4025:23;;;:13;:23;;;;;:30;;4002:4;;4025:23;:30;;;:::i;:::-;;;:34;4018:41;;3937:129;;;:::o;2008:381:18:-;2088:7;2152:29;;;:19;:29;;;;;;;;2115:66;;;;;;;;;;-1:-1:-1;;;;;2115:66:18;;;;;;;;;;;;;;;;2088:7;;2211:39;:171;;2327:25;;2361:19;;;;2211:171;;;2270:16;;-1:-1:-1;;;;;2270:16:18;;;-1:-1:-1;;;2295:10:18;;;;2211:171;2192:190;;;;;2008:381;;;:::o;948:398:39:-;1016:16;:14;:16::i;:::-;1011:72;;1048:24;;-1:-1:-1;;;1048:24:39;;;;;;;:::i;1011:72::-;1093:25;1121:17;1631:8;:15;;1557:96;1121:17;1093:45;;1148:24;1175:8;1148:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1199:9;1194:106;1218:17;1214:1;:21;1194:106;;;1281:8;1259:7;:19;1267:7;1275:1;1267:10;;;;;;;;:::i;:::-;;;;;;;1259:19;;;;;;;;;;;:30;;;;;;;;;;;;:::i;:::-;-1:-1:-1;1237:6:39;1242:1;1237:6;;:::i;:::-;;;1194:106;;;;1315:24;1330:8;1315:24;;;;;;:::i;:::-;;;;;;;;1001:345;;948:398;:::o;3087:256:18:-;3199:20;:18;:20::i;:::-;3194:76;;3235:24;;-1:-1:-1;;;3235:24:18;;;;;;;:::i;3194:76::-;3280:56;3305:17;3324:11;3280:24;:56::i;:::-;3087:256;;:::o;5946:123:1:-;6010:7;6036:21;6049:7;6036:12;:21::i;:::-;:26;;5946:123;-1:-1:-1;;5946:123:1:o;1189:228:17:-;1279:29;:27;:29::i;:::-;1274:85;;1324:24;;-1:-1:-1;;;1324:24:17;;;;;;;:::i;1274:85::-;1368:42;1395:14;1368:26;:42::i;7548:177:12:-;7624:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7624:31:12;7679:39;;;;:25;:39;;;;;;;;;7667:51;;;;;;;;;;;;;;;;;;;;;;7679:25;7667:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7667:51:12;;;;;;;;;;;;7679:39;7667:51;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7548:177;;;:::o;3372:203:1:-;3436:7;-1:-1:-1;;;;;3459:19:1;;3455:60;;3487:28;;-1:-1:-1;;;3487:28:1;;;;;;;;;;;3455:60;-1:-1:-1;;;;;;3540:19:1;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;3540:27:1;;3372:203::o;1949:2760:12:-;2114:24;:22;:24::i;:::-;2109:80;;2154:24;;-1:-1:-1;;;2154:24:12;;;;;;;:::i;2109:80::-;2228:14;:29;2296:20;;2228:29;2733:108;;;;2791:39;2812:18;2791;:39;:::i;:::-;2775:55;;2733:108;2851:20;:41;;;:14;2902:45;;;:29;;3003:643;3023:22;;;3003:643;;;3074:6;;;:69;;;3114:11;;3126:1;3114:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:29;3084:59;;3074:69;3066:84;;;;-1:-1:-1;;;3066:84:12;;21530:2:42;3066:84:12;;;21512:21:42;21569:1;21549:18;;;21542:29;-1:-1:-1;;;21587:18:42;;;21580:32;21629:18;;3066:84:12;21328:325:42;3066:84:12;3165:28;3196:25;3165:28;3222:17;3238:1;3222:13;:17;:::i;:::-;3196:44;;;;;;;;;;;:58;;;3165:89;;3295:11;;3307:1;3295:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:33;;;3272:20;:56;3268:123;;;3348:28;;-1:-1:-1;;;3348:28:12;;21860:2:42;3348:28:12;;;21842:21:42;21899:2;21879:18;;;21872:30;-1:-1:-1;;;21918:18:42;;;21911:48;21976:18;;3348:28:12;21658:342:42;3268:123:12;3452:11;;3464:1;3452:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;3405:25;:44;3431:17;3447:1;3431:13;:17;:::i;:::-;3405:44;;;;;;;;;;;:61;;;;;;:::i;:::-;-1:-1:-1;3541:20:12;;-1:-1:-1;3480:25:12;:44;3506:17;3522:1;3506:13;:17;:::i;:::-;3480:44;;;;;;;;;;;-1:-1:-1;3480:44:12;:58;;:81;3606:11;;3618:1;3606:14;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;:29;;-1:-1:-1;3047:3:12;;-1:-1:-1;3047:3:12;;;:::i;:::-;;;;3003:643;;;;4186:22;4182:446;;;4241:18;4224:129;4265:13;4261:1;:17;4224:129;;;4310:28;;;;:25;:28;;;;;4303:35;;;;;;;;;4310:25;4303:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4303:35:12;;;4310:28;4303:35;;;;4310:28;4303:35;:::i;:::-;;;4280:3;;;;;:::i;:::-;;;;4224:129;;;;4182:446;;;4387:39;;;4383:235;;;4463:11;4446:158;4487:18;4483:1;:22;4446:158;;;4541:25;:44;4567:17;4583:1;4567:13;:17;:::i;:::-;4541:44;;;;;;;;;;;-1:-1:-1;4541:44:12;;;4534:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4534:51:12;;;4541:44;4534:51;;;;-1:-1:-1;4534:51:12;:::i;:::-;;;4507:3;;;;;:::i;:::-;;;;4446:158;;;;4383:235;4643:59;4666:11;;4679:22;4643:59;;;;;;;;:::i;:::-;;;;;;;;2099:2610;;;;1949:2760;;;:::o;699:1187::-;952:85;965:9;976;987;998:14;1014:15;1031:5;952:12;:85::i;:::-;1048:25;1076:27;:25;:27::i;:::-;1048:55;-1:-1:-1;1114:103:12;1048:55;12870:10:41;1163:9:12;1174;1185:14;1201:15;1114:11;:103::i;:::-;-1:-1:-1;1262:44:12;;;;:25;:44;;;;;:25;:58;:71;;1324:9;;1262:44;:71;;1324:9;;1262:71;:::i;:::-;;;;-1:-1:-1;;1343:55:12;;;;:36;:55;;;;;;;;12870:10:41;1343:73:12;;;;;;;:86;;1420:9;;1343:55;:86;;1420:9;;1343:86;:::i;:::-;;;;-1:-1:-1;1486:70:12;;-1:-1:-1;1515:1:12;1519:9;1530;1541:14;1486:20;:70::i;:::-;1615:20;1638:44;1661:9;1672;1638:22;:44::i;:::-;1698:86;;;15199:25:42;;;15255:2;15240:18;;15233:34;;;1615:67:12;;-1:-1:-1;;;;;;1698:86:12;;;12870:10:41;;1712:17:12;;1698:86;;15172:18:42;1698:86:12;;;;;;;942:944;;699:1187;;;;;;:::o;1003:188:9:-;1080:20;:18;:20::i;:::-;1075:76;;1116:24;;-1:-1:-1;;;1116:24:9;;;;;;;:::i;1075:76::-;1161:23;1179:4;1161:17;:23::i;6293:102:1:-;6349:13;6381:7;6374:14;;;;;:::i;4281:288:18:-;4428:20;:18;:20::i;:::-;4423:76;;4464:24;;-1:-1:-1;;;4464:24:18;;;;;;;:::i;4423:76::-;4509:53;4535:8;4545:10;4557:4;4509:25;:53::i;1383:534:11:-;1502:17;1522:23;;;:13;:23;;;;;1502:43;;1465:25;;1502:17;1522:23;1502:43;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1559:4;:11;1574:1;1559:16;1555:74;;;1591:27;;-1:-1:-1;;;1591:27:11;;28710:2:42;1591:27:11;;;28692:21:42;28749:2;28729:18;;;28722:30;-1:-1:-1;;;28768:18:42;;;28761:47;28825:18;;1591:27:11;28508:341:42;1555:74:11;1640:25;1667:22;1704:4;1693:34;;;;;;;;;;;;:::i;:::-;1639:88;;;;1759:34;1774:12;1788:4;;1759:14;:34::i;:::-;1738:56;;1878:14;1840:11;1853:4;;1859:13;1823:50;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;1813:61;;;;;;:79;1805:105;;;;-1:-1:-1;;;1805:105:11;;30295:2:42;1805:105:11;;;30277:21:42;30334:2;30314:18;;;30307:30;-1:-1:-1;;;30353:18:42;;;30346:43;30406:18;;1805:105:11;30093:337:42;1805:105:11;1492:425;;;1383:534;;;;;:::o;568:46::-;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7703:227:41:-;7856:8;2296:30:15;2317:8;2296:20;:30::i;:::-;7880:43:41::1;7904:8;7914;7880:23;:43::i;698:319:13:-:0;775:22;831:4;-1:-1:-1;;;;;819:24:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;809:34;;858:9;853:134;873:15;;;853:134;;;922:54;961:4;968;;973:1;968:7;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;922:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;922:30:13;;-1:-1:-1;;;922:54:13:i;:::-;909:7;917:1;909:10;;;;;;;;:::i;:::-;;;;;;:67;;;;890:3;;;;;:::i;:::-;;;;853:134;;;;698:319;;;;:::o;8752:249:41:-;8931:4;-1:-1:-1;;;;;2123:18:15;;2131:10;2123:18;2119:81;;2157:32;2178:10;2157:20;:32::i;:::-;8947:47:41::1;8970:4;8976:2;8980:7;8989:4;8947:22;:47::i;:::-;8752:249:::0;;;;;:::o;7116:367:12:-;7242:20;;:14;7210:29;7174:7;;;;7210:52;;7242:20;7210:52;:::i;:::-;7198:64;;7193:252;7268:14;:29;7264:33;;7193:252;;;7341:25;:32;7367:5;7371:1;7367;:5;:::i;:::-;7341:32;;;;;;;;;;;:47;;;7322:15;:66;7318:117;;7415:5;7419:1;7415;:5;:::i;:::-;7408:12;;;7116:367;:::o;7318:117::-;7299:3;;;;:::i;:::-;;;;7193:252;;;-1:-1:-1;7455:21:12;;-1:-1:-1;;;7455:21:12;;31434:2:42;7455:21:12;;;31416::42;31473:2;31453:18;;;31446:30;-1:-1:-1;;;31492:18:42;;;31485:41;31543:18;;7455:21:12;31232:335:42;625:420:38;691:13;717:15;738:21;750:8;738:11;:21::i;:::-;716:43;;;769:22;794:21;806:8;794:11;:21::i;:::-;769:46;;830:25;847:7;830:16;:25::i;:::-;826:213;;;902:8;885:40;;;;;;;;:::i;:::-;;;;;;;;;;;;;871:55;;;;625:420;;;:::o;826:213::-;988:8;998:19;:8;:17;:19::i;:::-;971:56;;;;;;;;;:::i;6514:411:41:-;6600:25;6645:12;:10;:12::i;:::-;6637:39;;;;-1:-1:-1;;;6637:39:41;;;;;;;:::i;:::-;6687:15;6705:25;6723:6;6705:17;:25::i;:::-;6687:43;;6754:27;6767:7;6776:4;;6754:12;:27::i;:::-;6740:41;;6792:30;6810:7;6792:30;;;;;;;;;;;;:17;:30::i;:::-;6832:33;6844:7;6853:11;6832;:33::i;:::-;6898:6;6881:37;6906:11;6881:37;;;;;;:::i;:::-;;;;;;;;6627:298;6514:411;;;;;:::o;5099:559::-;5254:15;5285:16;;5281:293;;5318:25;;5371:35;;;;5382:5;5371:35;:::i;:::-;5317:89;;;;5424:12;:19;5447:1;5424:24;;:48;;;;-1:-1:-1;5452:20:41;;;5424:48;5420:144;;;5492:57;5534:7;5510:21;;:31;;;;:::i;:::-;5543:5;;5492:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5492:17:41;;-1:-1:-1;;;5492:57:41:i;:::-;5303:271;;5281:293;5591:60;5617:7;5626:17;;5645:5;;5591:25;:60::i;:::-;5584:67;5099:559;-1:-1:-1;;;;;;5099:559:41:o;2409:1283:11:-;2602:11;;2768:4;2762:11;;2862:19;;;2883:2;2858:28;2845:42;;;2933:22;;;2762:11;2585:14;3029:657;3053:6;3049:1;:10;3029:657;;;3135:12;3177:3;;3182:1;3160:24;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;3160:24:11;;;;;;;;;3150:35;;3160:24;3150:35;;;;3373:21;;;;;3367:28;3461:13;3631:23;;;;;3624:38;3061:7;;-1:-1:-1;3387:1:11;3061:7;:::i;:::-;;;3029:657;;;;2523:1169;2409:1283;;;;;:::o;565:34:9:-;;;;;;;:::i;9558:172:1:-;9615:4;9657:7;611:1:38;9638:26:1;;:53;;;;;9678:13;;9668:7;:23;9638:53;:85;;;;-1:-1:-1;;9696:20:1;;;;:11;:20;;;;;:27;-1:-1:-1;;;9696:27:1;;;;9695:28;;9558:172::o;2350:477:15:-;2539:19;;;;2535:286;;;905:42;2578:45;:49;2574:237;;2652:67;;-1:-1:-1;;;2652:67:15;;2703:4;2652:67;;;33743:34:42;-1:-1:-1;;;;;33813:15:42;;33793:18;;;33786:43;905:42:15;;2652;;33678:18:42;;2652:67:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2647:150;;2750:28;;-1:-1:-1;;;2750:28:15;;-1:-1:-1;;;;;1603:32:42;;2750:28:15;;;1585:51:42;1558:18;;2750:28:15;1439:203:42;7164:392:1;7244:13;7260:24;7276:7;7260:15;:24::i;:::-;7244:40;;7304:5;-1:-1:-1;;;;;7298:11:1;:2;-1:-1:-1;;;;;7298:11:1;;7294:48;;;7318:24;;-1:-1:-1;;;7318:24:1;;;;;;;;;;;7294:48;12870:10:41;-1:-1:-1;;;;;7357:21:1;;;7353:158;;7397:37;7414:5;12870:10:41;8232:162:1;:::i;7397:37::-;7392:119;;7461:35;;-1:-1:-1;;;7461:35:1;;;;;;;;;;;7392:119;7521:28;7530:2;7534:7;7543:5;7521:8;:28::i;11007:115:41:-;11071:4;11108:7;944:6:16;;-1:-1:-1;;;;;944:6:16;;871:86;11108:7:41;-1:-1:-1;;;;;11094:21:41;:10;-1:-1:-1;;;;;11094:21:41;;11087:28;;11007:115;:::o;1421:172:16:-;1501:6;;;-1:-1:-1;;;;;1517:18:16;;;-1:-1:-1;;;;;;1517:18:16;;;;;;;1551:35;;1501:6;;;1517:18;1501:6;;1551:35;;1480:18;;1551:35;1470:123;1421:172;:::o;898:906:33:-;1019:4;;1067;1019;;1109:567;1133:5;:12;1129:1;:16;1109:567;;;1166:10;1175:1;1166:10;;:::i;:::-;;;1190:20;1213:5;1219:1;1213:8;;;;;;;;:::i;:::-;;;;;;;1190:31;;1256:12;1240;:28;1236:430;;1391:44;;;;;;34247:19:42;;;34282:12;;;34275:28;;;34319:12;;1391:44:33;;;;;;;;;;;;1381:55;;;;;;1366:70;;1236:430;;;1578:44;;;;;;34247:19:42;;;34282:12;;;34275:28;;;34319:12;;1578:44:33;;;;;;;;;;;;1568:55;;;;;;1553:70;;1650:1;1641:10;;;;;:::i;:::-;;;1236:430;-1:-1:-1;1147:3:33;;;;:::i;:::-;;;;1109:567;;;-1:-1:-1;1769:20:33;;;;;-1:-1:-1;;;;898:906:33:o;8456:164:1:-;8585:28;8595:4;8601:2;8605:7;8585:9;:28::i;457:160:14:-;528:19;:34;;-1:-1:-1;;528:34:14;;;;;;;;;;577:33;;636:41:42;;;577:33:14;;624:2:42;609:18;577:33:14;;;;;;;457:160;:::o;8686:179:1:-;8819:39;8836:4;8842:2;8846:7;8819:39;;;;;;;;;;;;:16;:39::i;16073:2355::-;16152:35;16190:21;16203:7;16190:12;:21::i;:::-;16237:18;;16152:59;;-1:-1:-1;16266:284:1;;;;16299:22;12870:10:41;-1:-1:-1;;;;;16325:20:1;;;;:76;;-1:-1:-1;16365:36:1;16382:4;12870:10:41;8232:162:1;:::i;16365:36::-;16325:132;;;-1:-1:-1;12870:10:41;16421:20:1;16433:7;16421:11;:20::i;:::-;-1:-1:-1;;;;;16421:36:1;;16325:132;16299:159;;16478:17;16473:66;;16504:35;;-1:-1:-1;;;16504:35:1;;;;;;;;;;;16473:66;16285:265;16266:284;16673:35;16690:1;16694:7;16703:4;16673:8;:35::i;:::-;-1:-1:-1;;;;;17032:18:1;;;16998:31;17032:18;;;:12;:18;;;;;;;;17064:24;;-1:-1:-1;;;;;;;;;;17064:24:1;;;;;;;;;-1:-1:-1;;17064:24:1;;;;17102:29;;;;;17087:1;17102:29;;;;;;;;-1:-1:-1;;17102:29:1;;;;;;;;;;17261:20;;;:11;:20;;;;;;17295;;-1:-1:-1;;;;17362:15:1;17329:49;;;-1:-1:-1;;;17329:49:1;-1:-1:-1;;;;;;17329:49:1;;;;;;;;;;17392:22;-1:-1:-1;;;17392:22:1;;;17680:11;;;17739:24;;;;;17781:13;;17032:18;;17739:24;;17781:13;17777:377;;17988:13;;17973:11;:28;17969:171;;18025:20;;18093:28;;;;-1:-1:-1;;;;;18067:54:1;-1:-1:-1;;;18067:54:1;-1:-1:-1;;;;;;18067:54:1;;;-1:-1:-1;;;;;18025:20:1;;18067:54;;;;17969:171;-1:-1:-1;;18179:35:1;;18206:7;;-1:-1:-1;18202:1:1;;-1:-1:-1;;;;;;18179:35:1;;;-1:-1:-1;;;;;;;;;;;18179:35:1;18202:1;;18179:35;-1:-1:-1;;18397:12:1;:14;;;;;;-1:-1:-1;;16073:2355:1:o;3430:334:18:-;3549:6;3535:11;:20;3531:76;;;3571:25;;-1:-1:-1;;;3571:25:18;;34544:2:42;3571:25:18;;;34526:21:42;34583:2;34563:18;;;34556:30;-1:-1:-1;;;34602:18:42;;;34595:45;34657:18;;3571:25:18;34342:339:42;3531:76:18;3617:16;:36;;-1:-1:-1;;;;;3617:36:18;;-1:-1:-1;;;;;;3663:32:18;;;;;-1:-1:-1;;;3663:32:18;;;;;;;;3711:46;;2686:25:42;;;3711:46:18;;2674:2:42;2659:18;3711:46:18;;;;;;;3430:334;;:::o;4715:1174:1:-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;4825:7:1;;611:1:38;4871:23:1;4867:958;;4923:13;;4916:4;:20;4912:913;;;4960:31;4994:17;;;:11;:17;;;;;;;;;4960:51;;;;;;;;;-1:-1:-1;;;;;4960:51:1;;;;-1:-1:-1;;;4960:51:1;;-1:-1:-1;;;;;4960:51:1;;;;;;;;-1:-1:-1;;;4960:51:1;;;;;;;;;;;;;;5033:774;;5086:14;;-1:-1:-1;;;;;5086:28:1;;5082:107;;5153:9;4715:1174;-1:-1:-1;;;4715:1174:1:o;5082:107::-;-1:-1:-1;;;5549:6:1;5597:17;;;;:11;:17;;;;;;;;;5585:29;;;;;;;;;-1:-1:-1;;;;;5585:29:1;;;;;-1:-1:-1;;;5585:29:1;;-1:-1:-1;;;;;5585:29:1;;;;;;;;-1:-1:-1;;;5585:29:1;;;;;;;;;;;;;5648:28;5644:115;;5719:9;4715:1174;-1:-1:-1;;;4715:1174:1:o;5644:115::-;5506:279;;;4938:887;4912:913;5851:31;;-1:-1:-1;;;5851:31:1;;;;;;;;;;;1499:170:17;1578:9;:26;;-1:-1:-1;;;;;;1578:26:17;-1:-1:-1;;;;;1578:26:17;;;;;;;;1619:43;;;;-1:-1:-1;;1619:43:17;1499:170;:::o;9244:322:41:-;9478:21;;9466:9;9450:13;;:25;;;;:::i;:::-;:49;9446:114;;;9515:34;;-1:-1:-1;;;9515:34:41;;34888:2:42;9515:34:41;;;34870:21:42;34927:2;34907:18;;;34900:30;34966:26;34946:18;;;34939:54;35010:18;;9515:34:41;34686:348:42;9446:114:41;9244:322;;;;;;:::o;9656:724::-;9864:19;9860:56;;9899:7;;9860:56;9926:18;9947:33;9966:14;9947:16;:33;:::i;:::-;9926:54;-1:-1:-1;;;;;;9995:45:41;;397:42:32;9995:45:41;9991:168;;;10073:10;10060:9;:23;10056:93;;10103:31;;-1:-1:-1;;;10103:31:41;;35241:2:42;10103:31:41;;;35223:21:42;35280:2;35260:18;;;35253:30;-1:-1:-1;;;35299:18:42;;;35292:51;35360:18;;10103:31:41;35039:345:42;10056:93:41;10169:21;-1:-1:-1;;;;;10193:35:41;;;:84;;10256:21;10193:84;;;764:9:17;;-1:-1:-1;;;;;764:9:17;10231:22:41;10169:108;;10287:86;10324:9;10335:10;10347:13;10362:10;10287:36;:86::i;10433:261::-;10576:20;10627:13;10650:37;10660:3;10665:21;10650:9;:37::i;1273:185:9:-;1339:21;1363:11;1339:35;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1384:18:9;;1339:35;;-1:-1:-1;1384:18:9;;:11;;-1:-1:-1;1384:18:9;;;;-1:-1:-1;1384:18:9;-1:-1:-1;1384:18:9;:::i;:::-;;1418:33;1437:7;1446:4;1418:33;;;;;;;:::i;:::-;;;;;;;;1329:129;1273:185;:::o;4671:362:18:-;4818:6;4811:4;:13;4807:69;;;4840:25;;-1:-1:-1;;;4840:25:18;;34544:2:42;4840:25:18;;;34526:21:42;34583:2;34563:18;;;34556:30;-1:-1:-1;;;34602:18:42;;;34595:45;34657:18;;4840:25:18;34342:339:42;4807:69:18;4918:49;;;;;;;;-1:-1:-1;;;;;4918:49:18;;;;;;;;;;;;;-1:-1:-1;4886:29:18;;;:19;:29;;;;;:81;;;;-1:-1:-1;;;;;;4886:81:18;;;;;;;;;;;-1:-1:-1;4886:81:18;;;;;;;4983:43;;2686:25:42;;;4918:49:18;;4886:29;;4983:43;;2659:18:42;4983:43:18;;;;;;;4671:362;;;:::o;7884:282:1:-;-1:-1:-1;;;;;7982:24:1;;12870:10:41;7982:24:1;7978:54;;;8015:17;;-1:-1:-1;;;8015:17:1;;;;;;;;;;;7978:54;12870:10:41;8043:32:1;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;8043:42:1;;;;;;;;;;;;:53;;-1:-1:-1;;8043:53:1;;;;;;;;;;8111:48;;636:41:42;;;8043:42:1;;12870:10:41;8111:48:1;;609:18:42;8111:48:1;;;;;;;7884:282;;:::o;6538:198:34:-;6621:12;6652:77;6673:6;6681:4;6652:77;;;;;;;;;;;;;;;;;:20;:77::i;:::-;6645:84;6538:198;-1:-1:-1;;;6538:198:34:o;8931:381:1:-;9092:28;9102:4;9108:2;9112:7;9092:9;:28::i;:::-;-1:-1:-1;;;;;9134:13:1;;1427:19:34;:23;9130:176:1;;9168:56;9199:4;9205:2;9209:7;9218:5;9168:30;:56::i;:::-;9163:143;;9251:40;;-1:-1:-1;;;9251:40:1;;;;;;;;;;;2145:471:39;2207:15;2224:13;2249:25;2277:17;1631:8;:15;;1557:96;2277:17;2249:45;;2304:24;2331:8;2304:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2355:9;2350:224;2374:17;2370:1;:21;2350:224;;;2430:7;2438:1;2430:10;;;;;;;;:::i;:::-;;;;;;;2419:8;:21;2415:149;;;2468:1;2460:9;;2497:7;2505:1;2497:10;;;;;;;;:::i;:::-;;;;;;;2487:20;;2526:23;;;2145:471;;;:::o;2415:149::-;2393:6;2398:1;2393:6;;:::i;:::-;;;2350:224;;;-1:-1:-1;2584:25:39;;-1:-1:-1;;;2584:25:39;;35979:2:42;2584:25:39;;;35961:21:42;36018:2;35998:18;;;35991:30;-1:-1:-1;;;36037:18:42;;;36030:45;36092:18;;2584:25:39;35777:339:42;2730:390:39;2792:13;2817:25;2845:17;1631:8;:15;;1557:96;2845:17;2817:45;;2872:24;2899:8;2872:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2923:9;2918:161;2942:17;2938:1;:21;2918:161;;;2998:7;3006:1;2998:10;;;;;;;;:::i;:::-;;;;;;;2987:8;:21;2983:86;;;3035:7;:19;3043:7;3051:1;3043:10;;;;;;;;:::i;:::-;;;;;;;3035:19;;;;;;;;;;;3028:26;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2730:390;;;:::o;2983:86::-;2961:6;2966:1;2961:6;;:::i;:::-;;;2918:161;;305:703:35;361:13;578:10;574:51;;-1:-1:-1;;604:10:35;;;;;;;;;;;;-1:-1:-1;;;604:10:35;;;;;305:703::o;574:51::-;649:5;634:12;688:75;695:9;;688:75;;720:8;;;;:::i;:::-;;-1:-1:-1;742:10:35;;-1:-1:-1;750:2:35;742:10;;:::i;:::-;;;688:75;;;772:19;804:6;-1:-1:-1;;;;;794:17:35;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;794:17:35;;772:39;;821:150;828:10;;821:150;;854:11;864:1;854:11;;:::i;:::-;;-1:-1:-1;922:10:35;930:2;922:5;:10;:::i;:::-;909:24;;:2;:24;:::i;:::-;896:39;;879:6;886;879:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;879:56:35;;;;;;;;-1:-1:-1;949:11:35;958:2;949:11;;:::i;:::-;;;821:150;;;994:6;305:703;-1:-1:-1;;;;305:703:35:o;678:140:11:-;771:23;;;;:13;:23;;;;;;;;:40;;;;;;;;:::i;3205:117:39:-;3287:17;;;;:7;:17;;;;;;;;:28;;;;;;;;:::i;1310:592:40:-;1465:15;1497:14;:12;:14::i;:::-;1492:70;;1527:24;;-1:-1:-1;;;1527:24:40;;;;;;;:::i;1492:70::-;1576:12;1572:58;;1604:15;;-1:-1:-1;;;1604:15:40;;36440:2:42;1604:15:40;;;36422:21:42;36479:1;36459:18;;;36452:29;-1:-1:-1;;;36497:18:42;;;36490:35;36542:18;;1604:15:40;36238:328:42;1572:58:40;1640:15;1658:21;;1640:39;;1725:55;1744:7;1753;1762:17;;1725:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1725:18:40;;-1:-1:-1;;;1725:55:40:i;:::-;1691:21;1690:90;;;;;-1:-1:-1;1813:7:40;1796:74;1842:1;1822:17;1832:7;1813;1822:17;:::i;:::-;:21;;;;:::i;:::-;1845:17;;1864:5;;1796:74;;;;;;;;;;:::i;:::-;;;;;;;;1881:14;1310:592;;;;;;;:::o;18539:189:1:-;18649:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;18649:29:1;-1:-1:-1;;;;;18649:29:1;;;;;;;;;18693:28;;18649:24;;18693:28;;;;;;;18539:189;;;:::o;13614:2082::-;13724:35;13762:21;13775:7;13762:12;:21::i;:::-;13724:59;;13820:4;-1:-1:-1;;;;;13798:26:1;:13;:18;;;-1:-1:-1;;;;;13798:26:1;;13794:67;;13833:28;;-1:-1:-1;;;13833:28:1;;;;;;;;;;;13794:67;13872:22;12870:10:41;-1:-1:-1;;;;;13898:20:1;;;;:72;;-1:-1:-1;13934:36:1;13951:4;12870:10:41;8232:162:1;:::i;13934:36::-;13898:124;;;-1:-1:-1;12870:10:41;13986:20:1;13998:7;13986:11;:20::i;:::-;-1:-1:-1;;;;;13986:36:1;;13898:124;13872:151;;14039:17;14034:66;;14065:35;;-1:-1:-1;;;14065:35:1;;;;;;;;;;;14034:66;-1:-1:-1;;;;;14114:16:1;;14110:52;;14139:23;;-1:-1:-1;;;14139:23:1;;;;;;;;;;;14110:52;14278:35;14295:1;14299:7;14308:4;14278:8;:35::i;:::-;-1:-1:-1;;;;;14603:18:1;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;14603:31:1;;;-1:-1:-1;;;;;14603:31:1;;;-1:-1:-1;;14603:31:1;;;;;;;14648:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;14648:29:1;;;;;;;;;;;14726:20;;;:11;:20;;;;;;14760:18;;-1:-1:-1;;;;;;14792:49:1;;;;-1:-1:-1;;;14825:15:1;14792:49;;;;;;;;;;15111:11;;15170:24;;;;;15212:13;;14726:20;;15170:24;;15212:13;15208:377;;15419:13;;15404:11;:28;15400:171;;15456:20;;15524:28;;;;-1:-1:-1;;;;;15498:54:1;-1:-1:-1;;;15498:54:1;-1:-1:-1;;;;;;15498:54:1;;;-1:-1:-1;;;;;15456:20:1;;15498:54;;;;15400:171;14579:1016;;;15629:7;15625:2;-1:-1:-1;;;;;15610:27:1;15619:4;-1:-1:-1;;;;;15610:27:1;-1:-1:-1;;;;;;;;;;;15610:27:1;;;;;;;;;15647:42;8226:208:41;497:385:32;648:12;644:49;;676:7;;644:49;-1:-1:-1;;;;;707:25:32;;397:42;707:25;703:173;;;748:37;772:3;777:7;748:23;:37::i;:::-;703:173;;;816:49;834:9;845:5;852:3;857:7;816:17;:49::i;9809:102:1:-;9877:27;9887:2;9891:8;9877:27;;;;;;;;;;;;:9;:27::i;6922:387:34:-;7063:12;-1:-1:-1;;;;;1427:19:34;;;7087:69;;;;-1:-1:-1;;;7087:69:34;;37284:2:42;7087:69:34;;;37266:21:42;37323:2;37303:18;;;37296:30;37362:34;37342:18;;;37335:62;-1:-1:-1;;;37413:18:42;;;37406:36;37459:19;;7087:69:34;37082:402:42;7087:69:34;7168:12;7182:23;7209:6;-1:-1:-1;;;;;7209:19:34;7229:4;7209:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7167:67;;;;7251:51;7268:7;7277:10;7289:12;7251:16;:51::i;19209:650:1:-;19387:72;;-1:-1:-1;;;19387:72:1;;19367:4;;-1:-1:-1;;;;;19387:36:1;;;;;:72;;12870:10:41;;19438:4:1;;19444:7;;19453:5;;19387:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19387:72:1;;;;;;;;-1:-1:-1;;19387:72:1;;;;;;;;;;;;:::i;:::-;;;19383:470;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19618:13:1;;19614:229;;19663:40;;-1:-1:-1;;;19663:40:1;;;;;;;;;;;19614:229;19803:6;19797:13;19788:6;19784:2;19780:15;19773:38;19383:470;-1:-1:-1;;;;;;19505:55:1;-1:-1:-1;;;19505:55:1;;-1:-1:-1;19209:650:1;;;;;;:::o;3417:362:39:-;3567:25;;3631:24;3642:13;3631:8;:24;:::i;:::-;3703:8;:22;;;;;;;;;;;;;-1:-1:-1;3736:16:39;;;:7;3703:22;3736:16;;;;;;;:36;;3621:34;;-1:-1:-1;3621:34:39;;-1:-1:-1;3736:36:39;;:16;;:36;;;;:::i;:::-;;3417:362;;;;;;:::o;2521:292:32:-;2703:12;2721:2;-1:-1:-1;;;;;2721:7:32;2737:5;2721:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2702:46;;;2766:7;2758:48;;;;-1:-1:-1;;;2758:48:32;;38928:2:42;2758:48:32;;;38910:21:42;38967:2;38947:18;;;38940:30;39006;38986:18;;;38979:58;39054:18;;2758:48:32;38726:352:42;2062:396:32;2223:3;-1:-1:-1;;;;;2214:12:32;:5;-1:-1:-1;;;;;2214:12:32;;2210:49;;;2242:7;;2210:49;-1:-1:-1;;;;;2273:22:32;;2290:4;2273:22;2269:183;;;2311:44;-1:-1:-1;;;;;2311:30:32;;2342:3;2347:7;2311:30;:44::i;2269:183::-;2386:55;-1:-1:-1;;;;;2386:34:32;;2421:5;2428:3;2433:7;2386:34;:55::i;10271:1708:1:-;10389:20;10412:13;-1:-1:-1;;;;;10439:16:1;;10435:48;;10464:19;;-1:-1:-1;;;10464:19:1;;;;;;;;;;;10435:48;10497:13;10493:44;;10519:18;;-1:-1:-1;;;10519:18:1;;;;;;;;;;;10493:44;-1:-1:-1;;;;;10880:16:1;;;;;;:12;:16;;;;;;;;:44;;-1:-1:-1;;10938:49:1;;-1:-1:-1;;;;;10880:44:1;;;;;;;10938:49;;;;-1:-1:-1;;10880:44:1;;;;;;10938:49;;;;;;;;;;;;;;;;11002:25;;;:11;:25;;;;;;:35;;-1:-1:-1;;;;;;11051:66:1;;;-1:-1:-1;;;11101:15:1;11051:66;;;;;;;;;;;;;11002:25;;11195:23;;;;1427:19:34;:23;11233:618:1;;11272:308;11302:38;;11327:12;;-1:-1:-1;;;;;11302:38:1;;;11319:1;;-1:-1:-1;;;;;;;;;;;11302:38:1;11319:1;;11302:38;11367:69;11406:1;11410:2;11414:14;;;;;;11430:5;11367:30;:69::i;:::-;11362:172;;11471:40;;-1:-1:-1;;;11471:40:1;;;;;;;;;;;11362:172;11575:3;11560:12;:18;11272:308;;11659:12;11642:13;;:29;11638:43;;11673:8;;;11638:43;11233:618;;;11720:117;11750:40;;11775:14;;;;;-1:-1:-1;;;;;11750:40:1;;;11767:1;;-1:-1:-1;;;;;;;;;;;11750:40:1;11767:1;;11750:40;11832:3;11817:12;:18;11720:117;;11233:618;-1:-1:-1;11864:13:1;:28;;;11912:60;;11945:2;11949:12;11963:8;11912:60;:::i;7529:692:34:-;7675:12;7703:7;7699:516;;;-1:-1:-1;7733:10:34;7726:17;;7699:516;7844:17;;:21;7840:365;;8038:10;8032:17;8098:15;8085:10;8081:2;8077:19;8070:44;7840:365;8177:12;8170:20;;-1:-1:-1;;;8170:20:34;;;;;;;;:::i;729:205:36:-;868:58;;-1:-1:-1;;;;;4654:32:42;;868:58:36;;;4636:51:42;4703:18;;;4696:34;;;841:86:36;;861:5;;-1:-1:-1;;;891:23:36;4609:18:42;;868:58:36;;;;-1:-1:-1;;868:58:36;;;;;;;;;;;;;;-1:-1:-1;;;;;868:58:36;-1:-1:-1;;;;;;868:58:36;;;;;;;;;;841:19;:86::i;940:241::-;1105:68;;-1:-1:-1;;;;;39341:15:42;;;1105:68:36;;;39323:34:42;39393:15;;39373:18;;;39366:43;39425:18;;;39418:34;;;1078:96:36;;1098:5;;-1:-1:-1;;;1128:27:36;39258:18:42;;1105:68:36;39083:375:42;3235:706:36;3654:23;3680:69;3708:4;3680:69;;;;;;;;;;;;;;;;;3688:5;-1:-1:-1;;;;;3680:27:36;;;:69;;;;;:::i;:::-;3763:17;;3654:95;;-1:-1:-1;3763:21:36;3759:176;;3858:10;3847:30;;;;;;;;;;;;:::i;:::-;3839:85;;;;-1:-1:-1;;;3839:85:36;;39665:2:42;3839:85:36;;;39647:21:42;39704:2;39684:18;;;39677:30;39743:34;39723:18;;;39716:62;-1:-1:-1;;;39794:18:42;;;39787:40;39844:19;;3839:85:36;39463:406:42;3827:223:34;3960:12;3991:52;4013:6;4021:4;4027:1;4030:12;3960;-1:-1:-1;;;;;1427:19:34;;;5194:60;;;;-1:-1:-1;;;5194:60:34;;40483:2:42;5194:60:34;;;40465:21:42;40522:2;40502:18;;;40495:30;40561:31;40541:18;;;40534:59;40610:18;;5194:60:34;40281:353:42;5194:60:34;5266:12;5280:23;5307:6;-1:-1:-1;;;;;5307:11:34;5327:5;5335:4;5307:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5265:75;;;;5357:51;5374:7;5383:10;5395:12;5357:16;:51::i;:::-;5350:58;4914:501;-1:-1:-1;;;;;;;4914:501:34:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:131:42;-1:-1:-1;;;;;;88:32:42;;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;688:258::-;760:1;770:113;784:6;781:1;778:13;770:113;;;860:11;;;854:18;841:11;;;834:39;806:2;799:10;770:113;;;901:6;898:1;895:13;892:48;;;-1:-1:-1;;936:1:42;918:16;;911:27;688:258::o;951:::-;993:3;1031:5;1025:12;1058:6;1053:3;1046:19;1074:63;1130:6;1123:4;1118:3;1114:14;1107:4;1100:5;1096:16;1074:63;:::i;:::-;1191:2;1170:15;-1:-1:-1;;1166:29:42;1157:39;;;;1198:4;1153:50;;951:258;-1:-1:-1;;951:258:42:o;1214:220::-;1363:2;1352:9;1345:21;1326:4;1383:45;1424:2;1413:9;1409:18;1401:6;1383:45;:::i;1647:180::-;1706:6;1759:2;1747:9;1738:7;1734:23;1730:32;1727:52;;;1775:1;1772;1765:12;1727:52;-1:-1:-1;1798:23:42;;1647:180;-1:-1:-1;1647:180:42:o;1832:131::-;-1:-1:-1;;;;;1907:31:42;;1897:42;;1887:70;;1953:1;1950;1943:12;1968:315;2036:6;2044;2097:2;2085:9;2076:7;2072:23;2068:32;2065:52;;;2113:1;2110;2103:12;2065:52;2152:9;2139:23;2171:31;2196:5;2171:31;:::i;:::-;2221:5;2273:2;2258:18;;;;2245:32;;-1:-1:-1;;;1968:315:42:o;2288:247::-;2347:6;2400:2;2388:9;2379:7;2375:23;2371:32;2368:52;;;2416:1;2413;2406:12;2368:52;2455:9;2442:23;2474:31;2499:5;2474:31;:::i;2722:163::-;2789:5;2834:3;2825:6;2820:3;2816:16;2812:26;2809:46;;;2851:1;2848;2841:12;2809:46;-1:-1:-1;2873:6:42;2722:163;-1:-1:-1;2722:163:42:o;2890:853::-;3028:6;3036;3044;3052;3060;3068;3121:3;3109:9;3100:7;3096:23;3092:33;3089:53;;;3138:1;3135;3128:12;3089:53;3174:9;3161:23;3151:33;;3234:2;3223:9;3219:18;3206:32;3247:31;3272:5;3247:31;:::i;:::-;3297:5;-1:-1:-1;3349:2:42;3334:18;;3321:32;;-1:-1:-1;3405:2:42;3390:18;;3377:32;3418:33;3377:32;3418:33;:::i;:::-;3470:7;-1:-1:-1;3524:3:42;3509:19;;3496:33;;-1:-1:-1;3580:3:42;3565:19;;3552:33;-1:-1:-1;;;;;3597:30:42;;3594:50;;;3640:1;3637;3630:12;3594:50;3663:74;3729:7;3720:6;3709:9;3705:22;3663:74;:::i;:::-;3653:84;;;2890:853;;;;;;;;:::o;3748:456::-;3825:6;3833;3841;3894:2;3882:9;3873:7;3869:23;3865:32;3862:52;;;3910:1;3907;3900:12;3862:52;3949:9;3936:23;3968:31;3993:5;3968:31;:::i;:::-;4018:5;-1:-1:-1;4075:2:42;4060:18;;4047:32;4088:33;4047:32;4088:33;:::i;:::-;3748:456;;4140:7;;-1:-1:-1;;;4194:2:42;4179:18;;;;4166:32;;3748:456::o;4209:248::-;4277:6;4285;4338:2;4326:9;4317:7;4313:23;4309:32;4306:52;;;4354:1;4351;4344:12;4306:52;-1:-1:-1;;4377:23:42;;;4447:2;4432:18;;;4419:32;;-1:-1:-1;4209:248:42:o;4741:118::-;4827:5;4820:13;4813:21;4806:5;4803:32;4793:60;;4849:1;4846;4839:12;4864:241;4920:6;4973:2;4961:9;4952:7;4948:23;4944:32;4941:52;;;4989:1;4986;4979:12;4941:52;5028:9;5015:23;5047:28;5069:5;5047:28;:::i;5640:127::-;5701:10;5696:3;5692:20;5689:1;5682:31;5732:4;5729:1;5722:15;5756:4;5753:1;5746:15;5772:275;5843:2;5837:9;5908:2;5889:13;;-1:-1:-1;;5885:27:42;5873:40;;-1:-1:-1;;;;;5928:34:42;;5964:22;;;5925:62;5922:88;;;5990:18;;:::i;:::-;6026:2;6019:22;5772:275;;-1:-1:-1;5772:275:42:o;6052:187::-;6101:4;-1:-1:-1;;;;;6126:6:42;6123:30;6120:56;;;6156:18;;:::i;:::-;-1:-1:-1;6222:2:42;6201:15;-1:-1:-1;;6197:29:42;6228:4;6193:40;;6052:187::o;6244:338::-;6309:5;6338:53;6354:36;6383:6;6354:36;:::i;:::-;6338:53;:::i;:::-;6329:62;;6414:6;6407:5;6400:21;6454:3;6445:6;6440:3;6436:16;6433:25;6430:45;;;6471:1;6468;6461:12;6430:45;6520:6;6515:3;6508:4;6501:5;6497:16;6484:43;6574:1;6567:4;6558:6;6551:5;6547:18;6543:29;6536:40;6244:338;;;;;:::o;6587:451::-;6656:6;6709:2;6697:9;6688:7;6684:23;6680:32;6677:52;;;6725:1;6722;6715:12;6677:52;6765:9;6752:23;-1:-1:-1;;;;;6790:6:42;6787:30;6784:50;;;6830:1;6827;6820:12;6784:50;6853:22;;6906:4;6898:13;;6894:27;-1:-1:-1;6884:55:42;;6935:1;6932;6925:12;6884:55;6958:74;7024:7;7019:2;7006:16;7001:2;6997;6993:11;6958:74;:::i;7043:824::-;7236:2;7225:9;7218:21;7281:6;7275:13;7270:2;7259:9;7255:18;7248:41;7343:2;7335:6;7331:15;7325:22;7320:2;7309:9;7305:18;7298:50;7402:2;7394:6;7390:15;7384:22;7379:2;7368:9;7364:18;7357:50;7462:2;7454:6;7450:15;7444:22;7438:3;7427:9;7423:19;7416:51;7522:3;7514:6;7510:16;7504:23;7498:3;7487:9;7483:19;7476:52;7583:3;7575:6;7571:16;7565:23;7559:3;7548:9;7544:19;7537:52;7672:1;7668;7663:3;7659:11;7655:19;7648:3;7640:6;7636:16;7630:23;7626:49;7620:3;7609:9;7605:19;7598:78;7199:4;7723:3;7715:6;7711:16;7705:23;7747:6;7789:2;7784;7773:9;7769:18;7762:30;;7809:52;7856:3;7845:9;7841:19;7827:12;7809:52;:::i;7872:390::-;7958:8;7968:6;8022:3;8015:4;8007:6;8003:17;7999:27;7989:55;;8040:1;8037;8030:12;7989:55;-1:-1:-1;8063:20:42;;-1:-1:-1;;;;;8095:30:42;;8092:50;;;8138:1;8135;8128:12;8092:50;8175:4;8167:6;8163:17;8151:29;;8235:3;8228:4;8218:6;8215:1;8211:14;8203:6;8199:27;8195:38;8192:47;8189:67;;;8252:1;8249;8242:12;8189:67;7872:390;;;;;:::o;8267:623::-;8393:6;8401;8409;8462:2;8450:9;8441:7;8437:23;8433:32;8430:52;;;8478:1;8475;8468:12;8430:52;8518:9;8505:23;-1:-1:-1;;;;;8543:6:42;8540:30;8537:50;;;8583:1;8580;8573:12;8537:50;8622:93;8707:7;8698:6;8687:9;8683:22;8622:93;:::i;:::-;8734:8;;-1:-1:-1;8596:119:42;-1:-1:-1;;8819:2:42;8804:18;;8791:32;8832:28;8791:32;8832:28;:::i;:::-;8879:5;8869:15;;;8267:623;;;;;:::o;8895:221::-;8937:5;8990:3;8983:4;8975:6;8971:17;8967:27;8957:55;;9008:1;9005;8998:12;8957:55;9030:80;9106:3;9097:6;9084:20;9077:4;9069:6;9065:17;9030:80;:::i;9121:1004::-;9268:6;9276;9284;9292;9300;9308;9361:3;9349:9;9340:7;9336:23;9332:33;9329:53;;;9378:1;9375;9368:12;9329:53;9417:9;9404:23;9436:31;9461:5;9436:31;:::i;:::-;9486:5;-1:-1:-1;9538:2:42;9523:18;;9510:32;;-1:-1:-1;9594:2:42;9579:18;;9566:32;9607:33;9566:32;9607:33;:::i;:::-;9659:7;-1:-1:-1;9713:2:42;9698:18;;9685:32;;-1:-1:-1;9768:3:42;9753:19;;9740:33;-1:-1:-1;;;;;9822:14:42;;;9819:34;;;9849:1;9846;9839:12;9819:34;9872:74;9938:7;9929:6;9918:9;9914:22;9872:74;:::i;:::-;9862:84;;9999:3;9988:9;9984:19;9971:33;9955:49;;10029:2;10019:8;10016:16;10013:36;;;10045:1;10042;10035:12;10013:36;;10068:51;10111:7;10100:8;10089:9;10085:24;10068:51;:::i;10130:383::-;10207:6;10215;10223;10276:2;10264:9;10255:7;10251:23;10247:32;10244:52;;;10292:1;10289;10282:12;10244:52;10328:9;10315:23;10305:33;;10388:2;10377:9;10373:18;10360:32;10401:31;10426:5;10401:31;:::i;10518:347::-;10569:8;10579:6;10633:3;10626:4;10618:6;10614:17;10610:27;10600:55;;10651:1;10648;10641:12;10600:55;-1:-1:-1;10674:20:42;;-1:-1:-1;;;;;10706:30:42;;10703:50;;;10749:1;10746;10739:12;10703:50;10786:4;10778:6;10774:17;10762:29;;10838:3;10831:4;10822:6;10814;10810:19;10806:30;10803:39;10800:59;;;10855:1;10852;10845:12;10870:477;10949:6;10957;10965;11018:2;11006:9;10997:7;10993:23;10989:32;10986:52;;;11034:1;11031;11024:12;10986:52;11070:9;11057:23;11047:33;;11131:2;11120:9;11116:18;11103:32;-1:-1:-1;;;;;11150:6:42;11147:30;11144:50;;;11190:1;11187;11180:12;11144:50;11229:58;11279:7;11270:6;11259:9;11255:22;11229:58;:::i;:::-;10870:477;;11306:8;;-1:-1:-1;11203:84:42;;-1:-1:-1;;;;10870:477:42:o;11575:382::-;11640:6;11648;11701:2;11689:9;11680:7;11676:23;11672:32;11669:52;;;11717:1;11714;11707:12;11669:52;11756:9;11743:23;11775:31;11800:5;11775:31;:::i;:::-;11825:5;-1:-1:-1;11882:2:42;11867:18;;11854:32;11895:30;11854:32;11895:30;:::i;:::-;11944:7;11934:17;;;11575:382;;;;;:::o;11962:471::-;12059:6;12067;12120:2;12108:9;12099:7;12095:23;12091:32;12088:52;;;12136:1;12133;12126:12;12088:52;12176:9;12163:23;-1:-1:-1;;;;;12201:6:42;12198:30;12195:50;;;12241:1;12238;12231:12;12195:50;12280:93;12365:7;12356:6;12345:9;12341:22;12280:93;:::i;:::-;12392:8;;12254:119;;-1:-1:-1;11962:471:42;-1:-1:-1;;;;11962:471:42:o;12438:801::-;12598:4;12627:2;12667;12656:9;12652:18;12697:2;12686:9;12679:21;12720:6;12755;12749:13;12786:6;12778;12771:22;12824:2;12813:9;12809:18;12802:25;;12886:2;12876:6;12873:1;12869:14;12858:9;12854:30;12850:39;12836:53;;12924:2;12916:6;12912:15;12945:1;12955:255;12969:6;12966:1;12963:13;12955:255;;;13062:2;13058:7;13046:9;13038:6;13034:22;13030:36;13025:3;13018:49;13090:40;13123:6;13114;13108:13;13090:40;:::i;:::-;13080:50;-1:-1:-1;13188:12:42;;;;13153:15;;;;12991:1;12984:9;12955:255;;;-1:-1:-1;13227:6:42;;12438:801;-1:-1:-1;;;;;;;12438:801:42:o;13244:315::-;13312:6;13320;13373:2;13361:9;13352:7;13348:23;13344:32;13341:52;;;13389:1;13386;13379:12;13341:52;13425:9;13412:23;13402:33;;13485:2;13474:9;13470:18;13457:32;13498:31;13523:5;13498:31;:::i;13564:665::-;13659:6;13667;13675;13683;13736:3;13724:9;13715:7;13711:23;13707:33;13704:53;;;13753:1;13750;13743:12;13704:53;13792:9;13779:23;13811:31;13836:5;13811:31;:::i;:::-;13861:5;-1:-1:-1;13918:2:42;13903:18;;13890:32;13931:33;13890:32;13931:33;:::i;:::-;13983:7;-1:-1:-1;14037:2:42;14022:18;;14009:32;;-1:-1:-1;14092:2:42;14077:18;;14064:32;-1:-1:-1;;;;;14108:30:42;;14105:50;;;14151:1;14148;14141:12;14105:50;14174:49;14215:7;14206:6;14195:9;14191:22;14174:49;:::i;:::-;14164:59;;;13564:665;;;;;;;:::o;14234:786::-;14334:6;14342;14350;14358;14366;14419:2;14407:9;14398:7;14394:23;14390:32;14387:52;;;14435:1;14432;14425:12;14387:52;14471:9;14458:23;14448:33;;14532:2;14521:9;14517:18;14504:32;-1:-1:-1;;;;;14596:2:42;14588:6;14585:14;14582:34;;;14612:1;14609;14602:12;14582:34;14651:58;14701:7;14692:6;14681:9;14677:22;14651:58;:::i;:::-;14728:8;;-1:-1:-1;14625:84:42;-1:-1:-1;14816:2:42;14801:18;;14788:32;;-1:-1:-1;14832:16:42;;;14829:36;;;14861:1;14858;14851:12;14829:36;;14900:60;14952:7;14941:8;14930:9;14926:24;14900:60;:::i;:::-;14234:786;;;;-1:-1:-1;14234:786:42;;-1:-1:-1;14979:8:42;;14874:86;14234:786;-1:-1:-1;;;14234:786:42:o;15278:628::-;15366:6;15374;15382;15435:2;15423:9;15414:7;15410:23;15406:32;15403:52;;;15451:1;15448;15441:12;15403:52;15491:9;15478:23;-1:-1:-1;;;;;15561:2:42;15553:6;15550:14;15547:34;;;15577:1;15574;15567:12;15547:34;15600:49;15641:7;15632:6;15621:9;15617:22;15600:49;:::i;:::-;15590:59;;15702:2;15691:9;15687:18;15674:32;15658:48;;15731:2;15721:8;15718:16;15715:36;;;15747:1;15744;15737:12;15715:36;;15786:60;15838:7;15827:8;15816:9;15812:24;15786:60;:::i;15911:388::-;15979:6;15987;16040:2;16028:9;16019:7;16015:23;16011:32;16008:52;;;16056:1;16053;16046:12;16008:52;16095:9;16082:23;16114:31;16139:5;16114:31;:::i;:::-;16164:5;-1:-1:-1;16221:2:42;16206:18;;16193:32;16234:33;16193:32;16234:33;:::i;16304:380::-;16383:1;16379:12;;;;16426;;;16447:61;;16501:4;16493:6;16489:17;16479:27;;16447:61;16554:2;16546:6;16543:14;16523:18;16520:38;16517:161;;;16600:10;16595:3;16591:20;16588:1;16581:31;16635:4;16632:1;16625:15;16663:4;16660:1;16653:15;16689:338;16891:2;16873:21;;;16930:2;16910:18;;;16903:30;-1:-1:-1;;;16964:2:42;16949:18;;16942:44;17018:2;17003:18;;16689:338::o;17032:545::-;17125:4;17131:6;17191:11;17178:25;17285:2;17281:7;17270:8;17254:14;17250:29;17246:43;17226:18;17222:68;17212:96;;17304:1;17301;17294:12;17212:96;17331:33;;17383:20;;;-1:-1:-1;;;;;;17415:30:42;;17412:50;;;17458:1;17455;17448:12;17412:50;17491:4;17479:17;;-1:-1:-1;17542:1:42;17538:14;;;17522;17518:35;17508:46;;17505:66;;;17567:1;17564;17557:12;18396:127;18457:10;18452:3;18448:20;18445:1;18438:31;18488:4;18485:1;18478:15;18512:4;18509:1;18502:15;18528:128;18568:3;18599:1;18595:6;18592:1;18589:13;18586:39;;;18605:18;;:::i;:::-;-1:-1:-1;18641:9:42;;18528:128::o;20017:127::-;20078:10;20073:3;20069:20;20066:1;20059:31;20109:4;20106:1;20099:15;20133:4;20130:1;20123:15;20149:168;20189:7;20255:1;20251;20247:6;20243:14;20240:1;20237:21;20232:1;20225:9;20218:17;20214:45;20211:71;;;20262:18;;:::i;:::-;-1:-1:-1;20302:9:42;;20149:168::o;20322:127::-;20383:10;20378:3;20374:20;20371:1;20364:31;20414:4;20411:1;20404:15;20438:4;20435:1;20428:15;20454:120;20494:1;20520;20510:35;;20525:18;;:::i;:::-;-1:-1:-1;20559:9:42;;20454:120::o;20991:332::-;21091:4;21149:11;21136:25;21243:3;21239:8;21228;21212:14;21208:29;21204:44;21184:18;21180:69;21170:97;;21263:1;21260;21253:12;21170:97;21284:33;;;;;20991:332;-1:-1:-1;;20991:332:42:o;22005:516::-;22077:4;22083:6;22143:11;22130:25;22237:2;22233:7;22222:8;22206:14;22202:29;22198:43;22178:18;22174:68;22164:96;;22256:1;22253;22246:12;22164:96;22283:33;;22335:20;;;-1:-1:-1;;;;;;22367:30:42;;22364:50;;;22410:1;22407;22400:12;22364:50;22443:4;22431:17;;-1:-1:-1;22474:14:42;22470:27;;;22460:38;;22457:58;;;22511:1;22508;22501:12;22652:545;22754:2;22749:3;22746:11;22743:448;;;22790:1;22815:5;22811:2;22804:17;22860:4;22856:2;22846:19;22930:2;22918:10;22914:19;22911:1;22907:27;22901:4;22897:38;22966:4;22954:10;22951:20;22948:47;;;-1:-1:-1;22989:4:42;22948:47;23044:2;23039:3;23035:12;23032:1;23028:20;23022:4;23018:31;23008:41;;23099:82;23117:2;23110:5;23107:13;23099:82;;;23162:17;;;23143:1;23132:13;23099:82;;23373:1190;-1:-1:-1;;;;;23476:3:42;23473:27;23470:53;;;23503:18;;:::i;:::-;23532:94;23622:3;23582:38;23614:4;23608:11;23582:38;:::i;:::-;23576:4;23532:94;:::i;:::-;23652:1;23677:2;23672:3;23669:11;23694:1;23689:616;;;;24349:1;24366:3;24363:93;;;-1:-1:-1;24422:19:42;;;24409:33;24363:93;-1:-1:-1;;23330:1:42;23326:11;;;23322:24;23318:29;23308:40;23354:1;23350:11;;;23305:57;24469:78;;23662:895;;23689:616;22599:1;22592:14;;;22636:4;22623:18;;-1:-1:-1;;23725:17:42;;;23826:9;23848:229;23862:7;23859:1;23856:14;23848:229;;;23951:19;;;23938:33;23923:49;;24058:4;24043:20;;;;24011:1;23999:14;;;;23878:12;23848:229;;;23852:3;24105;24096:7;24093:16;24090:159;;;24229:1;24225:6;24219:3;24213;24210:1;24206:11;24202:21;24198:34;24194:39;24181:9;24176:3;24172:19;24159:33;24155:79;24147:6;24140:95;24090:159;;;24292:1;24286:3;24283:1;24279:11;24275:19;24269:4;24262:33;23662:895;;23373:1190;;;:::o;24568:960::-;24745:5;24732:19;24726:4;24719:33;24806:2;24799:5;24795:14;24782:28;24778:1;24772:4;24768:12;24761:50;24865:2;24858:5;24854:14;24841:28;24837:1;24831:4;24827:12;24820:50;24924:2;24917:5;24913:14;24900:28;24896:1;24890:4;24886:12;24879:50;24983:3;24976:5;24972:15;24959:29;24955:1;24949:4;24945:12;24938:51;25043:3;25036:5;25032:15;25019:29;25015:1;25009:4;25005:12;24998:51;25086:1;25080:4;25076:12;25136:3;25129:5;25125:15;25112:29;25150:33;25175:7;25150:33;:::i;:::-;25218:17;;-1:-1:-1;;;;;;25214:60:42;-1:-1:-1;;;;;25276:33:42;;;;25211:99;25192:119;;25354:60;25409:3;25398:15;;25402:5;25354:60;:::i;:::-;25423:99;25508:13;25495:11;25491:1;25485:4;25481:12;25423:99;:::i;25533:135::-;25572:3;-1:-1:-1;;25593:17:42;;25590:43;;;25613:18;;:::i;:::-;-1:-1:-1;25660:1:42;25649:13;;25533:135::o;25673:504::-;25732:5;25739:6;25799:3;25786:17;25885:2;25881:7;25870:8;25854:14;25850:29;25846:43;25826:18;25822:68;25812:96;;25904:1;25901;25894:12;25812:96;25932:33;;26036:4;26023:18;;;-1:-1:-1;25984:21:42;;-1:-1:-1;;;;;;26053:30:42;;26050:50;;;26096:1;26093;26086:12;26050:50;26146:6;26130:14;26126:27;26116:8;26112:42;26109:62;;;26167:1;26164;26157:12;26182:267;26271:6;26266:3;26259:19;26323:6;26316:5;26309:4;26304:3;26300:14;26287:43;-1:-1:-1;26375:1:42;26350:16;;;26368:4;26346:27;;;26339:38;;;;26431:2;26410:15;;;-1:-1:-1;;26406:29:42;26397:39;;;26393:50;;26182:267::o;26454:2049::-;26723:2;26775:21;;;26748:18;;;26831:22;;;26694:4;;26872:2;26890:18;;;26954:1;26950:14;;;26935:30;;26931:39;;26993:6;26694:4;;27048:1372;27064:6;27059:3;27056:15;27048:1372;;;27133:22;;;-1:-1:-1;;27129:36:42;27117:49;;27205:20;;27280:14;27276:27;;;-1:-1:-1;;27272:42:42;27248:67;;27238:95;;27329:1;27326;27319:12;27238:95;27359:31;;27447:19;;27432:35;;27490:4;27544:14;;;27531:28;27514:15;;;27507:53;27610:14;;;27597:28;27580:15;;;27573:53;27676:14;;;27663:28;27646:15;;;27639:53;27715:4;27769:14;;;27756:28;27739:15;;;27732:53;27808:4;27862:14;;;27849:28;27832:15;;;27825:53;27413:6;;27901:4;27946:14;;;27933:28;27974:33;27933:28;27974:33;:::i;:::-;-1:-1:-1;;;;;28044:33:42;28027:15;;;28020:58;28101:4;28152:54;28191:14;;;28195:5;28152:54;:::i;:::-;28118:88;;28243:2;28238;28230:6;28226:15;28219:27;28269:71;28336:2;28328:6;28324:15;28310:12;28296;28269:71;:::i;:::-;28398:12;;;;28259:81;-1:-1:-1;;;28363:15:42;;;;;-1:-1:-1;;27090:1:42;27081:11;27048:1372;;;-1:-1:-1;;;470:13:42;;463:21;28491:4;28476:20;;451:34;28437:6;-1:-1:-1;28452:45:42;;-1:-1:-1;;;400:91:42;28854:704;28942:6;28950;29003:2;28991:9;28982:7;28978:23;28974:32;28971:52;;;29019:1;29016;29009:12;28971:52;29052:9;29046:16;-1:-1:-1;;;;;29077:6:42;29074:30;29071:50;;;29117:1;29114;29107:12;29071:50;29140:22;;29193:4;29185:13;;29181:27;-1:-1:-1;29171:55:42;;29222:1;29219;29212:12;29171:55;29251:2;29245:9;29276:49;29292:32;29321:2;29292:32;:::i;29276:49::-;29348:2;29341:5;29334:17;29390:7;29383:4;29378:2;29374;29370:11;29366:22;29363:35;29360:55;;;29411:1;29408;29401:12;29360:55;29424:58;29479:2;29472:4;29465:5;29461:16;29454:4;29450:2;29446:13;29424:58;:::i;:::-;29546:4;29531:20;;;;29525:27;29501:5;;29525:27;;-1:-1:-1;;;;;28854:704:42:o;29563:525::-;29778:3;29816:6;29810:13;29832:53;29878:6;29873:3;29866:4;29858:6;29854:17;29832:53;:::i;:::-;29907:16;;29960:6;29952;29907:16;29932:35;29986:18;;;30035;;;-1:-1:-1;30077:4:42;30069:13;;29563:525;-1:-1:-1;;;29563:525:42:o;30961:125::-;31001:4;31029:1;31026;31023:8;31020:34;;;31034:18;;:::i;:::-;-1:-1:-1;31071:9:42;;30961:125::o;31091:136::-;31130:3;31158:5;31148:39;;31167:18;;:::i;:::-;-1:-1:-1;;;31203:18:42;;31091:136::o;31572:579::-;31905:3;31943:6;31937:13;31959:53;32005:6;32000:3;31993:4;31985:6;31981:17;31959:53;:::i;:::-;-1:-1:-1;;;32034:16:42;;32059:18;;;-1:-1:-1;;;;32104:1:42;32093:13;;32086:30;32143:1;32132:13;;31572:579;-1:-1:-1;31572:579:42:o;32156:637::-;32436:3;32474:6;32468:13;32490:53;32536:6;32531:3;32524:4;32516:6;32512:17;32490:53;:::i;:::-;32606:13;;32565:16;;;;32628:57;32606:13;32565:16;32662:4;32650:17;;32628:57;:::i;:::-;-1:-1:-1;;;32707:20:42;;32736:22;;;32785:1;32774:13;;32156:637;-1:-1:-1;;;;32156:637:42:o;32798:388::-;32875:6;32883;32936:2;32924:9;32915:7;32911:23;32907:32;32904:52;;;32952:1;32949;32942:12;32904:52;32992:9;32979:23;-1:-1:-1;;;;;33017:6:42;33014:30;33011:50;;;33057:1;33054;33047:12;33011:50;33080:49;33121:7;33112:6;33101:9;33097:22;33080:49;:::i;:::-;33070:59;33176:2;33161:18;;;;33148:32;;-1:-1:-1;;;;32798:388:42:o;33191:335::-;33402:6;33394;33389:3;33376:33;33428:16;;;33475:18;;;33517:2;33509:11;;33191:335;-1:-1:-1;33191:335:42:o;33840:245::-;33907:6;33960:2;33948:9;33939:7;33935:23;33931:32;33928:52;;;33976:1;33973;33966:12;33928:52;34008:9;34002:16;34027:28;34049:5;34027:28;:::i;35389:383::-;35586:2;35575:9;35568:21;35549:4;35612:45;35653:2;35642:9;35638:18;35630:6;35612:45;:::i;:::-;35705:9;35697:6;35693:22;35688:2;35677:9;35673:18;35666:50;35733:33;35759:6;35751;35733:33;:::i;:::-;35725:41;35389:383;-1:-1:-1;;;;;35389:383:42:o;36121:112::-;36153:1;36179;36169:35;;36184:18;;:::i;:::-;-1:-1:-1;36218:9:42;;36121:112::o;36571:506::-;36814:6;36803:9;36796:25;36857:2;36852;36841:9;36837:18;36830:30;36777:4;36883:62;36941:2;36930:9;36926:18;36918:6;36910;36883:62;:::i;:::-;36993:9;36985:6;36981:22;36976:2;36965:9;36961:18;36954:50;37021;37064:6;37056;37048;37021:50;:::i;:::-;37013:58;36571:506;-1:-1:-1;;;;;;;;36571:506:42:o;37489:274::-;37618:3;37656:6;37650:13;37672:53;37718:6;37713:3;37706:4;37698:6;37694:17;37672:53;:::i;37768:489::-;-1:-1:-1;;;;;38037:15:42;;;38019:34;;38089:15;;38084:2;38069:18;;38062:43;38136:2;38121:18;;38114:34;;;38184:3;38179:2;38164:18;;38157:31;;;37962:4;;38205:46;;38231:19;;38223:6;38205:46;:::i;38262:249::-;38331:6;38384:2;38372:9;38363:7;38359:23;38355:32;38352:52;;;38400:1;38397;38390:12;38352:52;38432:9;38426:16;38451:30;38475:5;38451:30;:::i

Swarm Source

ipfs://a2c66945a1104d9c51dda9966048080ceef5afa32afbfe3704ccb733acfa0faf
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.