Token Membership Test

Overview BRC721

Total Supply:
1 ABCD

Holders:
1 addresses

Transfers:
-

Profile Summary

 
Contract:
0xeb67683da8c22aa80b2a4bb3331eaa2dbad6fe710xeb67683da8C22Aa80B2A4bB3331EAa2DBad6Fe71

Loading
[ Download CSV Export  ] 
Loading
Loading

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

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xbE2B870897B1A05B362ef4B1db79135bF29249E8

Contract Name:
Membership

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 2 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @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 3 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @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 4 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @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 5 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// 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 6 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library 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 7 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * 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 10 of 17 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library 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 11 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @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 12 of 17 : IERC3525.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

/**
 * @title ERC-3525 Semi-Fungible Token Standard
 * @dev See https://eips.ethereum.org/EIPS/eip-3525
 * Note: the ERC-165 identifier for this interface is 0xc97ae3d5.
 */
interface IERC3525 is IERC165, IERC721 {
    /**
     * @dev MUST emit when value of a token is transferred to another token with the same slot,
     *  including zero value transfers (_value == 0) as well as transfers when tokens are created
     *  (`_fromTokenId` == 0) or destroyed (`_toTokenId` == 0).
     * @param _fromTokenId The token id to transfer value from
     * @param _toTokenId The token id to transfer value to
     * @param _value The transferred value
     */
    event TransferValue(
        uint256 indexed _fromTokenId,
        uint256 indexed _toTokenId,
        uint256 _value
    );

    /**
     * @dev MUST emits when the approval value of a token is set or changed.
     * @param _tokenId The token to approve
     * @param _operator The operator to approve for
     * @param _value The maximum value that `_operator` is allowed to manage
     */
    event ApprovalValue(
        uint256 indexed _tokenId,
        address indexed _operator,
        uint256 _value
    );

    /**
     * @dev MUST emit when the slot of a token is set or changed.
     * @param _tokenId The token of which slot is set or changed
     * @param _oldSlot The previous slot of the token
     * @param _newSlot The updated slot of the token
     */
    event SlotChanged(
        uint256 indexed _tokenId,
        uint256 indexed _oldSlot,
        uint256 indexed _newSlot
    );

    /**
     * @notice Get the number of decimals the token uses for value - e.g. 6, means the user
     *  representation of the value of a token can be calculated by dividing it by 1,000,000.
     *  Considering the compatibility with third-party wallets, this function is defined as
     *  `valueDecimals()` instead of `decimals()` to avoid conflict with ERC20 tokens.
     * @return The number of decimals for value
     */
    function valueDecimals() external view returns (uint8);

    /**
     * @notice Get the value of a token.
     * @param _tokenId The token for which to query the balance
     * @return The value of `_tokenId`
     */
    function balanceOf(uint256 _tokenId) external view returns (uint256);

    /**
     * @notice Get the slot of a token.
     * @param _tokenId The identifier for a token
     * @return The slot of the token
     */
    function slotOf(uint256 _tokenId) external view returns (uint256);

    /**
     * @notice Allow an operator to manage the value of a token, up to the `_value` amount.
     * @dev MUST revert unless caller is the current owner, an authorized operator, or the approved
     *  address for `_tokenId`.
     *  MUST emit ApprovalValue event.
     * @param _tokenId The token to approve
     * @param _operator The operator to be approved
     * @param _value The maximum value of `_toTokenId` that `_operator` is allowed to manage
     */
    function approve(
        uint256 _tokenId,
        address _operator,
        uint256 _value
    ) external;

    /**
     * @notice Get the maximum value of a token that an operator is allowed to manage.
     * @param _tokenId The token for which to query the allowance
     * @param _operator The address of an operator
     * @return The current approval value of `_tokenId` that `_operator` is allowed to manage
     */
    function allowance(
        uint256 _tokenId,
        address _operator
    ) external view returns (uint256);

    /**
     * @notice Transfer value from a specified token to another specified token with the same slot.
     * @dev Caller MUST be the current owner, an authorized operator or an operator who has been
     *  approved the whole `_fromTokenId` or part of it.
     *  MUST revert if `_fromTokenId` or `_toTokenId` is zero token id or does not exist.
     *  MUST revert if slots of `_fromTokenId` and `_toTokenId` do not match.
     *  MUST revert if `_value` exceeds the balance of `_fromTokenId` or its allowance to the
     *  operator.
     *  MUST emit `TransferValue` event.
     * @param _fromTokenId The token to transfer value from
     * @param _toTokenId The token to transfer value to
     * @param _value The transferred value
     */
    function transferFrom(
        uint256 _fromTokenId,
        uint256 _toTokenId,
        uint256 _value
    ) external;

    /**
     * @notice Transfer value from a specified token to an address. The caller should confirm that
     *  `_to` is capable of receiving ERC3525 tokens.
     * @dev This function MUST create a new ERC3525 token with the same slot for `_to` to receive
     *  the transferred value.
     *  MUST revert if `_fromTokenId` is zero token id or does not exist.
     *  MUST revert if `_to` is zero address.
     *  MUST revert if `_value` exceeds the balance of `_fromTokenId` or its allowance to the
     *  operator.
     *  MUST emit `Transfer` and `TransferValue` events.
     * @param _fromTokenId The token to transfer value from
     * @param _to The address to transfer value to
     * @param _value The transferred value
     * @return ID of the new token created for `_to` which receives the transferred value
     */
    function transferFrom(
        uint256 _fromTokenId,
        address _to,
        uint256 _value
    ) external returns (uint256);
}

File 13 of 17 : IERC3525Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "./IERC3525.sol";

/**
 * @title ERC-3525 Semi-Fungible Token Standard, optional extension for metadata
 * @dev Interfaces for any contract that wants to support query of the Uniform Resource Identifier
 *  (URI) for the ERC3525 contract as well as a specified slot.
 *  Because of the higher reliability of data stored in smart contracts compared to data stored in
 *  centralized systems, it is recommended that metadata, including `contractURI`, `slotURI` and
 *  `tokenURI`, be directly returned in JSON format, instead of being returned with a url pointing
 *  to any resource stored in a centralized system.
 *  See https://eips.ethereum.org/EIPS/eip-3525
 * Note: the ERC-165 identifier for this interface is 0xe1600902.
 */
interface IERC3525Metadata is IERC3525, IERC721Metadata {
    /**
     * @notice Returns the Uniform Resource Identifier (URI) for the current ERC3525 contract.
     * @dev This function SHOULD return the URI for this contract in JSON format, starting with
     *  header `data:application/json;`.
     *  See https://eips.ethereum.org/EIPS/eip-3525 for the JSON schema for contract URI.
     * @return The JSON formatted URI of the current ERC3525 contract
     */
    function contractURI() external view returns (string memory);

    /**
     * @notice Returns the Uniform Resource Identifier (URI) for the specified slot.
     * @dev This function SHOULD return the URI for `_slot` in JSON format, starting with header
     *  `data:application/json;`.
     *  See https://eips.ethereum.org/EIPS/eip-3525 for the JSON schema for slot URI.
     * @return The JSON formatted URI of `_slot`
     */
    function slotURI(uint256 _slot) external view returns (string memory);
}

File 14 of 17 : IERC3525MetadataDescriptor.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IERC3525MetadataDescriptor {
    function constructContractURI() external view returns (string memory);

    function constructSlotURI(
        uint256 slot
    ) external view returns (string memory);

    function constructTokenURI(
        uint256 tokenId
    ) external view returns (string memory);
}

File 15 of 17 : IERC3525Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title EIP-3525 token receiver interface
 * @dev Interface for a smart contract that wants to be informed by EIP-3525 contracts when
 *  receiving values from ANY addresses or EIP-3525 tokens.
 * Note: the EIP-165 identifier for this interface is 0x009ce20b.
 */
interface IERC3525Receiver {
    /**
     * @notice Handle the receipt of an EIP-3525 token value.
     * @dev An EIP-3525 smart contract MUST check whether this function is implemented by the
     *  recipient contract, if the recipient contract implements this function, the EIP-3525
     *  contract MUST call this function after a value transfer (i.e. `transferFrom(uint256,
     *  uint256,uint256,bytes)`).
     *  MUST return 0x009ce20b (i.e. `bytes4(keccak256('onERC3525Received(address,uint256,uint256,
     *  uint256,bytes)'))`) if the transfer is accepted.
     *  MUST revert or return any value other than 0x009ce20b if the transfer is rejected.
     * @param _operator The address which triggered the transfer
     * @param _fromTokenId The token id to transfer value from
     * @param _toTokenId The token id to transfer value to
     * @param _value The transferred value
     * @param _data Additional data with no specified format
     * @return `bytes4(keccak256('onERC3525Received(address,uint256,uint256,uint256,bytes)'))`
     *  unless the transfer is rejected.
     */
    function onERC3525Received(
        address _operator,
        uint256 _fromTokenId,
        uint256 _toTokenId,
        uint256 _value,
        bytes calldata _data
    ) external returns (bytes4);
}

File 16 of 17 : Membership.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./utils/ERC3525.sol";

contract Membership is ERC3525, Ownable {

    mapping(address => bool) public operators;

    //  Max tier per type (loyalty_type => max_tier)
    mapping(uint256 => uint256) public maxTiers;

    //  Requiring points per tier (loyalty_type => tier_no => points)
    mapping(uint256 => mapping(uint256 => uint256)) public requirements;

    //  Mapping current Tier to an account (address => loyalty_type => tier_no)
    mapping(address => mapping(uint256 => uint256)) public tiers;

    //  TokenURI = baseURI + tokenId.toString()
    string public baseURI;

    modifier onlyOperator() {
        require(operators[msg.sender], "Only Operator");
        _;
    }

    modifier disabled() {
        _;
        revert("Membership: transfer is disabled");
    }

    event Cancel(uint256 memberId);
    event Registration(
        address indexed member,
        uint256 indexed memberId,
        uint256 indexed typeOf,
        uint256 value
    );
    event UpdatePoint(uint256 indexed memberId, uint256 oValue, uint256 nValue);
    event Upgraded(
        address indexed member,
        uint256 indexed memberId,
        uint256 indexed typeOf,
        uint256 oTier,
        uint256 nTier
    );

    constructor(
        address _operator,
        string memory name_,
        string memory symbol_,
        string memory baseURI_,
        uint8 decimals_
    ) ERC3525(name_, symbol_, decimals_) Ownable() {
        operators[_operator] = true;
        baseURI = baseURI_;
    }

    function setOperator(address _operator, bool _isRemoved) external onlyOwner {
        require(_operator != address(0), "Set zero address");
        if (_isRemoved)
            delete operators[_operator];
        else 
            operators[_operator] = true;
    }

    function updateBaseURI(string calldata _uri) external onlyOwner {
        baseURI = _uri;
    }

    function config(
        uint256 _type,
        uint256[] calldata _values
    ) external onlyOwner {
        //  Should allow update tier's requirements ????
        uint256 _currentMaxTier = maxTiers[_type];
        uint256 _maxTiers = _values.length;
        uint256 _max;
        uint256 _value;
        for (uint256 i; i < _maxTiers; i++) {
            _value = _values[i];
            require(_value > _max, "Not ascending order");
            _max = _value;
            requirements[_type][i + 1] = _values[i];
        }

        maxTiers[_type] = _maxTiers;

        if (_maxTiers < _currentMaxTier) {
            _value = _currentMaxTier - _maxTiers;
            for (uint256 i; i < _value; i++)
                delete requirements[_type][_maxTiers + i + 1];
        }
    }

    function upgrade(uint256 _memberId) external {
        address _caller = _msgSender();
        require(ownerOf(_memberId) == _caller, "Member Id not owned by caller");

        uint256 _typeOf = slotOf(_memberId);
        uint256 _maxTiers = maxTiers[_typeOf];
        uint256 _tier = tiers[_caller][_typeOf];
        require(
            _tier < _maxTiers,
            "Cannot upgrade to the next tier. You have reached a max tier"
        );

        uint256 nextTier_ = _nextTier(
            balanceOf(_memberId),
            _typeOf,
            _tier,
            _maxTiers
        );
        require(nextTier_ > _tier, "Not enough points to upgrade");
        tiers[_caller][_typeOf] = nextTier_;

        emit Upgraded(_caller, _memberId, _typeOf, _tier, nextTier_);
    }

    function addMembership(address _account, uint256 _memberId, uint256 _type, uint256 _value) external onlyOperator {
        _mint(_account, _memberId, _type, _value);

        emit Registration(_account, _memberId, _type, _value);
    }

    function updatePoint(uint256 _memberId, uint256 _value, bool _isAdded) external onlyOperator {
        uint256 _oPoint = balanceOf(_memberId);
        if (_isAdded) _mintValue(_memberId, _value);
        else _burnValue(_memberId, _value);
        uint256 _nPoint = balanceOf(_memberId);

        emit UpdatePoint(_memberId, _oPoint, _nPoint);
    }

    function cancelMembership(uint256 _memberId) external onlyOperator {
        _burn(_memberId);

        emit Cancel(_memberId);
    }

    function safeTransferFrom(
        address from_,
        address to_,
        uint256 memberId_,
        bytes memory data_
    ) public override disabled {}

    function safeTransferFrom(
        address from_,
        address to_,
        uint256 memberId_
    ) public override disabled {}

    function transferFrom(
        address from_,
        address to_,
        uint256 memberId_
    ) public override disabled {}

    function transferFrom(
        uint256 fromMemberId_,
        uint256 toMemberId_,
        uint256 value_
    ) public override disabled {}

    function transferFrom(
        uint256 fromMemberId_,
        address to_,
        uint256 value_
    ) public override disabled returns (uint256) {}

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

     function _nextTier(
        uint256 _balance,
        uint256 _typeOf,
        uint256 _tier,
        uint256 _maxTiers
    ) private view returns (uint256) {
        uint256 _nextRequirement = requirements[_typeOf][_maxTiers];
        uint256 _mid;
        if (_balance >= _nextRequirement) return _maxTiers;

        uint256 _lo = _tier;
        uint256 _hi = _maxTiers;
        while (_lo <= _hi) {
            _mid = (_lo + _hi) / 2;
            _nextRequirement = requirements[_typeOf][_mid];
            if (_balance < _nextRequirement) {
                _hi = _mid - 1;
            } else if (_balance > _nextRequirement) {
                _lo = _mid + 1;
            } else {
                return _mid;
            }
        }
        return _hi;
    }
}

File 17 of 17 : ERC3525.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "../interfaces/IERC3525.sol";
import "../interfaces/IERC3525Receiver.sol";
import "../interfaces/IERC3525Metadata.sol";
import "../interfaces/IERC3525MetadataDescriptor.sol";

contract ERC3525 is Context, IERC3525Metadata, IERC721Enumerable {
    using Strings for address;
    using Strings for uint256;
    using Address for address;

    event SetMetadataDescriptor(address indexed metadataDescriptor);

    struct TokenData {
        uint256 id;
        uint256 slot;
        uint256 balance;
        address owner;
        address approved;
        address[] valueApprovals;
    }

    struct AddressData {
        uint256[] ownedTokens;
        mapping(uint256 => uint256) ownedTokensIndex;
        mapping(address => bool) approvals;
    }

    string private _name;
    string private _symbol;
    uint8 private _decimals;
    mapping(uint256 => mapping(address => uint256)) private _approvedValues;
    TokenData[] private _allTokens;
    mapping(uint256 => uint256) private _allTokensIndex;
    mapping(address => AddressData) private _addressData;
    IERC3525MetadataDescriptor public metadataDescriptor;

    constructor(string memory name_, string memory symbol_, uint8 decimals_) {
        _name = name_;
        _symbol = symbol_;
        _decimals = decimals_;
    }

    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override returns (bool) {
        return
            interfaceId == type(IERC165).interfaceId ||
            interfaceId == type(IERC3525).interfaceId ||
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC3525Metadata).interfaceId ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId;
    }

    function name() public view virtual override returns (string memory) {
        return _name;
    }

    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    function valueDecimals() public view virtual override returns (uint8) {
        return _decimals;
    }

    function balanceOf(
        uint256 tokenId_
    ) public view virtual override returns (uint256) {
        _requireMinted(tokenId_);
        return _allTokens[_allTokensIndex[tokenId_]].balance;
    }

    function ownerOf(
        uint256 tokenId_
    ) public view virtual override returns (address owner_) {
        _requireMinted(tokenId_);
        owner_ = _allTokens[_allTokensIndex[tokenId_]].owner;
        require(owner_ != address(0), "ERC3525: invalid token ID");
    }

    function slotOf(
        uint256 tokenId_
    ) public view virtual override returns (uint256) {
        _requireMinted(tokenId_);
        return _allTokens[_allTokensIndex[tokenId_]].slot;
    }

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

    function contractURI()
        public
        view
        virtual
        override
        returns (string memory)
    {
        string memory baseURI = _baseURI();
        return
            address(metadataDescriptor) != address(0)
                ? metadataDescriptor.constructContractURI()
                : bytes(baseURI).length > 0
                ? string(
                    abi.encodePacked(
                        baseURI,
                        "contract/",
                        Strings.toHexString(address(this))
                    )
                )
                : "";
    }

    function slotURI(
        uint256 slot_
    ) public view virtual override returns (string memory) {
        string memory baseURI = _baseURI();
        return
            address(metadataDescriptor) != address(0)
                ? metadataDescriptor.constructSlotURI(slot_)
                : bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, "slot/", slot_.toString()))
                : "";
    }

    function tokenURI(
        uint256 tokenId_
    ) public view virtual override returns (string memory) {
        _requireMinted(tokenId_);
        string memory baseURI = _baseURI();
        return
            address(metadataDescriptor) != address(0)
                ? metadataDescriptor.constructTokenURI(tokenId_)
                : bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, tokenId_.toString()))
                : "";
    }

    function approve(
        uint256 tokenId_,
        address to_,
        uint256 value_
    ) public virtual override {
        address owner = ERC3525.ownerOf(tokenId_);
        require(to_ != owner, "ERC3525: approval to current owner");

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

        _approveValue(tokenId_, to_, value_);
    }

    function allowance(
        uint256 tokenId_,
        address operator_
    ) public view virtual override returns (uint256) {
        _requireMinted(tokenId_);
        return _approvedValues[tokenId_][operator_];
    }

    function transferFrom(
        uint256 fromTokenId_,
        address to_,
        uint256 value_
    ) public virtual override returns (uint256) {
        _spendAllowance(_msgSender(), fromTokenId_, value_);

        uint256 newTokenId = _createDerivedTokenId(fromTokenId_);
        _mint(to_, newTokenId, ERC3525.slotOf(fromTokenId_), 0);
        _transferValue(fromTokenId_, newTokenId, value_);

        return newTokenId;
    }

    function transferFrom(
        uint256 fromTokenId_,
        uint256 toTokenId_,
        uint256 value_
    ) public virtual override {
        _spendAllowance(_msgSender(), fromTokenId_, value_);
        _transferValue(fromTokenId_, toTokenId_, value_);
    }

    function balanceOf(
        address owner_
    ) public view virtual override returns (uint256 balance) {
        require(
            owner_ != address(0),
            "ERC3525: balance query for the zero address"
        );
        return _addressData[owner_].ownedTokens.length;
    }

    function transferFrom(
        address from_,
        address to_,
        uint256 tokenId_
    ) public virtual override {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId_),
            "ERC3525: transfer caller is not owner nor approved"
        );
        _transferTokenId(from_, to_, tokenId_);
    }

    function safeTransferFrom(
        address from_,
        address to_,
        uint256 tokenId_,
        bytes memory data_
    ) public virtual override {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId_),
            "ERC3525: transfer caller is not owner nor approved"
        );
        _safeTransferTokenId(from_, to_, tokenId_, data_);
    }

    function safeTransferFrom(
        address from_,
        address to_,
        uint256 tokenId_
    ) public virtual override {
        safeTransferFrom(from_, to_, tokenId_, "");
    }

    function approve(address to_, uint256 tokenId_) public virtual override {
        address owner = ERC3525.ownerOf(tokenId_);
        require(to_ != owner, "ERC3525: approval to current owner");

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

        _approve(to_, tokenId_);
    }

    function getApproved(
        uint256 tokenId_
    ) public view virtual override returns (address) {
        _requireMinted(tokenId_);
        return _allTokens[_allTokensIndex[tokenId_]].approved;
    }

    function setApprovalForAll(
        address operator_,
        bool approved_
    ) public virtual override {
        _setApprovalForAll(_msgSender(), operator_, approved_);
    }

    function isApprovedForAll(
        address owner_,
        address operator_
    ) public view virtual override returns (bool) {
        return _addressData[owner_].approvals[operator_];
    }

    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    function tokenByIndex(
        uint256 index_
    ) public view virtual override returns (uint256) {
        require(
            index_ < ERC3525.totalSupply(),
            "ERC3525: global index out of bounds"
        );
        return _allTokens[index_].id;
    }

    function tokenOfOwnerByIndex(
        address owner_,
        uint256 index_
    ) public view virtual override returns (uint256) {
        require(
            index_ < ERC3525.balanceOf(owner_),
            "ERC3525: owner index out of bounds"
        );
        return _addressData[owner_].ownedTokens[index_];
    }

    function _setApprovalForAll(
        address owner_,
        address operator_,
        bool approved_
    ) internal virtual {
        require(owner_ != operator_, "ERC3525: approve to caller");

        _addressData[owner_].approvals[operator_] = approved_;

        emit ApprovalForAll(owner_, operator_, approved_);
    }

    function _isApprovedOrOwner(
        address operator_,
        uint256 tokenId_
    ) internal view virtual returns (bool) {
        _requireMinted(tokenId_);
        address owner = ERC3525.ownerOf(tokenId_);
        return (operator_ == owner ||
            ERC3525.isApprovedForAll(owner, operator_) ||
            ERC3525.getApproved(tokenId_) == operator_);
    }

    function _spendAllowance(
        address operator_,
        uint256 tokenId_,
        uint256 value_
    ) internal virtual {
        uint256 currentAllowance = ERC3525.allowance(tokenId_, operator_);
        if (
            !_isApprovedOrOwner(operator_, tokenId_) &&
            currentAllowance != type(uint256).max
        ) {
            require(
                currentAllowance >= value_,
                "ERC3525: insufficient allowance"
            );
            _approveValue(tokenId_, operator_, currentAllowance - value_);
        }
    }

    function _exists(uint256 tokenId_) internal view virtual returns (bool) {
        return
            _allTokens.length != 0 &&
            _allTokens[_allTokensIndex[tokenId_]].id == tokenId_;
    }

    function _requireMinted(uint256 tokenId_) internal view virtual {
        require(_exists(tokenId_), "ERC3525: invalid token ID");
    }

    function _mint(
        address to_,
        uint256 slot_,
        uint256 value_
    ) internal virtual returns (uint256) {
        uint256 tokenId = _createOriginalTokenId();
        _mint(to_, tokenId, slot_, value_);
        return tokenId;
    }

    function _mint(
        address to_,
        uint256 tokenId_,
        uint256 slot_,
        uint256 value_
    ) internal virtual {
        require(to_ != address(0), "ERC3525: mint to the zero address");
        require(tokenId_ != 0, "ERC3525: cannot mint zero tokenId");
        require(!_exists(tokenId_), "ERC3525: token already minted");

        _beforeValueTransfer(address(0), to_, 0, tokenId_, slot_, value_);
        __mintToken(to_, tokenId_, slot_);
        __mintValue(tokenId_, value_);
        _afterValueTransfer(address(0), to_, 0, tokenId_, slot_, value_);
    }

    function _mintValue(uint256 tokenId_, uint256 value_) internal virtual {
        _requireMinted(tokenId_);

        address owner = ERC3525.ownerOf(tokenId_);
        uint256 slot = ERC3525.slotOf(tokenId_);
        _beforeValueTransfer(address(0), owner, 0, tokenId_, slot, value_);
        __mintValue(tokenId_, value_);
        _afterValueTransfer(address(0), owner, 0, tokenId_, slot, value_);
    }

    function __mintValue(uint256 tokenId_, uint256 value_) private {
        _allTokens[_allTokensIndex[tokenId_]].balance += value_;
        emit TransferValue(0, tokenId_, value_);
    }

    function __mintToken(address to_, uint256 tokenId_, uint256 slot_) private {
        TokenData memory tokenData = TokenData({
            id: tokenId_,
            slot: slot_,
            balance: 0,
            owner: to_,
            approved: address(0),
            valueApprovals: new address[](0)
        });

        _addTokenToAllTokensEnumeration(tokenData);
        _addTokenToOwnerEnumeration(to_, tokenId_);

        emit Transfer(address(0), to_, tokenId_);
        emit SlotChanged(tokenId_, 0, slot_);
    }

    function _burn(uint256 tokenId_) internal virtual {
        _requireMinted(tokenId_);

        TokenData storage tokenData = _allTokens[_allTokensIndex[tokenId_]];
        address owner = tokenData.owner;
        uint256 slot = tokenData.slot;
        uint256 value = tokenData.balance;

        _beforeValueTransfer(owner, address(0), tokenId_, 0, slot, value);

        _clearApprovedValues(tokenId_);
        _removeTokenFromOwnerEnumeration(owner, tokenId_);
        _removeTokenFromAllTokensEnumeration(tokenId_);

        emit TransferValue(tokenId_, 0, value);
        emit SlotChanged(tokenId_, slot, 0);
        emit Transfer(owner, address(0), tokenId_);

        _afterValueTransfer(owner, address(0), tokenId_, 0, slot, value);
    }

    function _burnValue(uint256 tokenId_, uint256 burnValue_) internal virtual {
        _requireMinted(tokenId_);

        TokenData storage tokenData = _allTokens[_allTokensIndex[tokenId_]];
        address owner = tokenData.owner;
        uint256 slot = tokenData.slot;
        uint256 value = tokenData.balance;

        require(value >= burnValue_, "ERC3525: burn value exceeds balance");

        _beforeValueTransfer(owner, address(0), tokenId_, 0, slot, burnValue_);

        tokenData.balance -= burnValue_;
        emit TransferValue(tokenId_, 0, burnValue_);

        _afterValueTransfer(owner, address(0), tokenId_, 0, slot, burnValue_);
    }

    function _addTokenToOwnerEnumeration(
        address to_,
        uint256 tokenId_
    ) private {
        _allTokens[_allTokensIndex[tokenId_]].owner = to_;

        _addressData[to_].ownedTokensIndex[tokenId_] = _addressData[to_]
            .ownedTokens
            .length;
        _addressData[to_].ownedTokens.push(tokenId_);
    }

    function _removeTokenFromOwnerEnumeration(
        address from_,
        uint256 tokenId_
    ) private {
        _allTokens[_allTokensIndex[tokenId_]].owner = address(0);

        AddressData storage ownerData = _addressData[from_];
        uint256 lastTokenIndex = ownerData.ownedTokens.length - 1;
        uint256 lastTokenId = ownerData.ownedTokens[lastTokenIndex];
        uint256 tokenIndex = ownerData.ownedTokensIndex[tokenId_];

        ownerData.ownedTokens[tokenIndex] = lastTokenId;
        ownerData.ownedTokensIndex[lastTokenId] = tokenIndex;

        delete ownerData.ownedTokensIndex[tokenId_];
        ownerData.ownedTokens.pop();
    }

    function _addTokenToAllTokensEnumeration(
        TokenData memory tokenData_
    ) private {
        _allTokensIndex[tokenData_.id] = _allTokens.length;
        _allTokens.push(tokenData_);
    }

    function _removeTokenFromAllTokensEnumeration(uint256 tokenId_) private {
        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId_];

        TokenData memory lastTokenData = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenData;
        _allTokensIndex[lastTokenData.id] = tokenIndex;

        delete _allTokensIndex[tokenId_];
        _allTokens.pop();
    }

    function _approve(address to_, uint256 tokenId_) internal virtual {
        _allTokens[_allTokensIndex[tokenId_]].approved = to_;
        emit Approval(ERC3525.ownerOf(tokenId_), to_, tokenId_);
    }

    function _approveValue(
        uint256 tokenId_,
        address to_,
        uint256 value_
    ) internal virtual {
        require(
            to_ != address(0),
            "ERC3525: approve value to the zero address"
        );
        if (!_existApproveValue(to_, tokenId_)) {
            _allTokens[_allTokensIndex[tokenId_]].valueApprovals.push(to_);
        }
        _approvedValues[tokenId_][to_] = value_;

        emit ApprovalValue(tokenId_, to_, value_);
    }

    function _clearApprovedValues(uint256 tokenId_) internal virtual {
        TokenData storage tokenData = _allTokens[_allTokensIndex[tokenId_]];
        uint256 length = tokenData.valueApprovals.length;
        for (uint256 i = 0; i < length; i++) {
            address approval = tokenData.valueApprovals[i];
            delete _approvedValues[tokenId_][approval];
        }
    }

    function _existApproveValue(
        address to_,
        uint256 tokenId_
    ) internal view virtual returns (bool) {
        uint256 length = _allTokens[_allTokensIndex[tokenId_]]
            .valueApprovals
            .length;
        for (uint256 i = 0; i < length; i++) {
            if (
                _allTokens[_allTokensIndex[tokenId_]].valueApprovals[i] == to_
            ) {
                return true;
            }
        }
        return false;
    }

    function _transferValue(
        uint256 fromTokenId_,
        uint256 toTokenId_,
        uint256 value_
    ) internal virtual {
        require(
            _exists(fromTokenId_),
            "ERC3525: transfer from invalid token ID"
        );
        require(_exists(toTokenId_), "ERC3525: transfer to invalid token ID");

        TokenData storage fromTokenData = _allTokens[
            _allTokensIndex[fromTokenId_]
        ];
        TokenData storage toTokenData = _allTokens[_allTokensIndex[toTokenId_]];

        require(
            fromTokenData.balance >= value_,
            "ERC3525: insufficient balance for transfer"
        );
        require(
            fromTokenData.slot == toTokenData.slot,
            "ERC3525: transfer to token with different slot"
        );

        _beforeValueTransfer(
            fromTokenData.owner,
            toTokenData.owner,
            fromTokenId_,
            toTokenId_,
            fromTokenData.slot,
            value_
        );

        fromTokenData.balance -= value_;
        toTokenData.balance += value_;

        emit TransferValue(fromTokenId_, toTokenId_, value_);

        _afterValueTransfer(
            fromTokenData.owner,
            toTokenData.owner,
            fromTokenId_,
            toTokenId_,
            fromTokenData.slot,
            value_
        );

        require(
            _checkOnERC3525Received(fromTokenId_, toTokenId_, value_, ""),
            "ERC3525: transfer to non ERC3525Receiver"
        );
    }

    function _transferTokenId(
        address from_,
        address to_,
        uint256 tokenId_
    ) internal virtual {
        require(
            ERC3525.ownerOf(tokenId_) == from_,
            "ERC3525: transfer from invalid owner"
        );
        require(to_ != address(0), "ERC3525: transfer to the zero address");

        uint256 slot = ERC3525.slotOf(tokenId_);
        uint256 value = ERC3525.balanceOf(tokenId_);

        _beforeValueTransfer(from_, to_, tokenId_, tokenId_, slot, value);

        _approve(address(0), tokenId_);
        _clearApprovedValues(tokenId_);

        _removeTokenFromOwnerEnumeration(from_, tokenId_);
        _addTokenToOwnerEnumeration(to_, tokenId_);

        emit Transfer(from_, to_, tokenId_);

        _afterValueTransfer(from_, to_, tokenId_, tokenId_, slot, value);
    }

    function _safeTransferTokenId(
        address from_,
        address to_,
        uint256 tokenId_,
        bytes memory data_
    ) internal virtual {
        _transferTokenId(from_, to_, tokenId_);
        require(
            _checkOnERC721Received(from_, to_, tokenId_, data_),
            "ERC3525: transfer to non ERC721Receiver"
        );
    }

    function _checkOnERC3525Received(
        uint256 fromTokenId_,
        uint256 toTokenId_,
        uint256 value_,
        bytes memory data_
    ) private returns (bool) {
        address to = ERC3525.ownerOf(toTokenId_);
        if (
            to.isContract() &&
            IERC165(to).supportsInterface(type(IERC3525Receiver).interfaceId)
        ) {
            try
                IERC3525Receiver(to).onERC3525Received(
                    _msgSender(),
                    fromTokenId_,
                    toTokenId_,
                    value_,
                    data_
                )
            returns (bytes4 retval) {
                return retval == IERC3525Receiver.onERC3525Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC3525: transfer to non ERC3525Receiver");
                } else {
                    // solhint-disable-next-line
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    function _checkOnERC721Received(
        address from_,
        address to_,
        uint256 tokenId_,
        bytes memory data_
    ) private returns (bool) {
        if (
            to_.isContract() &&
            IERC165(to_).supportsInterface(type(IERC721Receiver).interfaceId)
        ) {
            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");
                } else {
                    // solhint-disable-next-line
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /* solhint-disable */
    function _beforeValueTransfer(
        address from_,
        address to_,
        uint256 fromTokenId_,
        uint256 toTokenId_,
        uint256 slot_,
        uint256 value_
    ) internal virtual {}

    function _afterValueTransfer(
        address from_,
        address to_,
        uint256 fromTokenId_,
        uint256 toTokenId_,
        uint256 slot_,
        uint256 value_
    ) internal virtual {}

    /* solhint-enable */

    function _setMetadataDescriptor(
        address metadataDescriptor_
    ) internal virtual {
        metadataDescriptor = IERC3525MetadataDescriptor(metadataDescriptor_);
        emit SetMetadataDescriptor(metadataDescriptor_);
    }

    function _createOriginalTokenId() internal virtual returns (uint256) {
        return _createDefaultTokenId();
    }

    function _createDerivedTokenId(
        uint256 fromTokenId_
    ) internal virtual returns (uint256) {
        fromTokenId_;
        return _createDefaultTokenId();
    }

    function _createDefaultTokenId() private view returns (uint256) {
        return ERC3525.totalSupply() + 1;
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"}],"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":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"ApprovalValue","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"memberId","type":"uint256"}],"name":"Cancel","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"member","type":"address"},{"indexed":true,"internalType":"uint256","name":"memberId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"typeOf","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Registration","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"metadataDescriptor","type":"address"}],"name":"SetMetadataDescriptor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_oldSlot","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_newSlot","type":"uint256"}],"name":"SlotChanged","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":true,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_toTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"TransferValue","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"memberId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nValue","type":"uint256"}],"name":"UpdatePoint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"member","type":"address"},{"indexed":true,"internalType":"uint256","name":"memberId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"typeOf","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oTier","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nTier","type":"uint256"}],"name":"Upgraded","type":"event"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_memberId","type":"uint256"},{"internalType":"uint256","name":"_type","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"addMembership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"address","name":"operator_","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"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":"_memberId","type":"uint256"}],"name":"cancelMembership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_type","type":"uint256"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"config","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"operator_","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxTiers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataDescriptor","outputs":[{"internalType":"contract IERC3525MetadataDescriptor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"operators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner_","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"requirements","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":"memberId_","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":"memberId_","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":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_isRemoved","type":"bool"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"slotOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"slot_","type":"uint256"}],"name":"slotURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tiers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index_","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"index_","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromMemberId_","type":"uint256"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"memberId_","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fromMemberId_","type":"uint256"},{"internalType":"uint256","name":"toMemberId_","type":"uint256"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_memberId","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bool","name":"_isAdded","type":"bool"}],"name":"updatePoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_memberId","type":"uint256"}],"name":"upgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"valueDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162005fbe38038062005fbe8339818101604052810190620000379190620004e4565b838382826000908051906020019062000052929190620001f4565b5081600190805190602001906200006b929190620001f4565b5080600260006101000a81548160ff021916908360ff160217905550505050620000aa6200009e6200012660201b60201c565b6200012e60201b60201c565b6001600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555081600d90805190602001906200011a929190620001f4565b5050505050506200062e565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200020290620005f8565b90600052602060002090601f01602090048101928262000226576000855562000272565b82601f106200024157805160ff191683800117855562000272565b8280016001018555821562000272579182015b828111156200027157825182559160200191906001019062000254565b5b50905062000281919062000285565b5090565b5b80821115620002a057600081600090555060010162000286565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002e582620002b8565b9050919050565b620002f781620002d8565b81146200030357600080fd5b50565b6000815190506200031781620002ec565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003728262000327565b810181811067ffffffffffffffff8211171562000394576200039362000338565b5b80604052505050565b6000620003a9620002a4565b9050620003b7828262000367565b919050565b600067ffffffffffffffff821115620003da57620003d962000338565b5b620003e58262000327565b9050602081019050919050565b60005b8381101562000412578082015181840152602081019050620003f5565b8381111562000422576000848401525b50505050565b60006200043f6200043984620003bc565b6200039d565b9050828152602081018484840111156200045e576200045d62000322565b5b6200046b848285620003f2565b509392505050565b600082601f8301126200048b576200048a6200031d565b5b81516200049d84826020860162000428565b91505092915050565b600060ff82169050919050565b620004be81620004a6565b8114620004ca57600080fd5b50565b600081519050620004de81620004b3565b92915050565b600080600080600060a08688031215620005035762000502620002ae565b5b6000620005138882890162000306565b955050602086015167ffffffffffffffff811115620005375762000536620002b3565b5b620005458882890162000473565b945050604086015167ffffffffffffffff811115620005695762000568620002b3565b5b620005778882890162000473565b935050606086015167ffffffffffffffff8111156200059b576200059a620002b3565b5b620005a98882890162000473565b9250506080620005bc88828901620004cd565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200061157607f821691505b60208210811415620006285762000627620005c9565b5b50919050565b615980806200063e6000396000f3fe608060405234801561001057600080fd5b50600436106102535760003560e01c806370a0823111610146578063a71dac47116100c3578063d955299b11610087578063d955299b14610740578063dcdd2d591461075c578063e345e0bc1461078c578063e8a3d485146107bc578063e985e9c5146107da578063f2fde38b1461080a57610253565b8063a71dac471461068c578063a8146286146106bc578063b88d4fde146106d8578063c87b56dd146106f4578063d0a9e1f31461072457610253565b80638da5cb5b1161010a5780638da5cb5b146105e8578063931688cb1461060657806395d89b41146106225780639cc7f70814610640578063a22cb4651461067057610253565b806370a0823114610558578063715018a614610588578063840f71131461059257806389def320146105b05780638cb0a511146105cc57610253565b80632f745c59116101d45780634f6ccce7116101985780634f6ccce71461048e57806351dae4f4146104be578063558a7297146104ee5780636352211e1461050a5780636c0360eb1461053a57610253565b80632f745c59146103ec578063310ed7f01461041c5780633e7e86691461043857806342842e0e1461045657806345977d031461047257610253565b80630f485c021161021b5780630f485c021461032257806313e7c9d81461035257806318160ddd1461038257806323b872dd146103a0578063263f3e7e146103bc57610253565b806301ffc9a71461025857806306fdde0314610288578063081812fc146102a6578063095ea7b3146102d657806309c3dd87146102f2575b600080fd5b610272600480360381019061026d9190614007565b610826565b60405161027f919061404f565b60405180910390f35b610290610a98565b60405161029d9190614103565b60405180910390f35b6102c060048036038101906102bb919061415b565b610b2a565b6040516102cd91906141c9565b60405180910390f35b6102f060048036038101906102eb9190614210565b610b95565b005b61030c6004803603810190610307919061415b565b610cad565b6040516103199190614103565b60405180910390f35b61033c60048036038101906103379190614250565b610e19565b60405161034991906142b2565b60405180910390f35b61036c600480360381019061036791906142cd565b610e56565b604051610379919061404f565b60405180910390f35b61038a610e76565b60405161039791906142b2565b60405180910390f35b6103ba60048036038101906103b591906142fa565b610e83565b005b6103d660048036038101906103d1919061415b565b610ebe565b6040516103e391906142b2565b60405180910390f35b61040660048036038101906104019190614210565b610f09565b60405161041391906142b2565b60405180910390f35b6104366004803603810190610431919061434d565b610fbc565b005b610440610ff7565b60405161044d91906143bc565b60405180910390f35b610470600480360381019061046b91906142fa565b61100e565b005b61048c6004803603810190610487919061415b565b611049565b005b6104a860048036038101906104a3919061415b565b611290565b6040516104b591906142b2565b60405180910390f35b6104d860048036038101906104d39190614210565b611308565b6040516104e591906142b2565b60405180910390f35b61050860048036038101906105039190614403565b61132d565b005b610524600480360381019061051f919061415b565b61145c565b60405161053191906141c9565b60405180910390f35b610542611537565b60405161054f9190614103565b60405180910390f35b610572600480360381019061056d91906142cd565b6115c5565b60405161057f91906142b2565b60405180910390f35b610590611683565b005b61059a611697565b6040516105a791906144a2565b60405180910390f35b6105ca60048036038101906105c5919061415b565b6116bd565b005b6105e660048036038101906105e19190614250565b61178c565b005b6105f06118a6565b6040516105fd91906141c9565b60405180910390f35b610620600480360381019061061b9190614522565b6118d0565b005b61062a6118ee565b6040516106379190614103565b60405180910390f35b61065a6004803603810190610655919061415b565b611980565b60405161066791906142b2565b60405180910390f35b61068a60048036038101906106859190614403565b6119cb565b005b6106a660048036038101906106a1919061456f565b6119e1565b6040516106b391906142b2565b60405180910390f35b6106d660048036038101906106d19190614605565b611a06565b005b6106f260048036038101906106ed9190614795565b611b95565b005b61070e6004803603810190610709919061415b565b611bd0565b60405161071b9190614103565b60405180910390f35b61073e60048036038101906107399190614818565b611d45565b005b61075a6004803603810190610755919061486b565b611e4c565b005b6107766004803603810190610771919061415b565b611f3a565b60405161078391906142b2565b60405180910390f35b6107a660048036038101906107a191906148d2565b611f52565b6040516107b391906142b2565b60405180910390f35b6107c4611fb6565b6040516107d19190614103565b60405180910390f35b6107f460048036038101906107ef9190614912565b612115565b604051610801919061404f565b60405180910390f35b610824600480360381019061081f91906142cd565b6121ac565b005b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108f157507fd5358140000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061095957507f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109c157507fe1600902000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a2957507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a9157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060008054610aa790614981565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad390614981565b8015610b205780601f10610af557610100808354040283529160200191610b20565b820191906000526020600020905b815481529060010190602001808311610b0357829003601f168201915b5050505050905090565b6000610b3582612230565b6004600560008481526020019081526020016000205481548110610b5c57610b5b6149b3565b5b906000526020600020906006020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ba08261145c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0890614a54565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c3061227b565b73ffffffffffffffffffffffffffffffffffffffff161480610c5f5750610c5e81610c5961227b565b612115565b5b610c9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9590614ae6565b60405180910390fd5b610ca88383612283565b505050565b60606000610cb9612361565b9050600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610d60576000815111610d305760405180602001604052806000815250610d5b565b80610d3a846123f3565b604051602001610d4b929190614b8e565b6040516020818303038152906040525b610e11565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636c037f8a846040518263ffffffff1660e01b8152600401610dbb91906142b2565b60006040518083038186803b158015610dd357600080fd5b505afa158015610de7573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610e109190614c5e565b5b915050919050565b60006040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4d90614cf3565b60405180910390fd5b60096020528060005260406000206000915054906101000a900460ff1681565b6000600480549050905090565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb590614cf3565b60405180910390fd5b6000610ec982612230565b6004600560008481526020019081526020016000205481548110610ef057610eef6149b3565b5b9060005260206000209060060201600101549050919050565b6000610f14836115c5565b8210610f55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4c90614d85565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018281548110610fa957610fa86149b3565b5b9060005260206000200154905092915050565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fee90614cf3565b60405180910390fd5b6000600260009054906101000a900460ff16905090565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104090614cf3565b60405180910390fd5b600061105361227b565b90508073ffffffffffffffffffffffffffffffffffffffff166110758361145c565b73ffffffffffffffffffffffffffffffffffffffff16146110cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c290614df1565b60405180910390fd5b60006110d683610ebe565b90506000600a60008381526020019081526020016000205490506000600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020549050818110611187576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117e90614e83565b60405180910390fd5b600061119d61119587611980565b8584866124cb565b90508181116111e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d890614eef565b60405180910390fd5b80600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008681526020019081526020016000208190555083868673ffffffffffffffffffffffffffffffffffffffff167fbe95a8e91a2c36d15916af6b2bb5f8daae1fe63dc66caafe79b50e47f2041dcb8585604051611280929190614f0f565b60405180910390a4505050505050565b600061129a610e76565b82106112db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d290614faa565b60405180910390fd5b600482815481106112ef576112ee6149b3565b5b9060005260206000209060060201600001549050919050565b600c602052816000526040600020602052806000526040600020600091509150505481565b6113356125b5565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139c90615016565b60405180910390fd5b80156113ff57600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff0219169055611458565b6001600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b5050565b600061146782612230565b600460056000848152602001908152602001600020548154811061148e5761148d6149b3565b5b906000526020600020906006020160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611532576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152990615082565b60405180910390fd5b919050565b600d805461154490614981565b80601f016020809104026020016040519081016040528092919081815260200182805461157090614981565b80156115bd5780601f10611592576101008083540402835291602001916115bd565b820191906000526020600020905b8154815290600101906020018083116115a057829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162d90615114565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001805490509050919050565b61168b6125b5565b6116956000612633565b565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611749576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174090615180565b60405180910390fd5b611752816126f9565b7f8bf30e7ff26833413be5f69e1d373744864d600b664204b4a2f9844a8eedb9ed8160405161178191906142b2565b60405180910390a150565b60006117978461145c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611808576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ff90614a54565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661182761227b565b73ffffffffffffffffffffffffffffffffffffffff16148061185657506118558161185061227b565b612115565b5b611895576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188c90614ae6565b60405180910390fd5b6118a084848461287f565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118d86125b5565b8181600d91906118e9929190613e4d565b505050565b6060600180546118fd90614981565b80601f016020809104026020016040519081016040528092919081815260200182805461192990614981565b80156119765780601f1061194b57610100808354040283529160200191611976565b820191906000526020600020905b81548152906001019060200180831161195957829003601f168201915b5050505050905090565b600061198b82612230565b60046005600084815260200190815260200160002054815481106119b2576119b16149b3565b5b9060005260206000209060060201600201549050919050565b6119dd6119d661227b565b8383612a40565b5050565b600b602052816000526040600020602052806000526040600020600091509150505481565b611a0e6125b5565b6000600a6000858152602001908152602001600020549050600083839050905060008060005b83811015611afe57868682818110611a4f57611a4e6149b3565b5b905060200201359150828211611a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a91906151ec565b60405180910390fd5b819250868682818110611ab057611aaf6149b3565b5b90506020020135600b60008a81526020019081526020016000206000600184611ad9919061523b565b8152602001908152602001600020819055508080611af690615291565b915050611a34565b5082600a60008981526020019081526020016000208190555083831015611b8c578284611b2b91906152da565b905060005b81811015611b8a57600b6000898152602001908152602001600020600060018387611b5b919061523b565b611b65919061523b565b8152602001908152602001600020600090558080611b8290615291565b915050611b30565b505b50505050505050565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc790614cf3565b60405180910390fd5b6060611bdb82612230565b6000611be5612361565b9050600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611c8c576000815111611c5c5760405180602001604052806000815250611c87565b80611c66846123f3565b604051602001611c7792919061530e565b6040516020818303038152906040525b611d3d565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663894b4c2e846040518263ffffffff1660e01b8152600401611ce791906142b2565b60006040518083038186803b158015611cff57600080fd5b505afa158015611d13573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611d3c9190614c5e565b5b915050919050565b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611dd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc890615180565b60405180910390fd5b6000611ddc84611980565b90508115611df357611dee8484612bb0565b611dfe565b611dfd8484612c03565b5b6000611e0985611980565b9050847ffa335800799d24c33c477e0674969821a6541f8f700b59acfd78aa0e81b056508383604051611e3d929190614f0f565b60405180910390a25050505050565b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611ed8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ecf90615180565b60405180910390fd5b611ee484848484612d40565b81838573ffffffffffffffffffffffffffffffffffffffff167faa58599838af2e5e0f3251cfbb4eac5d5d447ded49f6b0ac28d6b44098224e6384604051611f2c91906142b2565b60405180910390a450505050565b600a6020528060005260406000206000915090505481565b6000611f5d83612230565b6003600084815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60606000611fc2612361565b9050600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156120695760008151116120395760405180602001604052806000815250612064565b8061204330612e78565b60405160200161205492919061537e565b6040516020818303038152906040525b61210f565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663725fa09c6040518163ffffffff1660e01b815260040160006040518083038186803b1580156120d157600080fd5b505afa1580156120e5573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061210e9190614c5e565b5b91505090565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121b46125b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612224576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221b9061541f565b60405180910390fd5b61222d81612633565b50565b61223981612ea5565b612278576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226f90615082565b60405180910390fd5b50565b600033905090565b8160046005600084815260200190815260200160002054815481106122ab576122aa6149b3565b5b906000526020600020906006020160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661231b8361145c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6060600d805461237090614981565b80601f016020809104026020016040519081016040528092919081815260200182805461239c90614981565b80156123e95780601f106123be576101008083540402835291602001916123e9565b820191906000526020600020905b8154815290600101906020018083116123cc57829003601f168201915b5050505050905090565b60606000600161240284612efa565b01905060008167ffffffffffffffff8111156124215761242061466a565b5b6040519080825280601f01601f1916602001820160405280156124535781602001600182028036833780820191505090505b509050600082602001820190505b6001156124c0578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816124aa576124a961543f565b5b04945060008514156124bb576124c0565b612461565b819350505050919050565b600080600b6000868152602001908152602001600020600084815260200190815260200160002054905060008187106125085783925050506125ad565b600085905060008590505b8082116125a55760028183612528919061523b565b612532919061546e565b9250600b60008981526020019081526020016000206000848152602001908152602001600020549350838910156125775760018361257091906152da565b90506125a0565b838911156125935760018361258c919061523b565b915061259f565b829450505050506125ad565b5b612513565b809450505050505b949350505050565b6125bd61227b565b73ffffffffffffffffffffffffffffffffffffffff166125db6118a6565b73ffffffffffffffffffffffffffffffffffffffff1614612631576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612628906154eb565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61270281612230565b6000600460056000848152602001908152602001600020548154811061272b5761272a6149b3565b5b9060005260206000209060060201905060008160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600082600101549050600083600201549050612786836000876000868661304d565b61278f85613055565b6127998386613158565b6127a2856132f4565b6000857f0b2aac84f3ec956911fd78eae5311062972ff949f38412e8da39069d9f068cc6836040516127d491906142b2565b60405180910390a3600082867fe4f48c240d3b994948aa54f3e2f5fca59263dfe1d52b6e4cf39a5d249b5ccb6560405160405180910390a484600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128788360008760008686613674565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e69061557d565b60405180910390fd5b6128f9828461367c565b612997576004600560008581526020019081526020016000205481548110612924576129236149b3565b5b9060005260206000209060060201600501829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b806003600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16837f621b050de0ad08b51d19b48b3e6df75348c4de6bdd93e81b252ca62e28265b1b83604051612a3391906142b2565b60405180910390a3505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612aaf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa6906155e9565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612ba3919061404f565b60405180910390a3505050565b612bb982612230565b6000612bc48361145c565b90506000612bd184610ebe565b9050612be3600083600087858861304d565b612bed848461379b565b612bfd6000836000878588613674565b50505050565b612c0c82612230565b60006004600560008581526020019081526020016000205481548110612c3557612c346149b3565b5b9060005260206000209060060201905060008160030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008260010154905060008360020154905084811015612cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cba9061567b565b60405180910390fd5b612cd3836000886000868a61304d565b84846002016000828254612ce791906152da565b925050819055506000867f0b2aac84f3ec956911fd78eae5311062972ff949f38412e8da39069d9f068cc687604051612d2091906142b2565b60405180910390a3612d38836000886000868a613674565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612db0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da79061570d565b60405180910390fd5b6000831415612df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612deb9061579f565b60405180910390fd5b612dfd83612ea5565b15612e3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e349061580b565b60405180910390fd5b612e4d600085600086868661304d565b612e58848484613828565b612e62838261379b565b612e726000856000868686613674565b50505050565b6060612e9e8273ffffffffffffffffffffffffffffffffffffffff16601460ff16613975565b9050919050565b60008060048054905014158015612ef35750816004600560008581526020019081526020016000205481548110612edf57612ede6149b3565b5b906000526020600020906006020160000154145b9050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612f58577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612f4e57612f4d61543f565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612f95576d04ee2d6d415b85acef81000000008381612f8b57612f8a61543f565b5b0492506020810190505b662386f26fc100008310612fc457662386f26fc100008381612fba57612fb961543f565b5b0492506010810190505b6305f5e1008310612fed576305f5e1008381612fe357612fe261543f565b5b0492506008810190505b61271083106130125761271083816130085761300761543f565b5b0492506004810190505b60648310613035576064838161302b5761302a61543f565b5b0492506002810190505b600a8310613044576001810190505b80915050919050565b505050505050565b6000600460056000848152602001908152602001600020548154811061307e5761307d6149b3565b5b9060005260206000209060060201905060008160050180549050905060005b818110156131525760008360050182815481106130bd576130bc6149b3565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506003600086815260200190815260200160002060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905550808061314a90615291565b91505061309d565b50505050565b60006004600560008481526020019081526020016000205481548110613181576131806149b3565b5b906000526020600020906006020160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006001826000018054905061322991906152da565b90506000826000018281548110613243576132426149b3565b5b90600052602060002001549050600083600101600086815260200190815260200160002054905081846000018281548110613281576132806149b3565b5b9060005260206000200181905550808460010160008481526020019081526020016000208190555083600101600086815260200190815260200160002060009055836000018054806132d6576132d561582b565b5b60019003818190600052602060002001600090559055505050505050565b6000600160048054905061330891906152da565b9050600060056000848152602001908152602001600020549050600060048381548110613338576133376149b3565b5b90600052602060002090600602016040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600582018054806020026020016040519081016040528092919081815260200182805480156134a057602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311613456575b505050505081525050905080600483815481106134c0576134bf6149b3565b5b906000526020600020906006020160008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060a0820151816005019080519060200190613596929190613ed3565b5090505081600560008360000151815260200190815260200160002081905550600560008581526020019081526020016000206000905560048054806135df576135de61582b565b5b6001900381819060005260206000209060060201600080820160009055600182016000905560028201600090556003820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556004820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560058201600061366a9190613f5d565b5050905550505050565b505050505050565b60008060046005600085815260200190815260200160002054815481106136a6576136a56149b3565b5b906000526020600020906006020160050180549050905060005b8181101561378e578473ffffffffffffffffffffffffffffffffffffffff166004600560008781526020019081526020016000205481548110613706576137056149b3565b5b90600052602060002090600602016005018281548110613729576137286149b3565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561377b57600192505050613795565b808061378690615291565b9150506136c0565b5060009150505b92915050565b8060046005600085815260200190815260200160002054815481106137c3576137c26149b3565b5b906000526020600020906006020160020160008282546137e3919061523b565b925050819055508160007f0b2aac84f3ec956911fd78eae5311062972ff949f38412e8da39069d9f068cc68360405161381c91906142b2565b60405180910390a35050565b60006040518060c00160405280848152602001838152602001600081526020018573ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff81111561389c5761389b61466a565b5b6040519080825280602002602001820160405280156138ca5781602001602082028036833780820191505090505b5081525090506138d981613bb1565b6138e38484613ccc565b828473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4816000847fe4f48c240d3b994948aa54f3e2f5fca59263dfe1d52b6e4cf39a5d249b5ccb6560405160405180910390a450505050565b606060006002836002613988919061585a565b613992919061523b565b67ffffffffffffffff8111156139ab576139aa61466a565b5b6040519080825280601f01601f1916602001820160405280156139dd5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613a1557613a146149b3565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613a7957613a786149b3565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002613ab9919061585a565b613ac3919061523b565b90505b6001811115613b63577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613b0557613b046149b3565b5b1a60f81b828281518110613b1c57613b1b6149b3565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080613b5c906158b4565b9050613ac6565b5060008414613ba7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b9e9061592a565b60405180910390fd5b8091505092915050565b600480549050600560008360000151815260200190815260200160002081905550600481908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000155602082015181600101556040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060a0820151816005019080519060200190613cc6929190613ed3565b50505050565b816004600560008481526020019081526020016000205481548110613cf457613cf36149b3565b5b906000526020600020906006020160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000180549050600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600083815260200190815260200160002081905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000018190806001815401808255809150506001900390600052602060002001600090919091909150555050565b828054613e5990614981565b90600052602060002090601f016020900481019282613e7b5760008555613ec2565b82601f10613e9457803560ff1916838001178555613ec2565b82800160010185558215613ec2579182015b82811115613ec1578235825591602001919060010190613ea6565b5b509050613ecf9190613f7e565b5090565b828054828255906000526020600020908101928215613f4c579160200282015b82811115613f4b5782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190613ef3565b5b509050613f599190613f7e565b5090565b5080546000825590600052602060002090810190613f7b9190613f7e565b50565b5b80821115613f97576000816000905550600101613f7f565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613fe481613faf565b8114613fef57600080fd5b50565b60008135905061400181613fdb565b92915050565b60006020828403121561401d5761401c613fa5565b5b600061402b84828501613ff2565b91505092915050565b60008115159050919050565b61404981614034565b82525050565b60006020820190506140646000830184614040565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156140a4578082015181840152602081019050614089565b838111156140b3576000848401525b50505050565b6000601f19601f8301169050919050565b60006140d58261406a565b6140df8185614075565b93506140ef818560208601614086565b6140f8816140b9565b840191505092915050565b6000602082019050818103600083015261411d81846140ca565b905092915050565b6000819050919050565b61413881614125565b811461414357600080fd5b50565b6000813590506141558161412f565b92915050565b60006020828403121561417157614170613fa5565b5b600061417f84828501614146565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006141b382614188565b9050919050565b6141c3816141a8565b82525050565b60006020820190506141de60008301846141ba565b92915050565b6141ed816141a8565b81146141f857600080fd5b50565b60008135905061420a816141e4565b92915050565b6000806040838503121561422757614226613fa5565b5b6000614235858286016141fb565b925050602061424685828601614146565b9150509250929050565b60008060006060848603121561426957614268613fa5565b5b600061427786828701614146565b9350506020614288868287016141fb565b925050604061429986828701614146565b9150509250925092565b6142ac81614125565b82525050565b60006020820190506142c760008301846142a3565b92915050565b6000602082840312156142e3576142e2613fa5565b5b60006142f1848285016141fb565b91505092915050565b60008060006060848603121561431357614312613fa5565b5b6000614321868287016141fb565b9350506020614332868287016141fb565b925050604061434386828701614146565b9150509250925092565b60008060006060848603121561436657614365613fa5565b5b600061437486828701614146565b935050602061438586828701614146565b925050604061439686828701614146565b9150509250925092565b600060ff82169050919050565b6143b6816143a0565b82525050565b60006020820190506143d160008301846143ad565b92915050565b6143e081614034565b81146143eb57600080fd5b50565b6000813590506143fd816143d7565b92915050565b6000806040838503121561441a57614419613fa5565b5b6000614428858286016141fb565b9250506020614439858286016143ee565b9150509250929050565b6000819050919050565b600061446861446361445e84614188565b614443565b614188565b9050919050565b600061447a8261444d565b9050919050565b600061448c8261446f565b9050919050565b61449c81614481565b82525050565b60006020820190506144b76000830184614493565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126144e2576144e16144bd565b5b8235905067ffffffffffffffff8111156144ff576144fe6144c2565b5b60208301915083600182028301111561451b5761451a6144c7565b5b9250929050565b6000806020838503121561453957614538613fa5565b5b600083013567ffffffffffffffff81111561455757614556613faa565b5b614563858286016144cc565b92509250509250929050565b6000806040838503121561458657614585613fa5565b5b600061459485828601614146565b92505060206145a585828601614146565b9150509250929050565b60008083601f8401126145c5576145c46144bd565b5b8235905067ffffffffffffffff8111156145e2576145e16144c2565b5b6020830191508360208202830111156145fe576145fd6144c7565b5b9250929050565b60008060006040848603121561461e5761461d613fa5565b5b600061462c86828701614146565b935050602084013567ffffffffffffffff81111561464d5761464c613faa565b5b614659868287016145af565b92509250509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6146a2826140b9565b810181811067ffffffffffffffff821117156146c1576146c061466a565b5b80604052505050565b60006146d4613f9b565b90506146e08282614699565b919050565b600067ffffffffffffffff821115614700576146ff61466a565b5b614709826140b9565b9050602081019050919050565b82818337600083830152505050565b6000614738614733846146e5565b6146ca565b90508281526020810184848401111561475457614753614665565b5b61475f848285614716565b509392505050565b600082601f83011261477c5761477b6144bd565b5b813561478c848260208601614725565b91505092915050565b600080600080608085870312156147af576147ae613fa5565b5b60006147bd878288016141fb565b94505060206147ce878288016141fb565b93505060406147df87828801614146565b925050606085013567ffffffffffffffff811115614800576147ff613faa565b5b61480c87828801614767565b91505092959194509250565b60008060006060848603121561483157614830613fa5565b5b600061483f86828701614146565b935050602061485086828701614146565b9250506040614861868287016143ee565b9150509250925092565b6000806000806080858703121561488557614884613fa5565b5b6000614893878288016141fb565b94505060206148a487828801614146565b93505060406148b587828801614146565b92505060606148c687828801614146565b91505092959194509250565b600080604083850312156148e9576148e8613fa5565b5b60006148f785828601614146565b9250506020614908858286016141fb565b9150509250929050565b6000806040838503121561492957614928613fa5565b5b6000614937858286016141fb565b9250506020614948858286016141fb565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061499957607f821691505b602082108114156149ad576149ac614952565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243333532353a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a3e602283614075565b9150614a49826149e2565b604082019050919050565b60006020820190508181036000830152614a6d81614a31565b9050919050565b7f455243333532353a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b6000614ad0603983614075565b9150614adb82614a74565b604082019050919050565b60006020820190508181036000830152614aff81614ac3565b9050919050565b600081905092915050565b6000614b1c8261406a565b614b268185614b06565b9350614b36818560208601614086565b80840191505092915050565b7f736c6f742f000000000000000000000000000000000000000000000000000000600082015250565b6000614b78600583614b06565b9150614b8382614b42565b600582019050919050565b6000614b9a8285614b11565b9150614ba582614b6b565b9150614bb18284614b11565b91508190509392505050565b600067ffffffffffffffff821115614bd857614bd761466a565b5b614be1826140b9565b9050602081019050919050565b6000614c01614bfc84614bbd565b6146ca565b905082815260208101848484011115614c1d57614c1c614665565b5b614c28848285614086565b509392505050565b600082601f830112614c4557614c446144bd565b5b8151614c55848260208601614bee565b91505092915050565b600060208284031215614c7457614c73613fa5565b5b600082015167ffffffffffffffff811115614c9257614c91613faa565b5b614c9e84828501614c30565b91505092915050565b7f4d656d626572736869703a207472616e736665722069732064697361626c6564600082015250565b6000614cdd602083614075565b9150614ce882614ca7565b602082019050919050565b60006020820190508181036000830152614d0c81614cd0565b9050919050565b7f455243333532353a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000614d6f602283614075565b9150614d7a82614d13565b604082019050919050565b60006020820190508181036000830152614d9e81614d62565b9050919050565b7f4d656d626572204964206e6f74206f776e65642062792063616c6c6572000000600082015250565b6000614ddb601d83614075565b9150614de682614da5565b602082019050919050565b60006020820190508181036000830152614e0a81614dce565b9050919050565b7f43616e6e6f74207570677261646520746f20746865206e65787420746965722e60008201527f20596f75206861766520726561636865642061206d6178207469657200000000602082015250565b6000614e6d603c83614075565b9150614e7882614e11565b604082019050919050565b60006020820190508181036000830152614e9c81614e60565b9050919050565b7f4e6f7420656e6f75676820706f696e747320746f207570677261646500000000600082015250565b6000614ed9601c83614075565b9150614ee482614ea3565b602082019050919050565b60006020820190508181036000830152614f0881614ecc565b9050919050565b6000604082019050614f2460008301856142a3565b614f3160208301846142a3565b9392505050565b7f455243333532353a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614f94602383614075565b9150614f9f82614f38565b604082019050919050565b60006020820190508181036000830152614fc381614f87565b9050919050565b7f536574207a65726f206164647265737300000000000000000000000000000000600082015250565b6000615000601083614075565b915061500b82614fca565b602082019050919050565b6000602082019050818103600083015261502f81614ff3565b9050919050565b7f455243333532353a20696e76616c696420746f6b656e20494400000000000000600082015250565b600061506c601983614075565b915061507782615036565b602082019050919050565b6000602082019050818103600083015261509b8161505f565b9050919050565b7f455243333532353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b60006150fe602b83614075565b9150615109826150a2565b604082019050919050565b6000602082019050818103600083015261512d816150f1565b9050919050565b7f4f6e6c79204f70657261746f7200000000000000000000000000000000000000600082015250565b600061516a600d83614075565b915061517582615134565b602082019050919050565b600060208201905081810360008301526151998161515d565b9050919050565b7f4e6f7420617363656e64696e67206f7264657200000000000000000000000000600082015250565b60006151d6601383614075565b91506151e1826151a0565b602082019050919050565b60006020820190508181036000830152615205816151c9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061524682614125565b915061525183614125565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156152865761528561520c565b5b828201905092915050565b600061529c82614125565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152cf576152ce61520c565b5b600182019050919050565b60006152e582614125565b91506152f083614125565b9250828210156153035761530261520c565b5b828203905092915050565b600061531a8285614b11565b91506153268284614b11565b91508190509392505050565b7f636f6e74726163742f0000000000000000000000000000000000000000000000600082015250565b6000615368600983614b06565b915061537382615332565b600982019050919050565b600061538a8285614b11565b91506153958261535b565b91506153a18284614b11565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615409602683614075565b9150615414826153ad565b604082019050919050565b60006020820190508181036000830152615438816153fc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061547982614125565b915061548483614125565b9250826154945761549361543f565b5b828204905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006154d5602083614075565b91506154e08261549f565b602082019050919050565b60006020820190508181036000830152615504816154c8565b9050919050565b7f455243333532353a20617070726f76652076616c756520746f20746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000615567602a83614075565b91506155728261550b565b604082019050919050565b600060208201905081810360008301526155968161555a565b9050919050565b7f455243333532353a20617070726f766520746f2063616c6c6572000000000000600082015250565b60006155d3601a83614075565b91506155de8261559d565b602082019050919050565b60006020820190508181036000830152615602816155c6565b9050919050565b7f455243333532353a206275726e2076616c756520657863656564732062616c6160008201527f6e63650000000000000000000000000000000000000000000000000000000000602082015250565b6000615665602383614075565b915061567082615609565b604082019050919050565b6000602082019050818103600083015261569481615658565b9050919050565b7f455243333532353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006156f7602183614075565b91506157028261569b565b604082019050919050565b60006020820190508181036000830152615726816156ea565b9050919050565b7f455243333532353a2063616e6e6f74206d696e74207a65726f20746f6b656e4960008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000615789602183614075565b91506157948261572d565b604082019050919050565b600060208201905081810360008301526157b88161577c565b9050919050565b7f455243333532353a20746f6b656e20616c7265616479206d696e746564000000600082015250565b60006157f5601d83614075565b9150615800826157bf565b602082019050919050565b60006020820190508181036000830152615824816157e8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600061586582614125565b915061587083614125565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156158a9576158a861520c565b5b828202905092915050565b60006158bf82614125565b915060008214156158d3576158d261520c565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615914602083614075565b915061591f826158de565b602082019050919050565b6000602082019050818103600083015261594381615907565b905091905056fea264697066735822122073388ee94be0d2ee8ac5b2fa8981ecfb5c2eddecf3da93f21e99d5837fcd069c64736f6c6343000809003300000000000000000000000031003c2d5685c7d28d7174c3255307eb9a0f301500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000f4d656d626572736869702054657374000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044142434400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001368747470733a2f2f6578616d706c652e636f6d00000000000000000000000000

Loading