ETH Price: $3,416.48 (-2.32%)
Gas: 7 Gwei

Token

BDPGenX (BDPGENX)
 

Overview

Max Total Supply

1,200 BDPGENX

Holders

439

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 BDPGENX
0x627cc8b14d26Fb6f8a8F9dF9B29CaaEC8496b749
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
BDPGENX

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : bdp_genx.sol
//SPDX-License-Identifier: MIT

/*
                ..............                                         .............
       ...JdWpfpppfffffVVyyyyVyVk&..                            ..JdVyVyyyVVVVVfffpfffpWk&-..
       ?pffpfpVY"7!`           _?7TWyG,                      .JyXY"7!           `?7"TWfpfpfp%
        ?Y"!    ...JdXVyVVyyVyyyk&-..?TW+                  .XY^ ..+wyyyyVyyVVVkA+...    ?7T=
           ..JdfffVVyyyyyyyyyyyyyyyyyy&,?4,              .V^.JyyyyyyyyyyyyyyyyVyVVfffk&..
          (fffffVVyVyWV77!`       _?7TXyX+(n.           J^.Xy0Y=?`       `??7TWyVyVVVffff\
           ,fffVVWY^    ..JsXyyyyZZX&(..?4Z+1,    `   .C.ZV= ..&wZyyyyyXA&...   ?TWVVVVf\
     `  .+pV7WX7!   .(XyyyyV7=?!~``~??7TX&,7k(wZZo(ZZXod=--XV77!~```!?774yyyyW&,   .7WWTUpn,     `
     .(fV= ..n   .-yyyyV=`  ..JgNNNNNg.,  ?T-jZZZZZZZZC.v=` ..+gNNNNag.,   ?Uyyyy&.   J+. ?Wpn.
    .pf^ .dVVVt.dyyyyY!  .dMMMMMMMMMMMMMMNa, ~4uuuuuuV! ..MMMMMMMMMMMMMMMN,. .4yyyyk,(yVVk, (4pn
   gp= .XVVVf' .yyyf' .(MMMMMMMMMMMMMMMMMMMMNJ ?XZuV^ .MMMMMMMMMMMMMMMMMMMMMm. .4yyyn..4VVVW, ?fh.
  Jf^ (fVVyY .Xy=4=  .MMMMMMMMMMMMMMMMMMMMMMMMMe._! .MMMMMMMMMMMMMMMMMMMMMMMMMp  ?f7yW, jVVVfn .fh
 .p\ JffVVf .yy\    JMMMMMMMMMMMMMMMMMMMMMMMMMMMMa.MMMMMMMMMMMMMMMMMMMMMMMMMMMMh    ,yy, jVVffh.,f;
 Jf JfV4VV`.yy%    (MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMb    (yy. VVVWfh X$
 (%.f=  4S ,y0    .MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM;    Wy[ d0  ?f;,$
 ,[(%   ,k dy\    JMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM""WMMMMMMMMMMMb    ,VS d\   jr,\
  td`    W dV`    MMMMMMMM]          TMMMN            7WMMMMMMM@!       (WMMMMMMMN     yS X`    $(`
  ({     (;jf     MMMMMMMM]           ,MMN               TMMMM^           TMMMMMMN     w$.r     (:
          6,$     MMMMMMMM]    .+J    .MMN     .....      (MMF     .g,     MMMMMM#     (\J
          ./r     JMMMMMMM]    .#^    JMMN     JMMMMM,     HMF     M"!     MMMMMMF     ((!
           .>     .MMMMMMM]    .F    ?HMMN     JMMMMM#     JMF     #      .MMMMMM\     (!
                   dMMMMMM]    .F      4MN     JMMMMMD     dMF     #   ..dMMMMMMF
                   .MMMMMM]    .MMM    .MN     JY"""      .MMF     MMMMMMMMMMMMM!
                    ,MMMMM]    .F      .MN     J}        .MMMF    `MMMMMMMMMMMM%
                     (MMMM]    .F     .MMN     J}     ..MMMMMF     MMMMMMMMMMM$
                      (MMMNgggggNgggMMMMMMgggggMNgggNMMMMMMMMNgggggMMMMMMMMMM$
                       ,MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM^
                         WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM#`
                          7MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMD
                           .HMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM#'
                             ?MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
                               TMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMD
                                .TMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM@`
                                  .TMMMMMMMMMMMMMMMMMMMMMMMMMMMMB!
                                    .TMMMMMMMMMMMMMMMMMMMMMMMM@!
                                       TMMMMMMMMMMMMMMMMMMMMD`
                                         ?MMMMMMMMMMMMMMMM"
                                           (WMMMMMMMMMM#^
                                              TMMMMMMD`
                                                (YY=
*/

pragma solidity ^0.8.9;
import "./token.sol";

contract BDPGENX is TOKEN {}

File 2 of 20 : token.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "erc721psi/contracts/ERC721Psi.sol";

contract TOKEN is ERC721Psi, ERC2981, Ownable, ReentrancyGuard {
    using Strings for uint256;

    uint256 public constant MAX_SUPPLY = 1200;
    uint256 public constant PRE_PRICE = 0.02 ether;
    uint256 public constant PUB_PRICE = 0.04 ether;

    bool public preSaleStart;
    bool public pubSaleStart;
    bool public isFinalize;

    uint256 public mintLimit = 2;

    bytes32 public merkleRoot;

    address public royaltyAddress = 0xCba45385799dCE6B93AC2C1c3c1E93F0f710db78;
    uint96 public royaltyFee = 1000;

    string private _baseTokenURI;
    string private _podURI;

    mapping(address => uint256) public claimed;
    mapping(uint256 => uint256) public revealed;
    mapping(uint256 => uint256) private _mintType;
    mapping(uint256 => address) private _owner;

    constructor() ERC721Psi("BDPGenX", "BDPGENX") {
        _setDefaultRoyalty(msg.sender, royaltyFee);
    }

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

    function tokenURI(uint256 _tokenId)
        public
        view
        virtual
        override(ERC721Psi)
        returns (string memory)
    {
        if (revealed[_tokenId] == 1) {
            return
                string(abi.encodePacked(ERC721Psi.tokenURI(_tokenId), ".json"));
        } else {
            if (!_exists(_tokenId)) return "";
            return
                string(abi.encodePacked(_podURI, _tokenId.toString(), ".json"));
        }
    }

    function pubMint(uint256 _quantity) public payable nonReentrant {
        uint256 supply = totalSupply();
        uint256 cost = PUB_PRICE * _quantity;
        require(pubSaleStart, "Before sale begin.");
        _mintCheck(_quantity, supply, cost);

        claimed[msg.sender] += _quantity;
        _safeMint(msg.sender, _quantity);

        for (uint256 i = 0; i < _quantity; ) {
            uint256 tokenId = supply + i;
            _mintType[tokenId] = 1;
            unchecked {
                i++;
            }
        }
    }

    function checkMerkleProof(bytes32[] calldata _merkleProof)
        public
        view
        returns (bool)
    {
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        return MerkleProof.verifyCalldata(_merkleProof, merkleRoot, leaf);
    }

    function preMint(uint256 _quantity, bytes32[] calldata _merkleProof)
        public
        payable
        nonReentrant
    {
        uint256 supply = totalSupply();
        uint256 cost = PRE_PRICE * _quantity;
        require(preSaleStart, "Before sale begin.");
        _mintCheck(_quantity, supply, cost);

        require(checkMerkleProof(_merkleProof), "Invalid Merkle Proof");

        claimed[msg.sender] += _quantity;
        _safeMint(msg.sender, _quantity);
    }

    function _mintCheck(
        uint256 _quantity,
        uint256 _supply,
        uint256 _cost
    ) private view {
        require(_supply + _quantity <= MAX_SUPPLY, "Max supply over");
        require(_quantity <= mintLimit, "Mint quantity over");
        require(msg.value >= _cost, "Not enough funds");
        require(
            claimed[msg.sender] + _quantity <= mintLimit,
            "Already claimed max"
        );
    }

    function ownerMint(address _address, uint256 _quantity) public onlyOwner {
        uint256 supply = totalSupply();
        require(supply + _quantity <= MAX_SUPPLY, "Max supply over");
        _safeMint(_address, _quantity);
    }

    function checkMintType(uint256 _tokenId) external view returns (uint256) {
        require(_exists(_tokenId), "nonexistent token");
        return _mintType[_tokenId];
    }

    // only owner
    function setPodURI(string memory _uri) public onlyOwner {
        require(!isFinalize, "finalize is declared");
        _podURI = _uri;
    }

    function setBaseURI(string calldata _uri) external onlyOwner {
        require(!isFinalize, "finalize is declared");
        _baseTokenURI = _uri;
    }

    function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
        merkleRoot = _merkleRoot;
    }

    function setPresale(bool _state) public onlyOwner {
        preSaleStart = _state;
    }

    function setPubsale(bool _state) public onlyOwner {
        pubSaleStart = _state;
    }

    function setMintType(uint256 _tokenId, uint256 _type) public onlyOwner {
        require(!isFinalize, "finalize is declared");
        _mintType[_tokenId] = _type;
    }

    function setMintLimit(uint256 _quantity) public onlyOwner {
        mintLimit = _quantity;
    }

    function reveal(uint256 _tokenId) public {
        address owner = ownerOf(_tokenId);
        require(owner == msg.sender, "only the owner can reveal");
        if (revealed[_tokenId] != 1) {
            revealed[_tokenId] = 1;
        }
    }

    function batchReveal(uint256[] calldata _tokenIds) public {
        uint256 n = _tokenIds.length;
        for (uint256 i = 0; i < n; ) {
            reveal(_tokenIds[i]);
            unchecked {
                i++;
            }
        }
    }

    function finalize() public onlyOwner {
        isFinalize = true;
    }

    address private _fnd;
    address private _dev;
    address private _mar;

    function setMemberAddress(
        address _founder,
        address _developer,
        address _marketer
    ) public onlyOwner {
        _fnd = _founder;
        _dev = _developer;
        _mar = _marketer;
    }

    function withdraw() external onlyOwner {
        require(
            _fnd != address(0) && _dev != address(0) && _mar != address(0),
            "Please set member address"
        );

        uint256 balance = address(this).balance;

        Address.sendValue(payable(_fnd), ((balance * 7000) / 10000));
        Address.sendValue(payable(_dev), ((balance * 2500) / 10000));
        Address.sendValue(payable(_mar), ((balance * 500) / 10000));
    }

    // Royality
    function setRoyaltyFee(uint96 _feeNumerator) external onlyOwner {
        _setDefaultRoyalty(royaltyAddress, _feeNumerator);
    }

    function setRoyaltyAddress(address _royaltyAddress) external onlyOwner {
        _setDefaultRoyalty(_royaltyAddress, royaltyFee);
    }

    function supportsInterface(bytes4 _interfaceId)
        public
        view
        virtual
        override(ERC721Psi, ERC2981)
        returns (bool)
    {
        // Supports the following `interfaceId`s:
        // - IERC165: 0x01ffc9a7
        // - IERC721: 0x80ac58cd
        // - IERC721Metadata: 0x5b5e139f
        // - IERC2981: 0x2a55205a
        return
            ERC721Psi.supportsInterface(_interfaceId) ||
            ERC2981.supportsInterface(_interfaceId);
    }
}

File 3 of 20 : ERC721Psi.sol
// SPDX-License-Identifier: MIT
/**
  ______ _____   _____ ______ ___  __ _  _  _ 
 |  ____|  __ \ / ____|____  |__ \/_ | || || |
 | |__  | |__) | |        / /   ) || | \| |/ |
 |  __| |  _  /| |       / /   / / | |\_   _/ 
 | |____| | \ \| |____  / /   / /_ | |  | |   
 |______|_|  \_\\_____|/_/   |____||_|  |_|   
                                              
                                            
 */

pragma solidity ^0.8.0;

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/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/StorageSlot.sol";
import "solidity-bits/contracts/BitMaps.sol";


contract ERC721Psi is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;
    using BitMaps for BitMaps.BitMap;

    BitMaps.BitMap private _batchHead;

    string private _name;
    string private _symbol;

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

    mapping(uint256 => address) private _tokenApprovals;
    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 ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

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

        uint count;
        for( uint i; i < _minted; ++i ){
            if(_exists(i)){
                if( owner == ownerOf(i)){
                    ++count;
                }
            }
        }
        return count;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        (address owner, ) = _ownerAndBatchHeadOf(tokenId);
        return owner;
    }

    function _ownerAndBatchHeadOf(uint256 tokenId) internal view returns (address owner, uint256 tokenIdBatchHead){
        require(_exists(tokenId), "ERC721Psi: owner query for nonexistent token");
        tokenIdBatchHead = _getBatchHead(tokenId);
        owner = _owners[tokenIdBatchHead];
    }

    /**
     * @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), "ERC721Psi: 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 = ownerOf(tokenId);
        require(to != owner, "ERC721Psi: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721Psi: 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),
            "ERC721Psi: approved query for nonexistent token"
        );

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(operator != _msgSender(), "ERC721Psi: 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),
            "ERC721Psi: 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),
            "ERC721Psi: 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, 1,_data),
            "ERC721Psi: 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`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _minted;
    }

    /**
     * @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),
            "ERC721Psi: operator query for nonexistent token"
        );
        address owner = ownerOf(tokenId);
        return (spender == owner ||
            getApproved(tokenId) == spender ||
            isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, "");
    }

    
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        uint256 startTokenId = _minted;
        _mint(to, quantity);
        require(
            _checkOnERC721Received(address(0), to, startTokenId, quantity, _data),
            "ERC721Psi: transfer to non ERC721Receiver implementer"
        );
    }


    function _mint(
        address to,
        uint256 quantity
    ) internal virtual {
        uint256 tokenIdBatchHead = _minted;
        
        require(quantity > 0, "ERC721Psi: quantity must be greater 0");
        require(to != address(0), "ERC721Psi: mint to the zero address");
        
        _beforeTokenTransfers(address(0), to, tokenIdBatchHead, quantity);
        _minted += quantity;
        _owners[tokenIdBatchHead] = to;
        _batchHead.set(tokenIdBatchHead);
        _afterTokenTransfers(address(0), to, tokenIdBatchHead, quantity);
        
        // Emit events
        for(uint256 tokenId=tokenIdBatchHead;tokenId < tokenIdBatchHead + quantity; tokenId++){
            emit Transfer(address(0), to, 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 {
        (address owner, uint256 tokenIdBatchHead) = _ownerAndBatchHeadOf(tokenId);

        require(
            owner == from,
            "ERC721Psi: transfer of token that is not own"
        );
        require(to != address(0), "ERC721Psi: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        uint256 nextTokenId = tokenId + 1;

        if(!_batchHead.get(nextTokenId) &&  
            nextTokenId < _minted
        ) {
            _owners[nextTokenId] = from;
            _batchHead.set(nextTokenId);
        }

        _owners[tokenId] = to;
        if(tokenId != tokenIdBatchHead) {
            _batchHead.set(tokenId);
        }

        emit Transfer(from, to, tokenId);

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

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(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 startTokenId uint256 the first ID of the tokens to be transferred
     * @param quantity uint256 amount of the tokens to be transfered.
     * @param _data bytes optional data to send along with the call
     * @return r bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity,
        bytes memory _data
    ) private returns (bool r) {
        if (to.isContract()) {
            r = true;
            for(uint256 tokenId = startTokenId; tokenId < startTokenId + quantity; tokenId++){
                try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                    r = r && retval == IERC721Receiver.onERC721Received.selector;
                } catch (bytes memory reason) {
                    if (reason.length == 0) {
                        revert("ERC721Psi: transfer to non ERC721Receiver implementer");
                    } else {
                        assembly {
                            revert(add(32, reason), mload(reason))
                        }
                    }
                }
            }
            return r;
        } else {
            return true;
        }
    }

    function _getBatchHead(uint256 tokenId) internal view returns (uint256 tokenIdBatchHead) {
        tokenIdBatchHead = _batchHead.scanForward(tokenId); 
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256 tokenId) {
        require(index < totalSupply(), "ERC721Psi: global index out of bounds");
        
        uint count;
        for(uint i; i < _minted; i++){
            if(_exists(i)){
                if(count == index) return i;
                else count++;
            }
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) {
        uint count;
        for(uint i; i < _minted; i++){
            if(_exists(i) && owner == ownerOf(i)){
                if(count == index) return i;
                else count++;
            }
        }

        revert("ERC721Psi: owner index out of bounds");
    }


    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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`.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 4 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 5 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

File 6 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 7 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // 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);
    }

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

File 8 of 20 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 9 of 20 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 10 of 20 : BitMaps.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */
pragma solidity ^0.8.0;

import "./BitScan.sol";

/**
 * @dev This Library is a modified version of Openzeppelin's BitMaps library.
 * Functions of finding the index of the closest set bit from a given index are added.
 * The indexing of each bucket is modifed to count from the MSB to the LSB instead of from the LSB to the MSB.
 * The modification of indexing makes finding the closest previous set bit more efficient in gas usage.
*/

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */

library BitMaps {
    using BitScan for uint256;
    uint256 private constant MASK_INDEX_ZERO = (1 << 255);
    uint256 private constant MASK_FULL = type(uint256).max;

    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(
        BitMap storage bitmap,
        uint256 index,
        bool value
    ) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }


    /**
     * @dev Consecutively sets `amount` of bits starting from the bit at `startIndex`.
     */    
    function setBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal {
        uint256 bucket = startIndex >> 8;

        uint256 bucketStartIndex = (startIndex & 0xff);

        unchecked {
            if(bucketStartIndex + amount < 256) {
                bitmap._data[bucket] |= MASK_FULL << (256 - amount) >> bucketStartIndex;
            } else {
                bitmap._data[bucket] |= MASK_FULL >> bucketStartIndex;
                amount -= (256 - bucketStartIndex);
                bucket++;

                while(amount > 256) {
                    bitmap._data[bucket] = MASK_FULL;
                    amount -= 256;
                    bucket++;
                }

                bitmap._data[bucket] |= MASK_FULL << (256 - amount);
            }
        }
    }


    /**
     * @dev Consecutively unsets `amount` of bits starting from the bit at `startIndex`.
     */    
    function unsetBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal {
        uint256 bucket = startIndex >> 8;

        uint256 bucketStartIndex = (startIndex & 0xff);

        unchecked {
            if(bucketStartIndex + amount < 256) {
                bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount) >> bucketStartIndex);
            } else {
                bitmap._data[bucket] &= ~(MASK_FULL >> bucketStartIndex);
                amount -= (256 - bucketStartIndex);
                bucket++;

                while(amount > 256) {
                    bitmap._data[bucket] = 0;
                    amount -= 256;
                    bucket++;
                }

                bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount));
            }
        }
    }


    /**
     * @dev Find the closest index of the set bit before `index`.
     */
    function scanForward(BitMap storage bitmap, uint256 index) internal view returns (uint256 setBitIndex) {
        uint256 bucket = index >> 8;

        // index within the bucket
        uint256 bucketIndex = (index & 0xff);

        // load a bitboard from the bitmap.
        uint256 bb = bitmap._data[bucket];

        // offset the bitboard to scan from `bucketIndex`.
        bb = bb >> (0xff ^ bucketIndex); // bb >> (255 - bucketIndex)
        
        if(bb > 0) {
            unchecked {
                setBitIndex = (bucket << 8) | (bucketIndex -  bb.bitScanForward256());    
            }
        } else {
            while(true) {
                require(bucket > 0, "BitMaps: The set bit before the index doesn't exist.");
                unchecked {
                    bucket--;
                }
                // No offset. Always scan from the least significiant bit now.
                bb = bitmap._data[bucket];
                
                if(bb > 0) {
                    unchecked {
                        setBitIndex = (bucket << 8) | (255 -  bb.bitScanForward256());
                        break;
                    }
                } 
            }
        }
    }

    function getBucket(BitMap storage bitmap, uint256 bucket) internal view returns (uint256) {
        return bitmap._data[bucket];
    }
}

File 11 of 20 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 12 of 20 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }
}

File 13 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

File 14 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 16 of 20 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

File 18 of 20 : BitScan.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */

pragma solidity ^0.8.0;


library BitScan {
    uint256 constant private DEBRUIJN_256 = 0x818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff;
    bytes constant private LOOKUP_TABLE_256 = hex"0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8";

    /**
        @dev Isolate the least significant set bit.
     */ 
    function isolateLS1B256(uint256 bb) pure internal returns (uint256) {
        require(bb > 0);
        unchecked {
            return bb & (0 - bb);
        }
    } 

    /**
        @dev Isolate the most significant set bit.
     */ 
    function isolateMS1B256(uint256 bb) pure internal returns (uint256) {
        require(bb > 0);
        unchecked {
            bb |= bb >> 128;
            bb |= bb >> 64;
            bb |= bb >> 32;
            bb |= bb >> 16;
            bb |= bb >> 8;
            bb |= bb >> 4;
            bb |= bb >> 2;
            bb |= bb >> 1;
            
            return (bb >> 1) + 1;
        }
    } 

    /**
        @dev Find the index of the lest significant set bit. (trailing zero count)
     */ 
    function bitScanForward256(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return uint8(LOOKUP_TABLE_256[(isolateLS1B256(bb) * DEBRUIJN_256) >> 248]);
        }   
    }

    /**
        @dev Find the index of the most significant set bit.
     */ 
    function bitScanReverse256(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return 255 - uint8(LOOKUP_TABLE_256[((isolateMS1B256(bb) * DEBRUIJN_256) >> 248)]);
        }   
    }

    function log2(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return uint8(LOOKUP_TABLE_256[(isolateMS1B256(bb) * DEBRUIJN_256) >> 248]);
        } 
    }
}

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

pragma solidity ^0.8.0;

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

File 20 of 20 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

Contract Security Audit

Contract ABI

[{"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"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUB_PRICE","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":"_tokenIds","type":"uint256[]"}],"name":"batchReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"checkMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"checkMintType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalize","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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFinalize","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"preSaleStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"pubMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"pubSaleStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"revealed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyFee","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_founder","type":"address"},{"internalType":"address","name":"_developer","type":"address"},{"internalType":"address","name":"_marketer","type":"address"}],"name":"setMemberAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"setMintType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setPodURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPubsale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"}],"name":"setRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setRoyaltyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526002600c5573cba45385799dce6b93ac2c1c3c1e93f0f710db78600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506103e8600e60146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055503480156200009e57600080fd5b506040518060400160405280600781526020017f42445047656e58000000000000000000000000000000000000000000000000008152506040518060400160405280600781526020017f42445047454e580000000000000000000000000000000000000000000000000081525081600190805190602001906200012392919062000415565b5080600290805190602001906200013c92919062000415565b5050506200015f620001536200019960201b60201c565b620001a160201b60201c565b6001600a819055506200019333600e60149054906101000a90046bffffffffffffffffffffffff166200026760201b60201c565b62000645565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002776200040b60201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620002d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002cf906200054c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200034b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200034290620005be565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b82805462000423906200060f565b90600052602060002090601f01602090048101928262000447576000855562000493565b82601f106200046257805160ff191683800117855562000493565b8280016001018555821562000493579182015b828111156200049257825182559160200191906001019062000475565b5b509050620004a29190620004a6565b5090565b5b80821115620004c1576000816000905550600101620004a7565b5090565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000534602a83620004c5565b91506200054182620004d6565b604082019050919050565b60006020820190508181036000830152620005678162000525565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000620005a6601983620004c5565b9150620005b3826200056e565b602082019050919050565b60006020820190508181036000830152620005d98162000597565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200062857607f821691505b602082108114156200063f576200063e620005e0565b5b50919050565b615d9c80620006556000396000f3fe6080604052600436106102e45760003560e01c8063671e440511610190578063b472070f116100dc578063c87b56dd11610095578063e985e9c51161006f578063e985e9c514610b2d578063f2fde38b14610b6a578063f985efd614610b93578063fbd8fe3914610bbc576102e4565b8063c87b56dd14610a88578063c884ef8314610ac5578063cfd9480b14610b02576102e4565b8063b472070f1461099b578063b88d4fde146109c6578063b8997a97146109ef578063c1d9df8d14610a1a578063c2ca0ac514610a36578063c54e73e314610a5f576102e4565b806395751e1e116101495780639e6a1d7d116101235780639e6a1d7d146108e1578063a22cb4651461090a578063a9a3826214610933578063ad2f852a14610970576102e4565b806395751e1e1461086257806395d89b411461088b578063996517cf146108b6576102e4565b8063671e4405146107665780636aaa76241461079157806370a08231146107ba578063715018a6146107f75780637cb647591461080e5780638da5cb5b14610837576102e4565b8063317ddea31161024f5780634bb278f31161020857806355f804b3116101e257806355f804b3146106a75780635a546223146106d057806361a2bc01146106ec5780636352211e14610729576102e4565b80634bb278f3146106285780634f6ccce71461063f578063556fedd21461067c576102e4565b8063317ddea31461052e57806331faafb41461056b57806332cb6b0c146105945780633ccfd60b146105bf57806342842e0e146105d6578063484b973c146105ff576102e4565b806318160ddd116102a157806318160ddd1461040b5780631ad4de591461043657806323b872dd1461045f5780632a55205a146104885780632eb4a7ab146104c65780632f745c59146104f1576102e4565b806301ffc9a7146102e957806306d254da1461032657806306fdde031461034f578063081812fc1461037a578063095ea7b3146103b75780630d5624b3146103e0575b600080fd5b3480156102f557600080fd5b50610310600480360381019061030b9190613afd565b610be5565b60405161031d9190613b45565b60405180910390f35b34801561033257600080fd5b5061034d60048036038101906103489190613bbe565b610c07565b005b34801561035b57600080fd5b50610364610c36565b6040516103719190613c84565b60405180910390f35b34801561038657600080fd5b506103a1600480360381019061039c9190613cdc565b610cc8565b6040516103ae9190613d18565b60405180910390f35b3480156103c357600080fd5b506103de60048036038101906103d99190613d33565b610d4d565b005b3480156103ec57600080fd5b506103f5610e65565b6040516104029190613b45565b60405180910390f35b34801561041757600080fd5b50610420610e78565b60405161042d9190613d82565b60405180910390f35b34801561044257600080fd5b5061045d60048036038101906104589190613dc9565b610e82565b005b34801561046b57600080fd5b5061048660048036038101906104819190613df6565b610ea7565b005b34801561049457600080fd5b506104af60048036038101906104aa9190613e49565b610f07565b6040516104bd929190613e89565b60405180910390f35b3480156104d257600080fd5b506104db6110f2565b6040516104e89190613ecb565b60405180910390f35b3480156104fd57600080fd5b5061051860048036038101906105139190613d33565b6110f8565b6040516105259190613d82565b60405180910390f35b34801561053a57600080fd5b5061055560048036038101906105509190613cdc565b6111cb565b6040516105629190613d82565b60405180910390f35b34801561057757600080fd5b50610592600480360381019061058d9190613f2a565b611230565b005b3480156105a057600080fd5b506105a9611267565b6040516105b69190613d82565b60405180910390f35b3480156105cb57600080fd5b506105d461126d565b005b3480156105e257600080fd5b506105fd60048036038101906105f89190613df6565b611497565b005b34801561060b57600080fd5b5061062660048036038101906106219190613d33565b6114b7565b005b34801561063457600080fd5b5061063d61152a565b005b34801561064b57600080fd5b5061066660048036038101906106619190613cdc565b61154f565b6040516106739190613d82565b60405180910390f35b34801561068857600080fd5b506106916115f2565b60405161069e9190613d82565b60405180910390f35b3480156106b357600080fd5b506106ce60048036038101906106c99190613fbc565b6115fd565b005b6106ea60048036038101906106e5919061405f565b61166b565b005b3480156106f857600080fd5b50610713600480360381019061070e9190613cdc565b6117ee565b6040516107209190613d82565b60405180910390f35b34801561073557600080fd5b50610750600480360381019061074b9190613cdc565b611806565b60405161075d9190613d18565b60405180910390f35b34801561077257600080fd5b5061077b61181e565b6040516107889190613b45565b60405180910390f35b34801561079d57600080fd5b506107b860048036038101906107b391906140bf565b611831565b005b3480156107c657600080fd5b506107e160048036038101906107dc9190613bbe565b611901565b6040516107ee9190613d82565b60405180910390f35b34801561080357600080fd5b5061080c6119f3565b005b34801561081a57600080fd5b506108356004803603810190610830919061413e565b611a07565b005b34801561084357600080fd5b5061084c611a19565b6040516108599190613d18565b60405180910390f35b34801561086e57600080fd5b50610889600480360381019061088491906141c1565b611a43565b005b34801561089757600080fd5b506108a0611a8b565b6040516108ad9190613c84565b60405180910390f35b3480156108c257600080fd5b506108cb611b1d565b6040516108d89190613d82565b60405180910390f35b3480156108ed57600080fd5b5061090860048036038101906109039190613cdc565b611b23565b005b34801561091657600080fd5b50610931600480360381019061092c919061420e565b611b35565b005b34801561093f57600080fd5b5061095a6004803603810190610955919061424e565b611cb6565b6040516109679190613b45565b60405180910390f35b34801561097c57600080fd5b50610985611cf9565b6040516109929190613d18565b60405180910390f35b3480156109a757600080fd5b506109b0611d1f565b6040516109bd9190613d82565b60405180910390f35b3480156109d257600080fd5b506109ed60048036038101906109e891906143cb565b611d2a565b005b3480156109fb57600080fd5b50610a04611d8c565b604051610a11919061445d565b60405180910390f35b610a346004803603810190610a2f9190613cdc565b611daa565b005b348015610a4257600080fd5b50610a5d6004803603810190610a589190613cdc565b611f25565b005b348015610a6b57600080fd5b50610a866004803603810190610a819190613dc9565b611fd9565b005b348015610a9457600080fd5b50610aaf6004803603810190610aaa9190613cdc565b611ffe565b604051610abc9190613c84565b60405180910390f35b348015610ad157600080fd5b50610aec6004803603810190610ae79190613bbe565b6120a2565b604051610af99190613d82565b60405180910390f35b348015610b0e57600080fd5b50610b176120ba565b604051610b249190613b45565b60405180910390f35b348015610b3957600080fd5b50610b546004803603810190610b4f9190614478565b6120cd565b604051610b619190613b45565b60405180910390f35b348015610b7657600080fd5b50610b916004803603810190610b8c9190613bbe565b612161565b005b348015610b9f57600080fd5b50610bba6004803603810190610bb59190614559565b6121e5565b005b348015610bc857600080fd5b50610be36004803603810190610bde9190613e49565b612257565b005b6000610bf0826122cb565b80610c005750610bff82612415565b5b9050919050565b610c0f61248f565b610c3381600e60149054906101000a90046bffffffffffffffffffffffff1661250d565b50565b606060018054610c45906145d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610c71906145d1565b8015610cbe5780601f10610c9357610100808354040283529160200191610cbe565b820191906000526020600020905b815481529060010190602001808311610ca157829003601f168201915b5050505050905090565b6000610cd3826126a3565b610d12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0990614675565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d5882611806565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc090614707565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610de86126b1565b73ffffffffffffffffffffffffffffffffffffffff161480610e175750610e1681610e116126b1565b6120cd565b5b610e56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4d90614799565b60405180910390fd5b610e6083836126b9565b505050565b600b60009054906101000a900460ff1681565b6000600454905090565b610e8a61248f565b80600b60016101000a81548160ff02191690831515021790555050565b610eb8610eb26126b1565b82612772565b610ef7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eee9061482b565b60405180910390fd5b610f02838383612850565b505050565b6000806000600860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16141561109d5760076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006110a7612ad3565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866110d3919061487a565b6110dd9190614903565b90508160000151819350935050509250929050565b600d5481565b60008060005b60045481101561118957611111816126a3565b8015611150575061112181611806565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b1561117657838214156111675780925050506111c5565b818061117290614934565b9250505b808061118190614934565b9150506110fe565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bc906149ef565b60405180910390fd5b92915050565b60006111d6826126a3565b611215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120c90614a5b565b60405180910390fd5b60136000838152602001908152602001600020549050919050565b61123861248f565b611264600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168261250d565b50565b6104b081565b61127561248f565b600073ffffffffffffffffffffffffffffffffffffffff16601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141580156113235750600073ffffffffffffffffffffffffffffffffffffffff16601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b801561137e5750600073ffffffffffffffffffffffffffffffffffffffff16601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b6113bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b490614ac7565b60405180910390fd5b6000479050611408601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710611b58846113f9919061487a565b6114039190614903565b612add565b61144e601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106109c48461143f919061487a565b6114499190614903565b612add565b611494601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106101f484611485919061487a565b61148f9190614903565b612add565b50565b6114b283838360405180602001604052806000815250611d2a565b505050565b6114bf61248f565b60006114c9610e78565b90506104b082826114da9190614ae7565b111561151b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151290614b89565b60405180910390fd5b6115258383612bd1565b505050565b61153261248f565b6001600b60026101000a81548160ff021916908315150217905550565b6000611559610e78565b821061159a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159190614c1b565b60405180910390fd5b6000805b6004548110156115ea576115b1816126a3565b156115d757838214156115c85780925050506115ed565b81806115d390614934565b9250505b80806115e290614934565b91505061159e565b50505b919050565b66470de4df82000081565b61160561248f565b600b60029054906101000a900460ff1615611655576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164c90614c87565b60405180910390fd5b8181600f9190611666929190613968565b505050565b6002600a5414156116b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a890614cf3565b60405180910390fd5b6002600a8190555060006116c3610e78565b905060008466470de4df8200006116da919061487a565b9050600b60009054906101000a900460ff1661172b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172290614d5f565b60405180910390fd5b611736858383612bef565b6117408484611cb6565b61177f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177690614dcb565b60405180910390fd5b84601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117ce9190614ae7565b925050819055506117df3386612bd1565b50506001600a81905550505050565b60126020528060005260406000206000915090505481565b60008061181283612d5b565b50905080915050919050565b600b60029054906101000a900460ff1681565b61183961248f565b82601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196990614e5d565b60405180910390fd5b6000805b6004548110156119e957611989816126a3565b156119d85761199781611806565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156119d757816119d490614934565b91505b5b806119e290614934565b9050611976565b5080915050919050565b6119fb61248f565b611a056000612dec565b565b611a0f61248f565b80600d8190555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600082829050905060005b81811015611a8557611a78848483818110611a6c57611a6b614e7d565b5b90506020020135611f25565b8080600101915050611a4e565b50505050565b606060028054611a9a906145d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611ac6906145d1565b8015611b135780601f10611ae857610100808354040283529160200191611b13565b820191906000526020600020905b815481529060010190602001808311611af657829003601f168201915b5050505050905090565b600c5481565b611b2b61248f565b80600c8190555050565b611b3d6126b1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba290614ef8565b60405180910390fd5b8060066000611bb86126b1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c656126b1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611caa9190613b45565b60405180910390a35050565b60008033604051602001611cca9190614f60565b604051602081830303815290604052805190602001209050611cf08484600d5484612eb2565b91505092915050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b668e1bc9bf04000081565b611d3b611d356126b1565b83612772565b611d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d719061482b565b60405180910390fd5b611d8684848484612ecb565b50505050565b600e60149054906101000a90046bffffffffffffffffffffffff1681565b6002600a541415611df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de790614cf3565b60405180910390fd5b6002600a819055506000611e02610e78565b9050600082668e1bc9bf040000611e19919061487a565b9050600b60019054906101000a900460ff16611e6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6190614d5f565b60405180910390fd5b611e75838383612bef565b82601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ec49190614ae7565b92505081905550611ed53384612bd1565b60005b83811015611f175760008184611eee9190614ae7565b905060016013600083815260200190815260200160002081905550818060010192505050611ed8565b5050506001600a8190555050565b6000611f3082611806565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9790614fc7565b60405180910390fd5b6001601260008481526020019081526020016000205414611fd557600160126000848152602001908152602001600020819055505b5050565b611fe161248f565b80600b60006101000a81548160ff02191690831515021790555050565b606060016012600084815260200190815260200160002054141561204b5761202582612f29565b604051602001612035919061506f565b604051602081830303815290604052905061209d565b612054826126a3565b61206f5760405180602001604052806000815250905061209d565b601061207a83612fd0565b60405160200161208b929190615125565b60405160208183030381529060405290505b919050565b60116020528060005260406000206000915090505481565b600b60019054906101000a900460ff1681565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61216961248f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156121d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d0906151c6565b60405180910390fd5b6121e281612dec565b50565b6121ed61248f565b600b60029054906101000a900460ff161561223d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223490614c87565b60405180910390fd5b80601090805190602001906122539291906139ee565b5050565b61225f61248f565b600b60029054906101000a900460ff16156122af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a690614c87565b60405180910390fd5b8060136000848152602001908152602001600020819055505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061239657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806123fe57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061240e575061240d82613131565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124885750612487826122cb565b5b9050919050565b6124976126b1565b73ffffffffffffffffffffffffffffffffffffffff166124b5611a19565b73ffffffffffffffffffffffffffffffffffffffff161461250b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250290615232565b60405180910390fd5b565b612515612ad3565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256a906152c4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125da90615330565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600060045482109050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661272c83611806565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061277d826126a3565b6127bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b3906153c2565b60405180910390fd5b60006127c783611806565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061283657508373ffffffffffffffffffffffffffffffffffffffff1661281e84610cc8565b73ffffffffffffffffffffffffffffffffffffffff16145b80612847575061284681856120cd565b5b91505092915050565b60008061285c83612d5b565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146128ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c590615454565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561293e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612935906154e6565b60405180910390fd5b61294b858585600161319b565b6129566000846126b9565b60006001846129659190614ae7565b905061297b8160006131a190919063ffffffff16565b158015612989575060045481105b156129f557856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506129f48160006131fc90919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818414612a6357612a628460006131fc90919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612acb8686866001613259565b505050505050565b6000612710905090565b80471015612b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1790615552565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612b46906155a3565b60006040518083038185875af1925050503d8060008114612b83576040519150601f19603f3d011682016040523d82523d6000602084013e612b88565b606091505b5050905080612bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc39061562a565b60405180910390fd5b505050565b612beb82826040518060200160405280600081525061325f565b5050565b6104b08383612bfe9190614ae7565b1115612c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3690614b89565b60405180910390fd5b600c54831115612c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7b90615696565b60405180910390fd5b80341015612cc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cbe90615702565b60405180910390fd5b600c5483601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612d159190614ae7565b1115612d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4d9061576e565b60405180910390fd5b505050565b600080612d67836126a3565b612da6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9d90615800565b60405180910390fd5b612daf836132c3565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082612ec08686856132e0565b149050949350505050565b612ed6848484612850565b612ee4848484600185613338565b612f23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1a90615892565b60405180910390fd5b50505050565b6060612f34826126a3565b612f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6a90615924565b60405180910390fd5b6000612f7d61350a565b90506000815111612f9d5760405180602001604052806000815250612fc8565b80612fa784612fd0565b604051602001612fb8929190615944565b6040516020818303038152906040525b915050919050565b60606000821415613018576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061312c565b600082905060005b6000821461304a57808061303390614934565b915050600a826130439190614903565b9150613020565b60008167ffffffffffffffff811115613066576130656142a0565b5b6040519080825280601f01601f1916602001820160405280156130985781602001600182028036833780820191505090505b5090505b60008514613125576001826130b19190615968565b9150600a856130c0919061599c565b60306130cc9190614ae7565b60f81b8183815181106130e2576130e1614e7d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561311e9190614903565b945061309c565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b50505050565b60006004549050613270848461359c565b61327e600085838686613338565b6132bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132b490615892565b60405180910390fd5b50505050565b60006132d982600061377d90919063ffffffff16565b9050919050565b60008082905060005b8585905081101561332c576133178287878481811061330b5761330a614e7d565b5b90506020020135613876565b9150808061332490614934565b9150506132e9565b50809150509392505050565b60006133598573ffffffffffffffffffffffffffffffffffffffff166138a1565b156134fc576001905060008490505b83856133749190614ae7565b8110156134f6578573ffffffffffffffffffffffffffffffffffffffff1663150b7a0261339f6126b1565b8984876040518563ffffffff1660e01b81526004016133c19493929190615a22565b602060405180830381600087803b1580156133db57600080fd5b505af192505050801561340c57506040513d601f19601f820116820180604052508101906134099190615a83565b60015b61348f573d806000811461343c576040519150601f19603f3d011682016040523d82523d6000602084013e613441565b606091505b50600081511415613487576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347e90615892565b60405180910390fd5b805181602001fd5b8280156134e0575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b92505080806134ee90614934565b915050613368565b50613501565b600190505b95945050505050565b6060600f8054613519906145d1565b80601f0160208091040260200160405190810160405280929190818152602001828054613545906145d1565b80156135925780601f1061356757610100808354040283529160200191613592565b820191906000526020600020905b81548152906001019060200180831161357557829003601f168201915b5050505050905090565b60006004549050600082116135e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135dd90615b22565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161364d90615bb4565b60405180910390fd5b613663600084838561319b565b81600460008282546136759190614ae7565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506136e28160006131fc90919063ffffffff16565b6136ef6000848385613259565b60008190505b82826137019190614ae7565b81101561377757808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808061376f90614934565b9150506136f5565b50505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c905060008111156137d6576137c4816138c4565b60ff168203600884901b17935061386d565b5b60011561386c5760008311613821576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161381890615c46565b60405180910390fd5b828060019003935050856000016000848152602001908152602001600020549050600081111561386757613854816138c4565b60ff0360ff16600884901b17935061386c565b6137d7565b5b50505092915050565b600081831061388e576138898284613936565b613899565b6138988383613936565b5b905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006040518061012001604052806101008152602001615c67610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff61390d8561394d565b02901c8151811061392157613920614e7d565b5b602001015160f81c60f81b60f81c9050919050565b600082600052816020526040600020905092915050565b600080821161395b57600080fd5b8160000382169050919050565b828054613974906145d1565b90600052602060002090601f01602090048101928261399657600085556139dd565b82601f106139af57803560ff19168380011785556139dd565b828001600101855582156139dd579182015b828111156139dc5782358255916020019190600101906139c1565b5b5090506139ea9190613a74565b5090565b8280546139fa906145d1565b90600052602060002090601f016020900481019282613a1c5760008555613a63565b82601f10613a3557805160ff1916838001178555613a63565b82800160010185558215613a63579182015b82811115613a62578251825591602001919060010190613a47565b5b509050613a709190613a74565b5090565b5b80821115613a8d576000816000905550600101613a75565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613ada81613aa5565b8114613ae557600080fd5b50565b600081359050613af781613ad1565b92915050565b600060208284031215613b1357613b12613a9b565b5b6000613b2184828501613ae8565b91505092915050565b60008115159050919050565b613b3f81613b2a565b82525050565b6000602082019050613b5a6000830184613b36565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613b8b82613b60565b9050919050565b613b9b81613b80565b8114613ba657600080fd5b50565b600081359050613bb881613b92565b92915050565b600060208284031215613bd457613bd3613a9b565b5b6000613be284828501613ba9565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613c25578082015181840152602081019050613c0a565b83811115613c34576000848401525b50505050565b6000601f19601f8301169050919050565b6000613c5682613beb565b613c608185613bf6565b9350613c70818560208601613c07565b613c7981613c3a565b840191505092915050565b60006020820190508181036000830152613c9e8184613c4b565b905092915050565b6000819050919050565b613cb981613ca6565b8114613cc457600080fd5b50565b600081359050613cd681613cb0565b92915050565b600060208284031215613cf257613cf1613a9b565b5b6000613d0084828501613cc7565b91505092915050565b613d1281613b80565b82525050565b6000602082019050613d2d6000830184613d09565b92915050565b60008060408385031215613d4a57613d49613a9b565b5b6000613d5885828601613ba9565b9250506020613d6985828601613cc7565b9150509250929050565b613d7c81613ca6565b82525050565b6000602082019050613d976000830184613d73565b92915050565b613da681613b2a565b8114613db157600080fd5b50565b600081359050613dc381613d9d565b92915050565b600060208284031215613ddf57613dde613a9b565b5b6000613ded84828501613db4565b91505092915050565b600080600060608486031215613e0f57613e0e613a9b565b5b6000613e1d86828701613ba9565b9350506020613e2e86828701613ba9565b9250506040613e3f86828701613cc7565b9150509250925092565b60008060408385031215613e6057613e5f613a9b565b5b6000613e6e85828601613cc7565b9250506020613e7f85828601613cc7565b9150509250929050565b6000604082019050613e9e6000830185613d09565b613eab6020830184613d73565b9392505050565b6000819050919050565b613ec581613eb2565b82525050565b6000602082019050613ee06000830184613ebc565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613f0781613ee6565b8114613f1257600080fd5b50565b600081359050613f2481613efe565b92915050565b600060208284031215613f4057613f3f613a9b565b5b6000613f4e84828501613f15565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613f7c57613f7b613f57565b5b8235905067ffffffffffffffff811115613f9957613f98613f5c565b5b602083019150836001820283011115613fb557613fb4613f61565b5b9250929050565b60008060208385031215613fd357613fd2613a9b565b5b600083013567ffffffffffffffff811115613ff157613ff0613aa0565b5b613ffd85828601613f66565b92509250509250929050565b60008083601f84011261401f5761401e613f57565b5b8235905067ffffffffffffffff81111561403c5761403b613f5c565b5b60208301915083602082028301111561405857614057613f61565b5b9250929050565b60008060006040848603121561407857614077613a9b565b5b600061408686828701613cc7565b935050602084013567ffffffffffffffff8111156140a7576140a6613aa0565b5b6140b386828701614009565b92509250509250925092565b6000806000606084860312156140d8576140d7613a9b565b5b60006140e686828701613ba9565b93505060206140f786828701613ba9565b925050604061410886828701613ba9565b9150509250925092565b61411b81613eb2565b811461412657600080fd5b50565b60008135905061413881614112565b92915050565b60006020828403121561415457614153613a9b565b5b600061416284828501614129565b91505092915050565b60008083601f84011261418157614180613f57565b5b8235905067ffffffffffffffff81111561419e5761419d613f5c565b5b6020830191508360208202830111156141ba576141b9613f61565b5b9250929050565b600080602083850312156141d8576141d7613a9b565b5b600083013567ffffffffffffffff8111156141f6576141f5613aa0565b5b6142028582860161416b565b92509250509250929050565b6000806040838503121561422557614224613a9b565b5b600061423385828601613ba9565b925050602061424485828601613db4565b9150509250929050565b6000806020838503121561426557614264613a9b565b5b600083013567ffffffffffffffff81111561428357614282613aa0565b5b61428f85828601614009565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6142d882613c3a565b810181811067ffffffffffffffff821117156142f7576142f66142a0565b5b80604052505050565b600061430a613a91565b905061431682826142cf565b919050565b600067ffffffffffffffff821115614336576143356142a0565b5b61433f82613c3a565b9050602081019050919050565b82818337600083830152505050565b600061436e6143698461431b565b614300565b90508281526020810184848401111561438a5761438961429b565b5b61439584828561434c565b509392505050565b600082601f8301126143b2576143b1613f57565b5b81356143c284826020860161435b565b91505092915050565b600080600080608085870312156143e5576143e4613a9b565b5b60006143f387828801613ba9565b945050602061440487828801613ba9565b935050604061441587828801613cc7565b925050606085013567ffffffffffffffff81111561443657614435613aa0565b5b6144428782880161439d565b91505092959194509250565b61445781613ee6565b82525050565b6000602082019050614472600083018461444e565b92915050565b6000806040838503121561448f5761448e613a9b565b5b600061449d85828601613ba9565b92505060206144ae85828601613ba9565b9150509250929050565b600067ffffffffffffffff8211156144d3576144d26142a0565b5b6144dc82613c3a565b9050602081019050919050565b60006144fc6144f7846144b8565b614300565b9050828152602081018484840111156145185761451761429b565b5b61452384828561434c565b509392505050565b600082601f8301126145405761453f613f57565b5b81356145508482602086016144e9565b91505092915050565b60006020828403121561456f5761456e613a9b565b5b600082013567ffffffffffffffff81111561458d5761458c613aa0565b5b6145998482850161452b565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806145e957607f821691505b602082108114156145fd576145fc6145a2565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061465f602f83613bf6565b915061466a82614603565b604082019050919050565b6000602082019050818103600083015261468e81614652565b9050919050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b60006146f1602483613bf6565b91506146fc82614695565b604082019050919050565b60006020820190508181036000830152614720816146e4565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000614783603b83613bf6565b915061478e82614727565b604082019050919050565b600060208201905081810360008301526147b281614776565b9050919050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b6000614815603483613bf6565b9150614820826147b9565b604082019050919050565b6000602082019050818103600083015261484481614808565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061488582613ca6565b915061489083613ca6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148c9576148c861484b565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061490e82613ca6565b915061491983613ca6565b925082614929576149286148d4565b5b828204905092915050565b600061493f82613ca6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149725761497161484b565b5b600182019050919050565b7f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60008201527f756e647300000000000000000000000000000000000000000000000000000000602082015250565b60006149d9602483613bf6565b91506149e48261497d565b604082019050919050565b60006020820190508181036000830152614a08816149cc565b9050919050565b7f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b6000614a45601183613bf6565b9150614a5082614a0f565b602082019050919050565b60006020820190508181036000830152614a7481614a38565b9050919050565b7f506c6561736520736574206d656d626572206164647265737300000000000000600082015250565b6000614ab1601983613bf6565b9150614abc82614a7b565b602082019050919050565b60006020820190508181036000830152614ae081614aa4565b9050919050565b6000614af282613ca6565b9150614afd83613ca6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b3257614b3161484b565b5b828201905092915050565b7f4d617820737570706c79206f7665720000000000000000000000000000000000600082015250565b6000614b73600f83613bf6565b9150614b7e82614b3d565b602082019050919050565b60006020820190508181036000830152614ba281614b66565b9050919050565b7f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260008201527f6f756e6473000000000000000000000000000000000000000000000000000000602082015250565b6000614c05602583613bf6565b9150614c1082614ba9565b604082019050919050565b60006020820190508181036000830152614c3481614bf8565b9050919050565b7f66696e616c697a65206973206465636c61726564000000000000000000000000600082015250565b6000614c71601483613bf6565b9150614c7c82614c3b565b602082019050919050565b60006020820190508181036000830152614ca081614c64565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614cdd601f83613bf6565b9150614ce882614ca7565b602082019050919050565b60006020820190508181036000830152614d0c81614cd0565b9050919050565b7f4265666f72652073616c6520626567696e2e0000000000000000000000000000600082015250565b6000614d49601283613bf6565b9150614d5482614d13565b602082019050919050565b60006020820190508181036000830152614d7881614d3c565b9050919050565b7f496e76616c6964204d65726b6c652050726f6f66000000000000000000000000600082015250565b6000614db5601483613bf6565b9150614dc082614d7f565b602082019050919050565b60006020820190508181036000830152614de481614da8565b9050919050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b6000614e47602d83613bf6565b9150614e5282614deb565b604082019050919050565b60006020820190508181036000830152614e7681614e3a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b6000614ee2601c83613bf6565b9150614eed82614eac565b602082019050919050565b60006020820190508181036000830152614f1181614ed5565b9050919050565b60008160601b9050919050565b6000614f3082614f18565b9050919050565b6000614f4282614f25565b9050919050565b614f5a614f5582613b80565b614f37565b82525050565b6000614f6c8284614f49565b60148201915081905092915050565b7f6f6e6c7920746865206f776e65722063616e2072657665616c00000000000000600082015250565b6000614fb1601983613bf6565b9150614fbc82614f7b565b602082019050919050565b60006020820190508181036000830152614fe081614fa4565b9050919050565b600081905092915050565b6000614ffd82613beb565b6150078185614fe7565b9350615017818560208601613c07565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000615059600583614fe7565b915061506482615023565b600582019050919050565b600061507b8284614ff2565b91506150868261504c565b915081905092915050565b60008190508160005260206000209050919050565b600081546150b3816145d1565b6150bd8186614fe7565b945060018216600081146150d857600181146150e95761511c565b60ff1983168652818601935061511c565b6150f285615091565b60005b83811015615114578154818901526001820191506020810190506150f5565b838801955050505b50505092915050565b600061513182856150a6565b915061513d8284614ff2565b91506151488261504c565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006151b0602683613bf6565b91506151bb82615154565b604082019050919050565b600060208201905081810360008301526151df816151a3565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061521c602083613bf6565b9150615227826151e6565b602082019050919050565b6000602082019050818103600083015261524b8161520f565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006152ae602a83613bf6565b91506152b982615252565b604082019050919050565b600060208201905081810360008301526152dd816152a1565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061531a601983613bf6565b9150615325826152e4565b602082019050919050565b600060208201905081810360008301526153498161530d565b9050919050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006153ac602f83613bf6565b91506153b782615350565b604082019050919050565b600060208201905081810360008301526153db8161539f565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b600061543e602c83613bf6565b9150615449826153e2565b604082019050919050565b6000602082019050818103600083015261546d81615431565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b60006154d0602783613bf6565b91506154db82615474565b604082019050919050565b600060208201905081810360008301526154ff816154c3565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b600061553c601d83613bf6565b915061554782615506565b602082019050919050565b6000602082019050818103600083015261556b8161552f565b9050919050565b600081905092915050565b50565b600061558d600083615572565b91506155988261557d565b600082019050919050565b60006155ae82615580565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615614603a83613bf6565b915061561f826155b8565b604082019050919050565b6000602082019050818103600083015261564381615607565b9050919050565b7f4d696e74207175616e74697479206f7665720000000000000000000000000000600082015250565b6000615680601283613bf6565b915061568b8261564a565b602082019050919050565b600060208201905081810360008301526156af81615673565b9050919050565b7f4e6f7420656e6f7567682066756e647300000000000000000000000000000000600082015250565b60006156ec601083613bf6565b91506156f7826156b6565b602082019050919050565b6000602082019050818103600083015261571b816156df565b9050919050565b7f416c726561647920636c61696d6564206d617800000000000000000000000000600082015250565b6000615758601383613bf6565b915061576382615722565b602082019050919050565b600060208201905081810360008301526157878161574b565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006157ea602c83613bf6565b91506157f58261578e565b604082019050919050565b60006020820190508181036000830152615819816157dd565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b600061587c603583613bf6565b915061588782615820565b604082019050919050565b600060208201905081810360008301526158ab8161586f565b9050919050565b7f4552433732315073693a2055524920717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b600061590e602a83613bf6565b9150615919826158b2565b604082019050919050565b6000602082019050818103600083015261593d81615901565b9050919050565b60006159508285614ff2565b915061595c8284614ff2565b91508190509392505050565b600061597382613ca6565b915061597e83613ca6565b9250828210156159915761599061484b565b5b828203905092915050565b60006159a782613ca6565b91506159b283613ca6565b9250826159c2576159c16148d4565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b60006159f4826159cd565b6159fe81856159d8565b9350615a0e818560208601613c07565b615a1781613c3a565b840191505092915050565b6000608082019050615a376000830187613d09565b615a446020830186613d09565b615a516040830185613d73565b8181036060830152615a6381846159e9565b905095945050505050565b600081519050615a7d81613ad1565b92915050565b600060208284031215615a9957615a98613a9b565b5b6000615aa784828501615a6e565b91505092915050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b6000615b0c602583613bf6565b9150615b1782615ab0565b604082019050919050565b60006020820190508181036000830152615b3b81615aff565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615b9e602383613bf6565b9150615ba982615b42565b604082019050919050565b60006020820190508181036000830152615bcd81615b91565b9050919050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b6000615c30603483613bf6565b9150615c3b82615bd4565b604082019050919050565b60006020820190508181036000830152615c5f81615c23565b905091905056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a2646970667358221220b7e4b2e7778e6b88dd305944a49684a752b103874f64b8da4f575866f795a59e64736f6c63430008090033

Deployed Bytecode

0x6080604052600436106102e45760003560e01c8063671e440511610190578063b472070f116100dc578063c87b56dd11610095578063e985e9c51161006f578063e985e9c514610b2d578063f2fde38b14610b6a578063f985efd614610b93578063fbd8fe3914610bbc576102e4565b8063c87b56dd14610a88578063c884ef8314610ac5578063cfd9480b14610b02576102e4565b8063b472070f1461099b578063b88d4fde146109c6578063b8997a97146109ef578063c1d9df8d14610a1a578063c2ca0ac514610a36578063c54e73e314610a5f576102e4565b806395751e1e116101495780639e6a1d7d116101235780639e6a1d7d146108e1578063a22cb4651461090a578063a9a3826214610933578063ad2f852a14610970576102e4565b806395751e1e1461086257806395d89b411461088b578063996517cf146108b6576102e4565b8063671e4405146107665780636aaa76241461079157806370a08231146107ba578063715018a6146107f75780637cb647591461080e5780638da5cb5b14610837576102e4565b8063317ddea31161024f5780634bb278f31161020857806355f804b3116101e257806355f804b3146106a75780635a546223146106d057806361a2bc01146106ec5780636352211e14610729576102e4565b80634bb278f3146106285780634f6ccce71461063f578063556fedd21461067c576102e4565b8063317ddea31461052e57806331faafb41461056b57806332cb6b0c146105945780633ccfd60b146105bf57806342842e0e146105d6578063484b973c146105ff576102e4565b806318160ddd116102a157806318160ddd1461040b5780631ad4de591461043657806323b872dd1461045f5780632a55205a146104885780632eb4a7ab146104c65780632f745c59146104f1576102e4565b806301ffc9a7146102e957806306d254da1461032657806306fdde031461034f578063081812fc1461037a578063095ea7b3146103b75780630d5624b3146103e0575b600080fd5b3480156102f557600080fd5b50610310600480360381019061030b9190613afd565b610be5565b60405161031d9190613b45565b60405180910390f35b34801561033257600080fd5b5061034d60048036038101906103489190613bbe565b610c07565b005b34801561035b57600080fd5b50610364610c36565b6040516103719190613c84565b60405180910390f35b34801561038657600080fd5b506103a1600480360381019061039c9190613cdc565b610cc8565b6040516103ae9190613d18565b60405180910390f35b3480156103c357600080fd5b506103de60048036038101906103d99190613d33565b610d4d565b005b3480156103ec57600080fd5b506103f5610e65565b6040516104029190613b45565b60405180910390f35b34801561041757600080fd5b50610420610e78565b60405161042d9190613d82565b60405180910390f35b34801561044257600080fd5b5061045d60048036038101906104589190613dc9565b610e82565b005b34801561046b57600080fd5b5061048660048036038101906104819190613df6565b610ea7565b005b34801561049457600080fd5b506104af60048036038101906104aa9190613e49565b610f07565b6040516104bd929190613e89565b60405180910390f35b3480156104d257600080fd5b506104db6110f2565b6040516104e89190613ecb565b60405180910390f35b3480156104fd57600080fd5b5061051860048036038101906105139190613d33565b6110f8565b6040516105259190613d82565b60405180910390f35b34801561053a57600080fd5b5061055560048036038101906105509190613cdc565b6111cb565b6040516105629190613d82565b60405180910390f35b34801561057757600080fd5b50610592600480360381019061058d9190613f2a565b611230565b005b3480156105a057600080fd5b506105a9611267565b6040516105b69190613d82565b60405180910390f35b3480156105cb57600080fd5b506105d461126d565b005b3480156105e257600080fd5b506105fd60048036038101906105f89190613df6565b611497565b005b34801561060b57600080fd5b5061062660048036038101906106219190613d33565b6114b7565b005b34801561063457600080fd5b5061063d61152a565b005b34801561064b57600080fd5b5061066660048036038101906106619190613cdc565b61154f565b6040516106739190613d82565b60405180910390f35b34801561068857600080fd5b506106916115f2565b60405161069e9190613d82565b60405180910390f35b3480156106b357600080fd5b506106ce60048036038101906106c99190613fbc565b6115fd565b005b6106ea60048036038101906106e5919061405f565b61166b565b005b3480156106f857600080fd5b50610713600480360381019061070e9190613cdc565b6117ee565b6040516107209190613d82565b60405180910390f35b34801561073557600080fd5b50610750600480360381019061074b9190613cdc565b611806565b60405161075d9190613d18565b60405180910390f35b34801561077257600080fd5b5061077b61181e565b6040516107889190613b45565b60405180910390f35b34801561079d57600080fd5b506107b860048036038101906107b391906140bf565b611831565b005b3480156107c657600080fd5b506107e160048036038101906107dc9190613bbe565b611901565b6040516107ee9190613d82565b60405180910390f35b34801561080357600080fd5b5061080c6119f3565b005b34801561081a57600080fd5b506108356004803603810190610830919061413e565b611a07565b005b34801561084357600080fd5b5061084c611a19565b6040516108599190613d18565b60405180910390f35b34801561086e57600080fd5b50610889600480360381019061088491906141c1565b611a43565b005b34801561089757600080fd5b506108a0611a8b565b6040516108ad9190613c84565b60405180910390f35b3480156108c257600080fd5b506108cb611b1d565b6040516108d89190613d82565b60405180910390f35b3480156108ed57600080fd5b5061090860048036038101906109039190613cdc565b611b23565b005b34801561091657600080fd5b50610931600480360381019061092c919061420e565b611b35565b005b34801561093f57600080fd5b5061095a6004803603810190610955919061424e565b611cb6565b6040516109679190613b45565b60405180910390f35b34801561097c57600080fd5b50610985611cf9565b6040516109929190613d18565b60405180910390f35b3480156109a757600080fd5b506109b0611d1f565b6040516109bd9190613d82565b60405180910390f35b3480156109d257600080fd5b506109ed60048036038101906109e891906143cb565b611d2a565b005b3480156109fb57600080fd5b50610a04611d8c565b604051610a11919061445d565b60405180910390f35b610a346004803603810190610a2f9190613cdc565b611daa565b005b348015610a4257600080fd5b50610a5d6004803603810190610a589190613cdc565b611f25565b005b348015610a6b57600080fd5b50610a866004803603810190610a819190613dc9565b611fd9565b005b348015610a9457600080fd5b50610aaf6004803603810190610aaa9190613cdc565b611ffe565b604051610abc9190613c84565b60405180910390f35b348015610ad157600080fd5b50610aec6004803603810190610ae79190613bbe565b6120a2565b604051610af99190613d82565b60405180910390f35b348015610b0e57600080fd5b50610b176120ba565b604051610b249190613b45565b60405180910390f35b348015610b3957600080fd5b50610b546004803603810190610b4f9190614478565b6120cd565b604051610b619190613b45565b60405180910390f35b348015610b7657600080fd5b50610b916004803603810190610b8c9190613bbe565b612161565b005b348015610b9f57600080fd5b50610bba6004803603810190610bb59190614559565b6121e5565b005b348015610bc857600080fd5b50610be36004803603810190610bde9190613e49565b612257565b005b6000610bf0826122cb565b80610c005750610bff82612415565b5b9050919050565b610c0f61248f565b610c3381600e60149054906101000a90046bffffffffffffffffffffffff1661250d565b50565b606060018054610c45906145d1565b80601f0160208091040260200160405190810160405280929190818152602001828054610c71906145d1565b8015610cbe5780601f10610c9357610100808354040283529160200191610cbe565b820191906000526020600020905b815481529060010190602001808311610ca157829003601f168201915b5050505050905090565b6000610cd3826126a3565b610d12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0990614675565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d5882611806565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc090614707565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610de86126b1565b73ffffffffffffffffffffffffffffffffffffffff161480610e175750610e1681610e116126b1565b6120cd565b5b610e56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4d90614799565b60405180910390fd5b610e6083836126b9565b505050565b600b60009054906101000a900460ff1681565b6000600454905090565b610e8a61248f565b80600b60016101000a81548160ff02191690831515021790555050565b610eb8610eb26126b1565b82612772565b610ef7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eee9061482b565b60405180910390fd5b610f02838383612850565b505050565b6000806000600860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16141561109d5760076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006110a7612ad3565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866110d3919061487a565b6110dd9190614903565b90508160000151819350935050509250929050565b600d5481565b60008060005b60045481101561118957611111816126a3565b8015611150575061112181611806565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b1561117657838214156111675780925050506111c5565b818061117290614934565b9250505b808061118190614934565b9150506110fe565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bc906149ef565b60405180910390fd5b92915050565b60006111d6826126a3565b611215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120c90614a5b565b60405180910390fd5b60136000838152602001908152602001600020549050919050565b61123861248f565b611264600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168261250d565b50565b6104b081565b61127561248f565b600073ffffffffffffffffffffffffffffffffffffffff16601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141580156113235750600073ffffffffffffffffffffffffffffffffffffffff16601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b801561137e5750600073ffffffffffffffffffffffffffffffffffffffff16601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b6113bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b490614ac7565b60405180910390fd5b6000479050611408601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710611b58846113f9919061487a565b6114039190614903565b612add565b61144e601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106109c48461143f919061487a565b6114499190614903565b612add565b611494601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106101f484611485919061487a565b61148f9190614903565b612add565b50565b6114b283838360405180602001604052806000815250611d2a565b505050565b6114bf61248f565b60006114c9610e78565b90506104b082826114da9190614ae7565b111561151b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151290614b89565b60405180910390fd5b6115258383612bd1565b505050565b61153261248f565b6001600b60026101000a81548160ff021916908315150217905550565b6000611559610e78565b821061159a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159190614c1b565b60405180910390fd5b6000805b6004548110156115ea576115b1816126a3565b156115d757838214156115c85780925050506115ed565b81806115d390614934565b9250505b80806115e290614934565b91505061159e565b50505b919050565b66470de4df82000081565b61160561248f565b600b60029054906101000a900460ff1615611655576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164c90614c87565b60405180910390fd5b8181600f9190611666929190613968565b505050565b6002600a5414156116b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a890614cf3565b60405180910390fd5b6002600a8190555060006116c3610e78565b905060008466470de4df8200006116da919061487a565b9050600b60009054906101000a900460ff1661172b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172290614d5f565b60405180910390fd5b611736858383612bef565b6117408484611cb6565b61177f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177690614dcb565b60405180910390fd5b84601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117ce9190614ae7565b925050819055506117df3386612bd1565b50506001600a81905550505050565b60126020528060005260406000206000915090505481565b60008061181283612d5b565b50905080915050919050565b600b60029054906101000a900460ff1681565b61183961248f565b82601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196990614e5d565b60405180910390fd5b6000805b6004548110156119e957611989816126a3565b156119d85761199781611806565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156119d757816119d490614934565b91505b5b806119e290614934565b9050611976565b5080915050919050565b6119fb61248f565b611a056000612dec565b565b611a0f61248f565b80600d8190555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600082829050905060005b81811015611a8557611a78848483818110611a6c57611a6b614e7d565b5b90506020020135611f25565b8080600101915050611a4e565b50505050565b606060028054611a9a906145d1565b80601f0160208091040260200160405190810160405280929190818152602001828054611ac6906145d1565b8015611b135780601f10611ae857610100808354040283529160200191611b13565b820191906000526020600020905b815481529060010190602001808311611af657829003601f168201915b5050505050905090565b600c5481565b611b2b61248f565b80600c8190555050565b611b3d6126b1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba290614ef8565b60405180910390fd5b8060066000611bb86126b1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c656126b1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611caa9190613b45565b60405180910390a35050565b60008033604051602001611cca9190614f60565b604051602081830303815290604052805190602001209050611cf08484600d5484612eb2565b91505092915050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b668e1bc9bf04000081565b611d3b611d356126b1565b83612772565b611d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d719061482b565b60405180910390fd5b611d8684848484612ecb565b50505050565b600e60149054906101000a90046bffffffffffffffffffffffff1681565b6002600a541415611df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de790614cf3565b60405180910390fd5b6002600a819055506000611e02610e78565b9050600082668e1bc9bf040000611e19919061487a565b9050600b60019054906101000a900460ff16611e6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6190614d5f565b60405180910390fd5b611e75838383612bef565b82601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ec49190614ae7565b92505081905550611ed53384612bd1565b60005b83811015611f175760008184611eee9190614ae7565b905060016013600083815260200190815260200160002081905550818060010192505050611ed8565b5050506001600a8190555050565b6000611f3082611806565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611fa0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9790614fc7565b60405180910390fd5b6001601260008481526020019081526020016000205414611fd557600160126000848152602001908152602001600020819055505b5050565b611fe161248f565b80600b60006101000a81548160ff02191690831515021790555050565b606060016012600084815260200190815260200160002054141561204b5761202582612f29565b604051602001612035919061506f565b604051602081830303815290604052905061209d565b612054826126a3565b61206f5760405180602001604052806000815250905061209d565b601061207a83612fd0565b60405160200161208b929190615125565b60405160208183030381529060405290505b919050565b60116020528060005260406000206000915090505481565b600b60019054906101000a900460ff1681565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61216961248f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156121d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d0906151c6565b60405180910390fd5b6121e281612dec565b50565b6121ed61248f565b600b60029054906101000a900460ff161561223d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223490614c87565b60405180910390fd5b80601090805190602001906122539291906139ee565b5050565b61225f61248f565b600b60029054906101000a900460ff16156122af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a690614c87565b60405180910390fd5b8060136000848152602001908152602001600020819055505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061239657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806123fe57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061240e575061240d82613131565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124885750612487826122cb565b5b9050919050565b6124976126b1565b73ffffffffffffffffffffffffffffffffffffffff166124b5611a19565b73ffffffffffffffffffffffffffffffffffffffff161461250b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250290615232565b60405180910390fd5b565b612515612ad3565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256a906152c4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125da90615330565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600060045482109050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661272c83611806565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061277d826126a3565b6127bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b3906153c2565b60405180910390fd5b60006127c783611806565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061283657508373ffffffffffffffffffffffffffffffffffffffff1661281e84610cc8565b73ffffffffffffffffffffffffffffffffffffffff16145b80612847575061284681856120cd565b5b91505092915050565b60008061285c83612d5b565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146128ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c590615454565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561293e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612935906154e6565b60405180910390fd5b61294b858585600161319b565b6129566000846126b9565b60006001846129659190614ae7565b905061297b8160006131a190919063ffffffff16565b158015612989575060045481105b156129f557856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506129f48160006131fc90919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818414612a6357612a628460006131fc90919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612acb8686866001613259565b505050505050565b6000612710905090565b80471015612b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1790615552565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612b46906155a3565b60006040518083038185875af1925050503d8060008114612b83576040519150601f19603f3d011682016040523d82523d6000602084013e612b88565b606091505b5050905080612bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc39061562a565b60405180910390fd5b505050565b612beb82826040518060200160405280600081525061325f565b5050565b6104b08383612bfe9190614ae7565b1115612c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3690614b89565b60405180910390fd5b600c54831115612c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7b90615696565b60405180910390fd5b80341015612cc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cbe90615702565b60405180910390fd5b600c5483601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612d159190614ae7565b1115612d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4d9061576e565b60405180910390fd5b505050565b600080612d67836126a3565b612da6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d9d90615800565b60405180910390fd5b612daf836132c3565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082612ec08686856132e0565b149050949350505050565b612ed6848484612850565b612ee4848484600185613338565b612f23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1a90615892565b60405180910390fd5b50505050565b6060612f34826126a3565b612f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6a90615924565b60405180910390fd5b6000612f7d61350a565b90506000815111612f9d5760405180602001604052806000815250612fc8565b80612fa784612fd0565b604051602001612fb8929190615944565b6040516020818303038152906040525b915050919050565b60606000821415613018576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061312c565b600082905060005b6000821461304a57808061303390614934565b915050600a826130439190614903565b9150613020565b60008167ffffffffffffffff811115613066576130656142a0565b5b6040519080825280601f01601f1916602001820160405280156130985781602001600182028036833780820191505090505b5090505b60008514613125576001826130b19190615968565b9150600a856130c0919061599c565b60306130cc9190614ae7565b60f81b8183815181106130e2576130e1614e7d565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561311e9190614903565b945061309c565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b50505050565b60006004549050613270848461359c565b61327e600085838686613338565b6132bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132b490615892565b60405180910390fd5b50505050565b60006132d982600061377d90919063ffffffff16565b9050919050565b60008082905060005b8585905081101561332c576133178287878481811061330b5761330a614e7d565b5b90506020020135613876565b9150808061332490614934565b9150506132e9565b50809150509392505050565b60006133598573ffffffffffffffffffffffffffffffffffffffff166138a1565b156134fc576001905060008490505b83856133749190614ae7565b8110156134f6578573ffffffffffffffffffffffffffffffffffffffff1663150b7a0261339f6126b1565b8984876040518563ffffffff1660e01b81526004016133c19493929190615a22565b602060405180830381600087803b1580156133db57600080fd5b505af192505050801561340c57506040513d601f19601f820116820180604052508101906134099190615a83565b60015b61348f573d806000811461343c576040519150601f19603f3d011682016040523d82523d6000602084013e613441565b606091505b50600081511415613487576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347e90615892565b60405180910390fd5b805181602001fd5b8280156134e0575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b92505080806134ee90614934565b915050613368565b50613501565b600190505b95945050505050565b6060600f8054613519906145d1565b80601f0160208091040260200160405190810160405280929190818152602001828054613545906145d1565b80156135925780601f1061356757610100808354040283529160200191613592565b820191906000526020600020905b81548152906001019060200180831161357557829003601f168201915b5050505050905090565b60006004549050600082116135e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135dd90615b22565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161364d90615bb4565b60405180910390fd5b613663600084838561319b565b81600460008282546136759190614ae7565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506136e28160006131fc90919063ffffffff16565b6136ef6000848385613259565b60008190505b82826137019190614ae7565b81101561377757808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808061376f90614934565b9150506136f5565b50505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c905060008111156137d6576137c4816138c4565b60ff168203600884901b17935061386d565b5b60011561386c5760008311613821576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161381890615c46565b60405180910390fd5b828060019003935050856000016000848152602001908152602001600020549050600081111561386757613854816138c4565b60ff0360ff16600884901b17935061386c565b6137d7565b5b50505092915050565b600081831061388e576138898284613936565b613899565b6138988383613936565b5b905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006040518061012001604052806101008152602001615c67610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff61390d8561394d565b02901c8151811061392157613920614e7d565b5b602001015160f81c60f81b60f81c9050919050565b600082600052816020526040600020905092915050565b600080821161395b57600080fd5b8160000382169050919050565b828054613974906145d1565b90600052602060002090601f01602090048101928261399657600085556139dd565b82601f106139af57803560ff19168380011785556139dd565b828001600101855582156139dd579182015b828111156139dc5782358255916020019190600101906139c1565b5b5090506139ea9190613a74565b5090565b8280546139fa906145d1565b90600052602060002090601f016020900481019282613a1c5760008555613a63565b82601f10613a3557805160ff1916838001178555613a63565b82800160010185558215613a63579182015b82811115613a62578251825591602001919060010190613a47565b5b509050613a709190613a74565b5090565b5b80821115613a8d576000816000905550600101613a75565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613ada81613aa5565b8114613ae557600080fd5b50565b600081359050613af781613ad1565b92915050565b600060208284031215613b1357613b12613a9b565b5b6000613b2184828501613ae8565b91505092915050565b60008115159050919050565b613b3f81613b2a565b82525050565b6000602082019050613b5a6000830184613b36565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613b8b82613b60565b9050919050565b613b9b81613b80565b8114613ba657600080fd5b50565b600081359050613bb881613b92565b92915050565b600060208284031215613bd457613bd3613a9b565b5b6000613be284828501613ba9565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613c25578082015181840152602081019050613c0a565b83811115613c34576000848401525b50505050565b6000601f19601f8301169050919050565b6000613c5682613beb565b613c608185613bf6565b9350613c70818560208601613c07565b613c7981613c3a565b840191505092915050565b60006020820190508181036000830152613c9e8184613c4b565b905092915050565b6000819050919050565b613cb981613ca6565b8114613cc457600080fd5b50565b600081359050613cd681613cb0565b92915050565b600060208284031215613cf257613cf1613a9b565b5b6000613d0084828501613cc7565b91505092915050565b613d1281613b80565b82525050565b6000602082019050613d2d6000830184613d09565b92915050565b60008060408385031215613d4a57613d49613a9b565b5b6000613d5885828601613ba9565b9250506020613d6985828601613cc7565b9150509250929050565b613d7c81613ca6565b82525050565b6000602082019050613d976000830184613d73565b92915050565b613da681613b2a565b8114613db157600080fd5b50565b600081359050613dc381613d9d565b92915050565b600060208284031215613ddf57613dde613a9b565b5b6000613ded84828501613db4565b91505092915050565b600080600060608486031215613e0f57613e0e613a9b565b5b6000613e1d86828701613ba9565b9350506020613e2e86828701613ba9565b9250506040613e3f86828701613cc7565b9150509250925092565b60008060408385031215613e6057613e5f613a9b565b5b6000613e6e85828601613cc7565b9250506020613e7f85828601613cc7565b9150509250929050565b6000604082019050613e9e6000830185613d09565b613eab6020830184613d73565b9392505050565b6000819050919050565b613ec581613eb2565b82525050565b6000602082019050613ee06000830184613ebc565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613f0781613ee6565b8114613f1257600080fd5b50565b600081359050613f2481613efe565b92915050565b600060208284031215613f4057613f3f613a9b565b5b6000613f4e84828501613f15565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613f7c57613f7b613f57565b5b8235905067ffffffffffffffff811115613f9957613f98613f5c565b5b602083019150836001820283011115613fb557613fb4613f61565b5b9250929050565b60008060208385031215613fd357613fd2613a9b565b5b600083013567ffffffffffffffff811115613ff157613ff0613aa0565b5b613ffd85828601613f66565b92509250509250929050565b60008083601f84011261401f5761401e613f57565b5b8235905067ffffffffffffffff81111561403c5761403b613f5c565b5b60208301915083602082028301111561405857614057613f61565b5b9250929050565b60008060006040848603121561407857614077613a9b565b5b600061408686828701613cc7565b935050602084013567ffffffffffffffff8111156140a7576140a6613aa0565b5b6140b386828701614009565b92509250509250925092565b6000806000606084860312156140d8576140d7613a9b565b5b60006140e686828701613ba9565b93505060206140f786828701613ba9565b925050604061410886828701613ba9565b9150509250925092565b61411b81613eb2565b811461412657600080fd5b50565b60008135905061413881614112565b92915050565b60006020828403121561415457614153613a9b565b5b600061416284828501614129565b91505092915050565b60008083601f84011261418157614180613f57565b5b8235905067ffffffffffffffff81111561419e5761419d613f5c565b5b6020830191508360208202830111156141ba576141b9613f61565b5b9250929050565b600080602083850312156141d8576141d7613a9b565b5b600083013567ffffffffffffffff8111156141f6576141f5613aa0565b5b6142028582860161416b565b92509250509250929050565b6000806040838503121561422557614224613a9b565b5b600061423385828601613ba9565b925050602061424485828601613db4565b9150509250929050565b6000806020838503121561426557614264613a9b565b5b600083013567ffffffffffffffff81111561428357614282613aa0565b5b61428f85828601614009565b92509250509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6142d882613c3a565b810181811067ffffffffffffffff821117156142f7576142f66142a0565b5b80604052505050565b600061430a613a91565b905061431682826142cf565b919050565b600067ffffffffffffffff821115614336576143356142a0565b5b61433f82613c3a565b9050602081019050919050565b82818337600083830152505050565b600061436e6143698461431b565b614300565b90508281526020810184848401111561438a5761438961429b565b5b61439584828561434c565b509392505050565b600082601f8301126143b2576143b1613f57565b5b81356143c284826020860161435b565b91505092915050565b600080600080608085870312156143e5576143e4613a9b565b5b60006143f387828801613ba9565b945050602061440487828801613ba9565b935050604061441587828801613cc7565b925050606085013567ffffffffffffffff81111561443657614435613aa0565b5b6144428782880161439d565b91505092959194509250565b61445781613ee6565b82525050565b6000602082019050614472600083018461444e565b92915050565b6000806040838503121561448f5761448e613a9b565b5b600061449d85828601613ba9565b92505060206144ae85828601613ba9565b9150509250929050565b600067ffffffffffffffff8211156144d3576144d26142a0565b5b6144dc82613c3a565b9050602081019050919050565b60006144fc6144f7846144b8565b614300565b9050828152602081018484840111156145185761451761429b565b5b61452384828561434c565b509392505050565b600082601f8301126145405761453f613f57565b5b81356145508482602086016144e9565b91505092915050565b60006020828403121561456f5761456e613a9b565b5b600082013567ffffffffffffffff81111561458d5761458c613aa0565b5b6145998482850161452b565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806145e957607f821691505b602082108114156145fd576145fc6145a2565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061465f602f83613bf6565b915061466a82614603565b604082019050919050565b6000602082019050818103600083015261468e81614652565b9050919050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b60006146f1602483613bf6565b91506146fc82614695565b604082019050919050565b60006020820190508181036000830152614720816146e4565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000614783603b83613bf6565b915061478e82614727565b604082019050919050565b600060208201905081810360008301526147b281614776565b9050919050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b6000614815603483613bf6565b9150614820826147b9565b604082019050919050565b6000602082019050818103600083015261484481614808565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061488582613ca6565b915061489083613ca6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156148c9576148c861484b565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061490e82613ca6565b915061491983613ca6565b925082614929576149286148d4565b5b828204905092915050565b600061493f82613ca6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149725761497161484b565b5b600182019050919050565b7f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60008201527f756e647300000000000000000000000000000000000000000000000000000000602082015250565b60006149d9602483613bf6565b91506149e48261497d565b604082019050919050565b60006020820190508181036000830152614a08816149cc565b9050919050565b7f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000600082015250565b6000614a45601183613bf6565b9150614a5082614a0f565b602082019050919050565b60006020820190508181036000830152614a7481614a38565b9050919050565b7f506c6561736520736574206d656d626572206164647265737300000000000000600082015250565b6000614ab1601983613bf6565b9150614abc82614a7b565b602082019050919050565b60006020820190508181036000830152614ae081614aa4565b9050919050565b6000614af282613ca6565b9150614afd83613ca6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b3257614b3161484b565b5b828201905092915050565b7f4d617820737570706c79206f7665720000000000000000000000000000000000600082015250565b6000614b73600f83613bf6565b9150614b7e82614b3d565b602082019050919050565b60006020820190508181036000830152614ba281614b66565b9050919050565b7f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260008201527f6f756e6473000000000000000000000000000000000000000000000000000000602082015250565b6000614c05602583613bf6565b9150614c1082614ba9565b604082019050919050565b60006020820190508181036000830152614c3481614bf8565b9050919050565b7f66696e616c697a65206973206465636c61726564000000000000000000000000600082015250565b6000614c71601483613bf6565b9150614c7c82614c3b565b602082019050919050565b60006020820190508181036000830152614ca081614c64565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614cdd601f83613bf6565b9150614ce882614ca7565b602082019050919050565b60006020820190508181036000830152614d0c81614cd0565b9050919050565b7f4265666f72652073616c6520626567696e2e0000000000000000000000000000600082015250565b6000614d49601283613bf6565b9150614d5482614d13565b602082019050919050565b60006020820190508181036000830152614d7881614d3c565b9050919050565b7f496e76616c6964204d65726b6c652050726f6f66000000000000000000000000600082015250565b6000614db5601483613bf6565b9150614dc082614d7f565b602082019050919050565b60006020820190508181036000830152614de481614da8565b9050919050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b6000614e47602d83613bf6565b9150614e5282614deb565b604082019050919050565b60006020820190508181036000830152614e7681614e3a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b6000614ee2601c83613bf6565b9150614eed82614eac565b602082019050919050565b60006020820190508181036000830152614f1181614ed5565b9050919050565b60008160601b9050919050565b6000614f3082614f18565b9050919050565b6000614f4282614f25565b9050919050565b614f5a614f5582613b80565b614f37565b82525050565b6000614f6c8284614f49565b60148201915081905092915050565b7f6f6e6c7920746865206f776e65722063616e2072657665616c00000000000000600082015250565b6000614fb1601983613bf6565b9150614fbc82614f7b565b602082019050919050565b60006020820190508181036000830152614fe081614fa4565b9050919050565b600081905092915050565b6000614ffd82613beb565b6150078185614fe7565b9350615017818560208601613c07565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000615059600583614fe7565b915061506482615023565b600582019050919050565b600061507b8284614ff2565b91506150868261504c565b915081905092915050565b60008190508160005260206000209050919050565b600081546150b3816145d1565b6150bd8186614fe7565b945060018216600081146150d857600181146150e95761511c565b60ff1983168652818601935061511c565b6150f285615091565b60005b83811015615114578154818901526001820191506020810190506150f5565b838801955050505b50505092915050565b600061513182856150a6565b915061513d8284614ff2565b91506151488261504c565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006151b0602683613bf6565b91506151bb82615154565b604082019050919050565b600060208201905081810360008301526151df816151a3565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061521c602083613bf6565b9150615227826151e6565b602082019050919050565b6000602082019050818103600083015261524b8161520f565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006152ae602a83613bf6565b91506152b982615252565b604082019050919050565b600060208201905081810360008301526152dd816152a1565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061531a601983613bf6565b9150615325826152e4565b602082019050919050565b600060208201905081810360008301526153498161530d565b9050919050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006153ac602f83613bf6565b91506153b782615350565b604082019050919050565b600060208201905081810360008301526153db8161539f565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b600061543e602c83613bf6565b9150615449826153e2565b604082019050919050565b6000602082019050818103600083015261546d81615431565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b60006154d0602783613bf6565b91506154db82615474565b604082019050919050565b600060208201905081810360008301526154ff816154c3565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b600061553c601d83613bf6565b915061554782615506565b602082019050919050565b6000602082019050818103600083015261556b8161552f565b9050919050565b600081905092915050565b50565b600061558d600083615572565b91506155988261557d565b600082019050919050565b60006155ae82615580565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615614603a83613bf6565b915061561f826155b8565b604082019050919050565b6000602082019050818103600083015261564381615607565b9050919050565b7f4d696e74207175616e74697479206f7665720000000000000000000000000000600082015250565b6000615680601283613bf6565b915061568b8261564a565b602082019050919050565b600060208201905081810360008301526156af81615673565b9050919050565b7f4e6f7420656e6f7567682066756e647300000000000000000000000000000000600082015250565b60006156ec601083613bf6565b91506156f7826156b6565b602082019050919050565b6000602082019050818103600083015261571b816156df565b9050919050565b7f416c726561647920636c61696d6564206d617800000000000000000000000000600082015250565b6000615758601383613bf6565b915061576382615722565b602082019050919050565b600060208201905081810360008301526157878161574b565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006157ea602c83613bf6565b91506157f58261578e565b604082019050919050565b60006020820190508181036000830152615819816157dd565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b600061587c603583613bf6565b915061588782615820565b604082019050919050565b600060208201905081810360008301526158ab8161586f565b9050919050565b7f4552433732315073693a2055524920717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b600061590e602a83613bf6565b9150615919826158b2565b604082019050919050565b6000602082019050818103600083015261593d81615901565b9050919050565b60006159508285614ff2565b915061595c8284614ff2565b91508190509392505050565b600061597382613ca6565b915061597e83613ca6565b9250828210156159915761599061484b565b5b828203905092915050565b60006159a782613ca6565b91506159b283613ca6565b9250826159c2576159c16148d4565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b60006159f4826159cd565b6159fe81856159d8565b9350615a0e818560208601613c07565b615a1781613c3a565b840191505092915050565b6000608082019050615a376000830187613d09565b615a446020830186613d09565b615a516040830185613d73565b8181036060830152615a6381846159e9565b905095945050505050565b600081519050615a7d81613ad1565b92915050565b600060208284031215615a9957615a98613a9b565b5b6000615aa784828501615a6e565b91505092915050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b6000615b0c602583613bf6565b9150615b1782615ab0565b604082019050919050565b60006020820190508181036000830152615b3b81615aff565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615b9e602383613bf6565b9150615ba982615b42565b604082019050919050565b60006020820190508181036000830152615bcd81615b91565b9050919050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b6000615c30603483613bf6565b9150615c3b82615bd4565b604082019050919050565b60006020820190508181036000830152615c5f81615c23565b905091905056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a2646970667358221220b7e4b2e7778e6b88dd305944a49684a752b103874f64b8da4f575866f795a59e64736f6c63430008090033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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