Token MCH Soul

 

Overview ERC-721

Total Supply:
16,864 MCHS

Holders:
3,503 addresses

Transfers:
-

 
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Soul

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Soul.sol
// Copyright (c) 2021-2022 MCH Co., Ltd.
pragma solidity ^0.8.4;

import "./IERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "./Mintable.sol";
import "./Pausable.sol";

contract Soul is ERC721Enumerable, Mintable, Pausable {
    string public baseURI;

    IERC20Burnable public rays;
    address public durabilityReducer;
    address public wallet;

    uint256 public maxDurability;
    mapping(uint256 => uint256) public remainingDurability; // tokenId -> durability
    uint256 public requiredRaysAmount;

    bool public restoreDurabilityPaused;

    event ParametersSet(uint256 maxDurability, uint256 requiredRaysAmount);
    event AddressesSet(address rays, address durabilityReducer, address wallet);
    event Minted(address to, uint256 tokenId, uint256 durability);
    event DurabilityReduced(uint256 tokenId, uint256 beforeDurability, uint256 afterDurability);
    event DurabilityRestored(uint256 tokenId, uint256 beforeDurability, uint256 afterDurability);
    event BaseURISet(string baseURI);
    event PausedRestoreDurability();
    event UnPausedRestoreDurability();

    constructor() ERC721("MCH Soul", "MCHS") {
        restoreDurabilityPaused = true;
    }

    modifier onlyDurabilityReducer() {
        require(msg.sender == durabilityReducer, "Soul: caller must be durabilityReducer");
        _;
    }

    // @dev https://github.com/OpenZeppelin/openzeppelin-contracts/blob/8ef7655e7b515a30c8b11ffc8d78fbf44bb6fe24/contracts/token/ERC721/ERC721.sol#L105-L107
    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    function setBaseURI(string memory baseURI_) public onlyOwner {
        baseURI = baseURI_;
        emit BaseURISet(baseURI_);
    }

    // @dev https://github.com/OpenZeppelin/openzeppelin-contracts/blob/a9f994f063b3c119f6fafd74ea7e51a5b5f98545/contracts/token/ERC721/ERC721.sol#L425
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override whenNotPaused {
        if  (from != address(0)) { // Except for mint
            require(remainingDurability[tokenId] == maxDurability, "Soul: remainingDurability must be equal to maxDurability");
        }
        super._beforeTokenTransfer(from, to, tokenId);
    }

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

    function reduceDurability(uint256 tokenId, uint256 durability) external onlyDurabilityReducer {
        require(_exists(tokenId), "Soul: token must exist");
        require(remainingDurability[tokenId] >= durability, "Soul: insufficient durability");

        uint256 beforeDurability = remainingDurability[tokenId];

        remainingDurability[tokenId] -= durability;

        emit DurabilityReduced(tokenId, beforeDurability, remainingDurability[tokenId]);
    }

    function restoreDurability(uint256 tokenId) external {
        require(_exists(tokenId), "Soul: token does not exist");
        require(remainingDurability[tokenId] < maxDurability, "Soul: durability is full");
        require(!restoreDurabilityPaused, "Soul: restoreDurabilityPaused");

        uint256 raysAmount = requiredRaysAmountToRestore(tokenId);
        rays.transferFrom(msg.sender, wallet, raysAmount);

        uint256 beforeDurability = remainingDurability[tokenId];

        remainingDurability[tokenId] = maxDurability;

        emit DurabilityRestored(tokenId, beforeDurability, remainingDurability[tokenId]);
    }

    function requiredRaysAmountToRestore(uint256 tokenId) public view returns(uint256) {
        require(_exists(tokenId), "Soul: token does not exist");

        // ceil(requiredRaysAmount / maxDurability * durabilityToRestore)
        uint256 durabilityToRestore = maxDurability - remainingDurability[tokenId];
        uint256 numerator = requiredRaysAmount * durabilityToRestore;
        uint256 denominator = maxDurability;
        uint256 raysAmount = numerator / denominator;
        if (numerator % denominator > 0) {
            // round up
            raysAmount += 1;
        }

        return raysAmount;
    }

    function getTokensByOwner(address owner) external view returns(uint256[] memory) {
        uint256 length = balanceOf(owner);
        uint256[] memory tokenIds = new uint256[](length);
        for(uint256 i = 0; i < length; i++) {
            tokenIds[i] = tokenOfOwnerByIndex(owner, i);
        }
        return tokenIds;
    }

    function getDurability(uint256 tokenId) external view returns(uint256) {
        require(_exists(tokenId), "Soul: token not exist");
        return remainingDurability[tokenId];
    }

    function mint(address to, uint256 tokenId) external onlyMinter {
        _mint(to, tokenId);
        remainingDurability[tokenId] = maxDurability;
        emit Minted(to, tokenId, maxDurability);
    }

    function exists(uint256 tokenId) external view returns (bool) {
      return _exists(tokenId);
    }

    function setAddresses(address _rays, address _durabilityReducer, address _wallet) external onlyOwner {
        rays = IERC20Burnable(_rays);
        durabilityReducer = _durabilityReducer;
        wallet = _wallet;

        emit AddressesSet(_rays, _durabilityReducer, _wallet);
    }

    function setParameters(uint256 _maxDurability, uint256 _requiredRaysAmount) external onlyOwner {
        maxDurability = _maxDurability;
        requiredRaysAmount = _requiredRaysAmount;

        emit ParametersSet(_maxDurability, _requiredRaysAmount);
    }

    function burn(uint256 tokenId) external {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "Soul: caller is not owner nor approved");
        _burn(tokenId);
    }

    function pauseRestoreDurability() external onlyOwner {
        require(!restoreDurabilityPaused, "Soul: not yet restoreDurabilityPaused");
        restoreDurabilityPaused = true;
    }

    function unpauseRestoreDurability() external onlyOwner {
        require(restoreDurabilityPaused, "Soul: already restoreDurabilityPaused");
        restoreDurabilityPaused = false;
    }
}

File 2 of 17 : IERC20Burnable.sol
// Copyright (c) 2021-2022 MCH Co., Ltd.
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IERC20Burnable is IERC20 {
    function burn(uint256 amount) external;
    function burnFrom(address account, uint256 amount) external;
}

File 3 of 17 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 17 : Mintable.sol
// Copyright (c) 2021-2022 MCH Co., Ltd.
pragma solidity ^0.8.4;

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

contract Mintable is Ownable {
    mapping(address => bool) public minter;
    event MinterAdded(address _minter);
    event MinterRemoved(address _minter);

    modifier onlyMinter() {
        require(minter[msg.sender], "Mintable: caller must be minter");
        _;
    }

    function addMinter(address _minter) external onlyOwner {
        require(!minter[_minter], "Mintable: minter already added");
        minter[_minter] = true;
        emit MinterAdded(_minter);
    }

    function removeMinter(address _minter) external onlyOwner {
        require(minter[_minter], "Mintable: minter already removed");
        minter[_minter] = false;
        emit MinterRemoved(_minter);
    }
}

File 5 of 17 : Pausable.sol
// Copyright (c) 2021-2022 MCH Co., Ltd.
pragma solidity ^0.8.4;

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

contract Pausable is Ownable {
    bool public paused;
    event Paused();
    event UnPaused();

    modifier whenNotPaused() {
        require(!paused, "Pausable: paused");
        _;
    }

    function pause() external onlyOwner {
        require(!paused, "Pausable: already paused");
        paused = true;
        emit Paused();
    }

    function unpause() external onlyOwner {
        require(paused, "Pausable: already unpaused");
        paused = false;
        emit UnPaused();
    }
}

File 6 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 7 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 8 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 tokenId);

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

File 9 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

File 10 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 12 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 14 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 15 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 16 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 17 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"rays","type":"address"},{"indexed":false,"internalType":"address","name":"durabilityReducer","type":"address"},{"indexed":false,"internalType":"address","name":"wallet","type":"address"}],"name":"AddressesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURISet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"beforeDurability","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"afterDurability","type":"uint256"}],"name":"DurabilityReduced","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"beforeDurability","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"afterDurability","type":"uint256"}],"name":"DurabilityRestored","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"durability","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_minter","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_minter","type":"address"}],"name":"MinterRemoved","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":false,"internalType":"uint256","name":"maxDurability","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"requiredRaysAmount","type":"uint256"}],"name":"ParametersSet","type":"event"},{"anonymous":false,"inputs":[],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[],"name":"PausedRestoreDurability","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":[],"name":"UnPaused","type":"event"},{"anonymous":false,"inputs":[],"name":"UnPausedRestoreDurability","type":"event"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"durabilityReducer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"tokenId","type":"uint256"}],"name":"getDurability","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getTokensByOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxDurability","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseRestoreDurability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rays","outputs":[{"internalType":"contract IERC20Burnable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"durability","type":"uint256"}],"name":"reduceDurability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"remainingDurability","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"removeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requiredRaysAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"requiredRaysAmountToRestore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"restoreDurability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"restoreDurabilityPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rays","type":"address"},{"internalType":"address","name":"_durabilityReducer","type":"address"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxDurability","type":"uint256"},{"internalType":"uint256","name":"_requiredRaysAmount","type":"uint256"}],"name":"setParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseRestoreDurability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040518060400160405280600881526020017f4d434820536f756c0000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4d43485300000000000000000000000000000000000000000000000000000000815250816000908051906020019062000096929190620001c1565b508060019080519060200190620000af929190620001c1565b505050620000d2620000c6620000f360201b60201c565b620000fb60201b60201c565b6001601460006101000a81548160ff021916908315150217905550620002d6565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001cf9062000271565b90600052602060002090601f016020900481019282620001f357600085556200023f565b82601f106200020e57805160ff19168380011785556200023f565b828001600101855582156200023f579182015b828111156200023e57825182559160200191906001019062000221565b5b5090506200024e919062000252565b5090565b5b808211156200026d57600081600090555060010162000253565b5090565b600060028204905060018216806200028a57607f821691505b60208210811415620002a157620002a0620002a7565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b61597080620002e66000396000f3fe608060405234801561001057600080fd5b506004361061028a5760003560e01c80636096d3021161015c578063983b2d56116100ce578063c23ad03e11610087578063c23ad03e146107ab578063c87b56dd146107c9578063d524a35b146107f9578063e985e9c514610803578063f2fde38b14610833578063f8e678a71461084f5761028a565b8063983b2d5614610715578063a22cb46514610731578063a737ac5f1461074d578063af368e2314610769578063b88d4fde14610773578063bc0d396b1461078f5761028a565b8063714f5f0111610120578063714f5f0114610679578063715018a6146106a95780638456cb59146106b3578063884870c7146106bd5780638da5cb5b146106d957806395d89b41146106f75761028a565b80636096d302146105bf57806362a51b5e146105dd5780636352211e146105fb5780636c0360eb1461062b57806370a08231146106495761028a565b80633dd08c38116102005780634f558e79116101b95780634f558e79146104d75780634f6ccce714610507578063509d292714610537578063521eb2731461056757806355f804b3146105855780635c975abb146105a15761028a565b80633dd08c38146104195780633f4ba83a1461044957806340398d671461045357806340c10f191461048357806342842e0e1461049f57806342966c68146104bb5761028a565b806314190b4a1161025257806314190b4a1461034757806318160ddd1461037757806323b872dd146103955780632f745c59146103b15780633092afd5146103e1578063363bf964146103fd5761028a565b806301ffc9a71461028f57806306fdde03146102bf578063081812fc146102dd578063095ea7b31461030d5780630eea5e1114610329575b600080fd5b6102a960048036038101906102a49190613e2b565b61086d565b6040516102b691906146a2565b60405180910390f35b6102c761087f565b6040516102d491906146d8565b60405180910390f35b6102f760048036038101906102f29190613ebe565b610911565b6040516103049190614574565b60405180910390f35b61032760048036038101906103229190613dc6565b610996565b005b610331610aae565b60405161033e91906146a2565b60405180910390f35b610361600480360381019061035c9190613ebe565b610ac1565b60405161036e9190614b5a565b60405180910390f35b61037f610b89565b60405161038c9190614b5a565b60405180910390f35b6103af60048036038101906103aa9190613cc0565b610b96565b005b6103cb60048036038101906103c69190613dc6565b610bf6565b6040516103d89190614b5a565b60405180910390f35b6103fb60048036038101906103f69190613c0c565b610c9b565b005b61041760048036038101906104129190613c71565b610e35565b005b610433600480360381019061042e9190613c0c565b610fb4565b60405161044091906146a2565b60405180910390f35b610451610fd4565b005b61046d60048036038101906104689190613c0c565b6110e8565b60405161047a9190614680565b60405180910390f35b61049d60048036038101906104989190613dc6565b6111e2565b005b6104b960048036038101906104b49190613cc0565b6112d3565b005b6104d560048036038101906104d09190613ebe565b6112f3565b005b6104f160048036038101906104ec9190613ebe565b61134f565b6040516104fe91906146a2565b60405180910390f35b610521600480360381019061051c9190613ebe565b611361565b60405161052e9190614b5a565b60405180910390f35b610551600480360381019061054c9190613ebe565b6113f8565b60405161055e9190614b5a565b60405180910390f35b61056f61145d565b60405161057c9190614574565b60405180910390f35b61059f600480360381019061059a9190613e7d565b611483565b005b6105a9611550565b6040516105b691906146a2565b60405180910390f35b6105c7611563565b6040516105d49190614b5a565b60405180910390f35b6105e5611569565b6040516105f29190614574565b60405180910390f35b61061560048036038101906106109190613ebe565b61158f565b6040516106229190614574565b60405180910390f35b610633611641565b60405161064091906146d8565b60405180910390f35b610663600480360381019061065e9190613c0c565b6116cf565b6040516106709190614b5a565b60405180910390f35b610693600480360381019061068e9190613ebe565b611787565b6040516106a09190614b5a565b60405180910390f35b6106b161179f565b005b6106bb611827565b005b6106d760048036038101906106d29190613ee7565b61193c565b005b6106e1611a03565b6040516106ee9190614574565b60405180910390f35b6106ff611a2d565b60405161070c91906146d8565b60405180910390f35b61072f600480360381019061072a9190613c0c565b611abf565b005b61074b60048036038101906107469190613d8a565b611c5a565b005b61076760048036038101906107629190613ebe565b611c70565b005b610771611ec5565b005b61078d60048036038101906107889190613d0f565b611fad565b005b6107a960048036038101906107a49190613ee7565b61200f565b005b6107b36121d2565b6040516107c091906146bd565b60405180910390f35b6107e360048036038101906107de9190613ebe565b6121f8565b6040516107f091906146d8565b60405180910390f35b61080161229f565b005b61081d60048036038101906108189190613c35565b612388565b60405161082a91906146a2565b60405180910390f35b61084d60048036038101906108489190613c0c565b61241c565b005b610857612514565b6040516108649190614b5a565b60405180910390f35b60006108788261251a565b9050919050565b60606000805461088e90614ec7565b80601f01602080910402602001604051908101604052809291908181526020018280546108ba90614ec7565b80156109075780601f106108dc57610100808354040283529160200191610907565b820191906000526020600020905b8154815290600101906020018083116108ea57829003601f168201915b5050505050905090565b600061091c82612594565b61095b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109529061499a565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109a18261158f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0990614a5a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a31612600565b73ffffffffffffffffffffffffffffffffffffffff161480610a605750610a5f81610a5a612600565b612388565b5b610a9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a969061489a565b60405180910390fd5b610aa98383612608565b505050565b601460009054906101000a900460ff1681565b6000610acc82612594565b610b0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0290614a7a565b60405180910390fd5b60006012600084815260200190815260200160002054601154610b2e9190614db9565b9050600081601354610b409190614d5f565b90506000601154905060008183610b579190614d2e565b905060008284610b679190614f73565b1115610b7d57600181610b7a9190614cd8565b90505b80945050505050919050565b6000600880549050905090565b610ba7610ba1612600565b826126c1565b610be6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdd90614ada565b60405180910390fd5b610bf183838361279f565b505050565b6000610c01836116cf565b8210610c42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c399061471a565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610ca3612600565b73ffffffffffffffffffffffffffffffffffffffff16610cc1611a03565b73ffffffffffffffffffffffffffffffffffffffff1614610d17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0e906149ba565b60405180910390fd5b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610da3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9a9061495a565b60405180910390fd5b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669281604051610e2a9190614574565b60405180910390a150565b610e3d612600565b73ffffffffffffffffffffffffffffffffffffffff16610e5b611a03565b73ffffffffffffffffffffffffffffffffffffffff1614610eb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea8906149ba565b60405180910390fd5b82600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507ffa46f045092280873921fe7e8bd94f64c996911a0bae60b09d487935b9117e7a838383604051610fa79392919061458f565b60405180910390a1505050565b600b6020528060005260406000206000915054906101000a900460ff1681565b610fdc612600565b73ffffffffffffffffffffffffffffffffffffffff16610ffa611a03565b73ffffffffffffffffffffffffffffffffffffffff1614611050576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611047906149ba565b60405180910390fd5b600c60009054906101000a900460ff1661109f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110969061481a565b60405180910390fd5b6000600c60006101000a81548160ff0219169083151502179055507f472cf038e2a5f33dbaa68760dbf94ab4e159535e6580c0ac63f8202c7c6c0bb260405160405180910390a1565b606060006110f5836116cf565b905060008167ffffffffffffffff811115611139577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156111675781602001602082028036833780820191505090505b50905060005b828110156111d75761117f8582610bf6565b8282815181106111b8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080806111cf90614f2a565b91505061116d565b508092505050919050565b600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661126e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112659061485a565b60405180910390fd5b61127882826129fb565b60115460126000838152602001908152602001600020819055507f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff82826011546040516112c793929190614649565b60405180910390a15050565b6112ee83838360405180602001604052806000815250611fad565b505050565b6113046112fe612600565b826126c1565b611343576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133a906147fa565b60405180910390fd5b61134c81612bc9565b50565b600061135a82612594565b9050919050565b600061136b610b89565b82106113ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a390614b3a565b60405180910390fd5b600882815481106113e6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b600061140382612594565b611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143990614aba565b60405180910390fd5b60126000838152602001908152602001600020549050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61148b612600565b73ffffffffffffffffffffffffffffffffffffffff166114a9611a03565b73ffffffffffffffffffffffffffffffffffffffff16146114ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f6906149ba565b60405180910390fd5b80600d9080519060200190611515929190613a1b565b507ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f68160405161154591906146d8565b60405180910390a150565b600c60009054906101000a900460ff1681565b60135481565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162f906148da565b60405180910390fd5b80915050919050565b600d805461164e90614ec7565b80601f016020809104026020016040519081016040528092919081815260200182805461167a90614ec7565b80156116c75780601f1061169c576101008083540402835291602001916116c7565b820191906000526020600020905b8154815290600101906020018083116116aa57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611740576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611737906148ba565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60126020528060005260406000206000915090505481565b6117a7612600565b73ffffffffffffffffffffffffffffffffffffffff166117c5611a03565b73ffffffffffffffffffffffffffffffffffffffff161461181b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611812906149ba565b60405180910390fd5b6118256000612cda565b565b61182f612600565b73ffffffffffffffffffffffffffffffffffffffff1661184d611a03565b73ffffffffffffffffffffffffffffffffffffffff16146118a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189a906149ba565b60405180910390fd5b600c60009054906101000a900460ff16156118f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ea9061493a565b60405180910390fd5b6001600c60006101000a81548160ff0219169083151502179055507f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e75260405160405180910390a1565b611944612600565b73ffffffffffffffffffffffffffffffffffffffff16611962611a03565b73ffffffffffffffffffffffffffffffffffffffff16146119b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119af906149ba565b60405180910390fd5b81601181905550806013819055507fe072d582d7031819af9cce529b7751c0818844f68678815a0fc48a8ae1f4e31682826040516119f7929190614b75565b60405180910390a15050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611a3c90614ec7565b80601f0160208091040260200160405190810160405280929190818152602001828054611a6890614ec7565b8015611ab55780601f10611a8a57610100808354040283529160200191611ab5565b820191906000526020600020905b815481529060010190602001808311611a9857829003601f168201915b5050505050905090565b611ac7612600565b73ffffffffffffffffffffffffffffffffffffffff16611ae5611a03565b73ffffffffffffffffffffffffffffffffffffffff1614611b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b32906149ba565b60405180910390fd5b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611bc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbf9061497a565b60405180910390fd5b6001600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f681604051611c4f9190614574565b60405180910390a150565b611c6c611c65612600565b8383612da0565b5050565b611c7981612594565b611cb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611caf90614a7a565b60405180910390fd5b601154601260008381526020019081526020016000205410611d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0690614a3a565b60405180910390fd5b601460009054906101000a900460ff1615611d5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d56906148fa565b60405180910390fd5b6000611d6a82610ac1565b9050600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b8152600401611ded939291906145c6565b602060405180830381600087803b158015611e0757600080fd5b505af1158015611e1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3f9190613e02565b5060006012600084815260200190815260200160002054905060115460126000858152602001908152602001600020819055507fb9c846276266457e99feddbde5fde9946ac1f801743aec2e91671ad89ccc785b83826012600087815260200190815260200160002054604051611eb893929190614b9e565b60405180910390a1505050565b611ecd612600565b73ffffffffffffffffffffffffffffffffffffffff16611eeb611a03565b73ffffffffffffffffffffffffffffffffffffffff1614611f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f38906149ba565b60405180910390fd5b601460009054906101000a900460ff16611f90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f87906149da565b60405180910390fd5b6000601460006101000a81548160ff021916908315150217905550565b611fbe611fb8612600565b836126c1565b611ffd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff490614ada565b60405180910390fd5b61200984848484612f0d565b50505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461209f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209690614a9a565b60405180910390fd5b6120a882612594565b6120e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120de90614b1a565b60405180910390fd5b806012600084815260200190815260200160002054101561213d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213490614afa565b60405180910390fd5b600060126000848152602001908152602001600020549050816012600085815260200190815260200160002060008282546121789190614db9565b925050819055507f0dcc302b198e0e9c452ea2497c4262cd67977aad5c35ba2e9339173bb66578bd838260126000878152602001908152602001600020546040516121c593929190614b9e565b60405180910390a1505050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606061220382612594565b612242576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223990614a1a565b60405180910390fd5b600061224c612f69565b9050600081511161226c5760405180602001604052806000815250612297565b8061227684612ffb565b604051602001612287929190614550565b6040516020818303038152906040525b915050919050565b6122a7612600565b73ffffffffffffffffffffffffffffffffffffffff166122c5611a03565b73ffffffffffffffffffffffffffffffffffffffff161461231b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612312906149ba565b60405180910390fd5b601460009054906101000a900460ff161561236b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612362906146fa565b60405180910390fd5b6001601460006101000a81548160ff021916908315150217905550565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612424612600565b73ffffffffffffffffffffffffffffffffffffffff16612442611a03565b73ffffffffffffffffffffffffffffffffffffffff1614612498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248f906149ba565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ff9061475a565b60405180910390fd5b61251181612cda565b50565b60115481565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061258d575061258c826131a8565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661267b8361158f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006126cc82612594565b61270b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127029061483a565b60405180910390fd5b60006127168361158f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061278557508373ffffffffffffffffffffffffffffffffffffffff1661276d84610911565b73ffffffffffffffffffffffffffffffffffffffff16145b8061279657506127958185612388565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166127bf8261158f565b73ffffffffffffffffffffffffffffffffffffffff1614612815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280c906149fa565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612885576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287c9061479a565b60405180910390fd5b61289083838361328a565b61289b600082612608565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128eb9190614db9565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129429190614cd8565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a629061491a565b60405180910390fd5b612a7481612594565b15612ab4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aab9061477a565b60405180910390fd5b612ac06000838361328a565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b109190614cd8565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000612bd48261158f565b9050612be28160008461328a565b612bed600083612608565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c3d9190614db9565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612e0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e06906147ba565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612f0091906146a2565b60405180910390a3505050565b612f1884848461279f565b612f2484848484613376565b612f63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5a9061473a565b60405180910390fd5b50505050565b6060600d8054612f7890614ec7565b80601f0160208091040260200160405190810160405280929190818152602001828054612fa490614ec7565b8015612ff15780601f10612fc657610100808354040283529160200191612ff1565b820191906000526020600020905b815481529060010190602001808311612fd457829003601f168201915b5050505050905090565b60606000821415613043576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131a3565b600082905060005b6000821461307557808061305e90614f2a565b915050600a8261306e9190614d2e565b915061304b565b60008167ffffffffffffffff8111156130b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130e95781602001600182028036833780820191505090505b5090505b6000851461319c576001826131029190614db9565b9150600a856131119190614f73565b603061311d9190614cd8565b60f81b818381518110613159577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131959190614d2e565b94506130ed565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061327357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061328357506132828261350d565b5b9050919050565b600c60009054906101000a900460ff16156132da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132d19061487a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461336657601154601260008381526020019081526020016000205414613365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161335c906147da565b60405180910390fd5b5b613371838383613577565b505050565b60006133978473ffffffffffffffffffffffffffffffffffffffff1661368b565b15613500578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026133c0612600565b8786866040518563ffffffff1660e01b81526004016133e294939291906145fd565b602060405180830381600087803b1580156133fc57600080fd5b505af192505050801561342d57506040513d601f19601f8201168201806040525081019061342a9190613e54565b60015b6134b0573d806000811461345d576040519150601f19603f3d011682016040523d82523d6000602084013e613462565b606091505b506000815114156134a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161349f9061473a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613505565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61358283838361369e565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156135c5576135c0816136a3565b613604565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146136035761360283826136ec565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156136475761364281613859565b613686565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461368557613684828261399c565b5b5b505050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016136f9846116cf565b6137039190614db9565b90506000600760008481526020019081526020016000205490508181146137e8576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061386d9190614db9565b90506000600960008481526020019081526020016000205490506000600883815481106138c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061390b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613980577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006139a7836116cf565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054613a2790614ec7565b90600052602060002090601f016020900481019282613a495760008555613a90565b82601f10613a6257805160ff1916838001178555613a90565b82800160010185558215613a90579182015b82811115613a8f578251825591602001919060010190613a74565b5b509050613a9d9190613aa1565b5090565b5b80821115613aba576000816000905550600101613aa2565b5090565b6000613ad1613acc84614bfa565b614bd5565b905082815260208101848484011115613ae957600080fd5b613af4848285614e85565b509392505050565b6000613b0f613b0a84614c2b565b614bd5565b905082815260208101848484011115613b2757600080fd5b613b32848285614e85565b509392505050565b600081359050613b49816158de565b92915050565b600081359050613b5e816158f5565b92915050565b600081519050613b73816158f5565b92915050565b600081359050613b888161590c565b92915050565b600081519050613b9d8161590c565b92915050565b600082601f830112613bb457600080fd5b8135613bc4848260208601613abe565b91505092915050565b600082601f830112613bde57600080fd5b8135613bee848260208601613afc565b91505092915050565b600081359050613c0681615923565b92915050565b600060208284031215613c1e57600080fd5b6000613c2c84828501613b3a565b91505092915050565b60008060408385031215613c4857600080fd5b6000613c5685828601613b3a565b9250506020613c6785828601613b3a565b9150509250929050565b600080600060608486031215613c8657600080fd5b6000613c9486828701613b3a565b9350506020613ca586828701613b3a565b9250506040613cb686828701613b3a565b9150509250925092565b600080600060608486031215613cd557600080fd5b6000613ce386828701613b3a565b9350506020613cf486828701613b3a565b9250506040613d0586828701613bf7565b9150509250925092565b60008060008060808587031215613d2557600080fd5b6000613d3387828801613b3a565b9450506020613d4487828801613b3a565b9350506040613d5587828801613bf7565b925050606085013567ffffffffffffffff811115613d7257600080fd5b613d7e87828801613ba3565b91505092959194509250565b60008060408385031215613d9d57600080fd5b6000613dab85828601613b3a565b9250506020613dbc85828601613b4f565b9150509250929050565b60008060408385031215613dd957600080fd5b6000613de785828601613b3a565b9250506020613df885828601613bf7565b9150509250929050565b600060208284031215613e1457600080fd5b6000613e2284828501613b64565b91505092915050565b600060208284031215613e3d57600080fd5b6000613e4b84828501613b79565b91505092915050565b600060208284031215613e6657600080fd5b6000613e7484828501613b8e565b91505092915050565b600060208284031215613e8f57600080fd5b600082013567ffffffffffffffff811115613ea957600080fd5b613eb584828501613bcd565b91505092915050565b600060208284031215613ed057600080fd5b6000613ede84828501613bf7565b91505092915050565b60008060408385031215613efa57600080fd5b6000613f0885828601613bf7565b9250506020613f1985828601613bf7565b9150509250929050565b6000613f2f8383614532565b60208301905092915050565b613f4481614ded565b82525050565b6000613f5582614c6c565b613f5f8185614c9a565b9350613f6a83614c5c565b8060005b83811015613f9b578151613f828882613f23565b9750613f8d83614c8d565b925050600181019050613f6e565b5085935050505092915050565b613fb181614dff565b82525050565b6000613fc282614c77565b613fcc8185614cab565b9350613fdc818560208601614e94565b613fe581615060565b840191505092915050565b613ff981614e61565b82525050565b600061400a82614c82565b6140148185614cbc565b9350614024818560208601614e94565b61402d81615060565b840191505092915050565b600061404382614c82565b61404d8185614ccd565b935061405d818560208601614e94565b80840191505092915050565b6000614076602583614cbc565b915061408182615071565b604082019050919050565b6000614099602b83614cbc565b91506140a4826150c0565b604082019050919050565b60006140bc603283614cbc565b91506140c78261510f565b604082019050919050565b60006140df602683614cbc565b91506140ea8261515e565b604082019050919050565b6000614102601c83614cbc565b915061410d826151ad565b602082019050919050565b6000614125602483614cbc565b9150614130826151d6565b604082019050919050565b6000614148601983614cbc565b915061415382615225565b602082019050919050565b600061416b603883614cbc565b91506141768261524e565b604082019050919050565b600061418e602683614cbc565b91506141998261529d565b604082019050919050565b60006141b1601a83614cbc565b91506141bc826152ec565b602082019050919050565b60006141d4602c83614cbc565b91506141df82615315565b604082019050919050565b60006141f7601f83614cbc565b915061420282615364565b602082019050919050565b600061421a601083614cbc565b91506142258261538d565b602082019050919050565b600061423d603883614cbc565b9150614248826153b6565b604082019050919050565b6000614260602a83614cbc565b915061426b82615405565b604082019050919050565b6000614283602983614cbc565b915061428e82615454565b604082019050919050565b60006142a6601d83614cbc565b91506142b1826154a3565b602082019050919050565b60006142c9602083614cbc565b91506142d4826154cc565b602082019050919050565b60006142ec601883614cbc565b91506142f7826154f5565b602082019050919050565b600061430f602083614cbc565b915061431a8261551e565b602082019050919050565b6000614332601e83614cbc565b915061433d82615547565b602082019050919050565b6000614355602c83614cbc565b915061436082615570565b604082019050919050565b6000614378602083614cbc565b9150614383826155bf565b602082019050919050565b600061439b602583614cbc565b91506143a6826155e8565b604082019050919050565b60006143be602983614cbc565b91506143c982615637565b604082019050919050565b60006143e1602f83614cbc565b91506143ec82615686565b604082019050919050565b6000614404601883614cbc565b915061440f826156d5565b602082019050919050565b6000614427602183614cbc565b9150614432826156fe565b604082019050919050565b600061444a601a83614cbc565b91506144558261574d565b602082019050919050565b600061446d602683614cbc565b915061447882615776565b604082019050919050565b6000614490601583614cbc565b915061449b826157c5565b602082019050919050565b60006144b3603183614cbc565b91506144be826157ee565b604082019050919050565b60006144d6601d83614cbc565b91506144e18261583d565b602082019050919050565b60006144f9601683614cbc565b915061450482615866565b602082019050919050565b600061451c602c83614cbc565b91506145278261588f565b604082019050919050565b61453b81614e57565b82525050565b61454a81614e57565b82525050565b600061455c8285614038565b91506145688284614038565b91508190509392505050565b60006020820190506145896000830184613f3b565b92915050565b60006060820190506145a46000830186613f3b565b6145b16020830185613f3b565b6145be6040830184613f3b565b949350505050565b60006060820190506145db6000830186613f3b565b6145e86020830185613f3b565b6145f56040830184614541565b949350505050565b60006080820190506146126000830187613f3b565b61461f6020830186613f3b565b61462c6040830185614541565b818103606083015261463e8184613fb7565b905095945050505050565b600060608201905061465e6000830186613f3b565b61466b6020830185614541565b6146786040830184614541565b949350505050565b6000602082019050818103600083015261469a8184613f4a565b905092915050565b60006020820190506146b76000830184613fa8565b92915050565b60006020820190506146d26000830184613ff0565b92915050565b600060208201905081810360008301526146f28184613fff565b905092915050565b6000602082019050818103600083015261471381614069565b9050919050565b600060208201905081810360008301526147338161408c565b9050919050565b60006020820190508181036000830152614753816140af565b9050919050565b60006020820190508181036000830152614773816140d2565b9050919050565b60006020820190508181036000830152614793816140f5565b9050919050565b600060208201905081810360008301526147b381614118565b9050919050565b600060208201905081810360008301526147d38161413b565b9050919050565b600060208201905081810360008301526147f38161415e565b9050919050565b6000602082019050818103600083015261481381614181565b9050919050565b60006020820190508181036000830152614833816141a4565b9050919050565b60006020820190508181036000830152614853816141c7565b9050919050565b60006020820190508181036000830152614873816141ea565b9050919050565b600060208201905081810360008301526148938161420d565b9050919050565b600060208201905081810360008301526148b381614230565b9050919050565b600060208201905081810360008301526148d381614253565b9050919050565b600060208201905081810360008301526148f381614276565b9050919050565b6000602082019050818103600083015261491381614299565b9050919050565b60006020820190508181036000830152614933816142bc565b9050919050565b60006020820190508181036000830152614953816142df565b9050919050565b6000602082019050818103600083015261497381614302565b9050919050565b6000602082019050818103600083015261499381614325565b9050919050565b600060208201905081810360008301526149b381614348565b9050919050565b600060208201905081810360008301526149d38161436b565b9050919050565b600060208201905081810360008301526149f38161438e565b9050919050565b60006020820190508181036000830152614a13816143b1565b9050919050565b60006020820190508181036000830152614a33816143d4565b9050919050565b60006020820190508181036000830152614a53816143f7565b9050919050565b60006020820190508181036000830152614a738161441a565b9050919050565b60006020820190508181036000830152614a938161443d565b9050919050565b60006020820190508181036000830152614ab381614460565b9050919050565b60006020820190508181036000830152614ad381614483565b9050919050565b60006020820190508181036000830152614af3816144a6565b9050919050565b60006020820190508181036000830152614b13816144c9565b9050919050565b60006020820190508181036000830152614b33816144ec565b9050919050565b60006020820190508181036000830152614b538161450f565b9050919050565b6000602082019050614b6f6000830184614541565b92915050565b6000604082019050614b8a6000830185614541565b614b976020830184614541565b9392505050565b6000606082019050614bb36000830186614541565b614bc06020830185614541565b614bcd6040830184614541565b949350505050565b6000614bdf614bf0565b9050614beb8282614ef9565b919050565b6000604051905090565b600067ffffffffffffffff821115614c1557614c14615031565b5b614c1e82615060565b9050602081019050919050565b600067ffffffffffffffff821115614c4657614c45615031565b5b614c4f82615060565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614ce382614e57565b9150614cee83614e57565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614d2357614d22614fa4565b5b828201905092915050565b6000614d3982614e57565b9150614d4483614e57565b925082614d5457614d53614fd3565b5b828204905092915050565b6000614d6a82614e57565b9150614d7583614e57565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614dae57614dad614fa4565b5b828202905092915050565b6000614dc482614e57565b9150614dcf83614e57565b925082821015614de257614de1614fa4565b5b828203905092915050565b6000614df882614e37565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614e6c82614e73565b9050919050565b6000614e7e82614e37565b9050919050565b82818337600083830152505050565b60005b83811015614eb2578082015181840152602081019050614e97565b83811115614ec1576000848401525b50505050565b60006002820490506001821680614edf57607f821691505b60208210811415614ef357614ef2615002565b5b50919050565b614f0282615060565b810181811067ffffffffffffffff82111715614f2157614f20615031565b5b80604052505050565b6000614f3582614e57565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614f6857614f67614fa4565b5b600182019050919050565b6000614f7e82614e57565b9150614f8983614e57565b925082614f9957614f98614fd3565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f536f756c3a206e6f742079657420726573746f72654475726162696c6974795060008201527f6175736564000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f536f756c3a2072656d61696e696e674475726162696c697479206d757374206260008201527f6520657175616c20746f206d61784475726162696c6974790000000000000000602082015250565b7f536f756c3a2063616c6c6572206973206e6f74206f776e6572206e6f7220617060008201527f70726f7665640000000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a20616c726561647920756e706175736564000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4d696e7461626c653a2063616c6c6572206d757374206265206d696e74657200600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f536f756c3a20726573746f72654475726162696c697479506175736564000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f5061757361626c653a20616c7265616479207061757365640000000000000000600082015250565b7f4d696e7461626c653a206d696e74657220616c72656164792072656d6f766564600082015250565b7f4d696e7461626c653a206d696e74657220616c72656164792061646465640000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f536f756c3a20616c726561647920726573746f72654475726162696c6974795060008201527f6175736564000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f536f756c3a206475726162696c6974792069732066756c6c0000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f536f756c3a20746f6b656e20646f6573206e6f74206578697374000000000000600082015250565b7f536f756c3a2063616c6c6572206d757374206265206475726162696c6974795260008201527f6564756365720000000000000000000000000000000000000000000000000000602082015250565b7f536f756c3a20746f6b656e206e6f742065786973740000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f536f756c3a20696e73756666696369656e74206475726162696c697479000000600082015250565b7f536f756c3a20746f6b656e206d75737420657869737400000000000000000000600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6158e781614ded565b81146158f257600080fd5b50565b6158fe81614dff565b811461590957600080fd5b50565b61591581614e0b565b811461592057600080fd5b50565b61592c81614e57565b811461593757600080fd5b5056fea2646970667358221220438e30793d46833d5cf79f24f1d124d0c308f0a06091225884e4c871afc5537764736f6c63430008040033

Loading