ETH Price: $3,351.59 (-0.71%)
Gas: 9.68 Gwei

Contract

0x88B7063107d2CF7FAC83E30b37c938fE42c56040
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...209978462024-10-19 6:32:4735 days ago1729319567IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.000229399.25313051
Set Approval For...207499142024-09-14 16:03:1169 days ago1726329791IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.000093893.80053659
Set Approval For...205210052024-08-13 16:49:59101 days ago1723567799IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.000161426.53353594
Safe Transfer Fr...200374772024-06-07 4:11:23169 days ago1717733483IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.000366168.85906339
Transfer From199964052024-06-01 10:35:11174 days ago1717238111IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.000230025.97524288
Set Approval For...199481062024-05-25 16:33:11181 days ago1716654791IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.000269455.77999188
Set Approval For...199479962024-05-25 16:10:59181 days ago1716653459IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.000302376.48603746
Set Approval For...199090052024-05-20 5:18:59187 days ago1716182339IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.000157663.38201126
Safe Transfer Fr...198900342024-05-17 13:37:23189 days ago1715953043IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.00025276.10447086
Set Approval For...198899712024-05-17 13:24:35189 days ago1715952275IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.000313376.7219378
Set Approval For...195462142024-03-30 10:35:47237 days ago1711794947IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.0004123116.63158444
Set Approval For...195024252024-03-24 5:46:47244 days ago1711259207IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.0007290615.63885087
Set Approval For...190950552024-01-27 2:51:47301 days ago1706323907IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.0003138512.66005128
Set Approval For...190950532024-01-27 2:51:23301 days ago1706323883IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.000323713.10160185
Transfer From190607502024-01-22 7:20:23306 days ago1705908023IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.0006733817.48680635
Transfer From187331432023-12-07 8:11:47351 days ago1701936707IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.001463338
Transfer From187331432023-12-07 8:11:47351 days ago1701936707IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.001463338
Transfer From187331432023-12-07 8:11:47351 days ago1701936707IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.001463338
Safe Transfer Fr...186953332023-12-02 1:06:59357 days ago1701479219IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.0015353937.09039784
Set Approval For...183331692023-10-12 8:33:35407 days ago1697099615IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.000305286.54846429
Transfer From176896892023-07-14 5:40:59498 days ago1689313259IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.0009383424.36762378
Transfer From176896862023-07-14 5:40:23498 days ago1689313223IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.0009936325.80339428
Transfer From176896702023-07-14 5:37:11498 days ago1689313031IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.000786920.43481649
Set Approval For...175326142023-06-22 3:52:59520 days ago1687405979IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.0006903614.80860388
Set Approval For...173705352023-05-30 8:22:11542 days ago1685434931IN
Katana N Samurai 2: KNS2.0 Token
0 ETH0.0020129143.17805171
View all transactions

Latest 5 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
148119342022-05-20 15:41:41917 days ago1653061301
Katana N Samurai 2: KNS2.0 Token
1.95 ETH
147803492022-05-15 14:01:54922 days ago1652623314
Katana N Samurai 2: KNS2.0 Token
2.25 ETH
140432102022-01-20 15:19:471037 days ago1642691987
Katana N Samurai 2: KNS2.0 Token
16.875 ETH
140370192022-01-19 16:28:101038 days ago1642609690
Katana N Samurai 2: KNS2.0 Token
20.7 ETH
140303142022-01-18 15:29:131039 days ago1642519753
Katana N Samurai 2: KNS2.0 Token
49.95 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KatanaNSamurai2

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : KatanaNSamurai2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import './ERC721B.sol';
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";

//  _  __ _   _   _____   ___       ___
// | |/ /| \ | | / ____| |__ \     / _ \
// | ' / |  \| || (___      ) |   | | | |
// |  <  | . ` | \___ \    / /    | | | |
// | . \ | |\  | ____) |  / /_  _ | |_| |
// |_|\_\|_| \_||_____/  |____|(_) \___/

contract KatanaNSamurai2 is Ownable, EIP712, ERC721B {

	using SafeMath for uint256;
	using Strings for uint256;

	// Sales variables
	// ------------------------------------------------------------------------
	uint public MAX_SAMURAI = 6666;
	uint public STAGE_LIMIT = 666;
	uint public PRICE = 0.075 ether;
	uint public numPresale = 0;
	uint public numSale = 0;
	uint public numClaim = 0;
	uint public numGiveaway = 0;
	uint public totalSupply = 0;
	bool public hasSaleStarted = true;
	bool public hasPresaleStarted = true;
	bool public hasClaimStarted = true;
	string private _baseTokenURI = "http://api.ramen.katanansamurai.art/Metadata/";

	mapping (address => uint256) public hasClaimed;
	mapping (address => uint256) public hasPresale;

    uint256 public saleStartTimestamp = 1642518000; // Public Sale start time in epoch format
    uint256 public presaleStartTimestamp = 1642410000; // PreSale start time in epoch format

	// Events
	// ------------------------------------------------------------------------
	event mintEvent(address owner, uint256 quantity, uint256 totalSupply);
	
	// Constructor
	// ------------------------------------------------------------------------
	constructor()
	EIP712("Katana N Samurai 2", "1.0.0")  
	ERC721B("Katana N Samurai 2", "KNS2.0"){}

    // Modifiers
    // ------------------------------------------------------------------------
    modifier onlyPublicSale() {
		require(hasSaleStarted == true, "PUBLIC_SALE_NOT_ACTIVE");
        require(block.timestamp >= saleStartTimestamp, "NOT_IN_PUBLIC_SALE_TIME");
        _;
    }

    modifier onlyPresale() {
		require(hasPresaleStarted == true, "PRESALE_NOT_ACTIVE");
        require(block.timestamp >= presaleStartTimestamp, "NOT_IN_PRESALE_TIME");
        _;
    }

	// Verify functions
	// ------------------------------------------------------------------------
	function verify(uint256 maxClaimNum, bytes memory SIGNATURE) public view returns (bool){
		address recoveredAddr = ECDSA.recover(_hashTypedDataV4(keccak256(abi.encode(keccak256("NFT(address addressForClaim,uint256 maxClaimNum)"), _msgSender(), maxClaimNum))), SIGNATURE);

		return owner() == recoveredAddr;
	}

	// Claim functions
	// ------------------------------------------------------------------------
	function claimSamurai(uint256 quantity, uint256 maxClaimNum, bytes memory SIGNATURE) external {

		require(hasClaimStarted == true, "Claim hasn't started.");
		require(verify(maxClaimNum, SIGNATURE), "Not eligible for claim.");
		require(quantity > 0 && hasClaimed[msg.sender].add(quantity) <= maxClaimNum, "Exceed the quantity that can be claimed");

		for (uint i = 0; i < quantity; i++) {
			_safeMint(msg.sender, totalSupply);
			totalSupply = totalSupply.add(1);
		}

		numClaim = numClaim.add(quantity);
		hasClaimed[msg.sender] = hasClaimed[msg.sender].add(quantity);

		emit mintEvent(msg.sender, quantity, totalSupply);
	}

	// Presale functions
	// ------------------------------------------------------------------------
	function mintPresaleSamurai(uint256 quantity, uint256 maxClaimNumOnPresale, bytes memory SIGNATURE) external payable onlyPresale{
		require(totalSupply.add(quantity) <= STAGE_LIMIT, "This stage is sold out!");
		require(verify(maxClaimNumOnPresale, SIGNATURE), "Not eligible for presale.");
		require(quantity > 0 && hasPresale[msg.sender].add(quantity) <= maxClaimNumOnPresale, "Exceeds max presale number.");
		require(msg.value >= PRICE.mul(quantity), "Ether value sent is below the price.");
		require(totalSupply.add(quantity) <= MAX_SAMURAI, "Exceeds MAX_SAMURAI.");

		for (uint i = 0; i < quantity; i++) {
			_safeMint(msg.sender, totalSupply);
			totalSupply = totalSupply.add(1);
		}

		numPresale = numPresale.add(quantity);
		hasPresale[msg.sender] = hasPresale[msg.sender].add(quantity);

		emit mintEvent(msg.sender, quantity, totalSupply);
	}

	// Giveaway functions
	// ------------------------------------------------------------------------
	function giveawayMintSamurai(address _to, uint256 quantity) external onlyOwner{
		require(totalSupply.add(quantity) <= MAX_SAMURAI, "Exceeds MAX_SAMURAI.");

		for (uint i = 0; i < quantity; i++) {
			_safeMint(_to, totalSupply);
			totalSupply = totalSupply.add(1);
		}

		numGiveaway = numGiveaway.add(quantity);
		emit mintEvent(_to, quantity, totalSupply);
	}

	// Mint functions
	// ------------------------------------------------------------------------
	function mintPublicSaleSamurai(uint256 numPurchase) external payable onlyPublicSale{
		require(numPurchase > 0 && numPurchase <= 50, "You can mint minimum 1, maximum 50 samurais.");
		require(totalSupply.add(numPurchase) <= STAGE_LIMIT, "This stage is sold out!");
		require(totalSupply.add(numPurchase) <= MAX_SAMURAI, "Sold out!");
		require(msg.value >= PRICE.mul(numPurchase), "Ether value sent is below the price.");

		for (uint i = 0; i < numPurchase; i++) {
			_safeMint(msg.sender, totalSupply);
			totalSupply = totalSupply.add(1);
		}

		numSale = numSale.add(numPurchase);
		emit mintEvent(msg.sender, numPurchase, totalSupply);
	}

	// Base URI Functions
	// ------------------------------------------------------------------------
	function tokenURI(uint256 tokenId) public view override returns (string memory) {
		require(_exists(tokenId), "TOKEN_NOT_EXISTS");
		
		return string(abi.encodePacked(_baseTokenURI, tokenId.toString()));
	}

    // Burn Functions
    // ------------------------------------------------------------------------
    function burn(uint256 tokenId) external onlyOwner {
        _burn(tokenId);
    }

	// setting functions
	// ------------------------------------------------------------------------
	function setURI(string calldata _tokenURI) external onlyOwner {
		_baseTokenURI = _tokenURI;
	}

	function setSTAGE_LIMIT(uint _STAGE_LIMIT) external onlyOwner {
		STAGE_LIMIT = _STAGE_LIMIT;
	}

	function setMAX_SAMURAI(uint _MAX_num) external onlyOwner {
		MAX_SAMURAI = _MAX_num;
	}

	function set_PRICE(uint _price) external onlyOwner {
		PRICE = _price;
	}

    function setPresale(bool _hasPresaleStarted,uint256 _presaleStartTimestamp) external onlyOwner {
        hasPresaleStarted = _hasPresaleStarted;
        presaleStartTimestamp = _presaleStartTimestamp;
    }

    function setPublicSale(bool _hasSaleStarted,uint256 _saleStartTimestamp) external onlyOwner {
        hasSaleStarted = _hasSaleStarted;
        saleStartTimestamp = _saleStartTimestamp;
    }

	function setClaim(bool _hasClaimStarted) external onlyOwner {
		hasClaimStarted = _hasClaimStarted;
	}

	// Withdrawal functions
	// ------------------------------------------------------------------------
	function withdrawAll() public payable onlyOwner {
		require(payable(msg.sender).send(address(this).balance));
	}
}

File 2 of 17 : ERC721B.sol
// SPDX-License-Identifier: BSD-3-Clause

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

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

        uint count = 0;
        uint length = _owners.length;
        for( uint i = 0; i < length; ++i ){
          if( owner == _owners[i] ){
            ++count;
          }
        }

        delete length;
        return count;
    }

    /**
     * @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 {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721B.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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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


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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length && _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 = ERC721B.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);
        _owners.push(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 = ERC721B.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

        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(ERC721B.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);
        _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(ERC721B.ownerOf(tokenId), to, tokenId);
    }


    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.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 3 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 17 : draft-EIP712.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 8 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

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 9 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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 10 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 11 of 17 : Address.sol
// SPDX-License-Identifier: MIT

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

pragma solidity ^0.8.0;

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

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

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

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 14 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT

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 15 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT

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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.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 16 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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 17 of 17 : Strings.sol
// SPDX-License-Identifier: MIT

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"mintEvent","type":"event"},{"inputs":[],"name":"MAX_SAMURAI","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAGE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"maxClaimNum","type":"uint256"},{"internalType":"bytes","name":"SIGNATURE","type":"bytes"}],"name":"claimSamurai","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"giveawayMintSamurai","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hasClaimStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasPresaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"maxClaimNumOnPresale","type":"uint256"},{"internalType":"bytes","name":"SIGNATURE","type":"bytes"}],"name":"mintPresaleSamurai","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numPurchase","type":"uint256"}],"name":"mintPublicSaleSamurai","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numGiveaway","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"presaleStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_hasClaimStarted","type":"bool"}],"name":"setClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_num","type":"uint256"}],"name":"setMAX_SAMURAI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_hasPresaleStarted","type":"bool"},{"internalType":"uint256","name":"_presaleStartTimestamp","type":"uint256"}],"name":"setPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_hasSaleStarted","type":"bool"},{"internalType":"uint256","name":"_saleStartTimestamp","type":"uint256"}],"name":"setPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_STAGE_LIMIT","type":"uint256"}],"name":"setSTAGE_LIMIT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"set_PRICE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxClaimNum","type":"uint256"},{"internalType":"bytes","name":"SIGNATURE","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]

610120604052611a0a60065561029a60075567010a741a4627800060085560006009556000600a556000600b556000600c556000600d556001600e60006101000a81548160ff0219169083151502179055506001600e60016101000a81548160ff0219169083151502179055506001600e60026101000a81548160ff0219169083151502179055506040518060600160405280602d815260200162005d68602d9139600f9080519060200190620000b89291906200038e565b506361e6d5f06012556361e53010601355348015620000d657600080fd5b506040518060400160405280601281526020017f4b6174616e61204e2053616d75726169203200000000000000000000000000008152506040518060400160405280600681526020017f4b4e53322e3000000000000000000000000000000000000000000000000000008152506040518060400160405280601281526020017f4b6174616e61204e2053616d75726169203200000000000000000000000000008152506040518060400160405280600581526020017f312e302e30000000000000000000000000000000000000000000000000000000815250620001cf620001c36200028660201b60201c565b6200028e60201b60201c565b60008280519060200120905060008280519060200120905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f90508260c081815250508160e081815250504660a08181525050620002378184846200035260201b60201c565b6080818152505080610100818152505050505050508160019080519060200190620002649291906200038e565b5080600290805190602001906200027d9291906200038e565b5050506200057b565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600083838346306040516020016200036f95949392919062000471565b6040516020818303038152906040528051906020012090509392505050565b8280546200039c9062000516565b90600052602060002090601f016020900481019282620003c057600085556200040c565b82601f10620003db57805160ff19168380011785556200040c565b828001600101855582156200040c579182015b828111156200040b578251825591602001919060010190620003ee565b5b5090506200041b91906200041f565b5090565b5b808211156200043a57600081600090555060010162000420565b5090565b6200044981620004ce565b82525050565b6200045a81620004e2565b82525050565b6200046b816200050c565b82525050565b600060a0820190506200048860008301886200044f565b6200049760208301876200044f565b620004a660408301866200044f565b620004b5606083018562000460565b620004c460808301846200043e565b9695505050505050565b6000620004db82620004ec565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060028204905060018216806200052f57607f821691505b602082108114156200054657620005456200054c565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60805160a05160c05160e051610100516157a8620005c06000396000612fab01526000612fed01526000612fcc01526000612f5801526000612f8001526157a86000f3fe6080604052600436106102725760003560e01c8063715018a61161014f578063a22cb465116100c1578063c87b56dd1161007a578063c87b56dd14610917578063de9af03814610954578063e985e9c51461097d578063eaeed920146109ba578063ee38c8b7146109e3578063f2fde38b14610a0c57610272565b8063a22cb4651461081b578063b022001514610844578063b3c6214f1461086f578063b88d4fde14610898578063c341526b146108c1578063c8544312146108ec57610272565b806385852ce41161011357806385852ce414610716578063872b25b0146107535780638d859f3e1461077e5780638da5cb5b146107a957806391c6b8b4146107d457806395d89b41146107f057610272565b8063715018a614610664578063717bf3361461067b57806373b2e80e146106a6578063798611a0146106e3578063853828b61461070c57610272565b80632bf831f0116101e857806354465773116101ac578063544657731461052e5780635edbad0a146105595780636352211e146105845780636456c205146105c157806369cff347146105ea57806370a082311461062757610272565b80632bf831f01461046a5780633c276d861461048657806342842e0e146104b157806342966c68146104da5780634ea37fec1461050357610272565b8063095ea7b31161023a578063095ea7b31461036e5780630a61454b1461039757806318160ddd146103c25780631c8b232d146103ed578063211418ab1461041857806323b872dd1461044157610272565b806301ffc9a71461027757806302fe5305146102b457806306331592146102dd57806306fdde0314610306578063081812fc14610331575b600080fd5b34801561028357600080fd5b5061029e60048036038101906102999190613caf565b610a35565b6040516102ab9190614570565b60405180910390f35b3480156102c057600080fd5b506102db60048036038101906102d69190613d01565b610b17565b005b3480156102e957600080fd5b5061030460048036038101906102ff9190613d46565b610ba9565b005b34801561031257600080fd5b5061031b610c2f565b604051610328919061465a565b60405180910390f35b34801561033d57600080fd5b5061035860048036038101906103539190613d46565b610cc1565b60405161036591906144d2565b60405180910390f35b34801561037a57600080fd5b5061039560048036038101906103909190613c0e565b610d46565b005b3480156103a357600080fd5b506103ac610e5e565b6040516103b99190614abc565b60405180910390f35b3480156103ce57600080fd5b506103d7610e64565b6040516103e49190614abc565b60405180910390f35b3480156103f957600080fd5b50610402610e6a565b60405161040f9190614570565b60405180910390f35b34801561042457600080fd5b5061043f600480360381019061043a9190613c4a565b610e7d565b005b34801561044d57600080fd5b5061046860048036038101906104639190613b08565b610f16565b005b610484600480360381019061047f9190613dc3565b610f76565b005b34801561049257600080fd5b5061049b61133c565b6040516104a89190614abc565b60405180910390f35b3480156104bd57600080fd5b506104d860048036038101906104d39190613b08565b611342565b005b3480156104e657600080fd5b5061050160048036038101906104fc9190613d46565b611362565b005b34801561050f57600080fd5b506105186113ea565b6040516105259190614abc565b60405180910390f35b34801561053a57600080fd5b506105436113f0565b6040516105509190614abc565b60405180910390f35b34801561056557600080fd5b5061056e6113f6565b60405161057b9190614abc565b60405180910390f35b34801561059057600080fd5b506105ab60048036038101906105a69190613d46565b6113fc565b6040516105b891906144d2565b60405180910390f35b3480156105cd57600080fd5b506105e860048036038101906105e39190613d46565b6114df565b005b3480156105f657600080fd5b50610611600480360381019061060c9190613aa3565b611565565b60405161061e9190614abc565b60405180910390f35b34801561063357600080fd5b5061064e60048036038101906106499190613aa3565b61157d565b60405161065b9190614abc565b60405180910390f35b34801561067057600080fd5b506106796116c9565b005b34801561068757600080fd5b50610690611751565b60405161069d9190614570565b60405180910390f35b3480156106b257600080fd5b506106cd60048036038101906106c89190613aa3565b611764565b6040516106da9190614abc565b60405180910390f35b3480156106ef57600080fd5b5061070a60048036038101906107059190613d46565b61177c565b005b610714611802565b005b34801561072257600080fd5b5061073d60048036038101906107389190613d6f565b6118be565b60405161074a9190614570565b60405180910390f35b34801561075f57600080fd5b50610768611965565b6040516107759190614abc565b60405180910390f35b34801561078a57600080fd5b5061079361196b565b6040516107a09190614abc565b60405180910390f35b3480156107b557600080fd5b506107be611971565b6040516107cb91906144d2565b60405180910390f35b6107ee60048036038101906107e99190613d46565b61199a565b005b3480156107fc57600080fd5b50610805611c30565b604051610812919061465a565b60405180910390f35b34801561082757600080fd5b50610842600480360381019061083d9190613bd2565b611cc2565b005b34801561085057600080fd5b50610859611e43565b6040516108669190614570565b60405180910390f35b34801561087b57600080fd5b5061089660048036038101906108919190613c73565b611e56565b005b3480156108a457600080fd5b506108bf60048036038101906108ba9190613b57565b611ef7565b005b3480156108cd57600080fd5b506108d6611f59565b6040516108e39190614abc565b60405180910390f35b3480156108f857600080fd5b50610901611f5f565b60405161090e9190614abc565b60405180910390f35b34801561092357600080fd5b5061093e60048036038101906109399190613d46565b611f65565b60405161094b919061465a565b60405180910390f35b34801561096057600080fd5b5061097b60048036038101906109769190613c0e565b611fe1565b005b34801561098957600080fd5b506109a4600480360381019061099f9190613acc565b612159565b6040516109b19190614570565b60405180910390f35b3480156109c657600080fd5b506109e160048036038101906109dc9190613c73565b6121ed565b005b3480156109ef57600080fd5b50610a0a6004803603810190610a059190613dc3565b61228e565b005b348015610a1857600080fd5b50610a336004803603810190610a2e9190613aa3565b612506565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b0057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b105750610b0f826125fe565b5b9050919050565b610b1f612668565b73ffffffffffffffffffffffffffffffffffffffff16610b3d611971565b73ffffffffffffffffffffffffffffffffffffffff1614610b93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8a9061493c565b60405180910390fd5b8181600f9190610ba49291906138e5565b505050565b610bb1612668565b73ffffffffffffffffffffffffffffffffffffffff16610bcf611971565b73ffffffffffffffffffffffffffffffffffffffff1614610c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1c9061493c565b60405180910390fd5b8060068190555050565b606060018054610c3e90614d67565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6a90614d67565b8015610cb75780601f10610c8c57610100808354040283529160200191610cb7565b820191906000526020600020905b815481529060010190602001808311610c9a57829003601f168201915b5050505050905090565b6000610ccc82612670565b610d0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d029061491c565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d51826113fc565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db9906149dc565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610de1612668565b73ffffffffffffffffffffffffffffffffffffffff161480610e105750610e0f81610e0a612668565b612159565b5b610e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e469061483c565b60405180910390fd5b610e59838361271e565b505050565b60075481565b600d5481565b600e60009054906101000a900460ff1681565b610e85612668565b73ffffffffffffffffffffffffffffffffffffffff16610ea3611971565b73ffffffffffffffffffffffffffffffffffffffff1614610ef9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef09061493c565b60405180910390fd5b80600e60026101000a81548160ff02191690831515021790555050565b610f27610f21612668565b826127d7565b610f66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5d90614a3c565b60405180910390fd5b610f718383836128b5565b505050565b60011515600e60019054906101000a900460ff16151514610fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc39061477c565b60405180910390fd5b601354421015611011576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110089061481c565b60405180910390fd5b60075461102984600d54612a9490919063ffffffff16565b111561106a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611061906148dc565b60405180910390fd5b61107482826118be565b6110b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110aa90614a5c565b60405180910390fd5b60008311801561111457508161111184601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a9490919063ffffffff16565b11155b611153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114a90614a7c565b60405180910390fd5b61116883600854612aaa90919063ffffffff16565b3410156111aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a1906149fc565b60405180910390fd5b6006546111c284600d54612a9490919063ffffffff16565b1115611203576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fa90614a1c565b60405180910390fd5b60005b838110156112495761121a33600d54612ac0565b6112306001600d54612a9490919063ffffffff16565b600d81905550808061124190614dca565b915050611206565b5061125f83600954612a9490919063ffffffff16565b6009819055506112b783601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a9490919063ffffffff16565b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f9670c8b300c38cd3db8d3f9429dd902e67f418c4dd193e2497f06d20efc795603384600d5460405161132f93929190614539565b60405180910390a1505050565b60125481565b61135d83838360405180602001604052806000815250611ef7565b505050565b61136a612668565b73ffffffffffffffffffffffffffffffffffffffff16611388611971565b73ffffffffffffffffffffffffffffffffffffffff16146113de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d59061493c565b60405180910390fd5b6113e781612ade565b50565b60135481565b600b5481565b60095481565b60008060038381548110611439577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cd9061487c565b60405180910390fd5b80915050919050565b6114e7612668565b73ffffffffffffffffffffffffffffffffffffffff16611505611971565b73ffffffffffffffffffffffffffffffffffffffff161461155b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115529061493c565b60405180910390fd5b8060088190555050565b60116020528060005260406000206000915090505481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e59061485c565b60405180910390fd5b600080600380549050905060005b818110156116ba576003818154811061163e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156116a957826116a690614dca565b92505b806116b390614dca565b90506115fc565b50600090508192505050919050565b6116d1612668565b73ffffffffffffffffffffffffffffffffffffffff166116ef611971565b73ffffffffffffffffffffffffffffffffffffffff1614611745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173c9061493c565b60405180910390fd5b61174f6000612be6565b565b600e60029054906101000a900460ff1681565b60106020528060005260406000206000915090505481565b611784612668565b73ffffffffffffffffffffffffffffffffffffffff166117a2611971565b73ffffffffffffffffffffffffffffffffffffffff16146117f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ef9061493c565b60405180910390fd5b8060078190555050565b61180a612668565b73ffffffffffffffffffffffffffffffffffffffff16611828611971565b73ffffffffffffffffffffffffffffffffffffffff161461187e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118759061493c565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050506118bc57600080fd5b565b60008061192461191e7f159b8fd053f2ba91664d2db8a48c1216e475560cbaf9c4dc06e5f32265b785236118f0612668565b876040516020016119039392919061458b565b60405160208183030381529060405280519060200120612caa565b84612cc4565b90508073ffffffffffffffffffffffffffffffffffffffff16611945611971565b73ffffffffffffffffffffffffffffffffffffffff161491505092915050565b60065481565b60085481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60011515600e60009054906101000a900460ff161515146119f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e7906149bc565b60405180910390fd5b601254421015611a35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2c906146bc565b60405180910390fd5b600081118015611a46575060328111155b611a85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7c9061469c565b60405180910390fd5b600754611a9d82600d54612a9490919063ffffffff16565b1115611ade576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad5906148dc565b60405180910390fd5b600654611af682600d54612a9490919063ffffffff16565b1115611b37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2e90614a9c565b60405180910390fd5b611b4c81600854612aaa90919063ffffffff16565b341015611b8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b85906149fc565b60405180910390fd5b60005b81811015611bd457611ba533600d54612ac0565b611bbb6001600d54612a9490919063ffffffff16565b600d819055508080611bcc90614dca565b915050611b91565b50611bea81600a54612a9490919063ffffffff16565b600a819055507f9670c8b300c38cd3db8d3f9429dd902e67f418c4dd193e2497f06d20efc795603382600d54604051611c2593929190614539565b60405180910390a150565b606060028054611c3f90614d67565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6b90614d67565b8015611cb85780601f10611c8d57610100808354040283529160200191611cb8565b820191906000526020600020905b815481529060010190602001808311611c9b57829003601f168201915b5050505050905090565b611cca612668565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2f906147bc565b60405180910390fd5b8060056000611d45612668565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611df2612668565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e379190614570565b60405180910390a35050565b600e60019054906101000a900460ff1681565b611e5e612668565b73ffffffffffffffffffffffffffffffffffffffff16611e7c611971565b73ffffffffffffffffffffffffffffffffffffffff1614611ed2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec99061493c565b60405180910390fd5b81600e60006101000a81548160ff021916908315150217905550806012819055505050565b611f08611f02612668565b836127d7565b611f47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3e90614a3c565b60405180910390fd5b611f5384848484612ceb565b50505050565b600c5481565b600a5481565b6060611f7082612670565b611faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa69061489c565b60405180910390fd5b600f611fba83612d47565b604051602001611fcb929190614477565b6040516020818303038152906040529050919050565b611fe9612668565b73ffffffffffffffffffffffffffffffffffffffff16612007611971565b73ffffffffffffffffffffffffffffffffffffffff161461205d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120549061493c565b60405180910390fd5b60065461207582600d54612a9490919063ffffffff16565b11156120b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ad90614a1c565b60405180910390fd5b60005b818110156120fc576120cd83600d54612ac0565b6120e36001600d54612a9490919063ffffffff16565b600d8190555080806120f490614dca565b9150506120b9565b5061211281600c54612a9490919063ffffffff16565b600c819055507f9670c8b300c38cd3db8d3f9429dd902e67f418c4dd193e2497f06d20efc795608282600d5460405161214d93929190614539565b60405180910390a15050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121f5612668565b73ffffffffffffffffffffffffffffffffffffffff16612213611971565b73ffffffffffffffffffffffffffffffffffffffff1614612269576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122609061493c565b60405180910390fd5b81600e60016101000a81548160ff021916908315150217905550806013819055505050565b60011515600e60029054906101000a900460ff161515146122e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122db9061475c565b60405180910390fd5b6122ee82826118be565b61232d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123249061499c565b60405180910390fd5b60008311801561238e57508161238b84601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a9490919063ffffffff16565b11155b6123cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c49061497c565b60405180910390fd5b60005b83811015612413576123e433600d54612ac0565b6123fa6001600d54612a9490919063ffffffff16565b600d81905550808061240b90614dca565b9150506123d0565b5061242983600b54612a9490919063ffffffff16565b600b8190555061248183601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a9490919063ffffffff16565b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f9670c8b300c38cd3db8d3f9429dd902e67f418c4dd193e2497f06d20efc795603384600d546040516124f993929190614539565b60405180910390a1505050565b61250e612668565b73ffffffffffffffffffffffffffffffffffffffff1661252c611971565b73ffffffffffffffffffffffffffffffffffffffff1614612582576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125799061493c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156125f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e99061471c565b60405180910390fd5b6125fb81612be6565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6000600380549050821080156127175750600073ffffffffffffffffffffffffffffffffffffffff16600383815481106126d3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b9050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612791836113fc565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006127e282612670565b612821576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612818906147fc565b60405180910390fd5b600061282c836113fc565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061289b57508373ffffffffffffffffffffffffffffffffffffffff1661288384610cc1565b73ffffffffffffffffffffffffffffffffffffffff16145b806128ac57506128ab8185612159565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166128d5826113fc565b73ffffffffffffffffffffffffffffffffffffffff161461292b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129229061495c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561299b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129929061479c565b60405180910390fd5b6129a6838383612ef4565b6129b160008261271e565b81600382815481106129ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008183612aa29190614b85565b905092915050565b60008183612ab89190614c0c565b905092915050565b612ada828260405180602001604052806000815250612ef9565b5050565b6000612ae9826113fc565b9050612af781600084612ef4565b612b0260008361271e565b600060038381548110612b3e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612cbd612cb7612f54565b83613017565b9050919050565b6000806000612cd3858561304a565b91509150612ce0816130cd565b819250505092915050565b612cf68484846128b5565b612d028484848461341e565b612d41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d38906146fc565b60405180910390fd5b50505050565b60606000821415612d8f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612eef565b600082905060005b60008214612dc1578080612daa90614dca565b915050600a82612dba9190614bdb565b9150612d97565b60008167ffffffffffffffff811115612e03577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e355781602001600182028036833780820191505090505b5090505b60008514612ee857600182612e4e9190614c66565b9150600a85612e5d9190614e1d565b6030612e699190614b85565b60f81b818381518110612ea5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612ee19190614bdb565b9450612e39565b8093505050505b919050565b505050565b612f0383836135b5565b612f10600084848461341e565b612f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f46906146fc565b60405180910390fd5b505050565b60007f0000000000000000000000000000000000000000000000000000000000000000461415612fa6577f00000000000000000000000000000000000000000000000000000000000000009050613014565b6130117f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061373d565b90505b90565b6000828260405160200161302c92919061449b565b60405160208183030381529060405280519060200120905092915050565b60008060418351141561308c5760008060006020860151925060408601519150606086015160001a905061308087828585613777565b945094505050506130c6565b6040835114156130bd5760008060208501519150604085015190506130b2868383613884565b9350935050506130c6565b60006002915091505b9250929050565b60006004811115613107577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613140577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561314b5761341b565b60016004811115613185577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156131be577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156131ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f69061467c565b60405180910390fd5b60026004811115613239577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613272577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156132b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132aa906146dc565b60405180910390fd5b600360048111156132ed577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613326577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161335e906147dc565b60405180910390fd5b6004808111156133a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156133d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561341a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613411906148bc565b60405180910390fd5b5b50565b600061343f8473ffffffffffffffffffffffffffffffffffffffff166138d2565b156135a8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613468612668565b8786866040518563ffffffff1660e01b815260040161348a94939291906144ed565b602060405180830381600087803b1580156134a457600080fd5b505af19250505080156134d557506040513d601f19601f820116820180604052508101906134d29190613cd8565b60015b613558573d8060008114613505576040519150601f19603f3d011682016040523d82523d6000602084013e61350a565b606091505b50600081511415613550576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613547906146fc565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506135ad565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161361c906148fc565b60405180910390fd5b61362e81612670565b1561366e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136659061473c565b60405180910390fd5b61367a60008383612ef4565b6003829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600083838346306040516020016137589594939291906145c2565b6040516020818303038152906040528051906020012090509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156137b257600060039150915061387b565b601b8560ff16141580156137ca5750601c8560ff1614155b156137dc57600060049150915061387b565b6000600187878787604051600081526020016040526040516138019493929190614615565b6020604051602081039080840390855afa158015613823573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156138725760006001925092505061387b565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c0190506138c487828885613777565b935093505050935093915050565b600080823b905060008111915050919050565b8280546138f190614d67565b90600052602060002090601f016020900481019282613913576000855561395a565b82601f1061392c57803560ff191683800117855561395a565b8280016001018555821561395a579182015b8281111561395957823582559160200191906001019061393e565b5b509050613967919061396b565b5090565b5b8082111561398457600081600090555060010161396c565b5090565b600061399b61399684614afc565b614ad7565b9050828152602081018484840111156139b357600080fd5b6139be848285614d25565b509392505050565b6000813590506139d581615716565b92915050565b6000813590506139ea8161572d565b92915050565b6000813590506139ff81615744565b92915050565b600081519050613a1481615744565b92915050565b600082601f830112613a2b57600080fd5b8135613a3b848260208601613988565b91505092915050565b60008083601f840112613a5657600080fd5b8235905067ffffffffffffffff811115613a6f57600080fd5b602083019150836001820283011115613a8757600080fd5b9250929050565b600081359050613a9d8161575b565b92915050565b600060208284031215613ab557600080fd5b6000613ac3848285016139c6565b91505092915050565b60008060408385031215613adf57600080fd5b6000613aed858286016139c6565b9250506020613afe858286016139c6565b9150509250929050565b600080600060608486031215613b1d57600080fd5b6000613b2b868287016139c6565b9350506020613b3c868287016139c6565b9250506040613b4d86828701613a8e565b9150509250925092565b60008060008060808587031215613b6d57600080fd5b6000613b7b878288016139c6565b9450506020613b8c878288016139c6565b9350506040613b9d87828801613a8e565b925050606085013567ffffffffffffffff811115613bba57600080fd5b613bc687828801613a1a565b91505092959194509250565b60008060408385031215613be557600080fd5b6000613bf3858286016139c6565b9250506020613c04858286016139db565b9150509250929050565b60008060408385031215613c2157600080fd5b6000613c2f858286016139c6565b9250506020613c4085828601613a8e565b9150509250929050565b600060208284031215613c5c57600080fd5b6000613c6a848285016139db565b91505092915050565b60008060408385031215613c8657600080fd5b6000613c94858286016139db565b9250506020613ca585828601613a8e565b9150509250929050565b600060208284031215613cc157600080fd5b6000613ccf848285016139f0565b91505092915050565b600060208284031215613cea57600080fd5b6000613cf884828501613a05565b91505092915050565b60008060208385031215613d1457600080fd5b600083013567ffffffffffffffff811115613d2e57600080fd5b613d3a85828601613a44565b92509250509250929050565b600060208284031215613d5857600080fd5b6000613d6684828501613a8e565b91505092915050565b60008060408385031215613d8257600080fd5b6000613d9085828601613a8e565b925050602083013567ffffffffffffffff811115613dad57600080fd5b613db985828601613a1a565b9150509250929050565b600080600060608486031215613dd857600080fd5b6000613de686828701613a8e565b9350506020613df786828701613a8e565b925050604084013567ffffffffffffffff811115613e1457600080fd5b613e2086828701613a1a565b9150509250925092565b613e3381614c9a565b82525050565b613e4281614cac565b82525050565b613e5181614cb8565b82525050565b613e68613e6382614cb8565b614e13565b82525050565b6000613e7982614b42565b613e838185614b58565b9350613e93818560208601614d34565b613e9c81614f0a565b840191505092915050565b6000613eb282614b4d565b613ebc8185614b69565b9350613ecc818560208601614d34565b613ed581614f0a565b840191505092915050565b6000613eeb82614b4d565b613ef58185614b7a565b9350613f05818560208601614d34565b80840191505092915050565b60008154613f1e81614d67565b613f288186614b7a565b94506001821660008114613f435760018114613f5457613f87565b60ff19831686528186019350613f87565b613f5d85614b2d565b60005b83811015613f7f57815481890152600182019150602081019050613f60565b838801955050505b50505092915050565b6000613f9d601883614b69565b9150613fa882614f1b565b602082019050919050565b6000613fc0602c83614b69565b9150613fcb82614f44565b604082019050919050565b6000613fe3601783614b69565b9150613fee82614f93565b602082019050919050565b6000614006601f83614b69565b915061401182614fbc565b602082019050919050565b6000614029603283614b69565b915061403482614fe5565b604082019050919050565b600061404c602683614b69565b915061405782615034565b604082019050919050565b600061406f601c83614b69565b915061407a82615083565b602082019050919050565b6000614092601583614b69565b915061409d826150ac565b602082019050919050565b60006140b5600283614b7a565b91506140c0826150d5565b600282019050919050565b60006140d8601283614b69565b91506140e3826150fe565b602082019050919050565b60006140fb602483614b69565b915061410682615127565b604082019050919050565b600061411e601983614b69565b915061412982615176565b602082019050919050565b6000614141602283614b69565b915061414c8261519f565b604082019050919050565b6000614164602c83614b69565b915061416f826151ee565b604082019050919050565b6000614187601383614b69565b91506141928261523d565b602082019050919050565b60006141aa603883614b69565b91506141b582615266565b604082019050919050565b60006141cd602a83614b69565b91506141d8826152b5565b604082019050919050565b60006141f0602983614b69565b91506141fb82615304565b604082019050919050565b6000614213601083614b69565b915061421e82615353565b602082019050919050565b6000614236602283614b69565b91506142418261537c565b604082019050919050565b6000614259601783614b69565b9150614264826153cb565b602082019050919050565b600061427c602083614b69565b9150614287826153f4565b602082019050919050565b600061429f602c83614b69565b91506142aa8261541d565b604082019050919050565b60006142c2602083614b69565b91506142cd8261546c565b602082019050919050565b60006142e5602983614b69565b91506142f082615495565b604082019050919050565b6000614308602783614b69565b9150614313826154e4565b604082019050919050565b600061432b601783614b69565b915061433682615533565b602082019050919050565b600061434e601683614b69565b91506143598261555c565b602082019050919050565b6000614371602183614b69565b915061437c82615585565b604082019050919050565b6000614394602483614b69565b915061439f826155d4565b604082019050919050565b60006143b7601483614b69565b91506143c282615623565b602082019050919050565b60006143da603183614b69565b91506143e58261564c565b604082019050919050565b60006143fd601983614b69565b91506144088261569b565b602082019050919050565b6000614420601b83614b69565b915061442b826156c4565b602082019050919050565b6000614443600983614b69565b915061444e826156ed565b602082019050919050565b61446281614d0e565b82525050565b61447181614d18565b82525050565b60006144838285613f11565b915061448f8284613ee0565b91508190509392505050565b60006144a6826140a8565b91506144b28285613e57565b6020820191506144c28284613e57565b6020820191508190509392505050565b60006020820190506144e76000830184613e2a565b92915050565b60006080820190506145026000830187613e2a565b61450f6020830186613e2a565b61451c6040830185614459565b818103606083015261452e8184613e6e565b905095945050505050565b600060608201905061454e6000830186613e2a565b61455b6020830185614459565b6145686040830184614459565b949350505050565b60006020820190506145856000830184613e39565b92915050565b60006060820190506145a06000830186613e48565b6145ad6020830185613e2a565b6145ba6040830184614459565b949350505050565b600060a0820190506145d76000830188613e48565b6145e46020830187613e48565b6145f16040830186613e48565b6145fe6060830185614459565b61460b6080830184613e2a565b9695505050505050565b600060808201905061462a6000830187613e48565b6146376020830186614468565b6146446040830185613e48565b6146516060830184613e48565b95945050505050565b600060208201905081810360008301526146748184613ea7565b905092915050565b6000602082019050818103600083015261469581613f90565b9050919050565b600060208201905081810360008301526146b581613fb3565b9050919050565b600060208201905081810360008301526146d581613fd6565b9050919050565b600060208201905081810360008301526146f581613ff9565b9050919050565b600060208201905081810360008301526147158161401c565b9050919050565b600060208201905081810360008301526147358161403f565b9050919050565b6000602082019050818103600083015261475581614062565b9050919050565b6000602082019050818103600083015261477581614085565b9050919050565b60006020820190508181036000830152614795816140cb565b9050919050565b600060208201905081810360008301526147b5816140ee565b9050919050565b600060208201905081810360008301526147d581614111565b9050919050565b600060208201905081810360008301526147f581614134565b9050919050565b6000602082019050818103600083015261481581614157565b9050919050565b600060208201905081810360008301526148358161417a565b9050919050565b600060208201905081810360008301526148558161419d565b9050919050565b60006020820190508181036000830152614875816141c0565b9050919050565b60006020820190508181036000830152614895816141e3565b9050919050565b600060208201905081810360008301526148b581614206565b9050919050565b600060208201905081810360008301526148d581614229565b9050919050565b600060208201905081810360008301526148f58161424c565b9050919050565b600060208201905081810360008301526149158161426f565b9050919050565b6000602082019050818103600083015261493581614292565b9050919050565b60006020820190508181036000830152614955816142b5565b9050919050565b60006020820190508181036000830152614975816142d8565b9050919050565b60006020820190508181036000830152614995816142fb565b9050919050565b600060208201905081810360008301526149b58161431e565b9050919050565b600060208201905081810360008301526149d581614341565b9050919050565b600060208201905081810360008301526149f581614364565b9050919050565b60006020820190508181036000830152614a1581614387565b9050919050565b60006020820190508181036000830152614a35816143aa565b9050919050565b60006020820190508181036000830152614a55816143cd565b9050919050565b60006020820190508181036000830152614a75816143f0565b9050919050565b60006020820190508181036000830152614a9581614413565b9050919050565b60006020820190508181036000830152614ab581614436565b9050919050565b6000602082019050614ad16000830184614459565b92915050565b6000614ae1614af2565b9050614aed8282614d99565b919050565b6000604051905090565b600067ffffffffffffffff821115614b1757614b16614edb565b5b614b2082614f0a565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614b9082614d0e565b9150614b9b83614d0e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614bd057614bcf614e4e565b5b828201905092915050565b6000614be682614d0e565b9150614bf183614d0e565b925082614c0157614c00614e7d565b5b828204905092915050565b6000614c1782614d0e565b9150614c2283614d0e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c5b57614c5a614e4e565b5b828202905092915050565b6000614c7182614d0e565b9150614c7c83614d0e565b925082821015614c8f57614c8e614e4e565b5b828203905092915050565b6000614ca582614cee565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614d52578082015181840152602081019050614d37565b83811115614d61576000848401525b50505050565b60006002820490506001821680614d7f57607f821691505b60208210811415614d9357614d92614eac565b5b50919050565b614da282614f0a565b810181811067ffffffffffffffff82111715614dc157614dc0614edb565b5b80604052505050565b6000614dd582614d0e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e0857614e07614e4e565b5b600182019050919050565b6000819050919050565b6000614e2882614d0e565b9150614e3383614d0e565b925082614e4357614e42614e7d565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f596f752063616e206d696e74206d696e696d756d20312c206d6178696d756d2060008201527f35302073616d75726169732e0000000000000000000000000000000000000000602082015250565b7f4e4f545f494e5f5055424c49435f53414c455f54494d45000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f436c61696d206861736e277420737461727465642e0000000000000000000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f50524553414c455f4e4f545f4143544956450000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4e4f545f494e5f50524553414c455f54494d4500000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f544f4b454e5f4e4f545f45584953545300000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f5468697320737461676520697320736f6c64206f757421000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f45786365656420746865207175616e7469747920746861742063616e2062652060008201527f636c61696d656400000000000000000000000000000000000000000000000000602082015250565b7f4e6f7420656c696769626c6520666f7220636c61696d2e000000000000000000600082015250565b7f5055424c49435f53414c455f4e4f545f41435449564500000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f45746865722076616c75652073656e742069732062656c6f772074686520707260008201527f6963652e00000000000000000000000000000000000000000000000000000000602082015250565b7f45786365656473204d41585f53414d555241492e000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4e6f7420656c696769626c6520666f722070726573616c652e00000000000000600082015250565b7f45786365656473206d61782070726573616c65206e756d6265722e0000000000600082015250565b7f536f6c64206f7574210000000000000000000000000000000000000000000000600082015250565b61571f81614c9a565b811461572a57600080fd5b50565b61573681614cac565b811461574157600080fd5b50565b61574d81614cc2565b811461575857600080fd5b50565b61576481614d0e565b811461576f57600080fd5b5056fea2646970667358221220bb92f3a1ac4ba21c33d24c96e0050409e9afe97bc80d50bb46e935b2e30a9b6b64736f6c63430008040033687474703a2f2f6170692e72616d656e2e6b6174616e616e73616d757261692e6172742f4d657461646174612f

Deployed Bytecode

0x6080604052600436106102725760003560e01c8063715018a61161014f578063a22cb465116100c1578063c87b56dd1161007a578063c87b56dd14610917578063de9af03814610954578063e985e9c51461097d578063eaeed920146109ba578063ee38c8b7146109e3578063f2fde38b14610a0c57610272565b8063a22cb4651461081b578063b022001514610844578063b3c6214f1461086f578063b88d4fde14610898578063c341526b146108c1578063c8544312146108ec57610272565b806385852ce41161011357806385852ce414610716578063872b25b0146107535780638d859f3e1461077e5780638da5cb5b146107a957806391c6b8b4146107d457806395d89b41146107f057610272565b8063715018a614610664578063717bf3361461067b57806373b2e80e146106a6578063798611a0146106e3578063853828b61461070c57610272565b80632bf831f0116101e857806354465773116101ac578063544657731461052e5780635edbad0a146105595780636352211e146105845780636456c205146105c157806369cff347146105ea57806370a082311461062757610272565b80632bf831f01461046a5780633c276d861461048657806342842e0e146104b157806342966c68146104da5780634ea37fec1461050357610272565b8063095ea7b31161023a578063095ea7b31461036e5780630a61454b1461039757806318160ddd146103c25780631c8b232d146103ed578063211418ab1461041857806323b872dd1461044157610272565b806301ffc9a71461027757806302fe5305146102b457806306331592146102dd57806306fdde0314610306578063081812fc14610331575b600080fd5b34801561028357600080fd5b5061029e60048036038101906102999190613caf565b610a35565b6040516102ab9190614570565b60405180910390f35b3480156102c057600080fd5b506102db60048036038101906102d69190613d01565b610b17565b005b3480156102e957600080fd5b5061030460048036038101906102ff9190613d46565b610ba9565b005b34801561031257600080fd5b5061031b610c2f565b604051610328919061465a565b60405180910390f35b34801561033d57600080fd5b5061035860048036038101906103539190613d46565b610cc1565b60405161036591906144d2565b60405180910390f35b34801561037a57600080fd5b5061039560048036038101906103909190613c0e565b610d46565b005b3480156103a357600080fd5b506103ac610e5e565b6040516103b99190614abc565b60405180910390f35b3480156103ce57600080fd5b506103d7610e64565b6040516103e49190614abc565b60405180910390f35b3480156103f957600080fd5b50610402610e6a565b60405161040f9190614570565b60405180910390f35b34801561042457600080fd5b5061043f600480360381019061043a9190613c4a565b610e7d565b005b34801561044d57600080fd5b5061046860048036038101906104639190613b08565b610f16565b005b610484600480360381019061047f9190613dc3565b610f76565b005b34801561049257600080fd5b5061049b61133c565b6040516104a89190614abc565b60405180910390f35b3480156104bd57600080fd5b506104d860048036038101906104d39190613b08565b611342565b005b3480156104e657600080fd5b5061050160048036038101906104fc9190613d46565b611362565b005b34801561050f57600080fd5b506105186113ea565b6040516105259190614abc565b60405180910390f35b34801561053a57600080fd5b506105436113f0565b6040516105509190614abc565b60405180910390f35b34801561056557600080fd5b5061056e6113f6565b60405161057b9190614abc565b60405180910390f35b34801561059057600080fd5b506105ab60048036038101906105a69190613d46565b6113fc565b6040516105b891906144d2565b60405180910390f35b3480156105cd57600080fd5b506105e860048036038101906105e39190613d46565b6114df565b005b3480156105f657600080fd5b50610611600480360381019061060c9190613aa3565b611565565b60405161061e9190614abc565b60405180910390f35b34801561063357600080fd5b5061064e60048036038101906106499190613aa3565b61157d565b60405161065b9190614abc565b60405180910390f35b34801561067057600080fd5b506106796116c9565b005b34801561068757600080fd5b50610690611751565b60405161069d9190614570565b60405180910390f35b3480156106b257600080fd5b506106cd60048036038101906106c89190613aa3565b611764565b6040516106da9190614abc565b60405180910390f35b3480156106ef57600080fd5b5061070a60048036038101906107059190613d46565b61177c565b005b610714611802565b005b34801561072257600080fd5b5061073d60048036038101906107389190613d6f565b6118be565b60405161074a9190614570565b60405180910390f35b34801561075f57600080fd5b50610768611965565b6040516107759190614abc565b60405180910390f35b34801561078a57600080fd5b5061079361196b565b6040516107a09190614abc565b60405180910390f35b3480156107b557600080fd5b506107be611971565b6040516107cb91906144d2565b60405180910390f35b6107ee60048036038101906107e99190613d46565b61199a565b005b3480156107fc57600080fd5b50610805611c30565b604051610812919061465a565b60405180910390f35b34801561082757600080fd5b50610842600480360381019061083d9190613bd2565b611cc2565b005b34801561085057600080fd5b50610859611e43565b6040516108669190614570565b60405180910390f35b34801561087b57600080fd5b5061089660048036038101906108919190613c73565b611e56565b005b3480156108a457600080fd5b506108bf60048036038101906108ba9190613b57565b611ef7565b005b3480156108cd57600080fd5b506108d6611f59565b6040516108e39190614abc565b60405180910390f35b3480156108f857600080fd5b50610901611f5f565b60405161090e9190614abc565b60405180910390f35b34801561092357600080fd5b5061093e60048036038101906109399190613d46565b611f65565b60405161094b919061465a565b60405180910390f35b34801561096057600080fd5b5061097b60048036038101906109769190613c0e565b611fe1565b005b34801561098957600080fd5b506109a4600480360381019061099f9190613acc565b612159565b6040516109b19190614570565b60405180910390f35b3480156109c657600080fd5b506109e160048036038101906109dc9190613c73565b6121ed565b005b3480156109ef57600080fd5b50610a0a6004803603810190610a059190613dc3565b61228e565b005b348015610a1857600080fd5b50610a336004803603810190610a2e9190613aa3565b612506565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b0057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b105750610b0f826125fe565b5b9050919050565b610b1f612668565b73ffffffffffffffffffffffffffffffffffffffff16610b3d611971565b73ffffffffffffffffffffffffffffffffffffffff1614610b93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8a9061493c565b60405180910390fd5b8181600f9190610ba49291906138e5565b505050565b610bb1612668565b73ffffffffffffffffffffffffffffffffffffffff16610bcf611971565b73ffffffffffffffffffffffffffffffffffffffff1614610c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1c9061493c565b60405180910390fd5b8060068190555050565b606060018054610c3e90614d67565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6a90614d67565b8015610cb75780601f10610c8c57610100808354040283529160200191610cb7565b820191906000526020600020905b815481529060010190602001808311610c9a57829003601f168201915b5050505050905090565b6000610ccc82612670565b610d0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d029061491c565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d51826113fc565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db9906149dc565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610de1612668565b73ffffffffffffffffffffffffffffffffffffffff161480610e105750610e0f81610e0a612668565b612159565b5b610e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e469061483c565b60405180910390fd5b610e59838361271e565b505050565b60075481565b600d5481565b600e60009054906101000a900460ff1681565b610e85612668565b73ffffffffffffffffffffffffffffffffffffffff16610ea3611971565b73ffffffffffffffffffffffffffffffffffffffff1614610ef9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef09061493c565b60405180910390fd5b80600e60026101000a81548160ff02191690831515021790555050565b610f27610f21612668565b826127d7565b610f66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5d90614a3c565b60405180910390fd5b610f718383836128b5565b505050565b60011515600e60019054906101000a900460ff16151514610fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc39061477c565b60405180910390fd5b601354421015611011576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110089061481c565b60405180910390fd5b60075461102984600d54612a9490919063ffffffff16565b111561106a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611061906148dc565b60405180910390fd5b61107482826118be565b6110b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110aa90614a5c565b60405180910390fd5b60008311801561111457508161111184601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a9490919063ffffffff16565b11155b611153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114a90614a7c565b60405180910390fd5b61116883600854612aaa90919063ffffffff16565b3410156111aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a1906149fc565b60405180910390fd5b6006546111c284600d54612a9490919063ffffffff16565b1115611203576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fa90614a1c565b60405180910390fd5b60005b838110156112495761121a33600d54612ac0565b6112306001600d54612a9490919063ffffffff16565b600d81905550808061124190614dca565b915050611206565b5061125f83600954612a9490919063ffffffff16565b6009819055506112b783601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a9490919063ffffffff16565b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f9670c8b300c38cd3db8d3f9429dd902e67f418c4dd193e2497f06d20efc795603384600d5460405161132f93929190614539565b60405180910390a1505050565b60125481565b61135d83838360405180602001604052806000815250611ef7565b505050565b61136a612668565b73ffffffffffffffffffffffffffffffffffffffff16611388611971565b73ffffffffffffffffffffffffffffffffffffffff16146113de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d59061493c565b60405180910390fd5b6113e781612ade565b50565b60135481565b600b5481565b60095481565b60008060038381548110611439577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cd9061487c565b60405180910390fd5b80915050919050565b6114e7612668565b73ffffffffffffffffffffffffffffffffffffffff16611505611971565b73ffffffffffffffffffffffffffffffffffffffff161461155b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115529061493c565b60405180910390fd5b8060088190555050565b60116020528060005260406000206000915090505481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e59061485c565b60405180910390fd5b600080600380549050905060005b818110156116ba576003818154811061163e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156116a957826116a690614dca565b92505b806116b390614dca565b90506115fc565b50600090508192505050919050565b6116d1612668565b73ffffffffffffffffffffffffffffffffffffffff166116ef611971565b73ffffffffffffffffffffffffffffffffffffffff1614611745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173c9061493c565b60405180910390fd5b61174f6000612be6565b565b600e60029054906101000a900460ff1681565b60106020528060005260406000206000915090505481565b611784612668565b73ffffffffffffffffffffffffffffffffffffffff166117a2611971565b73ffffffffffffffffffffffffffffffffffffffff16146117f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ef9061493c565b60405180910390fd5b8060078190555050565b61180a612668565b73ffffffffffffffffffffffffffffffffffffffff16611828611971565b73ffffffffffffffffffffffffffffffffffffffff161461187e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118759061493c565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050506118bc57600080fd5b565b60008061192461191e7f159b8fd053f2ba91664d2db8a48c1216e475560cbaf9c4dc06e5f32265b785236118f0612668565b876040516020016119039392919061458b565b60405160208183030381529060405280519060200120612caa565b84612cc4565b90508073ffffffffffffffffffffffffffffffffffffffff16611945611971565b73ffffffffffffffffffffffffffffffffffffffff161491505092915050565b60065481565b60085481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60011515600e60009054906101000a900460ff161515146119f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e7906149bc565b60405180910390fd5b601254421015611a35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2c906146bc565b60405180910390fd5b600081118015611a46575060328111155b611a85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7c9061469c565b60405180910390fd5b600754611a9d82600d54612a9490919063ffffffff16565b1115611ade576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad5906148dc565b60405180910390fd5b600654611af682600d54612a9490919063ffffffff16565b1115611b37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2e90614a9c565b60405180910390fd5b611b4c81600854612aaa90919063ffffffff16565b341015611b8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b85906149fc565b60405180910390fd5b60005b81811015611bd457611ba533600d54612ac0565b611bbb6001600d54612a9490919063ffffffff16565b600d819055508080611bcc90614dca565b915050611b91565b50611bea81600a54612a9490919063ffffffff16565b600a819055507f9670c8b300c38cd3db8d3f9429dd902e67f418c4dd193e2497f06d20efc795603382600d54604051611c2593929190614539565b60405180910390a150565b606060028054611c3f90614d67565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6b90614d67565b8015611cb85780601f10611c8d57610100808354040283529160200191611cb8565b820191906000526020600020905b815481529060010190602001808311611c9b57829003601f168201915b5050505050905090565b611cca612668565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2f906147bc565b60405180910390fd5b8060056000611d45612668565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611df2612668565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e379190614570565b60405180910390a35050565b600e60019054906101000a900460ff1681565b611e5e612668565b73ffffffffffffffffffffffffffffffffffffffff16611e7c611971565b73ffffffffffffffffffffffffffffffffffffffff1614611ed2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec99061493c565b60405180910390fd5b81600e60006101000a81548160ff021916908315150217905550806012819055505050565b611f08611f02612668565b836127d7565b611f47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3e90614a3c565b60405180910390fd5b611f5384848484612ceb565b50505050565b600c5481565b600a5481565b6060611f7082612670565b611faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa69061489c565b60405180910390fd5b600f611fba83612d47565b604051602001611fcb929190614477565b6040516020818303038152906040529050919050565b611fe9612668565b73ffffffffffffffffffffffffffffffffffffffff16612007611971565b73ffffffffffffffffffffffffffffffffffffffff161461205d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120549061493c565b60405180910390fd5b60065461207582600d54612a9490919063ffffffff16565b11156120b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ad90614a1c565b60405180910390fd5b60005b818110156120fc576120cd83600d54612ac0565b6120e36001600d54612a9490919063ffffffff16565b600d8190555080806120f490614dca565b9150506120b9565b5061211281600c54612a9490919063ffffffff16565b600c819055507f9670c8b300c38cd3db8d3f9429dd902e67f418c4dd193e2497f06d20efc795608282600d5460405161214d93929190614539565b60405180910390a15050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121f5612668565b73ffffffffffffffffffffffffffffffffffffffff16612213611971565b73ffffffffffffffffffffffffffffffffffffffff1614612269576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122609061493c565b60405180910390fd5b81600e60016101000a81548160ff021916908315150217905550806013819055505050565b60011515600e60029054906101000a900460ff161515146122e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122db9061475c565b60405180910390fd5b6122ee82826118be565b61232d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123249061499c565b60405180910390fd5b60008311801561238e57508161238b84601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a9490919063ffffffff16565b11155b6123cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c49061497c565b60405180910390fd5b60005b83811015612413576123e433600d54612ac0565b6123fa6001600d54612a9490919063ffffffff16565b600d81905550808061240b90614dca565b9150506123d0565b5061242983600b54612a9490919063ffffffff16565b600b8190555061248183601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612a9490919063ffffffff16565b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f9670c8b300c38cd3db8d3f9429dd902e67f418c4dd193e2497f06d20efc795603384600d546040516124f993929190614539565b60405180910390a1505050565b61250e612668565b73ffffffffffffffffffffffffffffffffffffffff1661252c611971565b73ffffffffffffffffffffffffffffffffffffffff1614612582576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125799061493c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156125f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e99061471c565b60405180910390fd5b6125fb81612be6565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6000600380549050821080156127175750600073ffffffffffffffffffffffffffffffffffffffff16600383815481106126d3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b9050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612791836113fc565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006127e282612670565b612821576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612818906147fc565b60405180910390fd5b600061282c836113fc565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061289b57508373ffffffffffffffffffffffffffffffffffffffff1661288384610cc1565b73ffffffffffffffffffffffffffffffffffffffff16145b806128ac57506128ab8185612159565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166128d5826113fc565b73ffffffffffffffffffffffffffffffffffffffff161461292b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129229061495c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561299b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129929061479c565b60405180910390fd5b6129a6838383612ef4565b6129b160008261271e565b81600382815481106129ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008183612aa29190614b85565b905092915050565b60008183612ab89190614c0c565b905092915050565b612ada828260405180602001604052806000815250612ef9565b5050565b6000612ae9826113fc565b9050612af781600084612ef4565b612b0260008361271e565b600060038381548110612b3e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612cbd612cb7612f54565b83613017565b9050919050565b6000806000612cd3858561304a565b91509150612ce0816130cd565b819250505092915050565b612cf68484846128b5565b612d028484848461341e565b612d41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d38906146fc565b60405180910390fd5b50505050565b60606000821415612d8f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612eef565b600082905060005b60008214612dc1578080612daa90614dca565b915050600a82612dba9190614bdb565b9150612d97565b60008167ffffffffffffffff811115612e03577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e355781602001600182028036833780820191505090505b5090505b60008514612ee857600182612e4e9190614c66565b9150600a85612e5d9190614e1d565b6030612e699190614b85565b60f81b818381518110612ea5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612ee19190614bdb565b9450612e39565b8093505050505b919050565b505050565b612f0383836135b5565b612f10600084848461341e565b612f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f46906146fc565b60405180910390fd5b505050565b60007f0000000000000000000000000000000000000000000000000000000000000001461415612fa6577fb006c14abeb9ded5cb1409ff5264a5c3fcdb56e79e8178e3881e05b9152886369050613014565b6130117f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7fcb18bbf295fdcb86dadde5ab5338b9643af6c2c8052f6faa6b912a398c44e5457f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c61373d565b90505b90565b6000828260405160200161302c92919061449b565b60405160208183030381529060405280519060200120905092915050565b60008060418351141561308c5760008060006020860151925060408601519150606086015160001a905061308087828585613777565b945094505050506130c6565b6040835114156130bd5760008060208501519150604085015190506130b2868383613884565b9350935050506130c6565b60006002915091505b9250929050565b60006004811115613107577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613140577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561314b5761341b565b60016004811115613185577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156131be577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156131ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f69061467c565b60405180910390fd5b60026004811115613239577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613272577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156132b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132aa906146dc565b60405180910390fd5b600360048111156132ed577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613326577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161335e906147dc565b60405180910390fd5b6004808111156133a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156133d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561341a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613411906148bc565b60405180910390fd5b5b50565b600061343f8473ffffffffffffffffffffffffffffffffffffffff166138d2565b156135a8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613468612668565b8786866040518563ffffffff1660e01b815260040161348a94939291906144ed565b602060405180830381600087803b1580156134a457600080fd5b505af19250505080156134d557506040513d601f19601f820116820180604052508101906134d29190613cd8565b60015b613558573d8060008114613505576040519150601f19603f3d011682016040523d82523d6000602084013e61350a565b606091505b50600081511415613550576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613547906146fc565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506135ad565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161361c906148fc565b60405180910390fd5b61362e81612670565b1561366e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136659061473c565b60405180910390fd5b61367a60008383612ef4565b6003829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600083838346306040516020016137589594939291906145c2565b6040516020818303038152906040528051906020012090509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156137b257600060039150915061387b565b601b8560ff16141580156137ca5750601c8560ff1614155b156137dc57600060049150915061387b565b6000600187878787604051600081526020016040526040516138019493929190614615565b6020604051602081039080840390855afa158015613823573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156138725760006001925092505061387b565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c0190506138c487828885613777565b935093505050935093915050565b600080823b905060008111915050919050565b8280546138f190614d67565b90600052602060002090601f016020900481019282613913576000855561395a565b82601f1061392c57803560ff191683800117855561395a565b8280016001018555821561395a579182015b8281111561395957823582559160200191906001019061393e565b5b509050613967919061396b565b5090565b5b8082111561398457600081600090555060010161396c565b5090565b600061399b61399684614afc565b614ad7565b9050828152602081018484840111156139b357600080fd5b6139be848285614d25565b509392505050565b6000813590506139d581615716565b92915050565b6000813590506139ea8161572d565b92915050565b6000813590506139ff81615744565b92915050565b600081519050613a1481615744565b92915050565b600082601f830112613a2b57600080fd5b8135613a3b848260208601613988565b91505092915050565b60008083601f840112613a5657600080fd5b8235905067ffffffffffffffff811115613a6f57600080fd5b602083019150836001820283011115613a8757600080fd5b9250929050565b600081359050613a9d8161575b565b92915050565b600060208284031215613ab557600080fd5b6000613ac3848285016139c6565b91505092915050565b60008060408385031215613adf57600080fd5b6000613aed858286016139c6565b9250506020613afe858286016139c6565b9150509250929050565b600080600060608486031215613b1d57600080fd5b6000613b2b868287016139c6565b9350506020613b3c868287016139c6565b9250506040613b4d86828701613a8e565b9150509250925092565b60008060008060808587031215613b6d57600080fd5b6000613b7b878288016139c6565b9450506020613b8c878288016139c6565b9350506040613b9d87828801613a8e565b925050606085013567ffffffffffffffff811115613bba57600080fd5b613bc687828801613a1a565b91505092959194509250565b60008060408385031215613be557600080fd5b6000613bf3858286016139c6565b9250506020613c04858286016139db565b9150509250929050565b60008060408385031215613c2157600080fd5b6000613c2f858286016139c6565b9250506020613c4085828601613a8e565b9150509250929050565b600060208284031215613c5c57600080fd5b6000613c6a848285016139db565b91505092915050565b60008060408385031215613c8657600080fd5b6000613c94858286016139db565b9250506020613ca585828601613a8e565b9150509250929050565b600060208284031215613cc157600080fd5b6000613ccf848285016139f0565b91505092915050565b600060208284031215613cea57600080fd5b6000613cf884828501613a05565b91505092915050565b60008060208385031215613d1457600080fd5b600083013567ffffffffffffffff811115613d2e57600080fd5b613d3a85828601613a44565b92509250509250929050565b600060208284031215613d5857600080fd5b6000613d6684828501613a8e565b91505092915050565b60008060408385031215613d8257600080fd5b6000613d9085828601613a8e565b925050602083013567ffffffffffffffff811115613dad57600080fd5b613db985828601613a1a565b9150509250929050565b600080600060608486031215613dd857600080fd5b6000613de686828701613a8e565b9350506020613df786828701613a8e565b925050604084013567ffffffffffffffff811115613e1457600080fd5b613e2086828701613a1a565b9150509250925092565b613e3381614c9a565b82525050565b613e4281614cac565b82525050565b613e5181614cb8565b82525050565b613e68613e6382614cb8565b614e13565b82525050565b6000613e7982614b42565b613e838185614b58565b9350613e93818560208601614d34565b613e9c81614f0a565b840191505092915050565b6000613eb282614b4d565b613ebc8185614b69565b9350613ecc818560208601614d34565b613ed581614f0a565b840191505092915050565b6000613eeb82614b4d565b613ef58185614b7a565b9350613f05818560208601614d34565b80840191505092915050565b60008154613f1e81614d67565b613f288186614b7a565b94506001821660008114613f435760018114613f5457613f87565b60ff19831686528186019350613f87565b613f5d85614b2d565b60005b83811015613f7f57815481890152600182019150602081019050613f60565b838801955050505b50505092915050565b6000613f9d601883614b69565b9150613fa882614f1b565b602082019050919050565b6000613fc0602c83614b69565b9150613fcb82614f44565b604082019050919050565b6000613fe3601783614b69565b9150613fee82614f93565b602082019050919050565b6000614006601f83614b69565b915061401182614fbc565b602082019050919050565b6000614029603283614b69565b915061403482614fe5565b604082019050919050565b600061404c602683614b69565b915061405782615034565b604082019050919050565b600061406f601c83614b69565b915061407a82615083565b602082019050919050565b6000614092601583614b69565b915061409d826150ac565b602082019050919050565b60006140b5600283614b7a565b91506140c0826150d5565b600282019050919050565b60006140d8601283614b69565b91506140e3826150fe565b602082019050919050565b60006140fb602483614b69565b915061410682615127565b604082019050919050565b600061411e601983614b69565b915061412982615176565b602082019050919050565b6000614141602283614b69565b915061414c8261519f565b604082019050919050565b6000614164602c83614b69565b915061416f826151ee565b604082019050919050565b6000614187601383614b69565b91506141928261523d565b602082019050919050565b60006141aa603883614b69565b91506141b582615266565b604082019050919050565b60006141cd602a83614b69565b91506141d8826152b5565b604082019050919050565b60006141f0602983614b69565b91506141fb82615304565b604082019050919050565b6000614213601083614b69565b915061421e82615353565b602082019050919050565b6000614236602283614b69565b91506142418261537c565b604082019050919050565b6000614259601783614b69565b9150614264826153cb565b602082019050919050565b600061427c602083614b69565b9150614287826153f4565b602082019050919050565b600061429f602c83614b69565b91506142aa8261541d565b604082019050919050565b60006142c2602083614b69565b91506142cd8261546c565b602082019050919050565b60006142e5602983614b69565b91506142f082615495565b604082019050919050565b6000614308602783614b69565b9150614313826154e4565b604082019050919050565b600061432b601783614b69565b915061433682615533565b602082019050919050565b600061434e601683614b69565b91506143598261555c565b602082019050919050565b6000614371602183614b69565b915061437c82615585565b604082019050919050565b6000614394602483614b69565b915061439f826155d4565b604082019050919050565b60006143b7601483614b69565b91506143c282615623565b602082019050919050565b60006143da603183614b69565b91506143e58261564c565b604082019050919050565b60006143fd601983614b69565b91506144088261569b565b602082019050919050565b6000614420601b83614b69565b915061442b826156c4565b602082019050919050565b6000614443600983614b69565b915061444e826156ed565b602082019050919050565b61446281614d0e565b82525050565b61447181614d18565b82525050565b60006144838285613f11565b915061448f8284613ee0565b91508190509392505050565b60006144a6826140a8565b91506144b28285613e57565b6020820191506144c28284613e57565b6020820191508190509392505050565b60006020820190506144e76000830184613e2a565b92915050565b60006080820190506145026000830187613e2a565b61450f6020830186613e2a565b61451c6040830185614459565b818103606083015261452e8184613e6e565b905095945050505050565b600060608201905061454e6000830186613e2a565b61455b6020830185614459565b6145686040830184614459565b949350505050565b60006020820190506145856000830184613e39565b92915050565b60006060820190506145a06000830186613e48565b6145ad6020830185613e2a565b6145ba6040830184614459565b949350505050565b600060a0820190506145d76000830188613e48565b6145e46020830187613e48565b6145f16040830186613e48565b6145fe6060830185614459565b61460b6080830184613e2a565b9695505050505050565b600060808201905061462a6000830187613e48565b6146376020830186614468565b6146446040830185613e48565b6146516060830184613e48565b95945050505050565b600060208201905081810360008301526146748184613ea7565b905092915050565b6000602082019050818103600083015261469581613f90565b9050919050565b600060208201905081810360008301526146b581613fb3565b9050919050565b600060208201905081810360008301526146d581613fd6565b9050919050565b600060208201905081810360008301526146f581613ff9565b9050919050565b600060208201905081810360008301526147158161401c565b9050919050565b600060208201905081810360008301526147358161403f565b9050919050565b6000602082019050818103600083015261475581614062565b9050919050565b6000602082019050818103600083015261477581614085565b9050919050565b60006020820190508181036000830152614795816140cb565b9050919050565b600060208201905081810360008301526147b5816140ee565b9050919050565b600060208201905081810360008301526147d581614111565b9050919050565b600060208201905081810360008301526147f581614134565b9050919050565b6000602082019050818103600083015261481581614157565b9050919050565b600060208201905081810360008301526148358161417a565b9050919050565b600060208201905081810360008301526148558161419d565b9050919050565b60006020820190508181036000830152614875816141c0565b9050919050565b60006020820190508181036000830152614895816141e3565b9050919050565b600060208201905081810360008301526148b581614206565b9050919050565b600060208201905081810360008301526148d581614229565b9050919050565b600060208201905081810360008301526148f58161424c565b9050919050565b600060208201905081810360008301526149158161426f565b9050919050565b6000602082019050818103600083015261493581614292565b9050919050565b60006020820190508181036000830152614955816142b5565b9050919050565b60006020820190508181036000830152614975816142d8565b9050919050565b60006020820190508181036000830152614995816142fb565b9050919050565b600060208201905081810360008301526149b58161431e565b9050919050565b600060208201905081810360008301526149d581614341565b9050919050565b600060208201905081810360008301526149f581614364565b9050919050565b60006020820190508181036000830152614a1581614387565b9050919050565b60006020820190508181036000830152614a35816143aa565b9050919050565b60006020820190508181036000830152614a55816143cd565b9050919050565b60006020820190508181036000830152614a75816143f0565b9050919050565b60006020820190508181036000830152614a9581614413565b9050919050565b60006020820190508181036000830152614ab581614436565b9050919050565b6000602082019050614ad16000830184614459565b92915050565b6000614ae1614af2565b9050614aed8282614d99565b919050565b6000604051905090565b600067ffffffffffffffff821115614b1757614b16614edb565b5b614b2082614f0a565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614b9082614d0e565b9150614b9b83614d0e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614bd057614bcf614e4e565b5b828201905092915050565b6000614be682614d0e565b9150614bf183614d0e565b925082614c0157614c00614e7d565b5b828204905092915050565b6000614c1782614d0e565b9150614c2283614d0e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614c5b57614c5a614e4e565b5b828202905092915050565b6000614c7182614d0e565b9150614c7c83614d0e565b925082821015614c8f57614c8e614e4e565b5b828203905092915050565b6000614ca582614cee565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614d52578082015181840152602081019050614d37565b83811115614d61576000848401525b50505050565b60006002820490506001821680614d7f57607f821691505b60208210811415614d9357614d92614eac565b5b50919050565b614da282614f0a565b810181811067ffffffffffffffff82111715614dc157614dc0614edb565b5b80604052505050565b6000614dd582614d0e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614e0857614e07614e4e565b5b600182019050919050565b6000819050919050565b6000614e2882614d0e565b9150614e3383614d0e565b925082614e4357614e42614e7d565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f596f752063616e206d696e74206d696e696d756d20312c206d6178696d756d2060008201527f35302073616d75726169732e0000000000000000000000000000000000000000602082015250565b7f4e4f545f494e5f5055424c49435f53414c455f54494d45000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f436c61696d206861736e277420737461727465642e0000000000000000000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f50524553414c455f4e4f545f4143544956450000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4e4f545f494e5f50524553414c455f54494d4500000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f544f4b454e5f4e4f545f45584953545300000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f5468697320737461676520697320736f6c64206f757421000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f45786365656420746865207175616e7469747920746861742063616e2062652060008201527f636c61696d656400000000000000000000000000000000000000000000000000602082015250565b7f4e6f7420656c696769626c6520666f7220636c61696d2e000000000000000000600082015250565b7f5055424c49435f53414c455f4e4f545f41435449564500000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f45746865722076616c75652073656e742069732062656c6f772074686520707260008201527f6963652e00000000000000000000000000000000000000000000000000000000602082015250565b7f45786365656473204d41585f53414d555241492e000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4e6f7420656c696769626c6520666f722070726573616c652e00000000000000600082015250565b7f45786365656473206d61782070726573616c65206e756d6265722e0000000000600082015250565b7f536f6c64206f7574210000000000000000000000000000000000000000000000600082015250565b61571f81614c9a565b811461572a57600080fd5b50565b61573681614cac565b811461574157600080fd5b50565b61574d81614cc2565b811461575857600080fd5b50565b61576481614d0e565b811461576f57600080fd5b5056fea2646970667358221220bb92f3a1ac4ba21c33d24c96e0050409e9afe97bc80d50bb46e935b2e30a9b6b64736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

KNS: The Last Ramen is the 2.0 era of Katana N’ Samurai and a generative collection of 6,666 unique digital artwork (NFTs) housed and run on the Ethereum Network. Ukiyo-e is a traditional art famous in Japan back in 1700s, and we aim to bring this kind of historic art into the...

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.