POL Price: $0.698592 (-2.21%)
 

Overview

Max Total Supply

19,442 GHI

Holders

269

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
127 GHI
0xeaB6E49114C641A38710B517e4c67e9940b2bcd3
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
GotchiHeroItem

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2022-11-25
*/

// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/structs/EnumerableSet.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

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.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
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;

            if (lastIndex != toDeleteIndex) {
                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] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // 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) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

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

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // 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 in 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));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

// File: @openzeppelin/contracts/utils/math/SafeMath.sol


// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File: @openzeppelin/contracts/utils/Counters.sol


// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

// File: @openzeppelin/contracts/access/IAccessControl.sol


// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

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

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File: @openzeppelin/contracts/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;


/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library 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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface 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/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


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


// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;





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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

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

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

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

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

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

        _revokeRole(role, account);
    }

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

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

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the 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 have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

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

    /**
     * @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/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

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/ERC721.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol)

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: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        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) {
        _requireMinted(tokenId);

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 _ownerOf(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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @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 from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-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. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol)

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 See {ERC721-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, firstTokenId, batchSize);

        if (batchSize > 1) {
            // Will only trigger during construction. Batch transferring (minting) is not available afterwards.
            revert("ERC721Enumerable: consecutive transfers not supported");
        }

        uint256 tokenId = firstTokenId;

        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: GHItem_flatter.sol


pragma solidity ^0.8.17;









/// @custom:security-contact [email protected]
contract GotchiHeroItemPack is ERC721, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;
    using EnumerableSet for EnumerableSet.UintSet;
    using Counters for Counters.Counter;
    using SafeMath for uint256;
    using Strings for uint256;

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

    Counters.Counter private packIds;

    GotchiHeroItem public gotchi;
    IERC20 public currency;

    uint256 public packPrice;
    string public packName;
    string public packDesc;
    uint256 public sterPackPrice;
    string public sterPackName;
    string public sterPackDesc;
    EnumerableSet.AddressSet private _admins;
    mapping(address => uint256) private adminShares;
    uint256 private totalShares = 0;
    EnumerableSet.AddressSet private _payers;
    mapping(address => uint256) public whiteList;

    mapping(uint256 => uint256[]) private tokenIdsOfPack;
    mapping(bool => EnumerableSet.UintSet) private tokenIdsOfType;
    mapping(address => uint256[]) private tokenIdsOfOwner;

    string private baseURI;
    mapping(uint256 => string[]) private packData; 

    // initialize contract while deployment with contract's collection name and token
    constructor(
        address gotchi_,
        IERC20 ghst_,
        address[] memory admins_,
        uint256[] memory shares_,
        address minter_
    ) ERC721("GOTCHI HEROES PACK", "GHP") {
        require(admins_.length == shares_.length, "shares length must match admin length");
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(MINTER_ROLE,minter_);
        gotchi = GotchiHeroItem(gotchi_);

        setPackPrice(5*(10**18), 15*(10**18));
        currency = ghst_;
        
        for(uint i=0 ; i<admins_.length ; i++) {
            _admins.add(admins_[i]);
            adminShares[admins_[i]] = shares_[i];
            totalShares += shares_[i];
        }

        whiteList[msg.sender] = whiteList[msg.sender].add(100);

        packName = "Gotchi Heroes Pack";
        packDesc = "Each Gotchi Heroes Pack contains 5 items randomly selected from the Gotchi Heroes item pool. Each pack is guaranteed to contain at least one item that is Rare or better.";
        sterPackName = "Gotchi Heroes Starter Pack";
        sterPackDesc = "Each Gotchi Heroes Starter Pack contains 10 items randomly selected from the Gotchi Heroes item pool and a play token to gain access to the game. Each pack is guaranteed to contain at least one Weapon, one Skill and one Area.";
    }

    function setCurrency(IERC20 currency_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        currency = currency_;
    }

    function setGotchi(address gotchi_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        gotchi = GotchiHeroItem(gotchi_);
    }

    function addAdmin(address admin_, uint256 shares_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if(!_admins.contains(admin_)){
            _admins.add(admin_);
        } else {
            totalShares -= adminShares[admin_];
        }
        
        adminShares[admin_] = shares_;
        totalShares += shares_;
    }

    function removeAdmin(address admin_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        _admins.remove(admin_);
        totalShares -= adminShares[admin_];
        delete adminShares[admin_];
    }

    //used for free packs
    function addWhiteList(address account_, uint256 amount_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        whiteList[account_] = whiteList[account_].add(amount_);
    }

    //used for free packs
    function removeWhiteList(address account_, uint256 amount_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        whiteList[account_] = whiteList[account_].sub(amount_);
    }

    //function to get whitelist count for user
    function getWhiteList(address account_) external view returns(uint256) {
        return whiteList[account_];
    }

    /**
     * @notice set the common pack and the starter pack prices.
     * @param packPrice_ common pack price
     * @param starterPack_ starter pack price
     */
    function setPackPrice(uint256 packPrice_, uint256 starterPack_) public onlyRole(DEFAULT_ADMIN_ROLE) {
        packPrice = packPrice_;
        sterPackPrice = starterPack_;
    }

    function setMeta(string calldata packName_, string calldata packDesc_, string calldata strPackName_, string calldata strPackDesc_) external onlyRole("DEFAULT_ADMIN_ROLE") {
        packName = packName_;
        packDesc = packDesc_;
        sterPackName = strPackName_;
        sterPackDesc = strPackDesc_;
    }

    /**
     * @notice pay ghero token to mint new nfts and register new NFT's count
     * @param count_ new NFT's count
     * @param isStarterPack_ if it is true, it is the starter pack, has 10 NFTs
     */
    function mint(uint count_, bool isStarterPack_) external{

        require(canMint(isStarterPack_, count_), "That many packs of this type are not available");

        uint256 _payableCount = 0;
        
        if(whiteList[msg.sender]>count_){
            whiteList[msg.sender] = whiteList[msg.sender].sub(count_);
        } else if(whiteList[msg.sender]>0){
            _payableCount = count_ - whiteList[msg.sender];
            whiteList[msg.sender] = whiteList[msg.sender].sub(count_);
        } else {
            _payableCount = count_;
        }

        uint256 _price = packPrice * _payableCount;
        if(isStarterPack_) {
            _price = sterPackPrice * _payableCount;
        }

        uint256 allowance = currency.allowance(msg.sender,address(this));
        require(
            allowance >= _price,
            string(
                abi.encodePacked(
                    "Not enough allowance:",
                    Strings.toString(allowance),
                    "-",
                    Strings.toString(_price)
                )
            )
        );

        if(_price > 0) {
            uint256 _adminReward = 0;
            for(uint i=0 ; i<_admins.length(); i++) {
                unchecked {
                    uint256 payment = (_price * adminShares[_admins.at(i)])/totalShares;
                    currency.transferFrom(msg.sender, _admins.at(i), payment);
                    _adminReward += payment;
                }
            }
            uint256 leftover = _price - _adminReward;
            if(leftover > 0){
                currency.transferFrom(msg.sender, _admins.at(0), leftover);
            }
        }
        
        uint256[] memory _ids = new uint256[](count_);
        for(uint i=0 ; i<count_ ; i++) {
            uint256 _tokenId = tokenIdsOfType[isStarterPack_].at(i);
            _ids[i] = _tokenId;
            if(isStarterPack_){
                packData[_tokenId] = [sterPackName,sterPackDesc,Strings.toString(tokenIdsOfPack[_tokenId].length),Strings.toString(sterPackPrice)];
            } else {
                packData[_tokenId] = [packName,packDesc,Strings.toString(tokenIdsOfPack[_tokenId].length),Strings.toString(packPrice)];
            }
            _mint(msg.sender, _tokenId);
            //tokenIdsOfOwner[msg.sender].push(_tokenId);
        }

        for(uint i=0 ; i<_ids.length ; i++) {
            tokenIdsOfType[isStarterPack_].remove(_ids[i]);
        }

    }

    function canMint(bool isStarterPack_, uint count_) public view returns (bool) {

        return tokenIdsOfType[isStarterPack_].length() >= count_;
        
    }

    //get saved pack metadata
    function getDataOfPack(uint256 id_) public view returns (string[] memory) {
        return packData[id_];
    }

    //setTokenURI but also pass data
    function issueTokenData(
        bool isStarter_,
        string[][] calldata data_,
        string[][] calldata itemTypes_
    ) external onlyRole(MINTER_ROLE) {
        // check if thic function caller is not an zero address account
        uint256 itemID = gotchi.newId();

        for(uint pId=0 ; pId<data_.length ; pId++){
        
            uint256 _tokenId = packIds.current();

            // set token URI (bind token id with the passed in token URI)
            tokenIdsOfType[isStarter_].add(_tokenId);
            uint _unit = data_[pId].length;

            uint256[] memory _ids = new uint256[](_unit);
            for(uint i=0 ; i<_unit ; i++) {
                require(
                    itemTypes_[pId].length == data_[pId].length,
                    "Item/Types Mismatch"
                );
                gotchi.setTokenData(itemTypes_[pId][i], data_[pId][i]);
                _ids[i] = itemID;
                itemID += 1;
            }
            tokenIdsOfPack[_tokenId] = _ids;
            tokenIdsOfOwner[address(0)].push(_tokenId);
            packIds.increment();
        }

    }

    function getIdsByType(bool type_) external view returns (uint256[] memory) {
        uint _length = tokenIdsOfType[type_].length();
        uint256[] memory _result = new uint256[](_length);
        for(uint i=0 ; i<_length; i++) {
            _result[i] = tokenIdsOfType[type_].at(i);
        }
        return _result;
    }

    function availableCounts() public view returns(uint256, uint256) {
        return (tokenIdsOfType[true].length(), tokenIdsOfType[false].length());
    }

    /**
     * @notice burn pack and then transfer gochi tokens to pack's owner.
     * @param packId_ Pack NFT id to burn
     */
    function openPack(uint256 packId_) external {
        require(ownerOf(packId_) == msg.sender, "This pack is not yours");
        uint256[] memory _tokenIds = getIdsOfPack(packId_);

        for(uint i=0 ; i<_tokenIds.length ; i++) {
            gotchi.mint(msg.sender, _tokenIds[i]);
        }

        delete tokenIdsOfPack[packId_];
        delete packData[packId_];
        _burn(packId_);
    }

    function burn(uint256 id_) external {
        require(ERC721.ownerOf(id_) == msg.sender, "ERC721: transfer of token that is not own"); // internal owner

        delete tokenIdsOfPack[id_];
        delete packData[id_];
        _burn(id_);
    }

    /**
     * @notice get NFT id array that current pack includes
     * @param id_ pack id
     */
    function getIdsOfPack(uint256 id_) public view returns(uint256[] memory) {

        uint256 _tokenCount = tokenIdsOfPack[id_].length;
        uint256[] memory _ids = new uint256[](_tokenCount);

        for(uint256 i=0 ; i<_tokenCount ; i++) {
            _ids[i] = tokenIdsOfPack[id_][i];
        }

        return _ids;
    }

    /**
     * @notice check if the token already exists
     * @param id_ token id for checking the exist
     */
    function packExists(uint256 id_) public view returns(bool) {
        return _exists(id_);
    }

    /**
     * @notice get next token id
     */
    function newId() public view returns(uint256) {
        return packIds.current();
    }
    
    /**
     * @notice get all token id array of account
     * @param account_ holder address
     */
    function holderTokenIds(address account_) public view returns(uint256[] memory) {
        return tokenIdsOfOwner[account_];
    }

    //used to pay admins on pack purchase
    function admins() external view returns(address[] memory, uint256[] memory) {
        address[] memory admins_ = new address[](_admins.length());
        uint256[] memory _shares = new uint256[](_admins.length());
        for(uint i=0 ; i<_admins.length() ; i++) {
            admins_[i] = _admins.at(i);
            _shares[i] = adminShares[admins_[i]];
        }
        return (admins_, _shares);
    }

    /*function destroy(address apocalypse) public onlyRole(DEFAULT_ADMIN_ROLE){
		selfdestruct(payable(apocalypse));
    }*/

    // The following functions are overrides required by Solidity.
    function _beforeTokenTransfer(address from, address to, uint256 tokenId, uint256 batchSize)
        internal
        override(ERC721)
    {
        super._beforeTokenTransfer(from, to, tokenId, batchSize);

        if(from != address(0) && tokenIdsOfOwner[from].length>1){
            uint256 _current = 0;
            for(uint256 i=0; i<tokenIdsOfOwner[from].length-1; i++){
                if(tokenIdsOfOwner[from][i]==tokenId){
                    _current += 1;
                }
                tokenIdsOfOwner[from][i] = tokenIdsOfOwner[from][_current];
                _current += 1;
            }
            tokenIdsOfOwner[from].pop();
        } else if(from != address(0) && tokenIdsOfOwner[from].length==1){
            tokenIdsOfOwner[from].pop();
        }
        
        if(to != address(0)){
            tokenIdsOfOwner[to].push(tokenId);
        }
    }

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

contract GotchiHeroItemLender is AccessControl {
    bytes32 public constant LENDER_ROLE = keccak256("LENDER_ROLE");

    GotchiHeroItem GHItem;

    mapping(uint256 => address) private loanOwner;
    mapping(uint256 => address) private loanLender;

    constructor(
        address items_
    ) {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        GHItem = GotchiHeroItem(items_);
    }

    //transfer ownership to new owner but keep previous owner to pop back to
    function lend (
        uint256 tokenId_,
        address to_
     ) external onlyRole(LENDER_ROLE) {
        address _owner = GHItem.ownerOf(tokenId_);
        require(
            loanLender[tokenId_] == msg.sender || _owner == tx.origin,
            "You don't have permission to loan item on another's behalf"
        );
        require(
            loanOwner[tokenId_] == address(0),
            "Item already loaned"
        );
        GHItem.lendTransfer(_owner, to_, tokenId_);
        loanOwner[tokenId_] = _owner;
    }

    //grants approval for lender to lend item
    function approveLender (uint256 tokenId_, address lender_) external {
        require(
            GHItem.ownerOf(tokenId_) == tx.origin,
            "You do not own this token"
        );
        loanLender[tokenId_] = lender_;
    }

    //returns loaned token to original owner
    function returnLoan (uint256 tokenId_) external {
        address _owner = GHItem.ownerOf(tokenId_);
        require(
            loanLender[tokenId_] == msg.sender || _owner == tx.origin || loanOwner[tokenId_] == tx.origin,
            "You don't have permission to loan item on another's behalf"
        );
        require(
            loanOwner[tokenId_] != address(0),
            "Item not loaned"
        );
        GHItem.lendTransfer(_owner, loanOwner[tokenId_], tokenId_);
        delete loanOwner[tokenId_];
        delete loanLender[tokenId_];
    }

    //Gets currently approved lender of item
    function getLender (uint256 tokenId_) external view returns(address) {
        return loanLender[tokenId_];
    }

    //Gets original loaner of lent item
    function getLoanOwner (uint256 tokenId_) external view returns(address) {
        require(
            loanOwner[tokenId_] != address(0),
            "Item is currently not loaned!"
        );
        return loanOwner[tokenId_];
    }

    function isLoaned (uint256 tokenId_) external view returns(bool) {
        return loanOwner[tokenId_] != address(0);
    }

    function setItemAddress (address item_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        GHItem = GotchiHeroItem(item_);
    }

    function destroy(address apocalypse) public onlyRole(DEFAULT_ADMIN_ROLE){
		selfdestruct(payable(apocalypse));
    }
}

contract GotchiHeroItemData is AccessControl {
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant GAME_ROLE = keccak256("GAME_ROLE");

    mapping(uint256 => string) private itemData;

    mapping(uint256 => address) private approval;

    constructor() {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    //approves game to update data

    //retrieves token data
    function getData (
        uint256 tokenId_
    ) external view returns (string memory){
        bytes memory _test = bytes(itemData[tokenId_]);
        require(
            _test.length > 0,
            "Token Not Set"
        );

        return itemData[tokenId_];
    }

    //Change data value of item, minter only
    function setData(
        uint256 tokenId_,
        string calldata data_
    ) external allowedAccess {
        itemData[tokenId_] = data_;
    }

    /*function destroy(address apocalypse) public onlyRole(DEFAULT_ADMIN_ROLE){
		selfdestruct(payable(apocalypse));
    }*/

    modifier allowedAccess() {
        if (!hasRole(MINTER_ROLE,msg.sender) && !hasRole(GAME_ROLE,msg.sender)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(msg.sender), 20),
                        " does not have permission to edit"
                    )
                )
            );
        }
        _;
    }
}

/// @custom:security-contact [email protected]
contract GotchiHeroItem is ERC721, ERC721Enumerable, AccessControl {
    using Counters for Counters.Counter;

    mapping(uint256 => string) private itemTotype;
    mapping(string => uint256[]) private typeToitem;
    mapping(uint256 => address) private graveyard;
    mapping(uint256 => string) private lastData;

    GotchiHeroItemPack public GHIPack;
    GotchiHeroItemLender public GHILender;
    GotchiHeroItemData public GHIData;

    string[] public types;
    mapping(string => bool) private typeExists;

    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant LENDER_ROLE = keccak256("LENDER_ROLE");
    bytes32 public constant GAME_ROLE = keccak256("GAME_ROLE");
    
    mapping(address => bool) private payers;

    string public baseURI = "https://";

    Counters.Counter private tokenIdCounter;

    address private minter;
    uint256 public mergeCost;

    constructor(
        address data_,
        address minter_,
        uint256 mergeCost_
    ) ERC721("Avegotchi Hero Item", "GHI") {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        GHIData = GotchiHeroItemData(data_);
        minter = minter_;
        mergeCost = mergeCost_;
    }

    //minter handle to mint token with string data
    function safeMint(
        address to_,
        string calldata data_,
        string calldata itemType_
    ) external onlyRole(MINTER_ROLE) {
        uint256 _tokenId = tokenIdCounter.current();
        _safeMint(to_, _tokenId);
        tokenIdCounter.increment();
        addType(itemType_);
        itemTotype[_tokenId]=itemType_;
        typeToitem[itemType_].push(_tokenId);
        GHIData.setData(_tokenId ,data_);
    }

    //burn function to send item to graveyard for emergency retrieval
    function burn(
        uint256 tokenId_
    ) external {
        require(
            ownerOf(tokenId_)==tx.origin || hasRole(GAME_ROLE,msg.sender),
            "Unauthorized burn request"
        );
        require(
            !GHILender.isLoaned(tokenId_),
            "Unable to burn loaned item"
        );
        graveyard[tokenId_] = ERC721.ownerOf(tokenId_);
        _burn(tokenId_);
    }

    function merge(uint256[] calldata items_) external payable {
        for(uint256 i=0; i<items_.length; i++) {
            require(
                ownerOf(items_[i])==tx.origin,
                "Unauthorized burn request"
            );
            require(
                !GHILender.isLoaned(items_[i]),
                "Unable to burn loaned item"
            );
        }
        require(msg.value >= mergeCost, "Not enough sent to start merge.");

        (bool sent, bytes memory data) = payable(minter).call{value: msg.value}("");
        require(sent, "Failed to send MATIC");

        emit saveMerge(items_, data);
    }

    event saveMerge(uint256[] items_, bytes data_);

    function setMinter(address minter_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        minter = minter_;
    }

    function setMergeCost(uint256 cost_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        mergeCost = cost_;
    }

    //Return all items of type for all users
    function getItemsByType(
        string calldata type_
    ) external view returns(string[] memory, uint256[] memory) {
        uint256[] memory _typeData = typeToitem[type_];
        uint _tokenCount = _typeData.length;
        string[] memory _data = new string[](_tokenCount);
        uint256[] memory _ids = new uint256[](_tokenCount);

        for(uint256 i=0 ; i<_tokenCount ; i++) {
            if(!tokenExists(_typeData[i])) continue;
            //data[i] = getData(typeData[i]);
            _ids[i] = _typeData[i];
        }

        return (_data, _ids);
    }

    //Returns all token ids for a account
    function holderTokenIds(
        address account_
    ) public view returns(uint256[] memory) {
        uint256 _count = balanceOf(account_);
        uint256[] memory _ids = new uint256[](_count);

        for(uint256 i=0 ; i<_count ; i++) {
            _ids[i] = tokenOfOwnerByIndex(account_, i);
        }

        return _ids;        
    }

    //Returns next tokenId
    function newId() view external returns (uint256 id_){
        return  tokenIdCounter.current();
    }

    //check if token Exists on chain
    function tokenExists(
        uint256 tokenId_
    ) public view returns(bool) {
        return _exists(tokenId_);
    }

    //mint item after uri creation
    function mint(
        address to_,
        uint256 tokenId_
    ) external onlyRole(MINTER_ROLE) {
        require(to_ != address(0), "Invalid account");
        require(tokenIdCounter.current() > tokenId_, "Token URI does not exist");
        _safeMint(to_, tokenId_);
        tokenIdCounter.increment();
    }

    //revive item to owner from graveyard
    function revive (
        uint256 tokenId_
    ) external {
        require(
            hasRole(GAME_ROLE, msg.sender),
            "You do not have the authority to revive Item."
        );
        require(
            !tokenExists(tokenId_),
            "Token does not need revival"
        );

        _mint(graveyard[tokenId_], tokenId_);
        delete graveyard[tokenId_];
    }

    //set Pack Address(allows pack controls to smart contract)
    function setPack (address packAddress_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if(address(GHIPack)!=address(0)){
            revokeRole(MINTER_ROLE,address(GHIPack));
        }
        GHIPack = GotchiHeroItemPack(packAddress_);
        grantRole(MINTER_ROLE,address(GHIPack));
    }

    //set Pack Address(allows pack controls to smart contract)
    function setData (address dataAddress_) public onlyRole(DEFAULT_ADMIN_ROLE) {
        GHIData = GotchiHeroItemData(dataAddress_);
    }

    //set Pack Address(allows pack controls to smart contract)
    function setLender (address lenderAddress_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        if(address(GHILender)!=address(0)){
            revokeRole(LENDER_ROLE,address(GHILender));
        }
        GHILender = GotchiHeroItemLender(lenderAddress_);
        grantRole(LENDER_ROLE,address(GHILender));
    }

    function lendTransfer(
        address from_,
        address to_,
        uint256 tokenId_
    ) external onlyRole(LENDER_ROLE){
        _transfer(from_, to_, tokenId_);
    }

    //marks address as kind of admin, compatibility use only
    function addPayer(address payer_) external onlyRole(MINTER_ROLE) {
        payers[payer_] = true;
    }

    //marks address as kind of admin, compatibility use only
    function removePayer(address payer_) external onlyRole(MINTER_ROLE) {
        delete payers[payer_];
    }

    //returns a blank holderTokenURIs for compatibility
    function holderTokenURIs(address account_) external view returns(string[] memory) {
        uint256 _count = balanceOf(account_);
        uint256[] memory _ids = holderTokenIds(account_);
        string[] memory _URIs = new string[](_count);

        for(uint256 i=0 ; i<_count ; i++) {
            _URIs[i] = tokenURI(_ids[i]);
        }

        return _URIs;
    }

    //returns token uris of ids
    function tokenURIs(uint256[] calldata ids_) external view returns(string[] memory) {
        uint256 _count = ids_.length;
        string[] memory _URIs = new string[](_count);

        for(uint256 i=0 ; i<_count ; i++) {
            _URIs[i] = tokenURI(ids_[i]);
        }

        return _URIs;
    }

    //changes baseURI if admin
    function setBaseURI(string calldata URI_) external onlyRole(DEFAULT_ADMIN_ROLE) {
        baseURI = URI_;
    }

    //add type to types and create unminted token on it
    function setTokenURI(string calldata type_) external onlyRole(MINTER_ROLE){
        uint256 _tokenId = tokenIdCounter.current();
        addType(type_);
        typeToitem[type_].push(_tokenId);
        tokenIdCounter.increment();
    }

    //add type to types and save data for unminted token
    function setTokenData(
        string calldata type_,
        string calldata data_
    ) external onlyRole(MINTER_ROLE) {
        uint256 _tokenId = tokenIdCounter.current();
        addType(type_);
        typeToitem[type_].push(_tokenId);
        GHIData.setData(_tokenId, data_);
        tokenIdCounter.increment();
    }

    //create type if not exists
    function addType(string memory type_) internal {
        if(!typeExists[type_]) {
            typeExists[type_] = true;
            types.push(type_);
        }
    }

    /*function destroy(address apocalypse) public onlyRole(DEFAULT_ADMIN_ROLE){
		selfdestruct(payable(apocalypse));
    }*/

    // The following functions are overrides required by Solidity.
    function _beforeTokenTransfer(address from, address to, uint256 tokenId, uint256 batchSize)
        internal
        override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId, batchSize);
    }

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"data_","type":"address"},{"internalType":"address","name":"minter_","type":"address"},{"internalType":"uint256","name":"mergeCost_","type":"uint256"}],"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":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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"items_","type":"uint256[]"},{"indexed":false,"internalType":"bytes","name":"data_","type":"bytes"}],"name":"saveMerge","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GAME_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GHIData","outputs":[{"internalType":"contract GotchiHeroItemData","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GHILender","outputs":[{"internalType":"contract GotchiHeroItemLender","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GHIPack","outputs":[{"internalType":"contract GotchiHeroItemPack","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LENDER_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":"payer_","type":"address"}],"name":"addPayer","outputs":[],"stateMutability":"nonpayable","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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"type_","type":"string"}],"name":"getItemsByType","outputs":[{"internalType":"string[]","name":"","type":"string[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"}],"name":"holderTokenIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"}],"name":"holderTokenURIs","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"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":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"lendTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"items_","type":"uint256[]"}],"name":"merge","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mergeCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"newId","outputs":[{"internalType":"uint256","name":"id_","type":"uint256"}],"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":"address","name":"payer_","type":"address"}],"name":"removePayer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"revive","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":"to_","type":"address"},{"internalType":"string","name":"data_","type":"string"},{"internalType":"string","name":"itemType_","type":"string"}],"name":"safeMint","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":"address","name":"dataAddress_","type":"address"}],"name":"setData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"lenderAddress_","type":"address"}],"name":"setLender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cost_","type":"uint256"}],"name":"setMergeCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter_","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"packAddress_","type":"address"}],"name":"setPack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"type_","type":"string"},{"internalType":"string","name":"data_","type":"string"}],"name":"setTokenData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"type_","type":"string"}],"name":"setTokenURI","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":"uint256","name":"tokenId_","type":"uint256"}],"name":"tokenExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"uint256[]","name":"ids_","type":"uint256[]"}],"name":"tokenURIs","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"types","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60c0604052600860809081526768747470733a2f2f60c01b60a05260159062000029908262000261565b503480156200003757600080fd5b5060405162003f1638038062003f168339810160408190526200005a916200034a565b6040518060400160405280601381526020017f417665676f74636869204865726f204974656d000000000000000000000000008152506040518060400160405280600381526020016247484960e81b8152508160009081620000bd919062000261565b506001620000cc828262000261565b50620000de9150600090503362000117565b601180546001600160a01b039485166001600160a01b03199182161790915560178054939094169216919091179091556018556200038b565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff16620001b8576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001773390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001e757607f821691505b6020821081036200020857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200025c57600081815260208120601f850160051c81016020861015620002375750805b601f850160051c820191505b81811015620002585782815560010162000243565b5050505b505050565b81516001600160401b038111156200027d576200027d620001bc565b62000295816200028e8454620001d2565b846200020e565b602080601f831160018114620002cd5760008415620002b45750858301515b600019600386901b1c1916600185901b17855562000258565b600085815260208120601f198616915b82811015620002fe57888601518255948401946001909101908401620002dd565b50858210156200031d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80516001600160a01b03811681146200034557600080fd5b919050565b6000806000606084860312156200036057600080fd5b6200036b846200032d565b92506200037b602085016200032d565b9150604084015190509250925092565b613b7b806200039b6000396000f3fe6080604052600436106103185760003560e01c806362cd1381116101ab578063a217fddf116100f7578063d539139311610095578063e0df5b6f1161006f578063e0df5b6f1461097e578063e985e9c51461099e578063eca81d42146109e7578063fca3b5aa14610a0757600080fd5b8063d539139314610929578063d547741f1461094b578063de62d8421461096b57600080fd5b8063b78376e9116100d1578063b78376e9146108a9578063b88d4fde146108c9578063c87b56dd146108e9578063cefbfa361461090957600080fd5b8063a217fddf14610840578063a22cb46514610855578063ab4007061461087557600080fd5b80637bfdeb22116101645780638c3333ad1161013e5780638c3333ad146107bd57806391d14854146107eb57806395d89b411461080b5780639ca35ea71461082057600080fd5b80637bfdeb221461075d5780637dd586ba1461077d5780638baecc211461079d57600080fd5b806362cd1381146106a55780636352211e146106c55780636c0360eb146106e55780636cc8d8cf146106fa57806370a08231146107275780637462f8ae1461074757600080fd5b80632f745c591161026a57806342842e0e116102235780634f6ccce7116101fd5780634f6ccce71461063057806355f804b3146106505780635c956fb91461067057806361dfdae61461068557600080fd5b806342842e0e146105d057806342966c68146105f057806346e368d41461061057600080fd5b80632f745c591461050357806330f41dc014610523578063353c65c51461054357806336568abe1461056357806339cf75a11461058357806340c10f19146105b057600080fd5b8063081812fc116102d75780631b4e9387116102b15780631b4e93871461047357806323b872dd14610493578063248a9ca3146104b35780632f2ff15d146104e357600080fd5b8063081812fc1461041e578063095ea7b31461043e57806318160ddd1461045e57600080fd5b8062923f9e1461031d578062abafe11461035257806301ffc9a714610382578063048f1627146103a257806306b5ba42146103c457806306fdde03146103fc575b600080fd5b34801561032957600080fd5b5061033d610338366004613014565b610a27565b60405190151581526020015b60405180910390f35b34801561035e57600080fd5b50610374600080516020613b0683398151915281565b604051908152602001610349565b34801561038e57600080fd5b5061033d61039d366004613043565b610a48565b3480156103ae57600080fd5b506103c26103bd36600461307c565b610a53565b005b3480156103d057600080fd5b506010546103e4906001600160a01b031681565b6040516001600160a01b039091168152602001610349565b34801561040857600080fd5b50610411610a8d565b60405161034991906130e7565b34801561042a57600080fd5b506103e4610439366004613014565b610b1f565b34801561044a57600080fd5b506103c26104593660046130fa565b610b46565b34801561046a57600080fd5b50600854610374565b34801561047f57600080fd5b506103c261048e366004613014565b610c60565b34801561049f57600080fd5b506103c26104ae366004613124565b610c71565b3480156104bf57600080fd5b506103746104ce366004613014565b6000908152600a602052604090206001015490565b3480156104ef57600080fd5b506103c26104fe366004613160565b610ca2565b34801561050f57600080fd5b5061037461051e3660046130fa565b610cc7565b34801561052f57600080fd5b506011546103e4906001600160a01b031681565b34801561054f57600080fd5b506103c261055e36600461307c565b610d5d565b34801561056f57600080fd5b506103c261057e366004613160565b610dd9565b34801561058f57600080fd5b506105a361059e36600461307c565b610e53565b60405161034991906131c7565b3480156105bc57600080fd5b506103c26105cb3660046130fa565b610ef4565b3480156105dc57600080fd5b506103c26105eb366004613124565b610fc3565b3480156105fc57600080fd5b506103c261060b366004613014565b610fde565b34801561061c57600080fd5b506103c261062b36600461307c565b611165565b34801561063c57600080fd5b5061037461064b366004613014565b6111dd565b34801561065c57600080fd5b506103c261066b36600461321b565b611270565b34801561067c57600080fd5b5061037461128e565b34801561069157600080fd5b506103c26106a036600461307c565b61129e565b3480156106b157600080fd5b506103c26106c0366004613124565b6112cc565b3480156106d157600080fd5b506103e46106e0366004613014565b6112ef565b3480156106f157600080fd5b5061041161134f565b34801561070657600080fd5b5061071a61071536600461325c565b6113dd565b6040516103499190613325565b34801561073357600080fd5b5061037461074236600461307c565b611495565b34801561075357600080fd5b5061037460185481565b34801561076957600080fd5b50600f546103e4906001600160a01b031681565b34801561078957600080fd5b5061071a61079836600461307c565b61151b565b3480156107a957600080fd5b506103c26107b8366004613014565b6115e4565b3480156107c957600080fd5b506107dd6107d836600461321b565b611706565b604051610349929190613338565b3480156107f757600080fd5b5061033d610806366004613160565b61189f565b34801561081757600080fd5b506104116118ca565b34801561082c57600080fd5b506103c261083b366004613366565b6118d9565b34801561084c57600080fd5b50610374600081565b34801561086157600080fd5b506103c26108703660046133df565b6119eb565b34801561088157600080fd5b506103747f6a64baf327d646d1bca72653e2a075d15fd6ac6d8cbd7f6ee03fc55875e0fa8881565b3480156108b557600080fd5b506103c26108c436600461307c565b6119f6565b3480156108d557600080fd5b506103c26108e436600461342c565b611a33565b3480156108f557600080fd5b50610411610904366004613014565b611a65565b34801561091557600080fd5b50610411610924366004613014565b611ad9565b34801561093557600080fd5b50610374600080516020613b2683398151915281565b34801561095757600080fd5b506103c2610966366004613160565b611b04565b6103c261097936600461325c565b611b29565b34801561098a57600080fd5b506103c261099936600461321b565b611dc3565b3480156109aa57600080fd5b5061033d6109b9366004613507565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109f357600080fd5b506103c2610a02366004613531565b611e6d565b348015610a1357600080fd5b506103c2610a2236600461307c565b611fa4565b6000818152600260205260408120546001600160a01b031615155b92915050565b6000610a4282611fd2565b600080516020613b26833981519152610a6b81611ff7565b506001600160a01b03166000908152601460205260409020805460ff19169055565b606060008054610a9c906135b1565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac8906135b1565b8015610b155780601f10610aea57610100808354040283529160200191610b15565b820191906000526020600020905b815481529060010190602001808311610af857829003601f168201915b5050505050905090565b6000610b2a82612001565b506000908152600460205260409020546001600160a01b031690565b6000610b51826112ef565b9050806001600160a01b0316836001600160a01b031603610bc35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610bdf5750610bdf81336109b9565b610c515760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610bba565b610c5b8383612060565b505050565b6000610c6b81611ff7565b50601855565b610c7b33826120ce565b610c975760405162461bcd60e51b8152600401610bba906135eb565b610c5b83838361214d565b6000828152600a6020526040902060010154610cbd81611ff7565b610c5b83836122be565b6000610cd283611495565b8210610d345760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bba565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000610d6881611ff7565b600f546001600160a01b031615610d9e57600f54610d9e90600080516020613b26833981519152906001600160a01b0316611b04565b600f80546001600160a01b0319166001600160a01b038416908117909155610dd590600080516020613b2683398151915290610ca2565b5050565b6001600160a01b0381163314610e495760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610bba565b610dd58282612344565b60606000610e6083611495565b90506000816001600160401b03811115610e7c57610e7c613416565b604051908082528060200260200182016040528015610ea5578160200160208202803683370190505b50905060005b82811015610eec57610ebd8582610cc7565b828281518110610ecf57610ecf613638565b602090810291909101015280610ee481613664565b915050610eab565b509392505050565b600080516020613b26833981519152610f0c81611ff7565b6001600160a01b038316610f545760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081858d8dbdd5b9d608a1b6044820152606401610bba565b81610f5e60165490565b11610fab5760405162461bcd60e51b815260206004820152601860248201527f546f6b656e2055524920646f6573206e6f7420657869737400000000000000006044820152606401610bba565b610fb583836123ab565b610c5b601680546001019055565b610c5b83838360405180602001604052806000815250611a33565b32610fe8826112ef565b6001600160a01b0316148061102257506110227f6a64baf327d646d1bca72653e2a075d15fd6ac6d8cbd7f6ee03fc55875e0fa883361189f565b61106a5760405162461bcd60e51b8152602060048201526019602482015278155b985d5d1a1bdc9a5e995908189d5c9b881c995c5d595cdd603a1b6044820152606401610bba565b60105460405163cde35e6d60e01b8152600481018390526001600160a01b039091169063cde35e6d90602401602060405180830381865afa1580156110b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d7919061367d565b156111245760405162461bcd60e51b815260206004820152601a60248201527f556e61626c6520746f206275726e206c6f616e6564206974656d0000000000006044820152606401610bba565b61112d816112ef565b6000828152600d6020526040902080546001600160a01b0319166001600160a01b0392909216919091179055611162816123c5565b50565b600061117081611ff7565b6010546001600160a01b0316156111a6576010546111a690600080516020613b06833981519152906001600160a01b0316611b04565b601080546001600160a01b0319166001600160a01b038416908117909155610dd590600080516020613b0683398151915290610ca2565b60006111e860085490565b821061124b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610bba565b6008828154811061125e5761125e613638565b90600052602060002001549050919050565b600061127b81611ff7565b60156112888385836136e0565b50505050565b600061129960165490565b905090565b60006112a981611ff7565b50601180546001600160a01b0319166001600160a01b0392909216919091179055565b600080516020613b068339815191526112e481611ff7565b61128884848461214d565b6000818152600260205260408120546001600160a01b031680610a425760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bba565b6015805461135c906135b1565b80601f0160208091040260200160405190810160405280929190818152602001828054611388906135b1565b80156113d55780601f106113aa576101008083540402835291602001916113d5565b820191906000526020600020905b8154815290600101906020018083116113b857829003601f168201915b505050505081565b6060816000816001600160401b038111156113fa576113fa613416565b60405190808252806020026020018201604052801561142d57816020015b60608152602001906001900390816114185790505b50905060005b8281101561148c5761145c86868381811061145057611450613638565b90506020020135611a65565b82828151811061146e5761146e613638565b6020026020010181905250808061148490613664565b915050611433565b50949350505050565b60006001600160a01b0382166114ff5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610bba565b506001600160a01b031660009081526003602052604090205490565b6060600061152883611495565b9050600061153584610e53565b90506000826001600160401b0381111561155157611551613416565b60405190808252806020026020018201604052801561158457816020015b606081526020019060019003908161156f5790505b50905060005b8381101561148c576115b48382815181106115a7576115a7613638565b6020026020010151611a65565b8282815181106115c6576115c6613638565b602002602001018190525080806115dc90613664565b91505061158a565b61160e7f6a64baf327d646d1bca72653e2a075d15fd6ac6d8cbd7f6ee03fc55875e0fa883361189f565b6116705760405162461bcd60e51b815260206004820152602d60248201527f596f7520646f206e6f7420686176652074686520617574686f7269747920746f60448201526c103932bb34bb329024ba32b69760991b6064820152608401610bba565b61167981610a27565b156116c65760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e20646f6573206e6f74206e656564207265766976616c00000000006044820152606401610bba565b6000818152600d60205260409020546116e8906001600160a01b031682612468565b6000908152600d6020526040902080546001600160a01b0319169055565b6060806000600c858560405161171d92919061379f565b908152604080519182900360209081018320805480830285018301909352828452919083018282801561176f57602002820191906000526020600020905b81548152602001906001019080831161175b575b505050505090506000815190506000816001600160401b0381111561179657611796613416565b6040519080825280602002602001820160405280156117c957816020015b60608152602001906001900390816117b45790505b5090506000826001600160401b038111156117e6576117e6613416565b60405190808252806020026020018201604052801561180f578160200160208202803683370190505b50905060005b8381101561188f5761183f85828151811061183257611832613638565b6020026020010151610a27565b1561187d5784818151811061185657611856613638565b602002602001015182828151811061187057611870613638565b6020026020010181815250505b8061188781613664565b915050611815565b50909450925050505b9250929050565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610a9c906135b1565b600080516020613b268339815191526118f181611ff7565b60006118fc60165490565b905061193d86868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061260192505050565b600c868660405161194f92919061379f565b90815260405190819003602090810182208054600181018255600091825291902001829055601154630c2b16d760e11b82526001600160a01b0316906318562dae906119a3908490889088906004016137af565b600060405180830381600087803b1580156119bd57600080fd5b505af11580156119d1573d6000803e3d6000fd5b505050506119e3601680546001019055565b505050505050565b610dd5338383612696565b600080516020613b26833981519152611a0e81611ff7565b506001600160a01b03166000908152601460205260409020805460ff19166001179055565b611a3d33836120ce565b611a595760405162461bcd60e51b8152600401610bba906135eb565b61128884848484612764565b6060611a7082612001565b6000611a8760408051602081019091526000815290565b90506000815111611aa75760405180602001604052806000815250611ad2565b80611ab184612797565b604051602001611ac29291906137e5565b6040516020818303038152906040525b9392505050565b60128181548110611ae957600080fd5b90600052602060002001600091509050805461135c906135b1565b6000828152600a6020526040902060010154611b1f81611ff7565b610c5b8383612344565b60005b81811015611c905732611b56848484818110611b4a57611b4a613638565b905060200201356112ef565b6001600160a01b031614611ba85760405162461bcd60e51b8152602060048201526019602482015278155b985d5d1a1bdc9a5e995908189d5c9b881c995c5d595cdd603a1b6044820152606401610bba565b6010546001600160a01b031663cde35e6d848484818110611bcb57611bcb613638565b905060200201356040518263ffffffff1660e01b8152600401611bf091815260200190565b602060405180830381865afa158015611c0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c31919061367d565b15611c7e5760405162461bcd60e51b815260206004820152601a60248201527f556e61626c6520746f206275726e206c6f616e6564206974656d0000000000006044820152606401610bba565b80611c8881613664565b915050611b2c565b50601854341015611ce35760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f7567682073656e7420746f207374617274206d657267652e006044820152606401610bba565b60175460405160009182916001600160a01b039091169034908381818185875af1925050503d8060008114611d34576040519150601f19603f3d011682016040523d82523d6000602084013e611d39565b606091505b509150915081611d825760405162461bcd60e51b81526020600482015260146024820152734661696c656420746f2073656e64204d4154494360601b6044820152606401610bba565b7f0aaa3b2400ef760f9ec08df4673559d2e86ab240dbd297e88f657309d989885b848483604051611db593929190613814565b60405180910390a150505050565b600080516020613b26833981519152611ddb81611ff7565b6000611de660165490565b9050611e2784848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061260192505050565b600c8484604051611e3992919061379f565b9081526040519081900360209081019091208054600181018255600091825291902001819055611288601680546001019055565b600080516020613b26833981519152611e8581611ff7565b6000611e9060165490565b9050611e9c87826123ab565b611eaa601680546001019055565b611ee984848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061260192505050565b6000818152600b60205260409020611f028486836136e0565b50600c8484604051611f1592919061379f565b90815260405190819003602090810182208054600181018255600091825291902001829055601154630c2b16d760e11b82526001600160a01b0316906318562dae90611f699084908a908a906004016137af565b600060405180830381600087803b158015611f8357600080fd5b505af1158015611f97573d6000803e3d6000fd5b5050505050505050505050565b6000611faf81611ff7565b50601780546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b03198216637965db0b60e01b1480610a425750610a4282612829565b611162813361284e565b6000818152600260205260409020546001600160a01b03166111625760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bba565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612095826112ef565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806120da836112ef565b9050806001600160a01b0316846001600160a01b0316148061212157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806121455750836001600160a01b031661213a84610b1f565b6001600160a01b0316145b949350505050565b826001600160a01b0316612160826112ef565b6001600160a01b0316146121865760405162461bcd60e51b8152600401610bba90613864565b6001600160a01b0382166121e85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bba565b6121f583838360016128a7565b826001600160a01b0316612208826112ef565b6001600160a01b03161461222e5760405162461bcd60e51b8152600401610bba90613864565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6122c8828261189f565b610dd5576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556123003390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61234e828261189f565b15610dd5576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610dd58282604051806020016040528060008152506128b3565b60006123d0826112ef565b90506123e08160008460016128a7565b6123e9826112ef565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166124be5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bba565b6000818152600260205260409020546001600160a01b0316156125235760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bba565b6125316000838360016128a7565b6000818152600260205260409020546001600160a01b0316156125965760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bba565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60138160405161261191906138a9565b9081526040519081900360200190205460ff1661116257600160138260405161263a91906138a9565b908152604051908190036020019020805491151560ff19909216919091179055601280546001810182556000919091527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344401610dd582826138c5565b816001600160a01b0316836001600160a01b0316036126f75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bba565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61276f84848461214d565b61277b848484846128e6565b6112885760405162461bcd60e51b8152600401610bba90613984565b606060006127a4836129e7565b60010190506000816001600160401b038111156127c3576127c3613416565b6040519080825280601f01601f1916602001820160405280156127ed576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846127f757509392505050565b60006001600160e01b0319821663780e9d6360e01b1480610a425750610a4282612abf565b612858828261189f565b610dd55761286581612b0f565b612870836020612b21565b6040516020016128819291906139d6565b60408051601f198184030181529082905262461bcd60e51b8252610bba916004016130e7565b61128884848484612cbc565b6128bd8383612468565b6128ca60008484846128e6565b610c5b5760405162461bcd60e51b8152600401610bba90613984565b60006001600160a01b0384163b156129dc57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061292a903390899088908890600401613a4b565b6020604051808303816000875af1925050508015612965575060408051601f3d908101601f1916820190925261296291810190613a7e565b60015b6129c2573d808015612993576040519150601f19603f3d011682016040523d82523d6000602084013e612998565b606091505b5080516000036129ba5760405162461bcd60e51b8152600401610bba90613984565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612145565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612a265772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612a52576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612a7057662386f26fc10000830492506010015b6305f5e1008310612a88576305f5e100830492506008015b6127108310612a9c57612710830492506004015b60648310612aae576064830492506002015b600a8310610a425760010192915050565b60006001600160e01b031982166380ac58cd60e01b1480612af057506001600160e01b03198216635b5e139f60e01b145b80610a4257506301ffc9a760e01b6001600160e01b0319831614610a42565b6060610a426001600160a01b03831660145b60606000612b30836002613a9b565b612b3b906002613ab2565b6001600160401b03811115612b5257612b52613416565b6040519080825280601f01601f191660200182016040528015612b7c576020820181803683370190505b509050600360fc1b81600081518110612b9757612b97613638565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612bc657612bc6613638565b60200101906001600160f81b031916908160001a9053506000612bea846002613a9b565b612bf5906001613ab2565b90505b6001811115612c6d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612c2957612c29613638565b1a60f81b828281518110612c3f57612c3f613638565b60200101906001600160f81b031916908160001a90535060049490941c93612c6681613ac5565b9050612bf8565b508315611ad25760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610bba565b612cc884848484612dfc565b6001811115612d375760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610bba565b816001600160a01b038516612d9357612d8e81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612db6565b836001600160a01b0316856001600160a01b031614612db657612db68582612e84565b6001600160a01b038416612dd257612dcd81612f21565b612df5565b846001600160a01b0316846001600160a01b031614612df557612df58482612fd0565b5050505050565b6001811115611288576001600160a01b03841615612e42576001600160a01b03841660009081526003602052604081208054839290612e3c908490613adc565b90915550505b6001600160a01b03831615611288576001600160a01b03831660009081526003602052604081208054839290612e79908490613ab2565b909155505050505050565b60006001612e9184611495565b612e9b9190613adc565b600083815260076020526040902054909150808214612eee576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612f3390600190613adc565b60008381526009602052604081205460088054939450909284908110612f5b57612f5b613638565b906000526020600020015490508060088381548110612f7c57612f7c613638565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612fb457612fb4613aef565b6001900381819060005260206000200160009055905550505050565b6000612fdb83611495565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60006020828403121561302657600080fd5b5035919050565b6001600160e01b03198116811461116257600080fd5b60006020828403121561305557600080fd5b8135611ad28161302d565b80356001600160a01b038116811461307757600080fd5b919050565b60006020828403121561308e57600080fd5b611ad282613060565b60005b838110156130b257818101518382015260200161309a565b50506000910152565b600081518084526130d3816020860160208601613097565b601f01601f19169290920160200192915050565b602081526000611ad260208301846130bb565b6000806040838503121561310d57600080fd5b61311683613060565b946020939093013593505050565b60008060006060848603121561313957600080fd5b61314284613060565b925061315060208501613060565b9150604084013590509250925092565b6000806040838503121561317357600080fd5b8235915061318360208401613060565b90509250929050565b600081518084526020808501945080840160005b838110156131bc578151875295820195908201906001016131a0565b509495945050505050565b602081526000611ad2602083018461318c565b60008083601f8401126131ec57600080fd5b5081356001600160401b0381111561320357600080fd5b60208301915083602082850101111561189857600080fd5b6000806020838503121561322e57600080fd5b82356001600160401b0381111561324457600080fd5b613250858286016131da565b90969095509350505050565b6000806020838503121561326f57600080fd5b82356001600160401b038082111561328657600080fd5b818501915085601f83011261329a57600080fd5b8135818111156132a957600080fd5b8660208260051b85010111156132be57600080fd5b60209290920196919550909350505050565b600081518084526020808501808196508360051b8101915082860160005b858110156133185782840389526133068483516130bb565b988501989350908401906001016132ee565b5091979650505050505050565b602081526000611ad260208301846132d0565b60408152600061334b60408301856132d0565b828103602084015261335d818561318c565b95945050505050565b6000806000806040858703121561337c57600080fd5b84356001600160401b038082111561339357600080fd5b61339f888389016131da565b909650945060208701359150808211156133b857600080fd5b506133c5878288016131da565b95989497509550505050565b801515811461116257600080fd5b600080604083850312156133f257600080fd5b6133fb83613060565b9150602083013561340b816133d1565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561344257600080fd5b61344b85613060565b935061345960208601613060565b92506040850135915060608501356001600160401b038082111561347c57600080fd5b818701915087601f83011261349057600080fd5b8135818111156134a2576134a2613416565b604051601f8201601f19908116603f011681019083821181831017156134ca576134ca613416565b816040528281528a60208487010111156134e357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561351a57600080fd5b61352383613060565b915061318360208401613060565b60008060008060006060868803121561354957600080fd5b61355286613060565b945060208601356001600160401b038082111561356e57600080fd5b61357a89838a016131da565b9096509450604088013591508082111561359357600080fd5b506135a0888289016131da565b969995985093965092949392505050565b600181811c908216806135c557607f821691505b6020821081036135e557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016136765761367661364e565b5060010190565b60006020828403121561368f57600080fd5b8151611ad2816133d1565b601f821115610c5b57600081815260208120601f850160051c810160208610156136c15750805b601f850160051c820191505b818110156119e3578281556001016136cd565b6001600160401b038311156136f7576136f7613416565b61370b8361370583546135b1565b8361369a565b6000601f84116001811461373f57600085156137275750838201355b600019600387901b1c1916600186901b178355612df5565b600083815260209020601f19861690835b828110156137705786850135825560209485019460019092019101613750565b508682101561378d5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8183823760009101908152919050565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b600083516137f7818460208801613097565b83519083019061380b818360208801613097565b01949350505050565b6040808252810183905260006001600160fb1b0384111561383457600080fd5b8360051b8086606085013782018281036060908101602085015261385a908201856130bb565b9695505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b600082516138bb818460208701613097565b9190910192915050565b81516001600160401b038111156138de576138de613416565b6138f2816138ec84546135b1565b8461369a565b602080601f831160018114613927576000841561390f5750858301515b600019600386901b1c1916600185901b1785556119e3565b600085815260208120601f198616915b8281101561395657888601518255948401946001909101908401613937565b50858210156139745787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613a0e816017850160208801613097565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613a3f816028840160208801613097565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061385a908301846130bb565b600060208284031215613a9057600080fd5b8151611ad28161302d565b8082028115828204841417610a4257610a4261364e565b80820180821115610a4257610a4261364e565b600081613ad457613ad461364e565b506000190190565b81810381811115610a4257610a4261364e565b634e487b7160e01b600052603160045260246000fdfec60d7a62d8843f2b14bc63f2a5240b187980481ad8c001a3caf4916aef3f667e9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220e56993b0a51d78e6945c538cf7442c259009cbca3106c8c5034a6c46d1dae8f464736f6c6343000811003300000000000000000000000079c0a1bdb28fdde12755f401f53a2f9d10f77299000000000000000000000000571f172878082c54ecc2be1fab6bed6d16afaab100000000000000000000000000000000000000000000000000071afd498d0000

Deployed Bytecode

0x6080604052600436106103185760003560e01c806362cd1381116101ab578063a217fddf116100f7578063d539139311610095578063e0df5b6f1161006f578063e0df5b6f1461097e578063e985e9c51461099e578063eca81d42146109e7578063fca3b5aa14610a0757600080fd5b8063d539139314610929578063d547741f1461094b578063de62d8421461096b57600080fd5b8063b78376e9116100d1578063b78376e9146108a9578063b88d4fde146108c9578063c87b56dd146108e9578063cefbfa361461090957600080fd5b8063a217fddf14610840578063a22cb46514610855578063ab4007061461087557600080fd5b80637bfdeb22116101645780638c3333ad1161013e5780638c3333ad146107bd57806391d14854146107eb57806395d89b411461080b5780639ca35ea71461082057600080fd5b80637bfdeb221461075d5780637dd586ba1461077d5780638baecc211461079d57600080fd5b806362cd1381146106a55780636352211e146106c55780636c0360eb146106e55780636cc8d8cf146106fa57806370a08231146107275780637462f8ae1461074757600080fd5b80632f745c591161026a57806342842e0e116102235780634f6ccce7116101fd5780634f6ccce71461063057806355f804b3146106505780635c956fb91461067057806361dfdae61461068557600080fd5b806342842e0e146105d057806342966c68146105f057806346e368d41461061057600080fd5b80632f745c591461050357806330f41dc014610523578063353c65c51461054357806336568abe1461056357806339cf75a11461058357806340c10f19146105b057600080fd5b8063081812fc116102d75780631b4e9387116102b15780631b4e93871461047357806323b872dd14610493578063248a9ca3146104b35780632f2ff15d146104e357600080fd5b8063081812fc1461041e578063095ea7b31461043e57806318160ddd1461045e57600080fd5b8062923f9e1461031d578062abafe11461035257806301ffc9a714610382578063048f1627146103a257806306b5ba42146103c457806306fdde03146103fc575b600080fd5b34801561032957600080fd5b5061033d610338366004613014565b610a27565b60405190151581526020015b60405180910390f35b34801561035e57600080fd5b50610374600080516020613b0683398151915281565b604051908152602001610349565b34801561038e57600080fd5b5061033d61039d366004613043565b610a48565b3480156103ae57600080fd5b506103c26103bd36600461307c565b610a53565b005b3480156103d057600080fd5b506010546103e4906001600160a01b031681565b6040516001600160a01b039091168152602001610349565b34801561040857600080fd5b50610411610a8d565b60405161034991906130e7565b34801561042a57600080fd5b506103e4610439366004613014565b610b1f565b34801561044a57600080fd5b506103c26104593660046130fa565b610b46565b34801561046a57600080fd5b50600854610374565b34801561047f57600080fd5b506103c261048e366004613014565b610c60565b34801561049f57600080fd5b506103c26104ae366004613124565b610c71565b3480156104bf57600080fd5b506103746104ce366004613014565b6000908152600a602052604090206001015490565b3480156104ef57600080fd5b506103c26104fe366004613160565b610ca2565b34801561050f57600080fd5b5061037461051e3660046130fa565b610cc7565b34801561052f57600080fd5b506011546103e4906001600160a01b031681565b34801561054f57600080fd5b506103c261055e36600461307c565b610d5d565b34801561056f57600080fd5b506103c261057e366004613160565b610dd9565b34801561058f57600080fd5b506105a361059e36600461307c565b610e53565b60405161034991906131c7565b3480156105bc57600080fd5b506103c26105cb3660046130fa565b610ef4565b3480156105dc57600080fd5b506103c26105eb366004613124565b610fc3565b3480156105fc57600080fd5b506103c261060b366004613014565b610fde565b34801561061c57600080fd5b506103c261062b36600461307c565b611165565b34801561063c57600080fd5b5061037461064b366004613014565b6111dd565b34801561065c57600080fd5b506103c261066b36600461321b565b611270565b34801561067c57600080fd5b5061037461128e565b34801561069157600080fd5b506103c26106a036600461307c565b61129e565b3480156106b157600080fd5b506103c26106c0366004613124565b6112cc565b3480156106d157600080fd5b506103e46106e0366004613014565b6112ef565b3480156106f157600080fd5b5061041161134f565b34801561070657600080fd5b5061071a61071536600461325c565b6113dd565b6040516103499190613325565b34801561073357600080fd5b5061037461074236600461307c565b611495565b34801561075357600080fd5b5061037460185481565b34801561076957600080fd5b50600f546103e4906001600160a01b031681565b34801561078957600080fd5b5061071a61079836600461307c565b61151b565b3480156107a957600080fd5b506103c26107b8366004613014565b6115e4565b3480156107c957600080fd5b506107dd6107d836600461321b565b611706565b604051610349929190613338565b3480156107f757600080fd5b5061033d610806366004613160565b61189f565b34801561081757600080fd5b506104116118ca565b34801561082c57600080fd5b506103c261083b366004613366565b6118d9565b34801561084c57600080fd5b50610374600081565b34801561086157600080fd5b506103c26108703660046133df565b6119eb565b34801561088157600080fd5b506103747f6a64baf327d646d1bca72653e2a075d15fd6ac6d8cbd7f6ee03fc55875e0fa8881565b3480156108b557600080fd5b506103c26108c436600461307c565b6119f6565b3480156108d557600080fd5b506103c26108e436600461342c565b611a33565b3480156108f557600080fd5b50610411610904366004613014565b611a65565b34801561091557600080fd5b50610411610924366004613014565b611ad9565b34801561093557600080fd5b50610374600080516020613b2683398151915281565b34801561095757600080fd5b506103c2610966366004613160565b611b04565b6103c261097936600461325c565b611b29565b34801561098a57600080fd5b506103c261099936600461321b565b611dc3565b3480156109aa57600080fd5b5061033d6109b9366004613507565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109f357600080fd5b506103c2610a02366004613531565b611e6d565b348015610a1357600080fd5b506103c2610a2236600461307c565b611fa4565b6000818152600260205260408120546001600160a01b031615155b92915050565b6000610a4282611fd2565b600080516020613b26833981519152610a6b81611ff7565b506001600160a01b03166000908152601460205260409020805460ff19169055565b606060008054610a9c906135b1565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac8906135b1565b8015610b155780601f10610aea57610100808354040283529160200191610b15565b820191906000526020600020905b815481529060010190602001808311610af857829003601f168201915b5050505050905090565b6000610b2a82612001565b506000908152600460205260409020546001600160a01b031690565b6000610b51826112ef565b9050806001600160a01b0316836001600160a01b031603610bc35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610bdf5750610bdf81336109b9565b610c515760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610bba565b610c5b8383612060565b505050565b6000610c6b81611ff7565b50601855565b610c7b33826120ce565b610c975760405162461bcd60e51b8152600401610bba906135eb565b610c5b83838361214d565b6000828152600a6020526040902060010154610cbd81611ff7565b610c5b83836122be565b6000610cd283611495565b8210610d345760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bba565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000610d6881611ff7565b600f546001600160a01b031615610d9e57600f54610d9e90600080516020613b26833981519152906001600160a01b0316611b04565b600f80546001600160a01b0319166001600160a01b038416908117909155610dd590600080516020613b2683398151915290610ca2565b5050565b6001600160a01b0381163314610e495760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610bba565b610dd58282612344565b60606000610e6083611495565b90506000816001600160401b03811115610e7c57610e7c613416565b604051908082528060200260200182016040528015610ea5578160200160208202803683370190505b50905060005b82811015610eec57610ebd8582610cc7565b828281518110610ecf57610ecf613638565b602090810291909101015280610ee481613664565b915050610eab565b509392505050565b600080516020613b26833981519152610f0c81611ff7565b6001600160a01b038316610f545760405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081858d8dbdd5b9d608a1b6044820152606401610bba565b81610f5e60165490565b11610fab5760405162461bcd60e51b815260206004820152601860248201527f546f6b656e2055524920646f6573206e6f7420657869737400000000000000006044820152606401610bba565b610fb583836123ab565b610c5b601680546001019055565b610c5b83838360405180602001604052806000815250611a33565b32610fe8826112ef565b6001600160a01b0316148061102257506110227f6a64baf327d646d1bca72653e2a075d15fd6ac6d8cbd7f6ee03fc55875e0fa883361189f565b61106a5760405162461bcd60e51b8152602060048201526019602482015278155b985d5d1a1bdc9a5e995908189d5c9b881c995c5d595cdd603a1b6044820152606401610bba565b60105460405163cde35e6d60e01b8152600481018390526001600160a01b039091169063cde35e6d90602401602060405180830381865afa1580156110b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d7919061367d565b156111245760405162461bcd60e51b815260206004820152601a60248201527f556e61626c6520746f206275726e206c6f616e6564206974656d0000000000006044820152606401610bba565b61112d816112ef565b6000828152600d6020526040902080546001600160a01b0319166001600160a01b0392909216919091179055611162816123c5565b50565b600061117081611ff7565b6010546001600160a01b0316156111a6576010546111a690600080516020613b06833981519152906001600160a01b0316611b04565b601080546001600160a01b0319166001600160a01b038416908117909155610dd590600080516020613b0683398151915290610ca2565b60006111e860085490565b821061124b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610bba565b6008828154811061125e5761125e613638565b90600052602060002001549050919050565b600061127b81611ff7565b60156112888385836136e0565b50505050565b600061129960165490565b905090565b60006112a981611ff7565b50601180546001600160a01b0319166001600160a01b0392909216919091179055565b600080516020613b068339815191526112e481611ff7565b61128884848461214d565b6000818152600260205260408120546001600160a01b031680610a425760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bba565b6015805461135c906135b1565b80601f0160208091040260200160405190810160405280929190818152602001828054611388906135b1565b80156113d55780601f106113aa576101008083540402835291602001916113d5565b820191906000526020600020905b8154815290600101906020018083116113b857829003601f168201915b505050505081565b6060816000816001600160401b038111156113fa576113fa613416565b60405190808252806020026020018201604052801561142d57816020015b60608152602001906001900390816114185790505b50905060005b8281101561148c5761145c86868381811061145057611450613638565b90506020020135611a65565b82828151811061146e5761146e613638565b6020026020010181905250808061148490613664565b915050611433565b50949350505050565b60006001600160a01b0382166114ff5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610bba565b506001600160a01b031660009081526003602052604090205490565b6060600061152883611495565b9050600061153584610e53565b90506000826001600160401b0381111561155157611551613416565b60405190808252806020026020018201604052801561158457816020015b606081526020019060019003908161156f5790505b50905060005b8381101561148c576115b48382815181106115a7576115a7613638565b6020026020010151611a65565b8282815181106115c6576115c6613638565b602002602001018190525080806115dc90613664565b91505061158a565b61160e7f6a64baf327d646d1bca72653e2a075d15fd6ac6d8cbd7f6ee03fc55875e0fa883361189f565b6116705760405162461bcd60e51b815260206004820152602d60248201527f596f7520646f206e6f7420686176652074686520617574686f7269747920746f60448201526c103932bb34bb329024ba32b69760991b6064820152608401610bba565b61167981610a27565b156116c65760405162461bcd60e51b815260206004820152601b60248201527f546f6b656e20646f6573206e6f74206e656564207265766976616c00000000006044820152606401610bba565b6000818152600d60205260409020546116e8906001600160a01b031682612468565b6000908152600d6020526040902080546001600160a01b0319169055565b6060806000600c858560405161171d92919061379f565b908152604080519182900360209081018320805480830285018301909352828452919083018282801561176f57602002820191906000526020600020905b81548152602001906001019080831161175b575b505050505090506000815190506000816001600160401b0381111561179657611796613416565b6040519080825280602002602001820160405280156117c957816020015b60608152602001906001900390816117b45790505b5090506000826001600160401b038111156117e6576117e6613416565b60405190808252806020026020018201604052801561180f578160200160208202803683370190505b50905060005b8381101561188f5761183f85828151811061183257611832613638565b6020026020010151610a27565b1561187d5784818151811061185657611856613638565b602002602001015182828151811061187057611870613638565b6020026020010181815250505b8061188781613664565b915050611815565b50909450925050505b9250929050565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610a9c906135b1565b600080516020613b268339815191526118f181611ff7565b60006118fc60165490565b905061193d86868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061260192505050565b600c868660405161194f92919061379f565b90815260405190819003602090810182208054600181018255600091825291902001829055601154630c2b16d760e11b82526001600160a01b0316906318562dae906119a3908490889088906004016137af565b600060405180830381600087803b1580156119bd57600080fd5b505af11580156119d1573d6000803e3d6000fd5b505050506119e3601680546001019055565b505050505050565b610dd5338383612696565b600080516020613b26833981519152611a0e81611ff7565b506001600160a01b03166000908152601460205260409020805460ff19166001179055565b611a3d33836120ce565b611a595760405162461bcd60e51b8152600401610bba906135eb565b61128884848484612764565b6060611a7082612001565b6000611a8760408051602081019091526000815290565b90506000815111611aa75760405180602001604052806000815250611ad2565b80611ab184612797565b604051602001611ac29291906137e5565b6040516020818303038152906040525b9392505050565b60128181548110611ae957600080fd5b90600052602060002001600091509050805461135c906135b1565b6000828152600a6020526040902060010154611b1f81611ff7565b610c5b8383612344565b60005b81811015611c905732611b56848484818110611b4a57611b4a613638565b905060200201356112ef565b6001600160a01b031614611ba85760405162461bcd60e51b8152602060048201526019602482015278155b985d5d1a1bdc9a5e995908189d5c9b881c995c5d595cdd603a1b6044820152606401610bba565b6010546001600160a01b031663cde35e6d848484818110611bcb57611bcb613638565b905060200201356040518263ffffffff1660e01b8152600401611bf091815260200190565b602060405180830381865afa158015611c0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c31919061367d565b15611c7e5760405162461bcd60e51b815260206004820152601a60248201527f556e61626c6520746f206275726e206c6f616e6564206974656d0000000000006044820152606401610bba565b80611c8881613664565b915050611b2c565b50601854341015611ce35760405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f7567682073656e7420746f207374617274206d657267652e006044820152606401610bba565b60175460405160009182916001600160a01b039091169034908381818185875af1925050503d8060008114611d34576040519150601f19603f3d011682016040523d82523d6000602084013e611d39565b606091505b509150915081611d825760405162461bcd60e51b81526020600482015260146024820152734661696c656420746f2073656e64204d4154494360601b6044820152606401610bba565b7f0aaa3b2400ef760f9ec08df4673559d2e86ab240dbd297e88f657309d989885b848483604051611db593929190613814565b60405180910390a150505050565b600080516020613b26833981519152611ddb81611ff7565b6000611de660165490565b9050611e2784848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061260192505050565b600c8484604051611e3992919061379f565b9081526040519081900360209081019091208054600181018255600091825291902001819055611288601680546001019055565b600080516020613b26833981519152611e8581611ff7565b6000611e9060165490565b9050611e9c87826123ab565b611eaa601680546001019055565b611ee984848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061260192505050565b6000818152600b60205260409020611f028486836136e0565b50600c8484604051611f1592919061379f565b90815260405190819003602090810182208054600181018255600091825291902001829055601154630c2b16d760e11b82526001600160a01b0316906318562dae90611f699084908a908a906004016137af565b600060405180830381600087803b158015611f8357600080fd5b505af1158015611f97573d6000803e3d6000fd5b5050505050505050505050565b6000611faf81611ff7565b50601780546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b03198216637965db0b60e01b1480610a425750610a4282612829565b611162813361284e565b6000818152600260205260409020546001600160a01b03166111625760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bba565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612095826112ef565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806120da836112ef565b9050806001600160a01b0316846001600160a01b0316148061212157506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806121455750836001600160a01b031661213a84610b1f565b6001600160a01b0316145b949350505050565b826001600160a01b0316612160826112ef565b6001600160a01b0316146121865760405162461bcd60e51b8152600401610bba90613864565b6001600160a01b0382166121e85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bba565b6121f583838360016128a7565b826001600160a01b0316612208826112ef565b6001600160a01b03161461222e5760405162461bcd60e51b8152600401610bba90613864565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6122c8828261189f565b610dd5576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556123003390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61234e828261189f565b15610dd5576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610dd58282604051806020016040528060008152506128b3565b60006123d0826112ef565b90506123e08160008460016128a7565b6123e9826112ef565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166124be5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bba565b6000818152600260205260409020546001600160a01b0316156125235760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bba565b6125316000838360016128a7565b6000818152600260205260409020546001600160a01b0316156125965760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bba565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60138160405161261191906138a9565b9081526040519081900360200190205460ff1661116257600160138260405161263a91906138a9565b908152604051908190036020019020805491151560ff19909216919091179055601280546001810182556000919091527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344401610dd582826138c5565b816001600160a01b0316836001600160a01b0316036126f75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bba565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61276f84848461214d565b61277b848484846128e6565b6112885760405162461bcd60e51b8152600401610bba90613984565b606060006127a4836129e7565b60010190506000816001600160401b038111156127c3576127c3613416565b6040519080825280601f01601f1916602001820160405280156127ed576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846127f757509392505050565b60006001600160e01b0319821663780e9d6360e01b1480610a425750610a4282612abf565b612858828261189f565b610dd55761286581612b0f565b612870836020612b21565b6040516020016128819291906139d6565b60408051601f198184030181529082905262461bcd60e51b8252610bba916004016130e7565b61128884848484612cbc565b6128bd8383612468565b6128ca60008484846128e6565b610c5b5760405162461bcd60e51b8152600401610bba90613984565b60006001600160a01b0384163b156129dc57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061292a903390899088908890600401613a4b565b6020604051808303816000875af1925050508015612965575060408051601f3d908101601f1916820190925261296291810190613a7e565b60015b6129c2573d808015612993576040519150601f19603f3d011682016040523d82523d6000602084013e612998565b606091505b5080516000036129ba5760405162461bcd60e51b8152600401610bba90613984565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612145565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612a265772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612a52576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612a7057662386f26fc10000830492506010015b6305f5e1008310612a88576305f5e100830492506008015b6127108310612a9c57612710830492506004015b60648310612aae576064830492506002015b600a8310610a425760010192915050565b60006001600160e01b031982166380ac58cd60e01b1480612af057506001600160e01b03198216635b5e139f60e01b145b80610a4257506301ffc9a760e01b6001600160e01b0319831614610a42565b6060610a426001600160a01b03831660145b60606000612b30836002613a9b565b612b3b906002613ab2565b6001600160401b03811115612b5257612b52613416565b6040519080825280601f01601f191660200182016040528015612b7c576020820181803683370190505b509050600360fc1b81600081518110612b9757612b97613638565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612bc657612bc6613638565b60200101906001600160f81b031916908160001a9053506000612bea846002613a9b565b612bf5906001613ab2565b90505b6001811115612c6d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612c2957612c29613638565b1a60f81b828281518110612c3f57612c3f613638565b60200101906001600160f81b031916908160001a90535060049490941c93612c6681613ac5565b9050612bf8565b508315611ad25760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610bba565b612cc884848484612dfc565b6001811115612d375760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610bba565b816001600160a01b038516612d9357612d8e81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612db6565b836001600160a01b0316856001600160a01b031614612db657612db68582612e84565b6001600160a01b038416612dd257612dcd81612f21565b612df5565b846001600160a01b0316846001600160a01b031614612df557612df58482612fd0565b5050505050565b6001811115611288576001600160a01b03841615612e42576001600160a01b03841660009081526003602052604081208054839290612e3c908490613adc565b90915550505b6001600160a01b03831615611288576001600160a01b03831660009081526003602052604081208054839290612e79908490613ab2565b909155505050505050565b60006001612e9184611495565b612e9b9190613adc565b600083815260076020526040902054909150808214612eee576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612f3390600190613adc565b60008381526009602052604081205460088054939450909284908110612f5b57612f5b613638565b906000526020600020015490508060088381548110612f7c57612f7c613638565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612fb457612fb4613aef565b6001900381819060005260206000200160009055905550505050565b6000612fdb83611495565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60006020828403121561302657600080fd5b5035919050565b6001600160e01b03198116811461116257600080fd5b60006020828403121561305557600080fd5b8135611ad28161302d565b80356001600160a01b038116811461307757600080fd5b919050565b60006020828403121561308e57600080fd5b611ad282613060565b60005b838110156130b257818101518382015260200161309a565b50506000910152565b600081518084526130d3816020860160208601613097565b601f01601f19169290920160200192915050565b602081526000611ad260208301846130bb565b6000806040838503121561310d57600080fd5b61311683613060565b946020939093013593505050565b60008060006060848603121561313957600080fd5b61314284613060565b925061315060208501613060565b9150604084013590509250925092565b6000806040838503121561317357600080fd5b8235915061318360208401613060565b90509250929050565b600081518084526020808501945080840160005b838110156131bc578151875295820195908201906001016131a0565b509495945050505050565b602081526000611ad2602083018461318c565b60008083601f8401126131ec57600080fd5b5081356001600160401b0381111561320357600080fd5b60208301915083602082850101111561189857600080fd5b6000806020838503121561322e57600080fd5b82356001600160401b0381111561324457600080fd5b613250858286016131da565b90969095509350505050565b6000806020838503121561326f57600080fd5b82356001600160401b038082111561328657600080fd5b818501915085601f83011261329a57600080fd5b8135818111156132a957600080fd5b8660208260051b85010111156132be57600080fd5b60209290920196919550909350505050565b600081518084526020808501808196508360051b8101915082860160005b858110156133185782840389526133068483516130bb565b988501989350908401906001016132ee565b5091979650505050505050565b602081526000611ad260208301846132d0565b60408152600061334b60408301856132d0565b828103602084015261335d818561318c565b95945050505050565b6000806000806040858703121561337c57600080fd5b84356001600160401b038082111561339357600080fd5b61339f888389016131da565b909650945060208701359150808211156133b857600080fd5b506133c5878288016131da565b95989497509550505050565b801515811461116257600080fd5b600080604083850312156133f257600080fd5b6133fb83613060565b9150602083013561340b816133d1565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561344257600080fd5b61344b85613060565b935061345960208601613060565b92506040850135915060608501356001600160401b038082111561347c57600080fd5b818701915087601f83011261349057600080fd5b8135818111156134a2576134a2613416565b604051601f8201601f19908116603f011681019083821181831017156134ca576134ca613416565b816040528281528a60208487010111156134e357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561351a57600080fd5b61352383613060565b915061318360208401613060565b60008060008060006060868803121561354957600080fd5b61355286613060565b945060208601356001600160401b038082111561356e57600080fd5b61357a89838a016131da565b9096509450604088013591508082111561359357600080fd5b506135a0888289016131da565b969995985093965092949392505050565b600181811c908216806135c557607f821691505b6020821081036135e557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016136765761367661364e565b5060010190565b60006020828403121561368f57600080fd5b8151611ad2816133d1565b601f821115610c5b57600081815260208120601f850160051c810160208610156136c15750805b601f850160051c820191505b818110156119e3578281556001016136cd565b6001600160401b038311156136f7576136f7613416565b61370b8361370583546135b1565b8361369a565b6000601f84116001811461373f57600085156137275750838201355b600019600387901b1c1916600186901b178355612df5565b600083815260209020601f19861690835b828110156137705786850135825560209485019460019092019101613750565b508682101561378d5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8183823760009101908152919050565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b600083516137f7818460208801613097565b83519083019061380b818360208801613097565b01949350505050565b6040808252810183905260006001600160fb1b0384111561383457600080fd5b8360051b8086606085013782018281036060908101602085015261385a908201856130bb565b9695505050505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b600082516138bb818460208701613097565b9190910192915050565b81516001600160401b038111156138de576138de613416565b6138f2816138ec84546135b1565b8461369a565b602080601f831160018114613927576000841561390f5750858301515b600019600386901b1c1916600185901b1785556119e3565b600085815260208120601f198616915b8281101561395657888601518255948401946001909101908401613937565b50858210156139745787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613a0e816017850160208801613097565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613a3f816028840160208801613097565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061385a908301846130bb565b600060208284031215613a9057600080fd5b8151611ad28161302d565b8082028115828204841417610a4257610a4261364e565b80820180821115610a4257610a4261364e565b600081613ad457613ad461364e565b506000190190565b81810381811115610a4257610a4261364e565b634e487b7160e01b600052603160045260246000fdfec60d7a62d8843f2b14bc63f2a5240b187980481ad8c001a3caf4916aef3f667e9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220e56993b0a51d78e6945c538cf7442c259009cbca3106c8c5034a6c46d1dae8f464736f6c63430008110033

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

00000000000000000000000079c0a1bdb28fdde12755f401f53a2f9d10f77299000000000000000000000000571f172878082c54ecc2be1fab6bed6d16afaab100000000000000000000000000000000000000000000000000071afd498d0000

-----Decoded View---------------
Arg [0] : data_ (address): 0x79C0A1BdB28fddE12755f401f53A2f9d10F77299
Arg [1] : minter_ (address): 0x571F172878082c54ECC2Be1fab6BeD6d16aFAAb1
Arg [2] : mergeCost_ (uint256): 2000000000000000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000079c0a1bdb28fdde12755f401f53a2f9d10f77299
Arg [1] : 000000000000000000000000571f172878082c54ecc2be1fab6bed6d16afaab1
Arg [2] : 00000000000000000000000000000000000000000000000000071afd498d0000


Deployed Bytecode Sourcemap

127481:9400:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;131891:124;;;;;;;;;;-1:-1:-1;131891:124:0;;;;;:::i;:::-;;:::i;:::-;;;364:14:1;;357:22;339:41;;327:2;312:18;131891:124:0;;;;;;;;128083:62;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;128083:62:0;;;;;537:25:1;;;525:2;510:18;128083:62:0;391:177:1;136651:227:0;;;;;;;;;;-1:-1:-1;136651:227:0;;;;;:::i;:::-;;:::i;134230:108::-;;;;;;;;;;-1:-1:-1;134230:108:0;;;;;:::i;:::-;;:::i;:::-;;127849:37;;;;;;;;;;-1:-1:-1;127849:37:0;;;;-1:-1:-1;;;;;127849:37:0;;;;;;-1:-1:-1;;;;;1521:32:1;;;1503:51;;1491:2;1476:18;127849:37:0;1328:232:1;87993:100:0;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;89505:171::-;;;;;;;;;;-1:-1:-1;89505:171:0;;;;;:::i;:::-;;:::i;89023:416::-;;;;;;;;;;-1:-1:-1;89023:416:0;;;;;:::i;:::-;;:::i;104571:113::-;;;;;;;;;;-1:-1:-1;104659:10:0;:17;104571:113;;130550:111;;;;;;;;;;-1:-1:-1;130550:111:0;;;;;:::i;:::-;;:::i;90205:335::-;;;;;;;;;;-1:-1:-1;90205:335:0;;;;;:::i;:::-;;:::i;74815:131::-;;;;;;;;;;-1:-1:-1;74815:131:0;;;;;:::i;:::-;74889:7;74916:12;;;:6;:12;;;;;:22;;;;74815:131;75256:147;;;;;;;;;;-1:-1:-1;75256:147:0;;;;;:::i;:::-;;:::i;104239:256::-;;;;;;;;;;-1:-1:-1;104239:256:0;;;;;:::i;:::-;;:::i;127893:33::-;;;;;;;;;;-1:-1:-1;127893:33:0;;;;-1:-1:-1;;;;;127893:33:0;;;132902:298;;;;;;;;;;-1:-1:-1;132902:298:0;;;;;:::i;:::-;;:::i;76400:218::-;;;;;;;;;;-1:-1:-1;76400:218:0;;;;;:::i;:::-;;:::i;131352:354::-;;;;;;;;;;-1:-1:-1;131352:354:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;132059:320::-;;;;;;;;;;-1:-1:-1;132059:320:0;;;;;:::i;:::-;;:::i;90611:185::-;;;;;;;;;;-1:-1:-1;90611:185:0;;;;;:::i;:::-;;:::i;129305:411::-;;;;;;;;;;-1:-1:-1;129305:411:0;;;;;:::i;:::-;;:::i;133481:314::-;;;;;;;;;;-1:-1:-1;133481:314:0;;;;;:::i;:::-;;:::i;104761:233::-;;;;;;;;;;-1:-1:-1;104761:233:0;;;;;:::i;:::-;;:::i;135172:113::-;;;;;;;;;;-1:-1:-1;135172:113:0;;;;;:::i;:::-;;:::i;131742:103::-;;;;;;;;;;;;;:::i;133272:137::-;;;;;;;;;;-1:-1:-1;133272:137:0;;;;;:::i;:::-;;:::i;133803:182::-;;;;;;;;;;-1:-1:-1;133803:182:0;;;;;:::i;:::-;;:::i;87703:223::-;;;;;;;;;;-1:-1:-1;87703:223:0;;;;;:::i;:::-;;:::i;128271:34::-;;;;;;;;;;;;;:::i;134821:311::-;;;;;;;;;;-1:-1:-1;134821:311:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;87434:207::-;;;;;;;;;;-1:-1:-1;87434:207:0;;;;;:::i;:::-;;:::i;128391:24::-;;;;;;;;;;;;;;;;127809:33;;;;;;;;;;-1:-1:-1;127809:33:0;;;;-1:-1:-1;;;;;127809:33:0;;;134403:377;;;;;;;;;;-1:-1:-1;134403:377:0;;;;;:::i;:::-;;:::i;132430:400::-;;;;;;;;;;-1:-1:-1;132430:400:0;;;;;:::i;:::-;;:::i;130715:586::-;;;;;;;;;;-1:-1:-1;130715:586:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;73288:147::-;;;;;;;;;;-1:-1:-1;73288:147:0;;;;;:::i;:::-;;:::i;88162:104::-;;;;;;;;;;;;;:::i;135657:334::-;;;;;;;;;;-1:-1:-1;135657:334:0;;;;;:::i;:::-;;:::i;72393:49::-;;;;;;;;;;-1:-1:-1;72393:49:0;72438:4;72393:49;;89748:155;;;;;;;;;;-1:-1:-1;89748:155:0;;;;;:::i;:::-;;:::i;128152:58::-;;;;;;;;;;;;128188:22;128152:58;;134055:105;;;;;;;;;;-1:-1:-1;134055:105:0;;;;;:::i;:::-;;:::i;90867:322::-;;;;;;;;;;-1:-1:-1;90867:322:0;;;;;:::i;:::-;;:::i;88337:281::-;;;;;;;;;;-1:-1:-1;88337:281:0;;;;;:::i;:::-;;:::i;127935:21::-;;;;;;;;;;-1:-1:-1;127935:21:0;;;;;:::i;:::-;;:::i;128014:62::-;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;128014:62:0;;75696:149;;;;;;;;;;-1:-1:-1;75696:149:0;;;;;:::i;:::-;;:::i;129724:646::-;;;;;;:::i;:::-;;:::i;135350:241::-;;;;;;;;;;-1:-1:-1;135350:241:0;;;;;:::i;:::-;;:::i;89974:164::-;;;;;;;;;;-1:-1:-1;89974:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;90095:25:0;;;90071:4;90095:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;89974:164;128786:440;;;;;;;;;;-1:-1:-1;128786:440:0;;;;;:::i;:::-;;:::i;130433:109::-;;;;;;;;;;-1:-1:-1;130433:109:0;;;;;:::i;:::-;;:::i;131891:124::-;131966:4;92590:16;;;:7;:16;;;;;;-1:-1:-1;;;;;92590:16:0;93016:31;;131990:17;131983:24;131891:124;-1:-1:-1;;131891:124:0:o;136651:227::-;136805:4;136834:36;136858:11;136834:23;:36::i;134230:108::-;-1:-1:-1;;;;;;;;;;;72884:16:0;72895:4;72884:10;:16::i;:::-;-1:-1:-1;;;;;;134316:14:0::1;;::::0;;;:6:::1;:14;::::0;;;;134309:21;;-1:-1:-1;;134309:21:0::1;::::0;;134230:108::o;87993:100::-;88047:13;88080:5;88073:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87993:100;:::o;89505:171::-;89581:7;89601:23;89616:7;89601:14;:23::i;:::-;-1:-1:-1;89644:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;89644:24:0;;89505:171::o;89023:416::-;89104:13;89120:23;89135:7;89120:14;:23::i;:::-;89104:39;;89168:5;-1:-1:-1;;;;;89162:11:0;:2;-1:-1:-1;;;;;89162:11:0;;89154:57;;;;-1:-1:-1;;;89154:57:0;;11803:2:1;89154:57:0;;;11785:21:1;11842:2;11822:18;;;11815:30;11881:34;11861:18;;;11854:62;-1:-1:-1;;;11932:18:1;;;11925:31;11973:19;;89154:57:0;;;;;;;;;44521:10;-1:-1:-1;;;;;89246:21:0;;;;:62;;-1:-1:-1;89271:37:0;89288:5;44521:10;89974:164;:::i;89271:37::-;89224:173;;;;-1:-1:-1;;;89224:173:0;;12205:2:1;89224:173:0;;;12187:21:1;12244:2;12224:18;;;12217:30;12283:34;12263:18;;;12256:62;12354:31;12334:18;;;12327:59;12403:19;;89224:173:0;12003:425:1;89224:173:0;89410:21;89419:2;89423:7;89410:8;:21::i;:::-;89093:346;89023:416;;:::o;130550:111::-;72438:4;72884:16;72438:4;72884:10;:16::i;:::-;-1:-1:-1;130636:9:0::1;:17:::0;130550:111::o;90205:335::-;90400:41;44521:10;90433:7;90400:18;:41::i;:::-;90392:99;;;;-1:-1:-1;;;90392:99:0;;;;;;;:::i;:::-;90504:28;90514:4;90520:2;90524:7;90504:9;:28::i;75256:147::-;74889:7;74916:12;;;:6;:12;;;;;:22;;;72884:16;72895:4;72884:10;:16::i;:::-;75370:25:::1;75381:4;75387:7;75370:10;:25::i;104239:256::-:0;104336:7;104372:23;104389:5;104372:16;:23::i;:::-;104364:5;:31;104356:87;;;;-1:-1:-1;;;104356:87:0;;13049:2:1;104356:87:0;;;13031:21:1;13088:2;13068:18;;;13061:30;13127:34;13107:18;;;13100:62;-1:-1:-1;;;13178:18:1;;;13171:41;13229:19;;104356:87:0;12847:407:1;104356:87:0;-1:-1:-1;;;;;;104461:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;104239:256::o;132902:298::-;72438:4;72884:16;72438:4;72884:10;:16::i;:::-;133002:7:::1;::::0;-1:-1:-1;;;;;133002:7:0::1;132994:28:::0;132991:99:::1;;133069:7;::::0;133038:40:::1;::::0;-1:-1:-1;;;;;;;;;;;128052:24:0;-1:-1:-1;;;;;133069:7:0::1;133038:10;:40::i;:::-;133100:7;:42:::0;;-1:-1:-1;;;;;;133100:42:0::1;-1:-1:-1::0;;;;;133100:42:0;::::1;::::0;;::::1;::::0;;;133153:39:::1;::::0;-1:-1:-1;;;;;;;;;;;128052:24:0;133153:9:::1;:39::i;:::-;132902:298:::0;;:::o;76400:218::-;-1:-1:-1;;;;;76496:23:0;;44521:10;76496:23;76488:83;;;;-1:-1:-1;;;76488:83:0;;13461:2:1;76488:83:0;;;13443:21:1;13500:2;13480:18;;;13473:30;13539:34;13519:18;;;13512:62;-1:-1:-1;;;13590:18:1;;;13583:45;13645:19;;76488:83:0;13259:411:1;76488:83:0;76584:26;76596:4;76602:7;76584:11;:26::i;131352:354::-;131430:16;131459:14;131476:19;131486:8;131476:9;:19::i;:::-;131459:36;;131506:21;131544:6;-1:-1:-1;;;;;131530:21:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;131530:21:0;;131506:45;;131568:9;131564:103;131584:6;131582:1;:8;131564:103;;;131623:32;131643:8;131653:1;131623:19;:32::i;:::-;131613:4;131618:1;131613:7;;;;;;;;:::i;:::-;;;;;;;;;;:42;131593:3;;;;:::i;:::-;;;;131564:103;;;-1:-1:-1;131686:4:0;131352:354;-1:-1:-1;;;131352:354:0:o;132059:320::-;-1:-1:-1;;;;;;;;;;;72884:16:0;72895:4;72884:10;:16::i;:::-;-1:-1:-1;;;;;132179:17:0;::::1;132171:45;;;::::0;-1:-1:-1;;;132171:45:0;;14281:2:1;132171:45:0::1;::::0;::::1;14263:21:1::0;14320:2;14300:18;;;14293:30;-1:-1:-1;;;14339:18:1;;;14332:45;14394:18;;132171:45:0::1;14079:339:1::0;132171:45:0::1;132262:8;132235:24;:14;21407::::0;;21315:114;132235:24:::1;:35;132227:72;;;::::0;-1:-1:-1;;;132227:72:0;;14625:2:1;132227:72:0::1;::::0;::::1;14607:21:1::0;14664:2;14644:18;;;14637:30;14703:26;14683:18;;;14676:54;14747:18;;132227:72:0::1;14423:348:1::0;132227:72:0::1;132310:24;132320:3;132325:8;132310:9;:24::i;:::-;132345:26;:14;21526:19:::0;;21544:1;21526:19;;;21437:127;90611:185;90749:39;90766:4;90772:2;90776:7;90749:39;;;;;;;;;;;;:16;:39::i;129305:411::-;129414:9;129395:17;129403:8;129395:7;:17::i;:::-;-1:-1:-1;;;;;129395:28:0;;:61;;;;129427:29;128188:22;129445:10;129427:7;:29::i;:::-;129373:136;;;;-1:-1:-1;;;129373:136:0;;14978:2:1;129373:136:0;;;14960:21:1;15017:2;14997:18;;;14990:30;-1:-1:-1;;;15036:18:1;;;15029:55;15101:18;;129373:136:0;14776:349:1;129373:136:0;129543:9;;:28;;-1:-1:-1;;;129543:28:0;;;;;537:25:1;;;-1:-1:-1;;;;;129543:9:0;;;;:18;;510::1;;129543:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;129542:29;129520:105;;;;-1:-1:-1;;;129520:105:0;;15582:2:1;129520:105:0;;;15564:21:1;15621:2;15601:18;;;15594:30;15660:28;15640:18;;;15633:56;15706:18;;129520:105:0;15380:350:1;129520:105:0;129658:24;129673:8;129658:14;:24::i;:::-;129636:19;;;;:9;:19;;;;;:46;;-1:-1:-1;;;;;;129636:46:0;-1:-1:-1;;;;;129636:46:0;;;;;;;;;;129693:15;129636:19;129693:5;:15::i;:::-;129305:411;:::o;133481:314::-;72438:4;72884:16;72438:4;72884:10;:16::i;:::-;133585:9:::1;::::0;-1:-1:-1;;;;;133585:9:0::1;133577:30:::0;133574:103:::1;;133654:9;::::0;133623:42:::1;::::0;-1:-1:-1;;;;;;;;;;;128121:24:0;-1:-1:-1;;;;;133654:9:0::1;133623:10;:42::i;:::-;133687:9;:48:::0;;-1:-1:-1;;;;;;133687:48:0::1;-1:-1:-1::0;;;;;133687:48:0;::::1;::::0;;::::1;::::0;;;133746:41:::1;::::0;-1:-1:-1;;;;;;;;;;;128121:24:0;133746:9:::1;:41::i;104761:233::-:0;104836:7;104872:30;104659:10;:17;;104571:113;104872:30;104864:5;:38;104856:95;;;;-1:-1:-1;;;104856:95:0;;15937:2:1;104856:95:0;;;15919:21:1;15976:2;15956:18;;;15949:30;16015:34;15995:18;;;15988:62;-1:-1:-1;;;16066:18:1;;;16059:42;16118:19;;104856:95:0;15735:408:1;104856:95:0;104969:10;104980:5;104969:17;;;;;;;;:::i;:::-;;;;;;;;;104962:24;;104761:233;;;:::o;135172:113::-;72438:4;72884:16;72438:4;72884:10;:16::i;:::-;135263:7:::1;:14;135273:4:::0;;135263:7;:14:::1;:::i;:::-;;135172:113:::0;;;:::o;131742:103::-;131782:11;131813:24;:14;21407;;21315:114;131813:24;131805:32;;131742:103;:::o;133272:137::-;72438:4;72884:16;72438:4;72884:10;:16::i;:::-;-1:-1:-1;133359:7:0::1;:42:::0;;-1:-1:-1;;;;;;133359:42:0::1;-1:-1:-1::0;;;;;133359:42:0;;;::::1;::::0;;;::::1;::::0;;133272:137::o;133803:182::-;-1:-1:-1;;;;;;;;;;;72884:16:0;72895:4;72884:10;:16::i;:::-;133946:31:::1;133956:5;133963:3;133968:8;133946:9;:31::i;87703:223::-:0;87775:7;92590:16;;;:7;:16;;;;;;-1:-1:-1;;;;;92590:16:0;;87839:56;;;;-1:-1:-1;;;87839:56:0;;18408:2:1;87839:56:0;;;18390:21:1;18447:2;18427:18;;;18420:30;-1:-1:-1;;;18466:18:1;;;18459:54;18530:18;;87839:56:0;18206:348:1;128271:34:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;134821:311::-;134887:15;134932:4;134915:14;134932:4;-1:-1:-1;;;;;134978:20:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134954:44;;135015:9;135011:89;135031:6;135029:1;:8;135011:89;;;135071:17;135080:4;;135085:1;135080:7;;;;;;;:::i;:::-;;;;;;;135071:8;:17::i;:::-;135060:5;135066:1;135060:8;;;;;;;;:::i;:::-;;;;;;:28;;;;135040:3;;;;;:::i;:::-;;;;135011:89;;;-1:-1:-1;135119:5:0;134821:311;-1:-1:-1;;;;134821:311:0:o;87434:207::-;87506:7;-1:-1:-1;;;;;87534:19:0;;87526:73;;;;-1:-1:-1;;;87526:73:0;;18761:2:1;87526:73:0;;;18743:21:1;18800:2;18780:18;;;18773:30;18839:34;18819:18;;;18812:62;-1:-1:-1;;;18890:18:1;;;18883:39;18939:19;;87526:73:0;18559:405:1;87526:73:0;-1:-1:-1;;;;;;87617:16:0;;;;;:9;:16;;;;;;;87434:207::o;134403:377::-;134468:15;134496:14;134513:19;134523:8;134513:9;:19::i;:::-;134496:36;;134543:21;134567:24;134582:8;134567:14;:24::i;:::-;134543:48;;134602:21;134639:6;-1:-1:-1;;;;;134626:20:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134602:44;;134663:9;134659:89;134679:6;134677:1;:8;134659:89;;;134719:17;134728:4;134733:1;134728:7;;;;;;;;:::i;:::-;;;;;;;134719:8;:17::i;:::-;134708:5;134714:1;134708:8;;;;;;;;:::i;:::-;;;;;;:28;;;;134688:3;;;;;:::i;:::-;;;;134659:89;;132430:400;132523:30;128188:22;132542:10;132523:7;:30::i;:::-;132501:125;;;;-1:-1:-1;;;132501:125:0;;19171:2:1;132501:125:0;;;19153:21:1;19210:2;19190:18;;;19183:30;19249:34;19229:18;;;19222:62;-1:-1:-1;;;19300:18:1;;;19293:43;19353:19;;132501:125:0;18969:409:1;132501:125:0;132660:21;132672:8;132660:11;:21::i;:::-;132659:22;132637:99;;;;-1:-1:-1;;;132637:99:0;;19585:2:1;132637:99:0;;;19567:21:1;19624:2;19604:18;;;19597:30;19663:29;19643:18;;;19636:57;19710:18;;132637:99:0;19383:351:1;132637:99:0;132755:19;;;;:9;:19;;;;;;132749:36;;-1:-1:-1;;;;;132755:19:0;132765:8;132749:5;:36::i;:::-;132803:19;;;;:9;:19;;;;;132796:26;;-1:-1:-1;;;;;;132796:26:0;;;132430:400::o;130715:586::-;130800:15;130817:16;130846:26;130875:10;130886:5;;130875:17;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;130846:46;;;;;;;;;;;;;;;130875:17;130846:46;;;130875:17;130846:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130903:16;130922:9;:16;130903:35;;130949:21;130986:11;-1:-1:-1;;;;;130973:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130949:49;;131009:21;131047:11;-1:-1:-1;;;;;131033:26:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;131033:26:0;;131009:50;;131076:9;131072:189;131092:11;131090:1;:13;131072:189;;;131130:25;131142:9;131152:1;131142:12;;;;;;;;:::i;:::-;;;;;;;131130:11;:25::i;:::-;131126:39;131157:8;131126:39;131237:9;131247:1;131237:12;;;;;;;;:::i;:::-;;;;;;;131227:4;131232:1;131227:7;;;;;;;;:::i;:::-;;;;;;:22;;;;;131072:189;131106:3;;;;:::i;:::-;;;;131072:189;;;-1:-1:-1;131281:5:0;;-1:-1:-1;131288:4:0;-1:-1:-1;;;130715:586:0;;;;;;:::o;73288:147::-;73374:4;73398:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;73398:29:0;;;;;;;;;;;;;;;73288:147::o;88162:104::-;88218:13;88251:7;88244:14;;;;;:::i;135657:334::-;-1:-1:-1;;;;;;;;;;;72884:16:0;72895:4;72884:10;:16::i;:::-;135792::::1;135811:24;:14;21407::::0;;21315:114;135811:24:::1;135792:43;;135846:14;135854:5;;135846:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;135846:7:0::1;::::0;-1:-1:-1;;;135846:14:0:i:1;:::-;135871:10;135882:5;;135871:17;;;;;;;:::i;:::-;::::0;;;::::1;::::0;;;;;::::1;::::0;;;;;:32;;::::1;::::0;::::1;::::0;;-1:-1:-1;135871:32:0;;;;;;::::1;::::0;;;135914:7:::1;::::0;-1:-1:-1;;;135914:32:0;;-1:-1:-1;;;;;135914:7:0::1;::::0;:15:::1;::::0;:32:::1;::::0;135894:8;;135940:5;;;;135914:32:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;135957:26;:14;21526:19:::0;;21544:1;21526:19;;;21437:127;135957:26:::1;135781:210;135657:334:::0;;;;;:::o;89748:155::-;89843:52;44521:10;89876:8;89886;89843:18;:52::i;134055:105::-;-1:-1:-1;;;;;;;;;;;72884:16:0;72895:4;72884:10;:16::i;:::-;-1:-1:-1;;;;;;134131:14:0::1;;::::0;;;:6:::1;:14;::::0;;;;:21;;-1:-1:-1;;134131:21:0::1;134148:4;134131:21;::::0;;134055:105::o;90867:322::-;91041:41;44521:10;91074:7;91041:18;:41::i;:::-;91033:99;;;;-1:-1:-1;;;91033:99:0;;;;;;;:::i;:::-;91143:38;91157:4;91163:2;91167:7;91176:4;91143:13;:38::i;88337:281::-;88410:13;88436:23;88451:7;88436:14;:23::i;:::-;88472:21;88496:10;88944:9;;;;;;;;;-1:-1:-1;88944:9:0;;;88867:94;88496:10;88472:34;;88548:1;88530:7;88524:21;:25;:86;;;;;;;;;;;;;;;;;88576:7;88585:18;:7;:16;:18::i;:::-;88559:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;88524:86;88517:93;88337:281;-1:-1:-1;;;88337:281:0:o;127935:21::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;75696:149::-;74889:7;74916:12;;;:6;:12;;;;;:22;;;72884:16;72895:4;72884:10;:16::i;:::-;75811:26:::1;75823:4;75829:7;75811:11;:26::i;129724:646::-:0;129798:9;129794:315;129811:15;;;129794:315;;;129894:9;129874:18;129882:6;;129889:1;129882:9;;;;;;;:::i;:::-;;;;;;;129874:7;:18::i;:::-;-1:-1:-1;;;;;129874:29:0;;129848:116;;;;-1:-1:-1;;;129848:116:0;;14978:2:1;129848:116:0;;;14960:21:1;15017:2;14997:18;;;14990:30;-1:-1:-1;;;15036:18:1;;;15029:55;15101:18;;129848:116:0;14776:349:1;129848:116:0;130006:9;;-1:-1:-1;;;;;130006:9:0;:18;130025:6;;130032:1;130025:9;;;;;;;:::i;:::-;;;;;;;130006:29;;;;;;;;;;;;;537:25:1;;525:2;510:18;;391:177;130006:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;130005:30;129979:118;;;;-1:-1:-1;;;129979:118:0;;15582:2:1;129979:118:0;;;15564:21:1;15621:2;15601:18;;;15594:30;15660:28;15640:18;;;15633:56;15706:18;;129979:118:0;15380:350:1;129979:118:0;129828:3;;;;:::i;:::-;;;;129794:315;;;;130140:9;;130127;:22;;130119:66;;;;-1:-1:-1;;;130119:66:0;;21186:2:1;130119:66:0;;;21168:21:1;21225:2;21205:18;;;21198:30;21264:33;21244:18;;;21237:61;21315:18;;130119:66:0;20984:355:1;130119:66:0;130239:6;;130231:42;;130199:9;;;;-1:-1:-1;;;;;130239:6:0;;;;130259:9;;130199;130231:42;130199:9;130231:42;130259:9;130239:6;130231:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130198:75;;;;130292:4;130284:37;;;;-1:-1:-1;;;130284:37:0;;21756:2:1;130284:37:0;;;21738:21:1;21795:2;21775:18;;;21768:30;-1:-1:-1;;;21814:18:1;;;21807:50;21874:18;;130284:37:0;21554:344:1;130284:37:0;130339:23;130349:6;;130357:4;130339:23;;;;;;;;:::i;:::-;;;;;;;;129783:587;;129724:646;;:::o;135350:241::-;-1:-1:-1;;;;;;;;;;;72884:16:0;72895:4;72884:10;:16::i;:::-;135435::::1;135454:24;:14;21407::::0;;21315:114;135454:24:::1;135435:43;;135489:14;135497:5;;135489:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;135489:7:0::1;::::0;-1:-1:-1;;;135489:14:0:i:1;:::-;135514:10;135525:5;;135514:17;;;;;;;:::i;:::-;::::0;;;::::1;::::0;;;;;::::1;::::0;;;;;;:32;;::::1;::::0;::::1;::::0;;-1:-1:-1;135514:32:0;;;;;;::::1;::::0;;;135557:26:::1;:14;21526:19:::0;;21544:1;21526:19;;;21437:127;128786:440;-1:-1:-1;;;;;;;;;;;72884:16:0;72895:4;72884:10;:16::i;:::-;128943::::1;128962:24;:14;21407::::0;;21315:114;128962:24:::1;128943:43;;128997:24;129007:3;129012:8;128997:9;:24::i;:::-;129032:26;:14;21526:19:::0;;21544:1;21526:19;;;21437:127;129032:26:::1;129069:18;129077:9;;129069:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;129069:7:0::1;::::0;-1:-1:-1;;;129069:18:0:i:1;:::-;129098:20;::::0;;;:10:::1;:20;::::0;;;;:30:::1;129119:9:::0;;129098:20;:30:::1;:::i;:::-;;129139:10;129150:9;;129139:21;;;;;;;:::i;:::-;::::0;;;::::1;::::0;;;;;::::1;::::0;;;;;:36;;::::1;::::0;::::1;::::0;;-1:-1:-1;129139:36:0;;;;;;::::1;::::0;;;129186:7:::1;::::0;-1:-1:-1;;;129186:32:0;;-1:-1:-1;;;;;129186:7:0::1;::::0;:15:::1;::::0;:32:::1;::::0;129166:8;;129212:5;;;;129186:32:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;128932:294;128786:440:::0;;;;;;:::o;130433:109::-;72438:4;72884:16;72438:4;72884:10;:16::i;:::-;-1:-1:-1;130518:6:0::1;:16:::0;;-1:-1:-1;;;;;;130518:16:0::1;-1:-1:-1::0;;;;;130518:16:0;;;::::1;::::0;;;::::1;::::0;;130433:109::o;72992:204::-;73077:4;-1:-1:-1;;;;;;73101:47:0;;-1:-1:-1;;;73101:47:0;;:87;;;73152:36;73176:11;73152:23;:36::i;73739:105::-;73806:30;73817:4;44521:10;73806;:30::i;99324:135::-;92992:4;92590:16;;;:7;:16;;;;;;-1:-1:-1;;;;;92590:16:0;99398:53;;;;-1:-1:-1;;;99398:53:0;;18408:2:1;99398:53:0;;;18390:21:1;18447:2;18427:18;;;18420:30;-1:-1:-1;;;18466:18:1;;;18459:54;18530:18;;99398:53:0;18206:348:1;98603:174:0;98678:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;98678:29:0;-1:-1:-1;;;;;98678:29:0;;;;;;;;:24;;98732:23;98678:24;98732:14;:23::i;:::-;-1:-1:-1;;;;;98723:46:0;;;;;;;;;;;98603:174;;:::o;93222:264::-;93315:4;93332:13;93348:23;93363:7;93348:14;:23::i;:::-;93332:39;;93401:5;-1:-1:-1;;;;;93390:16:0;:7;-1:-1:-1;;;;;93390:16:0;;:52;;;-1:-1:-1;;;;;;90095:25:0;;;90071:4;90095:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;93410:32;93390:87;;;;93470:7;-1:-1:-1;;;;;93446:31:0;:20;93458:7;93446:11;:20::i;:::-;-1:-1:-1;;;;;93446:31:0;;93390:87;93382:96;93222:264;-1:-1:-1;;;;93222:264:0:o;97221:1263::-;97380:4;-1:-1:-1;;;;;97353:31:0;:23;97368:7;97353:14;:23::i;:::-;-1:-1:-1;;;;;97353:31:0;;97345:81;;;;-1:-1:-1;;;97345:81:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;97445:16:0;;97437:65;;;;-1:-1:-1;;;97437:65:0;;23119:2:1;97437:65:0;;;23101:21:1;23158:2;23138:18;;;23131:30;23197:34;23177:18;;;23170:62;-1:-1:-1;;;23248:18:1;;;23241:34;23292:19;;97437:65:0;22917:400:1;97437:65:0;97515:42;97536:4;97542:2;97546:7;97555:1;97515:20;:42::i;:::-;97687:4;-1:-1:-1;;;;;97660:31:0;:23;97675:7;97660:14;:23::i;:::-;-1:-1:-1;;;;;97660:31:0;;97652:81;;;;-1:-1:-1;;;97652:81:0;;;;;;;:::i;:::-;97805:24;;;;:15;:24;;;;;;;;97798:31;;-1:-1:-1;;;;;;97798:31:0;;;;;;-1:-1:-1;;;;;98281:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;98281:20:0;;;98316:13;;;;;;;;;:18;;97798:31;98316:18;;;98356:16;;;:7;:16;;;;;;:21;;;;;;;;;;98395:27;;97821:7;;98395:27;;;89093:346;89023:416;;:::o;77997:238::-;78081:22;78089:4;78095:7;78081;:22::i;:::-;78076:152;;78120:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;78120:29:0;;;;;;;;;:36;;-1:-1:-1;;78120:36:0;78152:4;78120:36;;;78203:12;44521:10;;44441:98;78203:12;-1:-1:-1;;;;;78176:40:0;78194:7;-1:-1:-1;;;;;78176:40:0;78188:4;78176:40;;;;;;;;;;77997:238;;:::o;78415:239::-;78499:22;78507:4;78513:7;78499;:22::i;:::-;78495:152;;;78570:5;78538:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;78538:29:0;;;;;;;;;;:37;;-1:-1:-1;;78538:37:0;;;78595:40;44521:10;;78538:12;;78595:40;;78570:5;78595:40;78415:239;;:::o;93828:110::-;93904:26;93914:2;93918:7;93904:26;;;;;;;;;;;;:9;:26::i;96101:783::-;96161:13;96177:23;96192:7;96177:14;:23::i;:::-;96161:39;;96213:51;96234:5;96249:1;96253:7;96262:1;96213:20;:51::i;:::-;96377:23;96392:7;96377:14;:23::i;:::-;96448:24;;;;:15;:24;;;;;;;;96441:31;;-1:-1:-1;;;;;;96441:31:0;;;;;;-1:-1:-1;;;;;96693:16:0;;;;;:9;:16;;;;;:21;;-1:-1:-1;;96693:21:0;;;96743:16;;;:7;:16;;;;;;96736:23;;;;;;;96777:36;96369:31;;-1:-1:-1;96464:7:0;;96777:36;;96448:24;;96777:36;132902:298;;:::o;94820:942::-;-1:-1:-1;;;;;94900:16:0;;94892:61;;;;-1:-1:-1;;;94892:61:0;;23524:2:1;94892:61:0;;;23506:21:1;;;23543:18;;;23536:30;23602:34;23582:18;;;23575:62;23654:18;;94892:61:0;23322:356:1;94892:61:0;92992:4;92590:16;;;:7;:16;;;;;;-1:-1:-1;;;;;92590:16:0;93016:31;94964:58;;;;-1:-1:-1;;;94964:58:0;;23885:2:1;94964:58:0;;;23867:21:1;23924:2;23904:18;;;23897:30;23963;23943:18;;;23936:58;24011:18;;94964:58:0;23683:352:1;94964:58:0;95035:48;95064:1;95068:2;95072:7;95081:1;95035:20;:48::i;:::-;92992:4;92590:16;;;:7;:16;;;;;;-1:-1:-1;;;;;92590:16:0;93016:31;95173:58;;;;-1:-1:-1;;;95173:58:0;;23885:2:1;95173:58:0;;;23867:21:1;23924:2;23904:18;;;23897:30;23963;23943:18;;;23936:58;24011:18;;95173:58:0;23683:352:1;95173:58:0;-1:-1:-1;;;;;95580:13:0;;;;;;:9;:13;;;;;;;;:18;;95597:1;95580:18;;;95622:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;95622:21:0;;;;;95661:33;95630:7;;95580:13;;95661:33;;95580:13;;95661:33;132902:298;;:::o;136032:171::-;136094:10;136105:5;136094:17;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;136090:106;;136148:4;136128:10;136139:5;136128:17;;;;;;:::i;:::-;;;;;;;;;;;;;;:24;;;;;-1:-1:-1;;136128:24:0;;;;;;;;;136167:5;:17;;136128:24;136167:17;;;;136128;136167;;;;;;;136178:5;136167:17;;:::i;98920:315::-;99075:8;-1:-1:-1;;;;;99066:17:0;:5;-1:-1:-1;;;;;99066:17:0;;99058:55;;;;-1:-1:-1;;;99058:55:0;;25893:2:1;99058:55:0;;;25875:21:1;25932:2;25912:18;;;25905:30;25971:27;25951:18;;;25944:55;26016:18;;99058:55:0;25691:349:1;99058:55:0;-1:-1:-1;;;;;99124:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;99124:46:0;;;;;;;;;;99186:41;;339::1;;;99186::0;;312:18:1;99186:41:0;;;;;;;98920:315;;;:::o;92070:313::-;92226:28;92236:4;92242:2;92246:7;92226:9;:28::i;:::-;92273:47;92296:4;92302:2;92306:7;92315:4;92273:22;:47::i;:::-;92265:110;;;;-1:-1:-1;;;92265:110:0;;;;;;;:::i;41868:716::-;41924:13;41975:14;41992:17;42003:5;41992:10;:17::i;:::-;42012:1;41992:21;41975:38;;42028:20;42062:6;-1:-1:-1;;;;;42051:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42051:18:0;-1:-1:-1;42028:41:0;-1:-1:-1;42193:28:0;;;42209:2;42193:28;42250:288;-1:-1:-1;;42282:5:0;-1:-1:-1;;;42419:2:0;42408:14;;42403:30;42282:5;42390:44;42480:2;42471:11;;;-1:-1:-1;42501:21:0;42250:288;42501:21;-1:-1:-1;42559:6:0;41868:716;-1:-1:-1;;;41868:716:0:o;103931:224::-;104033:4;-1:-1:-1;;;;;;104057:50:0;;-1:-1:-1;;;104057:50:0;;:90;;;104111:36;104135:11;104111:23;:36::i;74134:492::-;74223:22;74231:4;74237:7;74223;:22::i;:::-;74218:401;;74411:28;74431:7;74411:19;:28::i;:::-;74512:38;74540:4;74547:2;74512:19;:38::i;:::-;74316:257;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;74316:257:0;;;;;;;;;;-1:-1:-1;;;74262:345:0;;;;;;;:::i;136409:234::-;136579:56;136606:4;136612:2;136616:7;136625:9;136579:26;:56::i;94165:319::-;94294:18;94300:2;94304:7;94294:5;:18::i;:::-;94345:53;94376:1;94380:2;94384:7;94393:4;94345:22;:53::i;:::-;94323:153;;;;-1:-1:-1;;;94323:153:0;;;;;;;:::i;100023:853::-;100177:4;-1:-1:-1;;;;;100198:13:0;;59515:19;:23;100194:675;;100234:71;;-1:-1:-1;;;100234:71:0;;-1:-1:-1;;;;;100234:36:0;;;;;:71;;44521:10;;100285:4;;100291:7;;100300:4;;100234:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;100234:71:0;;;;;;;;-1:-1:-1;;100234:71:0;;;;;;;;;;;;:::i;:::-;;;100230:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100475:6;:13;100492:1;100475:18;100471:328;;100518:60;;-1:-1:-1;;;100518:60:0;;;;;;;:::i;100471:328::-;100749:6;100743:13;100734:6;100730:2;100726:15;100719:38;100230:584;-1:-1:-1;;;;;;100356:51:0;-1:-1:-1;;;100356:51:0;;-1:-1:-1;100349:58:0;;100194:675;-1:-1:-1;100853:4:0;100023:853;;;;;;:::o;38734:922::-;38787:7;;-1:-1:-1;;;38865:15:0;;38861:102;;-1:-1:-1;;;38901:15:0;;;-1:-1:-1;38945:2:0;38935:12;38861:102;38990:6;38981:5;:15;38977:102;;39026:6;39017:15;;;-1:-1:-1;39061:2:0;39051:12;38977:102;39106:6;39097:5;:15;39093:102;;39142:6;39133:15;;;-1:-1:-1;39177:2:0;39167:12;39093:102;39222:5;39213;:14;39209:99;;39257:5;39248:14;;;-1:-1:-1;39291:1:0;39281:11;39209:99;39335:5;39326;:14;39322:99;;39370:5;39361:14;;;-1:-1:-1;39404:1:0;39394:11;39322:99;39448:5;39439;:14;39435:99;;39483:5;39474:14;;;-1:-1:-1;39517:1:0;39507:11;39435:99;39561:5;39552;:14;39548:66;;39597:1;39587:11;39642:6;38734:922;-1:-1:-1;;38734:922:0:o;87065:305::-;87167:4;-1:-1:-1;;;;;;87204:40:0;;-1:-1:-1;;;87204:40:0;;:105;;-1:-1:-1;;;;;;;87261:48:0;;-1:-1:-1;;;87261:48:0;87204:105;:158;;;-1:-1:-1;;;;;;;;;;70360:40:0;;;87326:36;70251:157;43604:151;43662:13;43695:52;-1:-1:-1;;;;;43707:22:0;;41759:2;43000:447;43075:13;43101:19;43133:10;43137:6;43133:1;:10;:::i;:::-;:14;;43146:1;43133:14;:::i;:::-;-1:-1:-1;;;;;43123:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43123:25:0;;43101:47;;-1:-1:-1;;;43159:6:0;43166:1;43159:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;43159:15:0;;;;;;;;;-1:-1:-1;;;43185:6:0;43192:1;43185:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;43185:15:0;;;;;;;;-1:-1:-1;43216:9:0;43228:10;43232:6;43228:1;:10;:::i;:::-;:14;;43241:1;43228:14;:::i;:::-;43216:26;;43211:131;43248:1;43244;:5;43211:131;;;-1:-1:-1;;;43292:5:0;43300:3;43292:11;43283:21;;;;;;;:::i;:::-;;;;43271:6;43278:1;43271:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;43271:33:0;;;;;;;;-1:-1:-1;43329:1:0;43319:11;;;;;43251:3;;;:::i;:::-;;;43211:131;;;-1:-1:-1;43360:10:0;;43352:55;;;;-1:-1:-1;;;43352:55:0;;28807:2:1;43352:55:0;;;28789:21:1;;;28826:18;;;28819:30;28885:34;28865:18;;;28858:62;28937:18;;43352:55:0;28605:356:1;105068:915:0;105245:61;105272:4;105278:2;105282:12;105296:9;105245:26;:61::i;:::-;105335:1;105323:9;:13;105319:222;;;105466:63;;-1:-1:-1;;;105466:63:0;;29168:2:1;105466:63:0;;;29150:21:1;29207:2;29187:18;;;29180:30;29246:34;29226:18;;;29219:62;-1:-1:-1;;;29297:18:1;;;29290:51;29358:19;;105466:63:0;28966:417:1;105319:222:0;105571:12;-1:-1:-1;;;;;105600:18:0;;105596:187;;105635:40;105667:7;106810:10;:17;;106783:24;;;;:15;:24;;;;;:44;;;106838:24;;;;;;;;;;;;106706:164;105635:40;105596:187;;;105705:2;-1:-1:-1;;;;;105697:10:0;:4;-1:-1:-1;;;;;105697:10:0;;105693:90;;105724:47;105757:4;105763:7;105724:32;:47::i;:::-;-1:-1:-1;;;;;105797:16:0;;105793:183;;105830:45;105867:7;105830:36;:45::i;:::-;105793:183;;;105903:4;-1:-1:-1;;;;;105897:10:0;:2;-1:-1:-1;;;;;105897:10:0;;105893:83;;105924:40;105952:2;105956:7;105924:27;:40::i;:::-;105234:749;105068:915;;;;:::o;101608:410::-;101798:1;101786:9;:13;101782:229;;;-1:-1:-1;;;;;101820:18:0;;;101816:87;;-1:-1:-1;;;;;101859:15:0;;;;;;:9;:15;;;;;:28;;101878:9;;101859:15;:28;;101878:9;;101859:28;:::i;:::-;;;;-1:-1:-1;;101816:87:0;-1:-1:-1;;;;;101921:16:0;;;101917:83;;-1:-1:-1;;;;;101958:13:0;;;;;;:9;:13;;;;;:26;;101975:9;;101958:13;:26;;101975:9;;101958:26;:::i;:::-;;;;-1:-1:-1;;101608:410:0;;;;:::o;107497:988::-;107763:22;107813:1;107788:22;107805:4;107788:16;:22::i;:::-;:26;;;;:::i;:::-;107825:18;107846:26;;;:17;:26;;;;;;107763:51;;-1:-1:-1;107979:28:0;;;107975:328;;-1:-1:-1;;;;;108046:18:0;;108024:19;108046:18;;;:12;:18;;;;;;;;:34;;;;;;;;;108097:30;;;;;;:44;;;108214:30;;:17;:30;;;;;:43;;;107975:328;-1:-1:-1;108399:26:0;;;;:17;:26;;;;;;;;108392:33;;;-1:-1:-1;;;;;108443:18:0;;;;;:12;:18;;;;;:34;;;;;;;108436:41;107497:988::o;108780:1079::-;109058:10;:17;109033:22;;109058:21;;109078:1;;109058:21;:::i;:::-;109090:18;109111:24;;;:15;:24;;;;;;109484:10;:26;;109033:46;;-1:-1:-1;109111:24:0;;109033:46;;109484:26;;;;;;:::i;:::-;;;;;;;;;109462:48;;109548:11;109523:10;109534;109523:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;109628:28;;;:15;:28;;;;;;;:41;;;109800:24;;;;;109793:31;109835:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;108851:1008;;;108780:1079;:::o;106284:221::-;106369:14;106386:20;106403:2;106386:16;:20::i;:::-;-1:-1:-1;;;;;106417:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;106462:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;106284:221:0:o;14:180:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:1;;14:180;-1:-1:-1;14:180:1:o;573:131::-;-1:-1:-1;;;;;;647:32:1;;637:43;;627:71;;694:1;691;684:12;709:245;767:6;820:2;808:9;799:7;795:23;791:32;788:52;;;836:1;833;826:12;788:52;875:9;862:23;894:30;918:5;894:30;:::i;959:173::-;1027:20;;-1:-1:-1;;;;;1076:31:1;;1066:42;;1056:70;;1122:1;1119;1112:12;1056:70;959:173;;;:::o;1137:186::-;1196:6;1249:2;1237:9;1228:7;1224:23;1220:32;1217:52;;;1265:1;1262;1255:12;1217:52;1288:29;1307:9;1288:29;:::i;1565:250::-;1650:1;1660:113;1674:6;1671:1;1668:13;1660:113;;;1750:11;;;1744:18;1731:11;;;1724:39;1696:2;1689:10;1660:113;;;-1:-1:-1;;1807:1:1;1789:16;;1782:27;1565:250::o;1820:271::-;1862:3;1900:5;1894:12;1927:6;1922:3;1915:19;1943:76;2012:6;2005:4;2000:3;1996:14;1989:4;1982:5;1978:16;1943:76;:::i;:::-;2073:2;2052:15;-1:-1:-1;;2048:29:1;2039:39;;;;2080:4;2035:50;;1820:271;-1:-1:-1;;1820:271:1:o;2096:220::-;2245:2;2234:9;2227:21;2208:4;2265:45;2306:2;2295:9;2291:18;2283:6;2265:45;:::i;2529:254::-;2597:6;2605;2658:2;2646:9;2637:7;2633:23;2629:32;2626:52;;;2674:1;2671;2664:12;2626:52;2697:29;2716:9;2697:29;:::i;:::-;2687:39;2773:2;2758:18;;;;2745:32;;-1:-1:-1;;;2529:254:1:o;2970:328::-;3047:6;3055;3063;3116:2;3104:9;3095:7;3091:23;3087:32;3084:52;;;3132:1;3129;3122:12;3084:52;3155:29;3174:9;3155:29;:::i;:::-;3145:39;;3203:38;3237:2;3226:9;3222:18;3203:38;:::i;:::-;3193:48;;3288:2;3277:9;3273:18;3260:32;3250:42;;2970:328;;;;;:::o;3488:254::-;3556:6;3564;3617:2;3605:9;3596:7;3592:23;3588:32;3585:52;;;3633:1;3630;3623:12;3585:52;3669:9;3656:23;3646:33;;3698:38;3732:2;3721:9;3717:18;3698:38;:::i;:::-;3688:48;;3488:254;;;;;:::o;3982:435::-;4035:3;4073:5;4067:12;4100:6;4095:3;4088:19;4126:4;4155:2;4150:3;4146:12;4139:19;;4192:2;4185:5;4181:14;4213:1;4223:169;4237:6;4234:1;4231:13;4223:169;;;4298:13;;4286:26;;4332:12;;;;4367:15;;;;4259:1;4252:9;4223:169;;;-1:-1:-1;4408:3:1;;3982:435;-1:-1:-1;;;;;3982:435:1:o;4422:261::-;4601:2;4590:9;4583:21;4564:4;4621:56;4673:2;4662:9;4658:18;4650:6;4621:56;:::i;4688:348::-;4740:8;4750:6;4804:3;4797:4;4789:6;4785:17;4781:27;4771:55;;4822:1;4819;4812:12;4771:55;-1:-1:-1;4845:20:1;;-1:-1:-1;;;;;4877:30:1;;4874:50;;;4920:1;4917;4910:12;4874:50;4957:4;4949:6;4945:17;4933:29;;5009:3;5002:4;4993:6;4985;4981:19;4977:30;4974:39;4971:59;;;5026:1;5023;5016:12;5041:411;5112:6;5120;5173:2;5161:9;5152:7;5148:23;5144:32;5141:52;;;5189:1;5186;5179:12;5141:52;5229:9;5216:23;-1:-1:-1;;;;;5254:6:1;5251:30;5248:50;;;5294:1;5291;5284:12;5248:50;5333:59;5384:7;5375:6;5364:9;5360:22;5333:59;:::i;:::-;5411:8;;5307:85;;-1:-1:-1;5041:411:1;-1:-1:-1;;;;5041:411:1:o;5457:615::-;5543:6;5551;5604:2;5592:9;5583:7;5579:23;5575:32;5572:52;;;5620:1;5617;5610:12;5572:52;5660:9;5647:23;-1:-1:-1;;;;;5730:2:1;5722:6;5719:14;5716:34;;;5746:1;5743;5736:12;5716:34;5784:6;5773:9;5769:22;5759:32;;5829:7;5822:4;5818:2;5814:13;5810:27;5800:55;;5851:1;5848;5841:12;5800:55;5891:2;5878:16;5917:2;5909:6;5906:14;5903:34;;;5933:1;5930;5923:12;5903:34;5986:7;5981:2;5971:6;5968:1;5964:14;5960:2;5956:23;5952:32;5949:45;5946:65;;;6007:1;6004;5997:12;5946:65;6038:2;6030:11;;;;;6060:6;;-1:-1:-1;5457:615:1;;-1:-1:-1;;;;5457:615:1:o;6077:616::-;6129:3;6167:5;6161:12;6194:6;6189:3;6182:19;6220:4;6261:2;6256:3;6252:12;6286:11;6313;6306:18;;6363:6;6360:1;6356:14;6349:5;6345:26;6333:38;;6405:2;6398:5;6394:14;6426:1;6436:231;6450:6;6447:1;6444:13;6436:231;;;6521:5;6515:4;6511:16;6506:3;6499:29;6549:38;6582:4;6573:6;6567:13;6549:38;:::i;:::-;6645:12;;;;6541:46;-1:-1:-1;6610:15:1;;;;6472:1;6465:9;6436:231;;;-1:-1:-1;6683:4:1;;6077:616;-1:-1:-1;;;;;;;6077:616:1:o;6698:280::-;6897:2;6886:9;6879:21;6860:4;6917:55;6968:2;6957:9;6953:18;6945:6;6917:55;:::i;7218:484::-;7495:2;7484:9;7477:21;7458:4;7521:55;7572:2;7561:9;7557:18;7549:6;7521:55;:::i;:::-;7624:9;7616:6;7612:22;7607:2;7596:9;7592:18;7585:50;7652:44;7689:6;7681;7652:44;:::i;:::-;7644:52;7218:484;-1:-1:-1;;;;;7218:484:1:o;7707:721::-;7799:6;7807;7815;7823;7876:2;7864:9;7855:7;7851:23;7847:32;7844:52;;;7892:1;7889;7882:12;7844:52;7932:9;7919:23;-1:-1:-1;;;;;8002:2:1;7994:6;7991:14;7988:34;;;8018:1;8015;8008:12;7988:34;8057:59;8108:7;8099:6;8088:9;8084:22;8057:59;:::i;:::-;8135:8;;-1:-1:-1;8031:85:1;-1:-1:-1;8223:2:1;8208:18;;8195:32;;-1:-1:-1;8239:16:1;;;8236:36;;;8268:1;8265;8258:12;8236:36;;8307:61;8360:7;8349:8;8338:9;8334:24;8307:61;:::i;:::-;7707:721;;;;-1:-1:-1;8387:8:1;-1:-1:-1;;;;7707:721:1:o;8433:118::-;8519:5;8512:13;8505:21;8498:5;8495:32;8485:60;;8541:1;8538;8531:12;8556:315;8621:6;8629;8682:2;8670:9;8661:7;8657:23;8653:32;8650:52;;;8698:1;8695;8688:12;8650:52;8721:29;8740:9;8721:29;:::i;:::-;8711:39;;8800:2;8789:9;8785:18;8772:32;8813:28;8835:5;8813:28;:::i;:::-;8860:5;8850:15;;;8556:315;;;;;:::o;8876:127::-;8937:10;8932:3;8928:20;8925:1;8918:31;8968:4;8965:1;8958:15;8992:4;8989:1;8982:15;9008:1138;9103:6;9111;9119;9127;9180:3;9168:9;9159:7;9155:23;9151:33;9148:53;;;9197:1;9194;9187:12;9148:53;9220:29;9239:9;9220:29;:::i;:::-;9210:39;;9268:38;9302:2;9291:9;9287:18;9268:38;:::i;:::-;9258:48;;9353:2;9342:9;9338:18;9325:32;9315:42;;9408:2;9397:9;9393:18;9380:32;-1:-1:-1;;;;;9472:2:1;9464:6;9461:14;9458:34;;;9488:1;9485;9478:12;9458:34;9526:6;9515:9;9511:22;9501:32;;9571:7;9564:4;9560:2;9556:13;9552:27;9542:55;;9593:1;9590;9583:12;9542:55;9629:2;9616:16;9651:2;9647;9644:10;9641:36;;;9657:18;;:::i;:::-;9732:2;9726:9;9700:2;9786:13;;-1:-1:-1;;9782:22:1;;;9806:2;9778:31;9774:40;9762:53;;;9830:18;;;9850:22;;;9827:46;9824:72;;;9876:18;;:::i;:::-;9916:10;9912:2;9905:22;9951:2;9943:6;9936:18;9991:7;9986:2;9981;9977;9973:11;9969:20;9966:33;9963:53;;;10012:1;10009;10002:12;9963:53;10068:2;10063;10059;10055:11;10050:2;10042:6;10038:15;10025:46;10113:1;10108:2;10103;10095:6;10091:15;10087:24;10080:35;10134:6;10124:16;;;;;;;9008:1138;;;;;;;:::o;10151:260::-;10219:6;10227;10280:2;10268:9;10259:7;10255:23;10251:32;10248:52;;;10296:1;10293;10286:12;10248:52;10319:29;10338:9;10319:29;:::i;:::-;10309:39;;10367:38;10401:2;10390:9;10386:18;10367:38;:::i;10416:795::-;10517:6;10525;10533;10541;10549;10602:2;10590:9;10581:7;10577:23;10573:32;10570:52;;;10618:1;10615;10608:12;10570:52;10641:29;10660:9;10641:29;:::i;:::-;10631:39;;10721:2;10710:9;10706:18;10693:32;-1:-1:-1;;;;;10785:2:1;10777:6;10774:14;10771:34;;;10801:1;10798;10791:12;10771:34;10840:59;10891:7;10882:6;10871:9;10867:22;10840:59;:::i;:::-;10918:8;;-1:-1:-1;10814:85:1;-1:-1:-1;11006:2:1;10991:18;;10978:32;;-1:-1:-1;11022:16:1;;;11019:36;;;11051:1;11048;11041:12;11019:36;;11090:61;11143:7;11132:8;11121:9;11117:24;11090:61;:::i;:::-;10416:795;;;;-1:-1:-1;10416:795:1;;-1:-1:-1;11170:8:1;;11064:87;10416:795;-1:-1:-1;;;10416:795:1:o;11216:380::-;11295:1;11291:12;;;;11338;;;11359:61;;11413:4;11405:6;11401:17;11391:27;;11359:61;11466:2;11458:6;11455:14;11435:18;11432:38;11429:161;;11512:10;11507:3;11503:20;11500:1;11493:31;11547:4;11544:1;11537:15;11575:4;11572:1;11565:15;11429:161;;11216:380;;;:::o;12433:409::-;12635:2;12617:21;;;12674:2;12654:18;;;12647:30;12713:34;12708:2;12693:18;;12686:62;-1:-1:-1;;;12779:2:1;12764:18;;12757:43;12832:3;12817:19;;12433:409::o;13675:127::-;13736:10;13731:3;13727:20;13724:1;13717:31;13767:4;13764:1;13757:15;13791:4;13788:1;13781:15;13807:127;13868:10;13863:3;13859:20;13856:1;13849:31;13899:4;13896:1;13889:15;13923:4;13920:1;13913:15;13939:135;13978:3;13999:17;;;13996:43;;14019:18;;:::i;:::-;-1:-1:-1;14066:1:1;14055:13;;13939:135::o;15130:245::-;15197:6;15250:2;15238:9;15229:7;15225:23;15221:32;15218:52;;;15266:1;15263;15256:12;15218:52;15298:9;15292:16;15317:28;15339:5;15317:28;:::i;16274:545::-;16376:2;16371:3;16368:11;16365:448;;;16412:1;16437:5;16433:2;16426:17;16482:4;16478:2;16468:19;16552:2;16540:10;16536:19;16533:1;16529:27;16523:4;16519:38;16588:4;16576:10;16573:20;16570:47;;;-1:-1:-1;16611:4:1;16570:47;16666:2;16661:3;16657:12;16654:1;16650:20;16644:4;16640:31;16630:41;;16721:82;16739:2;16732:5;16729:13;16721:82;;;16784:17;;;16765:1;16754:13;16721:82;;16995:1206;-1:-1:-1;;;;;17114:3:1;17111:27;17108:53;;;17141:18;;:::i;:::-;17170:94;17260:3;17220:38;17252:4;17246:11;17220:38;:::i;:::-;17214:4;17170:94;:::i;:::-;17290:1;17315:2;17310:3;17307:11;17332:1;17327:616;;;;17987:1;18004:3;18001:93;;;-1:-1:-1;18060:19:1;;;18047:33;18001:93;-1:-1:-1;;16952:1:1;16948:11;;;16944:24;16940:29;16930:40;16976:1;16972:11;;;16927:57;18107:78;;17300:895;;17327:616;16221:1;16214:14;;;16258:4;16245:18;;-1:-1:-1;;17363:17:1;;;17464:9;17486:229;17500:7;17497:1;17494:14;17486:229;;;17589:19;;;17576:33;17561:49;;17696:4;17681:20;;;;17649:1;17637:14;;;;17516:12;17486:229;;;17490:3;17743;17734:7;17731:16;17728:159;;;17867:1;17863:6;17857:3;17851;17848:1;17844:11;17840:21;17836:34;17832:39;17819:9;17814:3;17810:19;17797:33;17793:79;17785:6;17778:95;17728:159;;;17930:1;17924:3;17921:1;17917:11;17913:19;17907:4;17900:33;17300:895;;16995:1206;;;:::o;19739:273::-;19924:6;19916;19911:3;19898:33;19880:3;19950:16;;19975:13;;;19950:16;19739:273;-1:-1:-1;19739:273:1:o;20017:461::-;20204:6;20193:9;20186:25;20247:2;20242;20231:9;20227:18;20220:30;20286:6;20281:2;20270:9;20266:18;20259:34;20343:6;20335;20330:2;20319:9;20315:18;20302:48;20399:1;20370:22;;;20394:2;20366:31;;;20359:42;;;;20462:2;20441:15;;;-1:-1:-1;;20437:29:1;20422:45;20418:54;;20017:461;-1:-1:-1;;20017:461:1:o;20483:496::-;20662:3;20700:6;20694:13;20716:66;20775:6;20770:3;20763:4;20755:6;20751:17;20716:66;:::i;:::-;20845:13;;20804:16;;;;20867:70;20845:13;20804:16;20914:4;20902:17;;20867:70;:::i;:::-;20953:20;;20483:496;-1:-1:-1;;;;20483:496:1:o;21903:603::-;22138:2;22120:21;;;22157:18;;22150:34;;;-1:-1:-1;;;;;;22196:31:1;;22193:51;;;22240:1;22237;22230:12;22193:51;22274:6;22271:1;22267:14;22331:6;22323;22318:2;22307:9;22303:18;22290:48;22357:22;;22421:18;;;22441:2;22417:27;;;22410:4;22395:20;;22388:57;22462:38;;22488:11;;22480:6;22462:38;:::i;:::-;22454:46;21903:603;-1:-1:-1;;;;;;21903:603:1:o;22511:401::-;22713:2;22695:21;;;22752:2;22732:18;;;22725:30;22791:34;22786:2;22771:18;;22764:62;-1:-1:-1;;;22857:2:1;22842:18;;22835:35;22902:3;22887:19;;22511:401::o;24040:289::-;24171:3;24209:6;24203:13;24225:66;24284:6;24279:3;24272:4;24264:6;24260:17;24225:66;:::i;:::-;24307:16;;;;;24040:289;-1:-1:-1;;24040:289:1:o;24334:1352::-;24460:3;24454:10;-1:-1:-1;;;;;24479:6:1;24476:30;24473:56;;;24509:18;;:::i;:::-;24538:97;24628:6;24588:38;24620:4;24614:11;24588:38;:::i;:::-;24582:4;24538:97;:::i;:::-;24690:4;;24754:2;24743:14;;24771:1;24766:663;;;;25473:1;25490:6;25487:89;;;-1:-1:-1;25542:19:1;;;25536:26;25487:89;-1:-1:-1;;16952:1:1;16948:11;;;16944:24;16940:29;16930:40;16976:1;16972:11;;;16927:57;25589:81;;24736:944;;24766:663;16221:1;16214:14;;;16258:4;16245:18;;-1:-1:-1;;24802:20:1;;;24920:236;24934:7;24931:1;24928:14;24920:236;;;25023:19;;;25017:26;25002:42;;25115:27;;;;25083:1;25071:14;;;;24950:19;;24920:236;;;24924:3;25184:6;25175:7;25172:19;25169:201;;;25245:19;;;25239:26;-1:-1:-1;;25328:1:1;25324:14;;;25340:3;25320:24;25316:37;25312:42;25297:58;25282:74;;25169:201;-1:-1:-1;;;;;25416:1:1;25400:14;;;25396:22;25383:36;;-1:-1:-1;24334:1352:1:o;26045:414::-;26247:2;26229:21;;;26286:2;26266:18;;;26259:30;26325:34;26320:2;26305:18;;26298:62;-1:-1:-1;;;26391:2:1;26376:18;;26369:48;26449:3;26434:19;;26045:414::o;26596:812::-;27007:25;27002:3;26995:38;26977:3;27062:6;27056:13;27078:75;27146:6;27141:2;27136:3;27132:12;27125:4;27117:6;27113:17;27078:75;:::i;:::-;-1:-1:-1;;;27212:2:1;27172:16;;;27204:11;;;27197:40;27262:13;;27284:76;27262:13;27346:2;27338:11;;27331:4;27319:17;;27284:76;:::i;:::-;27380:17;27399:2;27376:26;;26596:812;-1:-1:-1;;;;26596:812:1:o;27413:489::-;-1:-1:-1;;;;;27682:15:1;;;27664:34;;27734:15;;27729:2;27714:18;;27707:43;27781:2;27766:18;;27759:34;;;27829:3;27824:2;27809:18;;27802:31;;;27607:4;;27850:46;;27876:19;;27868:6;27850:46;:::i;27907:249::-;27976:6;28029:2;28017:9;28008:7;28004:23;28000:32;27997:52;;;28045:1;28042;28035:12;27997:52;28077:9;28071:16;28096:30;28120:5;28096:30;:::i;28161:168::-;28234:9;;;28265;;28282:15;;;28276:22;;28262:37;28252:71;;28303:18;;:::i;28334:125::-;28399:9;;;28420:10;;;28417:36;;;28433:18;;:::i;28464:136::-;28503:3;28531:5;28521:39;;28540:18;;:::i;:::-;-1:-1:-1;;;28576:18:1;;28464:136::o;29388:128::-;29455:9;;;29476:11;;;29473:37;;;29490:18;;:::i;29521:127::-;29582:10;29577:3;29573:20;29570:1;29563:31;29613:4;29610:1;29603:15;29637:4;29634:1;29627:15

Swarm Source

ipfs://e56993b0a51d78e6945c538cf7442c259009cbca3106c8c5034a6c46d1dae8f4
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.