Token TankWarsZone Mystery Box

 

Overview ERC-721

Total Supply:
672 TBOX

Holders:
282 addresses

Transfers:
-

Loading
[ Download CSV Export  ] 
Loading
Loading

Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MysteryBox

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-02-12
*/

// Sources flattened with hardhat v2.8.3 https://hardhat.org

// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


// File @openzeppelin/contracts/utils/introspection/IERC165.[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}


// File @openzeppelin/contracts/utils/introspection/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}


// File @openzeppelin/contracts/access/[email protected]


pragma solidity ^0.8.0;


/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    function hasRole(bytes32 role, address account) external view returns (bool);
    function getRoleAdmin(bytes32 role) external view returns (bytes32);
    function grantRole(bytes32 role, address account) external;
    function revokeRole(bytes32 role, address account) external;
    function renounceRole(bytes32 role, address account) external;
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping (address => bool) members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override {
        require(hasRole(getRoleAdmin(role), _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override {
        require(hasRole(getRoleAdmin(role), _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, getRoleAdmin(role), adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}


// File @openzeppelin/contracts/utils/structs/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}


// File @openzeppelin/contracts/access/[email protected]


pragma solidity ^0.8.0;


/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable {
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping (bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {grantRole} to track enumerable memberships
     */
    function grantRole(bytes32 role, address account) public virtual override {
        super.grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {revokeRole} to track enumerable memberships
     */
    function revokeRole(bytes32 role, address account) public virtual override {
        super.revokeRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {renounceRole} to track enumerable memberships
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        super.renounceRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev Overload {_setupRole} to track enumerable memberships
     */
    function _setupRole(bytes32 role, address account) internal virtual override {
        super._setupRole(role, account);
        _roleMembers[role].add(account);
    }
}


// File @openzeppelin/contracts/token/ERC721/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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 operator);

    /**
     * @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 @openzeppelin/contracts/token/ERC721/[email protected]


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 @openzeppelin/contracts/token/ERC721/extensions/[email protected]


pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]


pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}


// File @openzeppelin/contracts/utils/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/utils/[email protected]


pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}


// File @openzeppelin/contracts/token/ERC721/[email protected]


pragma solidity ^0.8.0;








/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping (uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping (address => uint256) private _balances;

    // 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;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0
            ? string(abi.encodePacked(baseURI, tokenId.toString()))
            : '';
    }

    /**
     * @dev Base URI for computing {tokenURI}. 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 = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(_msgSender() == owner || ERC721.isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _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 {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _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 {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @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`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
        _mint(to, tokenId);
        require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a 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 _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        private returns (bool)
    {
        if (to.isContract()) {
            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("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    // solhint-disable-next-line no-inline-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
}


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]


pragma solidity ^0.8.0;


/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]


pragma solidity ^0.8.0;


/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}


// File contracts/nft/MysteryBox.sol

pragma solidity ^0.8.0;


contract MysteryBox is AccessControlEnumerable, ERC721Enumerable, ERC721Burnable  {

    event BaseURIChanged(string uri);

    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

    string private _uri;

    uint256 public currentId;

    constructor(string memory name, string memory symbol, string memory uri) ERC721(name, symbol) {
        _uri = uri;

        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());

        _setupRole(MINTER_ROLE, _msgSender());
    }

    function setBaseURI(string memory uri) public virtual {
        require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "MysteryBox: must have admin role to set");

        require(bytes(uri).length > 0, "MysteryBox: uri is invalid");

        _uri = uri;

        emit BaseURIChanged(uri);
    }

    function mint(address to) public virtual {
        require(hasRole(MINTER_ROLE, _msgSender()), "MysteryBox: must have minter role to mint");

        _mint(to, ++currentId);
    }

    function mintBatch(address[] memory accounts) public virtual {
        require(hasRole(MINTER_ROLE, _msgSender()), "MysteryBox: must have minter role to mint");

        uint256 length = accounts.length;

        require(length > 0, "MysteryBox: array length is invalid");

        uint256 id = currentId;

        for (uint256 i = 0; i < length; i++) {
            _mint(accounts[i], ++id);
        }

        currentId = id;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return _uri;
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"uri","type":"string"}],"name":"BaseURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"}]

60806040523480156200001157600080fd5b506040516200296638038062002966833981016040819052620000349162000380565b8251839083906200004d90600290602085019062000223565b5080516200006390600390602084019062000223565b505081516200007b9150600c90602084019062000223565b5062000089600033620000be565b620000b57f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620000be565b50505062000464565b620000d582826200010160201b62000eab1760201c565b6000828152600160209081526040909120620000fc91839062000eb962000111821b17901c565b505050565b6200010d828262000131565b5050565b600062000128836001600160a01b038416620001d1565b90505b92915050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200010d576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200018d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546200021a575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200012b565b5060006200012b565b828054620002319062000411565b90600052602060002090601f016020900481019282620002555760008555620002a0565b82601f106200027057805160ff1916838001178555620002a0565b82800160010185558215620002a0579182015b82811115620002a057825182559160200191906001019062000283565b50620002ae929150620002b2565b5090565b5b80821115620002ae5760008155600101620002b3565b600082601f830112620002db57600080fd5b81516001600160401b0380821115620002f857620002f86200044e565b604051601f8301601f19908116603f011681019082821181831017156200032357620003236200044e565b816040528381526020925086838588010111156200034057600080fd5b600091505b8382101562000364578582018301518183018401529082019062000345565b83821115620003765760008385830101525b9695505050505050565b6000806000606084860312156200039657600080fd5b83516001600160401b0380821115620003ae57600080fd5b620003bc87838801620002c9565b94506020860151915080821115620003d357600080fd5b620003e187838801620002c9565b93506040860151915080821115620003f857600080fd5b506200040786828701620002c9565b9150509250925092565b600181811c908216806200042657607f821691505b602082108114156200044857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6124f280620004746000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80636a62784211610104578063a22cb465116100a2578063d539139311610071578063d5391393146103f7578063d547741f1461041e578063e00dd16114610431578063e985e9c51461043a57600080fd5b8063a22cb465146103ab578063b88d4fde146103be578063c87b56dd146103d1578063ca15c873146103e457600080fd5b806391d14854116100de57806391d1485414610375578063927f59ba1461038857806395d89b411461039b578063a217fddf146103a357600080fd5b80636a6278421461033c57806370a082311461034f5780639010d07c1461036257600080fd5b80632f2ff15d1161017c57806342966c681161014b57806342966c68146102f05780634f6ccce71461030357806355f804b3146103165780636352211e1461032957600080fd5b80632f2ff15d146102a45780632f745c59146102b757806336568abe146102ca57806342842e0e146102dd57600080fd5b8063095ea7b3116101b8578063095ea7b31461024757806318160ddd1461025c57806323b872dd1461026e578063248a9ca31461028157600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed366004612114565b610476565b60405190151581526020015b60405180910390f35b61020f610487565b6040516101fe919061222f565b61022f61022a3660046120b6565b610519565b6040516001600160a01b0390911681526020016101fe565b61025a610255366004611fd8565b6105b3565b005b600a545b6040519081526020016101fe565b61025a61027c366004611ee4565b6106c9565b61026061028f3660046120b6565b60009081526020819052604090206001015490565b61025a6102b23660046120cf565b6106fb565b6102606102c5366004611fd8565b61071d565b61025a6102d83660046120cf565b6107b3565b61025a6102eb366004611ee4565b6107d5565b61025a6102fe3660046120b6565b6107f0565b6102606103113660046120b6565b61086a565b61025a61032436600461214e565b6108fd565b61022f6103373660046120b6565b610a03565b61025a61034a366004611e96565b610a7a565b61026061035d366004611e96565b610add565b61022f6103703660046120f2565b610b64565b6101f26103833660046120cf565b610b83565b61025a610396366004612002565b610bac565b61020f610ca4565b610260600081565b61025a6103b9366004611f9c565b610cb3565b61025a6103cc366004611f20565b610d78565b61020f6103df3660046120b6565b610db0565b6102606103f23660046120b6565b610e8a565b6102607f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61025a61042c3660046120cf565b610ea1565b610260600d5481565b6101f2610448366004611eb1565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b600061048182610ece565b92915050565b606060028054610496906123ce565b80601f01602080910402602001604051908101604052809291908181526020018280546104c2906123ce565b801561050f5780601f106104e45761010080835404028352916020019161050f565b820191906000526020600020905b8154815290600101906020018083116104f257829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b03166105975760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006105be82610a03565b9050806001600160a01b0316836001600160a01b0316141561062c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161058e565b336001600160a01b038216148061064857506106488133610448565b6106ba5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161058e565b6106c48383610ef3565b505050565b6106d4335b82610f61565b6106f05760405162461bcd60e51b815260040161058e906122dd565b6106c4838383611058565b6107058282611203565b60008281526001602052604090206106c49082610eb9565b600061072883610add565b821061078a5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161058e565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6107bd8282611284565b60008281526001602052604090206106c490826112fe565b6106c483838360405180602001604052806000815250610d78565b6107f9336106ce565b61085e5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840161058e565b61086781611313565b50565b6000610875600a5490565b82106108d85760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161058e565b600a82815481106108eb576108eb61247a565b90600052602060002001549050919050565b610908600033610b83565b6109645760405162461bcd60e51b815260206004820152602760248201527f4d797374657279426f783a206d75737420686176652061646d696e20726f6c65604482015266081d1bc81cd95d60ca1b606482015260840161058e565b60008151116109b55760405162461bcd60e51b815260206004820152601a60248201527f4d797374657279426f783a2075726920697320696e76616c6964000000000000604482015260640161058e565b80516109c890600c906020840190611d89565b507f5411e8ebf1636d9e83d5fc4900bf80cbac82e8790da2a4c94db4895e889eedf6816040516109f8919061222f565b60405180910390a150565b6000818152600460205260408120546001600160a01b0316806104815760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161058e565b610aa47f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610b83565b610ac05760405162461bcd60e51b815260040161058e90612294565b61086781600d60008154610ad390612409565b91829055506113ba565b60006001600160a01b038216610b485760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161058e565b506001600160a01b031660009081526005602052604090205490565b6000828152600160205260408120610b7c9083611508565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610bd67f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610b83565b610bf25760405162461bcd60e51b815260040161058e90612294565b805180610c4d5760405162461bcd60e51b815260206004820152602360248201527f4d797374657279426f783a206172726179206c656e67746820697320696e76616044820152621b1a5960ea1b606482015260840161058e565b600d5460005b82811015610c9c57610c8a848281518110610c7057610c7061247a565b602002602001015183610c8290612409565b9350836113ba565b80610c9481612409565b915050610c53565b50600d555050565b606060038054610496906123ce565b6001600160a01b038216331415610d0c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161058e565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d823383610f61565b610d9e5760405162461bcd60e51b815260040161058e906122dd565b610daa84848484611514565b50505050565b6000818152600460205260409020546060906001600160a01b0316610e2f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161058e565b6000610e39611547565b90506000815111610e595760405180602001604052806000815250610b7c565b80610e6384611556565b604051602001610e749291906121c3565b6040516020818303038152906040529392505050565b600081815260016020526040812061048190611654565b6107bd828261165e565b610eb582826116de565b5050565b6000610b7c836001600160a01b038416611762565b60006001600160e01b0319821663780e9d6360e01b14806104815750610481826117b1565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610f2882610a03565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b0316610fda5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161058e565b6000610fe583610a03565b9050806001600160a01b0316846001600160a01b031614806110205750836001600160a01b031661101584610519565b6001600160a01b0316145b8061105057506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661106b82610a03565b6001600160a01b0316146110d35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161058e565b6001600160a01b0382166111355760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161058e565b6111408383836117f1565b61114b600082610ef3565b6001600160a01b038316600090815260056020526040812080546001929061117490849061238b565b90915550506001600160a01b03821660009081526005602052604081208054600192906111a290849061235f565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600082815260208190526040902060010154611220905b33610b83565b610eab5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526e0818591b5a5b881d1bc819dc985b9d608a1b606482015260840161058e565b6001600160a01b03811633146112f45760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161058e565b610eb582826117fc565b6000610b7c836001600160a01b038416611861565b600061131e82610a03565b905061132c816000846117f1565b611337600083610ef3565b6001600160a01b038116600090815260056020526040812080546001929061136090849061238b565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166114105760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161058e565b6000818152600460205260409020546001600160a01b0316156114755760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161058e565b611481600083836117f1565b6001600160a01b03821660009081526005602052604081208054600192906114aa90849061235f565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000610b7c8383611954565b61151f848484611058565b61152b848484846119da565b610daa5760405162461bcd60e51b815260040161058e90612242565b6060600c8054610496906123ce565b60608161157a5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156115a4578061158e81612409565b915061159d9050600a83612377565b915061157e565b60008167ffffffffffffffff8111156115bf576115bf612490565b6040519080825280601f01601f1916602001820160405280156115e9576020820181803683370190505b5090505b8415611050576115fe60018361238b565b915061160b600a86612424565b61161690603061235f565b60f81b81838151811061162b5761162b61247a565b60200101906001600160f81b031916908160001a90535061164d600a86612377565b94506115ed565b6000610481825490565b6000828152602081905260409020600101546116799061121a565b6112f45760405162461bcd60e51b815260206004820152603060248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526f2061646d696e20746f207265766f6b6560801b606482015260840161058e565b6116e88282610b83565b610eb5576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561171e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546117a957508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610481565b506000610481565b60006001600160e01b031982166380ac58cd60e01b14806117e257506001600160e01b03198216635b5e139f60e01b145b80610481575061048182611ae7565b6106c4838383611b0c565b6118068282610b83565b15610eb5576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600183016020526040812054801561194a57600061188560018361238b565b85549091506000906118999060019061238b565b905060008660000182815481106118b2576118b261247a565b90600052602060002001549050808760000184815481106118d5576118d561247a565b6000918252602090912001556118ec83600161235f565b6000828152600189016020526040902055865487908061190e5761190e612464565b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610481565b6000915050610481565b815460009082106119b25760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b606482015260840161058e565b8260000182815481106119c7576119c761247a565b9060005260206000200154905092915050565b60006001600160a01b0384163b15611adc57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a1e9033908990889088906004016121f2565b602060405180830381600087803b158015611a3857600080fd5b505af1925050508015611a68575060408051601f3d908101601f19168201909252611a6591810190612131565b60015b611ac2573d808015611a96576040519150601f19603f3d011682016040523d82523d6000602084013e611a9b565b606091505b508051611aba5760405162461bcd60e51b815260040161058e90612242565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611050565b506001949350505050565b60006001600160e01b03198216635a05180f60e01b1480610481575061048182611bc4565b6001600160a01b038316611b6757611b6281600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b611b8a565b816001600160a01b0316836001600160a01b031614611b8a57611b8a8382611bf9565b6001600160a01b038216611ba1576106c481611c96565b826001600160a01b0316826001600160a01b0316146106c4576106c48282611d45565b60006001600160e01b03198216637965db0b60e01b148061048157506301ffc9a760e01b6001600160e01b0319831614610481565b60006001611c0684610add565b611c10919061238b565b600083815260096020526040902054909150808214611c63576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090611ca89060019061238b565b6000838152600b6020526040812054600a8054939450909284908110611cd057611cd061247a565b9060005260206000200154905080600a8381548110611cf157611cf161247a565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480611d2957611d29612464565b6001900381819060005260206000200160009055905550505050565b6000611d5083610add565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b828054611d95906123ce565b90600052602060002090601f016020900481019282611db75760008555611dfd565b82601f10611dd057805160ff1916838001178555611dfd565b82800160010185558215611dfd579182015b82811115611dfd578251825591602001919060010190611de2565b50611e09929150611e0d565b5090565b5b80821115611e095760008155600101611e0e565b600067ffffffffffffffff831115611e3c57611e3c612490565b611e4f601f8401601f191660200161232e565b9050828152838383011115611e6357600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114611e9157600080fd5b919050565b600060208284031215611ea857600080fd5b610b7c82611e7a565b60008060408385031215611ec457600080fd5b611ecd83611e7a565b9150611edb60208401611e7a565b90509250929050565b600080600060608486031215611ef957600080fd5b611f0284611e7a565b9250611f1060208501611e7a565b9150604084013590509250925092565b60008060008060808587031215611f3657600080fd5b611f3f85611e7a565b9350611f4d60208601611e7a565b925060408501359150606085013567ffffffffffffffff811115611f7057600080fd5b8501601f81018713611f8157600080fd5b611f9087823560208401611e22565b91505092959194509250565b60008060408385031215611faf57600080fd5b611fb883611e7a565b915060208301358015158114611fcd57600080fd5b809150509250929050565b60008060408385031215611feb57600080fd5b611ff483611e7a565b946020939093013593505050565b6000602080838503121561201557600080fd5b823567ffffffffffffffff8082111561202d57600080fd5b818501915085601f83011261204157600080fd5b81358181111561205357612053612490565b8060051b915061206484830161232e565b8181528481019084860184860187018a101561207f57600080fd5b600095505b838610156120a95761209581611e7a565b835260019590950194918601918601612084565b5098975050505050505050565b6000602082840312156120c857600080fd5b5035919050565b600080604083850312156120e257600080fd5b82359150611edb60208401611e7a565b6000806040838503121561210557600080fd5b50508035926020909101359150565b60006020828403121561212657600080fd5b8135610b7c816124a6565b60006020828403121561214357600080fd5b8151610b7c816124a6565b60006020828403121561216057600080fd5b813567ffffffffffffffff81111561217757600080fd5b8201601f8101841361218857600080fd5b61105084823560208401611e22565b600081518084526121af8160208601602086016123a2565b601f01601f19169290920160200192915050565b600083516121d58184602088016123a2565b8351908301906121e98183602088016123a2565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061222590830184612197565b9695505050505050565b602081526000610b7c6020830184612197565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526029908201527f4d797374657279426f783a206d7573742068617665206d696e74657220726f6c60408201526819481d1bc81b5a5b9d60ba1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561235757612357612490565b604052919050565b6000821982111561237257612372612438565b500190565b6000826123865761238661244e565b500490565b60008282101561239d5761239d612438565b500390565b60005b838110156123bd5781810151838201526020016123a5565b83811115610daa5750506000910152565b600181811c908216806123e257607f821691505b6020821081141561240357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561241d5761241d612438565b5060010190565b6000826124335761243361244e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461086757600080fdfea2646970667358221220bc16d23296f9834e195d1e544e4f0bcc57ce763f8c37b701a47240bea89bc19d64736f6c63430008070033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001854616e6b576172735a6f6e65204d79737465727920426f780000000000000000000000000000000000000000000000000000000000000000000000000000000454424f5800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f6d657461646174612e74616e6b776172732e7a6f6e652f626f78732f00000000000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001854616e6b576172735a6f6e65204d79737465727920426f780000000000000000000000000000000000000000000000000000000000000000000000000000000454424f5800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f6d657461646174612e74616e6b776172732e7a6f6e652f626f78732f00000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): TankWarsZone Mystery Box
Arg [1] : symbol (string): TBOX
Arg [2] : uri (string): https://metadata.tankwars.zone/boxs/

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000018
Arg [4] : 54616e6b576172735a6f6e65204d79737465727920426f780000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 54424f5800000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [8] : 68747470733a2f2f6d657461646174612e74616e6b776172732e7a6f6e652f62
Arg [9] : 6f78732f00000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

61824:1973:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63588:204;;;;;;:::i;:::-;;:::i;:::-;;;7086:14:1;;7079:22;7061:41;;7049:2;7034:18;63588:204:0;;;;;;;;43093:100;;;:::i;:::-;;;;;;;:::i;44560:221::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;6384:32:1;;;6366:51;;6354:2;6339:18;44560:221:0;6220:203:1;44090:404:0;;;;;;:::i;:::-;;:::i;:::-;;55566:113;55654:10;:17;55566:113;;;7259:25:1;;;7247:2;7232:18;55566:113:0;7113:177:1;45450:305:0;;;;;;:::i;:::-;;:::i;7152:123::-;;;;;;:::i;:::-;7218:7;7245:12;;;;;;;;;;:22;;;;7152:123;22383:165;;;;;;:::i;:::-;;:::i;55234:256::-;;;;;;:::i;:::-;;:::i;22906:174::-;;;;;;:::i;:::-;;:::i;45826:151::-;;;;;;:::i;:::-;;:::i;61501:245::-;;;;;;:::i;:::-;;:::i;55756:233::-;;;;;;:::i;:::-;;:::i;62326:299::-;;;;;;:::i;:::-;;:::i;42787:239::-;;;;;;:::i;:::-;;:::i;62633:183::-;;;;;;:::i;:::-;;:::i;42517:208::-;;;;;;:::i;:::-;;:::i;21838:145::-;;;;;;:::i;:::-;;:::i;6824:139::-;;;;;;:::i;:::-;;:::i;62824:446::-;;;;;;:::i;:::-;;:::i;43262:104::-;;;:::i;5280:49::-;;5325:4;5280:49;;44853:295;;;;;;:::i;:::-;;:::i;46048:285::-;;;;;;:::i;:::-;;:::i;43437:360::-;;;;;;:::i;:::-;;:::i;22157:134::-;;;;;;:::i;:::-;;:::i;61956:62::-;;61994:24;61956:62;;22641:170;;;;;;:::i;:::-;;:::i;62055:24::-;;;;;;45219:164;;;;;;:::i;:::-;-1:-1:-1;;;;;45340:25:0;;;45316:4;45340:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;45219:164;63588:204;63724:4;63748:36;63772:11;63748:23;:36::i;:::-;63741:43;63588:204;-1:-1:-1;;63588:204:0:o;43093:100::-;43147:13;43180:5;43173:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43093:100;:::o;44560:221::-;44636:7;47889:16;;;:7;:16;;;;;;-1:-1:-1;;;;;47889:16:0;44656:73;;;;-1:-1:-1;;;44656:73:0;;14097:2:1;44656:73:0;;;14079:21:1;14136:2;14116:18;;;14109:30;14175:34;14155:18;;;14148:62;-1:-1:-1;;;14226:18:1;;;14219:42;14278:19;;44656:73:0;;;;;;;;;-1:-1:-1;44749:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;44749:24:0;;44560:221::o;44090:404::-;44171:13;44187:23;44202:7;44187:14;:23::i;:::-;44171:39;;44235:5;-1:-1:-1;;;;;44229:11:0;:2;-1:-1:-1;;;;;44229:11:0;;;44221:57;;;;-1:-1:-1;;;44221:57:0;;15336:2:1;44221:57:0;;;15318:21:1;15375:2;15355:18;;;15348:30;15414:34;15394:18;;;15387:62;-1:-1:-1;;;15465:18:1;;;15458:31;15506:19;;44221:57:0;15134:397:1;44221:57:0;805:10;-1:-1:-1;;;;;44299:21:0;;;;:69;;-1:-1:-1;44324:44:0;44348:5;805:10;45219:164;:::i;44324:44::-;44291:161;;;;-1:-1:-1;;;44291:161:0;;11725:2:1;44291:161:0;;;11707:21:1;11764:2;11744:18;;;11737:30;11803:34;11783:18;;;11776:62;11874:26;11854:18;;;11847:54;11918:19;;44291:161:0;11523:420:1;44291:161:0;44465:21;44474:2;44478:7;44465:8;:21::i;:::-;44160:334;44090:404;;:::o;45450:305::-;45611:41;805:10;45630:12;45644:7;45611:18;:41::i;:::-;45603:103;;;;-1:-1:-1;;;45603:103:0;;;;;;;:::i;:::-;45719:28;45729:4;45735:2;45739:7;45719:9;:28::i;22383:165::-;22468:30;22484:4;22490:7;22468:15;:30::i;:::-;22509:18;;;;:12;:18;;;;;:31;;22532:7;22509:22;:31::i;55234:256::-;55331:7;55367:23;55384:5;55367:16;:23::i;:::-;55359:5;:31;55351:87;;;;-1:-1:-1;;;55351:87:0;;8540:2:1;55351:87:0;;;8522:21:1;8579:2;8559:18;;;8552:30;8618:34;8598:18;;;8591:62;-1:-1:-1;;;8669:18:1;;;8662:41;8720:19;;55351:87:0;8338:407:1;55351:87:0;-1:-1:-1;;;;;;55456:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;55234:256::o;22906:174::-;22994:33;23013:4;23019:7;22994:18;:33::i;:::-;23038:18;;;;:12;:18;;;;;:34;;23064:7;23038:25;:34::i;45826:151::-;45930:39;45947:4;45953:2;45957:7;45930:39;;;;;;;;;;;;:16;:39::i;61501:245::-;61619:41;805:10;61638:12;725:98;61619:41;61611:102;;;;-1:-1:-1;;;61611:102:0;;16569:2:1;61611:102:0;;;16551:21:1;16608:2;16588:18;;;16581:30;16647:34;16627:18;;;16620:62;-1:-1:-1;;;16698:18:1;;;16691:46;16754:19;;61611:102:0;16367:412:1;61611:102:0;61724:14;61730:7;61724:5;:14::i;:::-;61501:245;:::o;55756:233::-;55831:7;55867:30;55654:10;:17;;55566:113;55867:30;55859:5;:38;55851:95;;;;-1:-1:-1;;;55851:95:0;;16156:2:1;55851:95:0;;;16138:21:1;16195:2;16175:18;;;16168:30;16234:34;16214:18;;;16207:62;-1:-1:-1;;;16285:18:1;;;16278:42;16337:19;;55851:95:0;15954:408:1;55851:95:0;55964:10;55975:5;55964:17;;;;;;;;:::i;:::-;;;;;;;;;55957:24;;55756:233;;;:::o;62326:299::-;62399:41;5325:4;805:10;6824:139;:::i;62399:41::-;62391:93;;;;-1:-1:-1;;;62391:93:0;;9371:2:1;62391:93:0;;;9353:21:1;9410:2;9390:18;;;9383:30;9449:34;9429:18;;;9422:62;-1:-1:-1;;;9500:18:1;;;9493:37;9547:19;;62391:93:0;9169:403:1;62391:93:0;62525:1;62511:3;62505:17;:21;62497:60;;;;-1:-1:-1;;;62497:60:0;;13742:2:1;62497:60:0;;;13724:21:1;13781:2;13761:18;;;13754:30;13820:28;13800:18;;;13793:56;13866:18;;62497:60:0;13540:350:1;62497:60:0;62570:10;;;;:4;;:10;;;;;:::i;:::-;;62598:19;62613:3;62598:19;;;;;;:::i;:::-;;;;;;;;62326:299;:::o;42787:239::-;42859:7;42895:16;;;:7;:16;;;;;;-1:-1:-1;;;;;42895:16:0;42930:19;42922:73;;;;-1:-1:-1;;;42922:73:0;;12561:2:1;42922:73:0;;;12543:21:1;12600:2;12580:18;;;12573:30;12639:34;12619:18;;;12612:62;-1:-1:-1;;;12690:18:1;;;12683:39;12739:19;;42922:73:0;12359:405:1;62633:183:0;62693:34;61994:24;805:10;6824:139;:::i;62693:34::-;62685:88;;;;-1:-1:-1;;;62685:88:0;;;;;;;:::i;:::-;62786:22;62792:2;62798:9;;62796:11;;;;;:::i;:::-;;;;;-1:-1:-1;62786:5:0;:22::i;42517:208::-;42589:7;-1:-1:-1;;;;;42617:19:0;;42609:74;;;;-1:-1:-1;;;42609:74:0;;12150:2:1;42609:74:0;;;12132:21:1;12189:2;12169:18;;;12162:30;12228:34;12208:18;;;12201:62;-1:-1:-1;;;12279:18:1;;;12272:40;12329:19;;42609:74:0;11948:406:1;42609:74:0;-1:-1:-1;;;;;;42701:16:0;;;;;:9;:16;;;;;;;42517:208::o;21838:145::-;21920:7;21947:18;;;:12;:18;;;;;:28;;21969:5;21947:21;:28::i;:::-;21940:35;21838:145;-1:-1:-1;;;21838:145:0:o;6824:139::-;6902:4;6926:12;;;;;;;;;;;-1:-1:-1;;;;;6926:29:0;;;;;;;;;;;;;;;6824:139::o;62824:446::-;62904:34;61994:24;805:10;6824:139;:::i;62904:34::-;62896:88;;;;-1:-1:-1;;;62896:88:0;;;;;;;:::i;:::-;63014:15;;63050:10;63042:58;;;;-1:-1:-1;;;63042:58:0;;16986:2:1;63042:58:0;;;16968:21:1;17025:2;17005:18;;;16998:30;17064:34;17044:18;;;17037:62;-1:-1:-1;;;17115:18:1;;;17108:33;17158:19;;63042:58:0;16784:399:1;63042:58:0;63126:9;;63113:10;63148:88;63172:6;63168:1;:10;63148:88;;;63200:24;63206:8;63215:1;63206:11;;;;;;;;:::i;:::-;;;;;;;63219:4;;;;:::i;:::-;;;;63200:5;:24::i;:::-;63180:3;;;;:::i;:::-;;;;63148:88;;;-1:-1:-1;63248:9:0;:14;-1:-1:-1;;62824:446:0:o;43262:104::-;43318:13;43351:7;43344:14;;;;;:::i;44853:295::-;-1:-1:-1;;;;;44956:24:0;;805:10;44956:24;;44948:62;;;;-1:-1:-1;;;44948:62:0;;10541:2:1;44948:62:0;;;10523:21:1;10580:2;10560:18;;;10553:30;10619:27;10599:18;;;10592:55;10664:18;;44948:62:0;10339:349:1;44948:62:0;805:10;45023:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;45023:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;45023:53:0;;;;;;;;;;45092:48;;7061:41:1;;;45023:42:0;;805:10;45092:48;;7034:18:1;45092:48:0;;;;;;;44853:295;;:::o;46048:285::-;46180:41;805:10;46213:7;46180:18;:41::i;:::-;46172:103;;;;-1:-1:-1;;;46172:103:0;;;;;;;:::i;:::-;46286:39;46300:4;46306:2;46310:7;46319:5;46286:13;:39::i;:::-;46048:285;;;;:::o;43437:360::-;47865:4;47889:16;;;:7;:16;;;;;;43510:13;;-1:-1:-1;;;;;47889:16:0;43536:76;;;;-1:-1:-1;;;43536:76:0;;14920:2:1;43536:76:0;;;14902:21:1;14959:2;14939:18;;;14932:30;14998:34;14978:18;;;14971:62;-1:-1:-1;;;15049:18:1;;;15042:45;15104:19;;43536:76:0;14718:411:1;43536:76:0;43625:21;43649:10;:8;:10::i;:::-;43625:34;;43701:1;43683:7;43677:21;:25;:112;;;;;;;;;;;;;;;;;43742:7;43751:18;:7;:16;:18::i;:::-;43725:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;43670:119;43437:360;-1:-1:-1;;;43437:360:0:o;22157:134::-;22229:7;22256:18;;;:12;:18;;;;;:27;;:25;:27::i;22641:170::-;22727:31;22744:4;22750:7;22727:16;:31::i;9557:112::-;9636:25;9647:4;9653:7;9636:10;:25::i;:::-;9557:112;;:::o;17142:152::-;17212:4;17236:50;17241:3;-1:-1:-1;;;;;17261:23:0;;17236:4;:50::i;54913:237::-;55015:4;-1:-1:-1;;;;;;55039:50:0;;-1:-1:-1;;;55039:50:0;;:103;;;55106:36;55130:11;55106:23;:36::i;51684:174::-;51759:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;51759:29:0;-1:-1:-1;;;;;51759:29:0;;;;;;;;:24;;51813:23;51759:24;51813:14;:23::i;:::-;-1:-1:-1;;;;;51804:46:0;;;;;;;;;;;51684:174;;:::o;48094:355::-;48187:4;47889:16;;;:7;:16;;;;;;-1:-1:-1;;;;;47889:16:0;48204:73;;;;-1:-1:-1;;;48204:73:0;;10895:2:1;48204:73:0;;;10877:21:1;10934:2;10914:18;;;10907:30;10973:34;10953:18;;;10946:62;-1:-1:-1;;;11024:18:1;;;11017:42;11076:19;;48204:73:0;10693:408:1;48204:73:0;48288:13;48304:23;48319:7;48304:14;:23::i;:::-;48288:39;;48357:5;-1:-1:-1;;;;;48346:16:0;:7;-1:-1:-1;;;;;48346:16:0;;:51;;;;48390:7;-1:-1:-1;;;;;48366:31:0;:20;48378:7;48366:11;:20::i;:::-;-1:-1:-1;;;;;48366:31:0;;48346:51;:94;;;-1:-1:-1;;;;;;45340:25:0;;;45316:4;45340:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;48401:39;48338:103;48094:355;-1:-1:-1;;;;48094:355:0:o;51022:544::-;51147:4;-1:-1:-1;;;;;51120:31:0;:23;51135:7;51120:14;:23::i;:::-;-1:-1:-1;;;;;51120:31:0;;51112:85;;;;-1:-1:-1;;;51112:85:0;;14510:2:1;51112:85:0;;;14492:21:1;14549:2;14529:18;;;14522:30;14588:34;14568:18;;;14561:62;-1:-1:-1;;;14639:18:1;;;14632:39;14688:19;;51112:85:0;14308:405:1;51112:85:0;-1:-1:-1;;;;;51216:16:0;;51208:65;;;;-1:-1:-1;;;51208:65:0;;10136:2:1;51208:65:0;;;10118:21:1;10175:2;10155:18;;;10148:30;10214:34;10194:18;;;10187:62;-1:-1:-1;;;10265:18:1;;;10258:34;10309:19;;51208:65:0;9934:400:1;51208:65:0;51286:39;51307:4;51313:2;51317:7;51286:20;:39::i;:::-;51390:29;51407:1;51411:7;51390:8;:29::i;:::-;-1:-1:-1;;;;;51432:15:0;;;;;;:9;:15;;;;;:20;;51451:1;;51432:15;:20;;51451:1;;51432:20;:::i;:::-;;;;-1:-1:-1;;;;;;;51463:13:0;;;;;;:9;:13;;;;;:18;;51480:1;;51463:13;:18;;51480:1;;51463:18;:::i;:::-;;;;-1:-1:-1;;51492:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;51492:21:0;-1:-1:-1;;;;;51492:21:0;;;;;;;;;51531:27;;51492:16;;51531:27;;;;;;;51022:544;;;:::o;7537:232::-;7218:7;7245:12;;;;;;;;;;:22;;;7630:41;;7638:18;805:10;6824:139;:::i;7630:41::-;7622:101;;;;-1:-1:-1;;;7622:101:0;;8124:2:1;7622:101:0;;;8106:21:1;8163:2;8143:18;;;8136:30;8202:34;8182:18;;;8175:62;-1:-1:-1;;;8253:18:1;;;8246:45;8308:19;;7622:101:0;7922:411:1;8756:218:0;-1:-1:-1;;;;;8852:23:0;;805:10;8852:23;8844:83;;;;-1:-1:-1;;;8844:83:0;;17390:2:1;8844:83:0;;;17372:21:1;17429:2;17409:18;;;17402:30;17468:34;17448:18;;;17441:62;-1:-1:-1;;;17519:18:1;;;17512:45;17574:19;;8844:83:0;17188:411:1;8844:83:0;8940:26;8952:4;8958:7;8940:11;:26::i;17470:158::-;17543:4;17567:53;17575:3;-1:-1:-1;;;;;17595:23:0;;17567:7;:53::i;50325:360::-;50385:13;50401:23;50416:7;50401:14;:23::i;:::-;50385:39;;50437:48;50458:5;50473:1;50477:7;50437:20;:48::i;:::-;50526:29;50543:1;50547:7;50526:8;:29::i;:::-;-1:-1:-1;;;;;50568:16:0;;;;;;:9;:16;;;;;:21;;50588:1;;50568:16;:21;;50588:1;;50568:21;:::i;:::-;;;;-1:-1:-1;;50607:16:0;;;;:7;:16;;;;;;50600:23;;-1:-1:-1;;;;;;50600:23:0;;;50641:36;50615:7;;50607:16;-1:-1:-1;;;;;50641:36:0;;;;;50607:16;;50641:36;50374:311;50325:360;:::o;49714:382::-;-1:-1:-1;;;;;49794:16:0;;49786:61;;;;-1:-1:-1;;;49786:61:0;;13381:2:1;49786:61:0;;;13363:21:1;;;13400:18;;;13393:30;13459:34;13439:18;;;13432:62;13511:18;;49786:61:0;13179:356:1;49786:61:0;47865:4;47889:16;;;:7;:16;;;;;;-1:-1:-1;;;;;47889:16:0;:30;49858:58;;;;-1:-1:-1;;;49858:58:0;;9779:2:1;49858:58:0;;;9761:21:1;9818:2;9798:18;;;9791:30;9857;9837:18;;;9830:58;9905:18;;49858:58:0;9577:352:1;49858:58:0;49929:45;49958:1;49962:2;49966:7;49929:20;:45::i;:::-;-1:-1:-1;;;;;49987:13:0;;;;;;:9;:13;;;;;:18;;50004:1;;49987:13;:18;;50004:1;;49987:18;:::i;:::-;;;;-1:-1:-1;;50016:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;50016:21:0;-1:-1:-1;;;;;50016:21:0;;;;;;;;50055:33;;50016:16;;;50055:33;;50016:16;;50055:33;49714:382;;:::o;18428:158::-;18502:7;18553:22;18557:3;18569:5;18553:3;:22::i;47215:272::-;47329:28;47339:4;47345:2;47349:7;47329:9;:28::i;:::-;47376:48;47399:4;47405:2;47409:7;47418:5;47376:22;:48::i;:::-;47368:111;;;;-1:-1:-1;;;47368:111:0;;;;;;;:::i;63278:105::-;63338:13;63371:4;63364:11;;;;;:::i;39060:723::-;39116:13;39337:10;39333:53;;-1:-1:-1;;39364:10:0;;;;;;;;;;;;-1:-1:-1;;;39364:10:0;;;;;39060:723::o;39333:53::-;39411:5;39396:12;39452:78;39459:9;;39452:78;;39485:8;;;;:::i;:::-;;-1:-1:-1;39508:10:0;;-1:-1:-1;39516:2:0;39508:10;;:::i;:::-;;;39452:78;;;39540:19;39572:6;39562:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39562:17:0;;39540:39;;39590:154;39597:10;;39590:154;;39624:11;39634:1;39624:11;;:::i;:::-;;-1:-1:-1;39693:10:0;39701:2;39693:5;:10;:::i;:::-;39680:24;;:2;:24;:::i;:::-;39667:39;;39650:6;39657;39650:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;39650:56:0;;;;;;;;-1:-1:-1;39721:11:0;39730:2;39721:11;;:::i;:::-;;;39590:154;;17967:117;18030:7;18057:19;18065:3;14724:18;;14641:109;8014:235;7218:7;7245:12;;;;;;;;;;:22;;;8108:41;;8116:18;7152:123;8108:41;8100:102;;;;-1:-1:-1;;;8100:102:0;;11308:2:1;8100:102:0;;;11290:21:1;11347:2;11327:18;;;11320:30;11386:34;11366:18;;;11359:62;-1:-1:-1;;;11437:18:1;;;11430:46;11493:19;;8100:102:0;11106:412:1;10004:229:0;10079:22;10087:4;10093:7;10079;:22::i;:::-;10074:152;;10118:6;:12;;;;;;;;;;;-1:-1:-1;;;;;10118:29:0;;;;;;;;;:36;;-1:-1:-1;;10118:36:0;10150:4;10118:36;;;10201:12;805:10;;725:98;10201:12;-1:-1:-1;;;;;10174:40:0;10192:7;-1:-1:-1;;;;;10174:40:0;10186:4;10174:40;;;;;;;;;;10004:229;;:::o;12206:414::-;12269:4;14523:19;;;:12;;;:19;;;;;;12286:327;;-1:-1:-1;12329:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;12512:18;;12490:19;;;:12;;;:19;;;;;;:40;;;;12545:11;;12286:327;-1:-1:-1;12596:5:0;12589:12;;42161:292;42263:4;-1:-1:-1;;;;;;42287:40:0;;-1:-1:-1;;;42287:40:0;;:105;;-1:-1:-1;;;;;;;42344:48:0;;-1:-1:-1;;;42344:48:0;42287:105;:158;;;;42409:36;42433:11;42409:23;:36::i;63391:189::-;63527:45;63554:4;63560:2;63564:7;63527:26;:45::i;10241:230::-;10316:22;10324:4;10330:7;10316;:22::i;:::-;10312:152;;;10387:5;10355:12;;;;;;;;;;;-1:-1:-1;;;;;10355:29:0;;;;;;;;;;:37;;-1:-1:-1;;10355:37:0;;;10412:40;805:10;;10355:12;;10412:40;;10387:5;10412:40;10241:230;;:::o;12796:1544::-;12862:4;13001:19;;;:12;;;:19;;;;;;13037:15;;13033:1300;;13399:21;13423:14;13436:1;13423:10;:14;:::i;:::-;13472:18;;13399:38;;-1:-1:-1;13452:17:0;;13472:22;;13493:1;;13472:22;:::i;:::-;13452:42;;13739:17;13759:3;:11;;13771:9;13759:22;;;;;;;;:::i;:::-;;;;;;;;;13739:42;;13905:9;13876:3;:11;;13888:13;13876:26;;;;;;;;:::i;:::-;;;;;;;;;;:38;14008:17;:13;14024:1;14008:17;:::i;:::-;13982:23;;;;:12;;;:23;;;;;:43;14134:17;;13982:3;;14134:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;14229:3;:12;;:19;14242:5;14229:19;;;;;;;;;;;14222:26;;;14272:4;14265:11;;;;;;;;13033:1300;14316:5;14309:12;;;;;15094:204;15189:18;;15161:7;;15189:26;-1:-1:-1;15181:73:0;;;;-1:-1:-1;;;15181:73:0;;7721:2:1;15181:73:0;;;7703:21:1;7760:2;7740:18;;;7733:30;7799:34;7779:18;;;7772:62;-1:-1:-1;;;7850:18:1;;;7843:32;7892:19;;15181:73:0;7519:398:1;15181:73:0;15272:3;:11;;15284:5;15272:18;;;;;;;;:::i;:::-;;;;;;;;;15265:25;;15094:204;;;;:::o;52423:843::-;52544:4;-1:-1:-1;;;;;52570:13:0;;31855:20;31894:8;52566:693;;52606:72;;-1:-1:-1;;;52606:72:0;;-1:-1:-1;;;;;52606:36:0;;;;;:72;;805:10;;52657:4;;52663:7;;52672:5;;52606:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52606:72:0;;;;;;;;-1:-1:-1;;52606:72:0;;;;;;;;;;;;:::i;:::-;;;52602:602;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52852:13:0;;52848:341;;52895:60;;-1:-1:-1;;;52895:60:0;;;;;;;:::i;52848:341::-;53139:6;53133:13;53124:6;53120:2;53116:15;53109:38;52602:602;-1:-1:-1;;;;;;52729:55:0;-1:-1:-1;;;52729:55:0;;-1:-1:-1;52722:62:0;;52566:693;-1:-1:-1;53243:4:0;52423:843;;;;;;:::o;21012:227::-;21097:4;-1:-1:-1;;;;;;21121:57:0;;-1:-1:-1;;;21121:57:0;;:110;;;21195:36;21219:11;21195:23;:36::i;56602:555::-;-1:-1:-1;;;;;56774:18:0;;56770:187;;56809:40;56841:7;57984:10;:17;;57957:24;;;;:15;:24;;;;;:44;;;58012:24;;;;;;;;;;;;57880:164;56809:40;56770:187;;;56879:2;-1:-1:-1;;;;;56871:10:0;:4;-1:-1:-1;;;;;56871:10:0;;56867:90;;56898:47;56931:4;56937:7;56898:32;:47::i;:::-;-1:-1:-1;;;;;56971:16:0;;56967:183;;57004:45;57041:7;57004:36;:45::i;56967:183::-;57077:4;-1:-1:-1;;;;;57071:10:0;:2;-1:-1:-1;;;;;57071:10:0;;57067:83;;57098:40;57126:2;57130:7;57098:27;:40::i;6515:217::-;6600:4;-1:-1:-1;;;;;;6624:47:0;;-1:-1:-1;;;6624:47:0;;:100;;-1:-1:-1;;;;;;;;;;2839:40:0;;;6688:36;2730:157;58671:988;58937:22;58987:1;58962:22;58979:4;58962:16;:22::i;:::-;:26;;;;:::i;:::-;58999:18;59020:26;;;:17;:26;;;;;;58937:51;;-1:-1:-1;59153:28:0;;;59149:328;;-1:-1:-1;;;;;59220:18:0;;59198:19;59220:18;;;:12;:18;;;;;;;;:34;;;;;;;;;59271:30;;;;;;:44;;;59388:30;;:17;:30;;;;;:43;;;59149:328;-1:-1:-1;59573:26:0;;;;:17;:26;;;;;;;;59566:33;;;-1:-1:-1;;;;;59617:18:0;;;;;:12;:18;;;;;:34;;;;;;;59610:41;58671:988::o;59954:1079::-;60232:10;:17;60207:22;;60232:21;;60252:1;;60232:21;:::i;:::-;60264:18;60285:24;;;:15;:24;;;;;;60658:10;:26;;60207:46;;-1:-1:-1;60285:24:0;;60207:46;;60658:26;;;;;;:::i;:::-;;;;;;;;;60636:48;;60722:11;60697:10;60708;60697:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;60802:28;;;:15;:28;;;;;;;:41;;;60974:24;;;;;60967:31;61009:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;60025:1008;;;59954:1079;:::o;57458:221::-;57543:14;57560:20;57577:2;57560:16;:20::i;:::-;-1:-1:-1;;;;;57591:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;57636:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;57458:221:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:406:1;78:5;112:18;104:6;101:30;98:56;;;134:18;;:::i;:::-;172:57;217:2;196:15;;-1:-1:-1;;192:29:1;223:4;188:40;172:57;:::i;:::-;163:66;;252:6;245:5;238:21;292:3;283:6;278:3;274:16;271:25;268:45;;;309:1;306;299:12;268:45;358:6;353:3;346:4;339:5;335:16;322:43;412:1;405:4;396:6;389:5;385:18;381:29;374:40;14:406;;;;;:::o;425:173::-;493:20;;-1:-1:-1;;;;;542:31:1;;532:42;;522:70;;588:1;585;578:12;522:70;425:173;;;:::o;603:186::-;662:6;715:2;703:9;694:7;690:23;686:32;683:52;;;731:1;728;721:12;683:52;754:29;773:9;754:29;:::i;794:260::-;862:6;870;923:2;911:9;902:7;898:23;894:32;891:52;;;939:1;936;929:12;891:52;962:29;981:9;962:29;:::i;:::-;952:39;;1010:38;1044:2;1033:9;1029:18;1010:38;:::i;:::-;1000:48;;794:260;;;;;:::o;1059:328::-;1136:6;1144;1152;1205:2;1193:9;1184:7;1180:23;1176:32;1173:52;;;1221:1;1218;1211:12;1173:52;1244:29;1263:9;1244:29;:::i;:::-;1234:39;;1292:38;1326:2;1315:9;1311:18;1292:38;:::i;:::-;1282:48;;1377:2;1366:9;1362:18;1349:32;1339:42;;1059:328;;;;;:::o;1392:666::-;1487:6;1495;1503;1511;1564:3;1552:9;1543:7;1539:23;1535:33;1532:53;;;1581:1;1578;1571:12;1532:53;1604:29;1623:9;1604:29;:::i;:::-;1594:39;;1652:38;1686:2;1675:9;1671:18;1652:38;:::i;:::-;1642:48;;1737:2;1726:9;1722:18;1709:32;1699:42;;1792:2;1781:9;1777:18;1764:32;1819:18;1811:6;1808:30;1805:50;;;1851:1;1848;1841:12;1805:50;1874:22;;1927:4;1919:13;;1915:27;-1:-1:-1;1905:55:1;;1956:1;1953;1946:12;1905:55;1979:73;2044:7;2039:2;2026:16;2021:2;2017;2013:11;1979:73;:::i;:::-;1969:83;;;1392:666;;;;;;;:::o;2063:347::-;2128:6;2136;2189:2;2177:9;2168:7;2164:23;2160:32;2157:52;;;2205:1;2202;2195:12;2157:52;2228:29;2247:9;2228:29;:::i;:::-;2218:39;;2307:2;2296:9;2292:18;2279:32;2354:5;2347:13;2340:21;2333:5;2330:32;2320:60;;2376:1;2373;2366:12;2320:60;2399:5;2389:15;;;2063:347;;;;;:::o;2415:254::-;2483:6;2491;2544:2;2532:9;2523:7;2519:23;2515:32;2512:52;;;2560:1;2557;2550:12;2512:52;2583:29;2602:9;2583:29;:::i;:::-;2573:39;2659:2;2644:18;;;;2631:32;;-1:-1:-1;;;2415:254:1:o;2674:963::-;2758:6;2789:2;2832;2820:9;2811:7;2807:23;2803:32;2800:52;;;2848:1;2845;2838:12;2800:52;2888:9;2875:23;2917:18;2958:2;2950:6;2947:14;2944:34;;;2974:1;2971;2964:12;2944:34;3012:6;3001:9;2997:22;2987:32;;3057:7;3050:4;3046:2;3042:13;3038:27;3028:55;;3079:1;3076;3069:12;3028:55;3115:2;3102:16;3137:2;3133;3130:10;3127:36;;;3143:18;;:::i;:::-;3189:2;3186:1;3182:10;3172:20;;3212:28;3236:2;3232;3228:11;3212:28;:::i;:::-;3274:15;;;3305:12;;;;3337:11;;;3367;;;3363:20;;3360:33;-1:-1:-1;3357:53:1;;;3406:1;3403;3396:12;3357:53;3428:1;3419:10;;3438:169;3452:2;3449:1;3446:9;3438:169;;;3509:23;3528:3;3509:23;:::i;:::-;3497:36;;3470:1;3463:9;;;;;3553:12;;;;3585;;3438:169;;;-1:-1:-1;3626:5:1;2674:963;-1:-1:-1;;;;;;;;2674:963:1:o;3642:180::-;3701:6;3754:2;3742:9;3733:7;3729:23;3725:32;3722:52;;;3770:1;3767;3760:12;3722:52;-1:-1:-1;3793:23:1;;3642:180;-1:-1:-1;3642:180:1:o;3827:254::-;3895:6;3903;3956:2;3944:9;3935:7;3931:23;3927:32;3924:52;;;3972:1;3969;3962:12;3924:52;4008:9;3995:23;3985:33;;4037:38;4071:2;4060:9;4056:18;4037:38;:::i;4086:248::-;4154:6;4162;4215:2;4203:9;4194:7;4190:23;4186:32;4183:52;;;4231:1;4228;4221:12;4183:52;-1:-1:-1;;4254:23:1;;;4324:2;4309:18;;;4296:32;;-1:-1:-1;4086:248:1:o;4339:245::-;4397:6;4450:2;4438:9;4429:7;4425:23;4421:32;4418:52;;;4466:1;4463;4456:12;4418:52;4505:9;4492:23;4524:30;4548:5;4524:30;:::i;4589:249::-;4658:6;4711:2;4699:9;4690:7;4686:23;4682:32;4679:52;;;4727:1;4724;4717:12;4679:52;4759:9;4753:16;4778:30;4802:5;4778:30;:::i;4843:450::-;4912:6;4965:2;4953:9;4944:7;4940:23;4936:32;4933:52;;;4981:1;4978;4971:12;4933:52;5021:9;5008:23;5054:18;5046:6;5043:30;5040:50;;;5086:1;5083;5076:12;5040:50;5109:22;;5162:4;5154:13;;5150:27;-1:-1:-1;5140:55:1;;5191:1;5188;5181:12;5140:55;5214:73;5279:7;5274:2;5261:16;5256:2;5252;5248:11;5214:73;:::i;5483:257::-;5524:3;5562:5;5556:12;5589:6;5584:3;5577:19;5605:63;5661:6;5654:4;5649:3;5645:14;5638:4;5631:5;5627:16;5605:63;:::i;:::-;5722:2;5701:15;-1:-1:-1;;5697:29:1;5688:39;;;;5729:4;5684:50;;5483:257;-1:-1:-1;;5483:257:1:o;5745:470::-;5924:3;5962:6;5956:13;5978:53;6024:6;6019:3;6012:4;6004:6;6000:17;5978:53;:::i;:::-;6094:13;;6053:16;;;;6116:57;6094:13;6053:16;6150:4;6138:17;;6116:57;:::i;:::-;6189:20;;5745:470;-1:-1:-1;;;;5745:470:1:o;6428:488::-;-1:-1:-1;;;;;6697:15:1;;;6679:34;;6749:15;;6744:2;6729:18;;6722:43;6796:2;6781:18;;6774:34;;;6844:3;6839:2;6824:18;;6817:31;;;6622:4;;6865:45;;6890:19;;6882:6;6865:45;:::i;:::-;6857:53;6428:488;-1:-1:-1;;;;;;6428:488:1:o;7295:219::-;7444:2;7433:9;7426:21;7407:4;7464:44;7504:2;7493:9;7489:18;7481:6;7464:44;:::i;8750:414::-;8952:2;8934:21;;;8991:2;8971:18;;;8964:30;9030:34;9025:2;9010:18;;9003:62;-1:-1:-1;;;9096:2:1;9081:18;;9074:48;9154:3;9139:19;;8750:414::o;12769:405::-;12971:2;12953:21;;;13010:2;12990:18;;;12983:30;13049:34;13044:2;13029:18;;13022:62;-1:-1:-1;;;13115:2:1;13100:18;;13093:39;13164:3;13149:19;;12769:405::o;15536:413::-;15738:2;15720:21;;;15777:2;15757:18;;;15750:30;15816:34;15811:2;15796:18;;15789:62;-1:-1:-1;;;15882:2:1;15867:18;;15860:47;15939:3;15924:19;;15536:413::o;17786:275::-;17857:2;17851:9;17922:2;17903:13;;-1:-1:-1;;17899:27:1;17887:40;;17957:18;17942:34;;17978:22;;;17939:62;17936:88;;;18004:18;;:::i;:::-;18040:2;18033:22;17786:275;;-1:-1:-1;17786:275:1:o;18066:128::-;18106:3;18137:1;18133:6;18130:1;18127:13;18124:39;;;18143:18;;:::i;:::-;-1:-1:-1;18179:9:1;;18066:128::o;18199:120::-;18239:1;18265;18255:35;;18270:18;;:::i;:::-;-1:-1:-1;18304:9:1;;18199:120::o;18324:125::-;18364:4;18392:1;18389;18386:8;18383:34;;;18397:18;;:::i;:::-;-1:-1:-1;18434:9:1;;18324:125::o;18454:258::-;18526:1;18536:113;18550:6;18547:1;18544:13;18536:113;;;18626:11;;;18620:18;18607:11;;;18600:39;18572:2;18565:10;18536:113;;;18667:6;18664:1;18661:13;18658:48;;;-1:-1:-1;;18702:1:1;18684:16;;18677:27;18454:258::o;18717:380::-;18796:1;18792:12;;;;18839;;;18860:61;;18914:4;18906:6;18902:17;18892:27;;18860:61;18967:2;18959:6;18956:14;18936:18;18933:38;18930:161;;;19013:10;19008:3;19004:20;19001:1;18994:31;19048:4;19045:1;19038:15;19076:4;19073:1;19066:15;18930:161;;18717:380;;;:::o;19102:135::-;19141:3;-1:-1:-1;;19162:17:1;;19159:43;;;19182:18;;:::i;:::-;-1:-1:-1;19229:1:1;19218:13;;19102:135::o;19242:112::-;19274:1;19300;19290:35;;19305:18;;:::i;:::-;-1:-1:-1;19339:9:1;;19242:112::o;19359:127::-;19420:10;19415:3;19411:20;19408:1;19401:31;19451:4;19448:1;19441:15;19475:4;19472:1;19465:15;19491:127;19552:10;19547:3;19543:20;19540:1;19533:31;19583:4;19580:1;19573:15;19607:4;19604:1;19597:15;19623:127;19684:10;19679:3;19675:20;19672:1;19665:31;19715:4;19712:1;19705:15;19739:4;19736:1;19729:15;19755:127;19816:10;19811:3;19807:20;19804:1;19797:31;19847:4;19844:1;19837:15;19871:4;19868:1;19861:15;19887:127;19948:10;19943:3;19939:20;19936:1;19929:31;19979:4;19976:1;19969:15;20003:4;20000:1;19993:15;20019:131;-1:-1:-1;;;;;;20093:32:1;;20083:43;;20073:71;;20140:1;20137;20130:12

Swarm Source

ipfs://bc16d23296f9834e195d1e544e4f0bcc57ce763f8c37b701a47240bea89bc19d
Loading