ETH Price: $3,348.41 (-1.20%)

Token

QNCreatorSBT (QNCSBT)
 

Overview

Max Total Supply

1,920 QNCSBT

Holders

897

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
5 QNCSBT
0x236a21e7ce1490022598379bdd3ff6c627a71b23
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Mint Here! https://qn-creator-sbt.zqn.wtf/

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
QNCreatorSBT

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : qn_creator_sbt.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2022 Keisuke OHNO

/*

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

*/

pragma solidity >=0.7.0 <0.9.0;
import { Base64 } from 'base64-sol/base64.sol';
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";


//tokenURI interface
interface iTokenURI {
    function tokenURI(uint256 _tokenId) external view returns (string memory);
}

contract QNCreatorSBT is Ownable, ERC721A{

    constructor(
    ) ERC721A("QNCreatorSBT", "QNCSBT") {
        setIsSBT(true);
        setUseSingleMetadata(true);
        setBaseURI("https://data.zqn.wtf/qncreator/images/");
        setPhaseData(
            1,
            "202210.png",
            "QN Creator SBT, September 2022",
            "Thanks for joining ZQN-DAO.  \nIllustration by https://twitter.com/totomidesign",
            "September 2022", 
            0x11dd935d65dbc8425e8BA1d9cE4d85E8E6000737,
            false,
            ""
            );
        adminMint();
    }


    //
    //withdraw section
    //

    address public constant withdrawAddress = 0xdEcf4B112d4120B6998e5020a6B4819E490F7db6;
    function withdraw() public onlyOwner {
        (bool os, ) = payable(withdrawAddress).call{value: address(this).balance}('');
        require(os);
    }


    //
    //mint section
    //

    uint256 public cost = 1000000000000000;//0.001 ether
    bool public paused = true;
    uint256 public phaseId = 1;

    mapping(uint256 => uint256) public phaseIdByTokenId;
    mapping(uint256 => phaseStrct) public phaseData;

    struct phaseStrct {
        //input
        string fileName;
        string metadataTitle;
        string metadataDescription;
        string metadataAttributes;
        address withdrawAddress;
        bool useAnimationUrl;
        string animationFileName;

        //internal variable
        mapping(address => uint256) userMintedAmount;
    }

    function setPhaseData( 
            uint256 _id , 
            string memory _fileName , 
            string memory _metadataTitle , 
            string memory _metadataDescription ,
            string memory _metadataAttributes ,
            address _withdrawAddress,
            bool _useAnimationUrl,
            string memory _animationFileName 
        ) public onlyOwner {
        phaseData[_id].fileName = _fileName;
        phaseData[_id].metadataTitle = _metadataTitle;
        phaseData[_id].metadataDescription = _metadataDescription;
        phaseData[_id].metadataAttributes = _metadataAttributes;
        phaseData[_id].withdrawAddress = _withdrawAddress;
        phaseData[_id].animationFileName = _animationFileName;
        phaseData[_id].useAnimationUrl = _useAnimationUrl;
    }

    function setPhaseId(uint256 _id) external onlyOwner {
        phaseId = _id;
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract.");
        _;
    }

    //mint
    function mint() public payable callerIsUser{
        require( !paused , "the contract is paused");
        require( cost <= msg.value , "insufficient funds");
        require( phaseData[phaseId].userMintedAmount[msg.sender] == 0 , "You already have a SBT" );

        phaseData[phaseId].userMintedAmount[msg.sender]++;
        phaseIdByTokenId[_nextTokenId()] = phaseId;
        _safeMint(msg.sender, 1);

        (bool os, ) = payable( phaseData[phaseId].withdrawAddress ).call{value: address(this).balance}('');
        require(os);        
    }

    function adminMint() public onlyOwner{
        phaseIdByTokenId[_nextTokenId()] = phaseId;
        _safeMint(msg.sender, 1);
    }

    function setCost(uint256 _newCost) public onlyOwner {
        cost = _newCost;
    }
  
    function pause(bool _state) public onlyOwner {
        paused = _state;
    }

    function getUserMintedAmount(address _address) public view returns (uint256){
        return phaseData[phaseId].userMintedAmount[_address];
    }
    function getUserMintedAmountByPhaseId(uint256 _phaseId , address _address) public view returns (uint256){
        return phaseData[_phaseId].userMintedAmount[_address];
    }
 


    //
    //URI section
    //

    string public baseURI;
    string public baseExtension = ".json";

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

    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }

    function setBaseExtension(string memory _newBaseExtension) public onlyOwner {
        baseExtension = _newBaseExtension;
    }



    //
    //interface metadata
    //

    iTokenURI public interfaceOfTokenURI;
    bool public useInterfaceMetadata = false;

    function setInterfaceOfTokenURI(address _address) public onlyOwner() {
        interfaceOfTokenURI = iTokenURI(_address);
    }

    function setUseInterfaceMetadata(bool _useInterfaceMetadata) public onlyOwner() {
        useInterfaceMetadata = _useInterfaceMetadata;
    }


    //
    //single metadata
    //

    bool public useSingleMetadata = false;

    //single image metadata
    function setUseSingleMetadata(bool _useSingleMetadata) public onlyOwner() {
        useSingleMetadata = _useSingleMetadata;
    }


    //
    //token URI
    //

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        if (useInterfaceMetadata == true) {
            return interfaceOfTokenURI.tokenURI(tokenId);
        } else if (useSingleMetadata == true){
            return string( abi.encodePacked( 'data:application/json;base64,' , Base64.encode(bytes(encodePackedJson(tokenId))) ) );
        } else {
            return string(abi.encodePacked(ERC721A.tokenURI(tokenId), baseExtension));
        }
    }

    function encodePackedJson(uint256 _tokenId) public view returns (bytes memory) {
        return abi.encodePacked(
            '{'
                '"name":"' , phaseData[ phaseIdByTokenId[ _tokenId ] ].metadataTitle ,'",' ,
                '"description":"' , phaseData[ phaseIdByTokenId[ _tokenId ] ].metadataDescription ,  '",' ,
                '"image": "' , _baseURI() , phaseData[ phaseIdByTokenId[ _tokenId ] ].fileName , '",' ,
                phaseData[phaseId].useAnimationUrl==true ? string(abi.encodePacked('"animation_url": "' , _baseURI() , phaseData[ phaseIdByTokenId[ _tokenId ] ].animationFileName , '",')) :"" ,
                '"attributes":[{"trait_type":"type","value":"' , phaseData[ phaseIdByTokenId[ _tokenId ] ].metadataAttributes , '"}]',
            '}'
        );
    }




    //
    //viewer section
    //

    function tokensOfOwner(address owner) public view returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }



    //
    //sbt section
    //

    bool public isSBT = false;

    function setIsSBT(bool _state) public onlyOwner {
        isSBT = _state;
    }

    function _sbt() internal view returns (bool) {
        return isSBT;
    }    

    function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity) internal virtual override{
        require( _sbt() == false || from == address(0), "transfer is prohibited");
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }

    function setApprovalForAll(address operator, bool approved) public virtual override {
        require( _sbt() == false , "setApprovalForAll is prohibited");
        super.setApprovalForAll(operator, approved);
    }

    function approve(address to, uint256 tokenId) public payable virtual override {
        require( _sbt() == false , "approve is prohibited");
        super.approve(to, tokenId);
    }



    //
    //override
    //

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

    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }


}

File 2 of 6 : 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 3 of 6 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `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`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    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.
     * And also called after one token has been burned.
     *
     * `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` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @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.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 4 of 6 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

File 5 of 6 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

    /**
     * @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 payable;

    /**
     * @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);

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @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);

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 6 of 6 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"encodePackedJson","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getUserMintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_phaseId","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"getUserMintedAmountByPhaseId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"interfaceOfTokenURI","outputs":[{"internalType":"contract iTokenURI","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":"isSBT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"phaseData","outputs":[{"internalType":"string","name":"fileName","type":"string"},{"internalType":"string","name":"metadataTitle","type":"string"},{"internalType":"string","name":"metadataDescription","type":"string"},{"internalType":"string","name":"metadataAttributes","type":"string"},{"internalType":"address","name":"withdrawAddress","type":"address"},{"internalType":"bool","name":"useAnimationUrl","type":"bool"},{"internalType":"string","name":"animationFileName","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phaseId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"phaseIdByTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","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":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setInterfaceOfTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setIsSBT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_fileName","type":"string"},{"internalType":"string","name":"_metadataTitle","type":"string"},{"internalType":"string","name":"_metadataDescription","type":"string"},{"internalType":"string","name":"_metadataAttributes","type":"string"},{"internalType":"address","name":"_withdrawAddress","type":"address"},{"internalType":"bool","name":"_useAnimationUrl","type":"bool"},{"internalType":"string","name":"_animationFileName","type":"string"}],"name":"setPhaseData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setPhaseId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_useInterfaceMetadata","type":"bool"}],"name":"setUseInterfaceMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_useSingleMetadata","type":"bool"}],"name":"setUseSingleMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"useInterfaceMetadata","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"useSingleMetadata","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405266038d7ea4c680006009556001600a60006101000a81548160ff0219169083151502179055506001600b556040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600f90805190602001906200007c92919062000c79565b506000601060146101000a81548160ff0219169083151502179055506000601060156101000a81548160ff0219169083151502179055506000601060166101000a81548160ff021916908315150217905550348015620000db57600080fd5b506040518060400160405280600c81526020017f514e43726561746f7253425400000000000000000000000000000000000000008152506040518060400160405280600681526020017f514e435342540000000000000000000000000000000000000000000000000000815250620001686200015c6200030b60201b60201c565b6200031360201b60201c565b81600390805190602001906200018092919062000c79565b5080600490805190602001906200019992919062000c79565b50620001aa620003d760201b60201c565b6001819055505050620001c46001620003e060201b60201c565b620001d660016200040d60201b60201c565b6200020060405180606001604052806026815260200162005b0f602691396200043a60201b60201c565b620002f560016040518060400160405280600a81526020017f3230323231302e706e67000000000000000000000000000000000000000000008152506040518060400160405280601e81526020017f514e2043726561746f72205342542c2053657074656d626572203230323200008152506040518060800160405280604e815260200162005ac1604e91396040518060400160405280600e81526020017f53657074656d62657220323032320000000000000000000000000000000000008152507311dd935d65dbc8425e8ba1d9ce4d85e8e60007376000604051806020016040528060008152506200046660201b60201c565b62000305620005e460201b60201c565b6200106f565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006001905090565b620003f06200063260201b60201c565b80601060166101000a81548160ff02191690831515021790555050565b6200041d6200063260201b60201c565b80601060156101000a81548160ff02191690831515021790555050565b6200044a6200063260201b60201c565b80600e90805190602001906200046292919062000c79565b5050565b620004766200063260201b60201c565b86600d60008a81526020019081526020016000206000019080519060200190620004a292919062000c79565b5085600d60008a81526020019081526020016000206001019080519060200190620004cf92919062000c79565b5084600d60008a81526020019081526020016000206002019080519060200190620004fc92919062000c79565b5083600d60008a815260200190815260200160002060030190805190602001906200052992919062000c79565b5082600d60008a815260200190815260200160002060040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600d60008a81526020019081526020016000206005019080519060200190620005ab92919062000c79565b5081600d60008a815260200190815260200160002060040160146101000a81548160ff0219169083151502179055505050505050505050565b620005f46200063260201b60201c565b600b54600c60006200060b620006c360201b60201c565b81526020019081526020016000208190555062000630336001620006cd60201b60201c565b565b620006426200030b60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000668620006f360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620006c1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006b89062000e99565b60405180910390fd5b565b6000600154905090565b620006ef8282604051806020016040528060008152506200071c60201b60201c565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6200072e8383620007ce60201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14620007c95760006001549050600083820390505b620007786000868380600101945086620009b860201b60201c565b620007af576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106200075d578160015414620007c657600080fd5b50505b505050565b60006001549050600082141562000811576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62000826600084838562000b2a60201b60201c565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550620008b58362000897600086600062000bda60201b60201c565b620008a88562000c0a60201b60201c565b1762000c1a60201b60201c565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146200095857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506200091b565b50600082141562000995576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055505050620009b3600084838562000c4560201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02620009e662000c4b60201b60201c565b8786866040518563ffffffff1660e01b815260040162000a0a949392919062000e23565b602060405180830381600087803b15801562000a2557600080fd5b505af192505050801562000a5957506040513d601f19601f8201168201806040525081019062000a56919062000d40565b60015b62000ad7573d806000811462000a8c576040519150601f19603f3d011682016040523d82523d6000602084013e62000a91565b606091505b5060008151141562000acf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000151562000b3e62000c5360201b60201c565b1515148062000b795750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b62000bbb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000bb29062000e77565b60405180910390fd5b62000bd48484848462000c6a60201b620022db1760201c565b50505050565b60008060e883901c905060e862000bf986868462000c7060201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b6000601060169054906101000a900460ff16905090565b50505050565b60009392505050565b82805462000c879062000f88565b90600052602060002090601f01602090048101928262000cab576000855562000cf7565b82601f1062000cc657805160ff191683800117855562000cf7565b8280016001018555821562000cf7579182015b8281111562000cf657825182559160200191906001019062000cd9565b5b50905062000d06919062000d0a565b5090565b5b8082111562000d2557600081600090555060010162000d0b565b5090565b60008151905062000d3a8162001055565b92915050565b60006020828403121562000d595762000d5862000fed565b5b600062000d698482850162000d29565b91505092915050565b62000d7d8162000ee8565b82525050565b600062000d908262000ebb565b62000d9c818562000ec6565b935062000dae81856020860162000f52565b62000db98162000ff2565b840191505092915050565b600062000dd360168362000ed7565b915062000de08262001003565b602082019050919050565b600062000dfa60208362000ed7565b915062000e07826200102c565b602082019050919050565b62000e1d8162000f48565b82525050565b600060808201905062000e3a600083018762000d72565b62000e49602083018662000d72565b62000e58604083018562000e12565b818103606083015262000e6c818462000d83565b905095945050505050565b6000602082019050818103600083015262000e928162000dc4565b9050919050565b6000602082019050818103600083015262000eb48162000deb565b9050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600062000ef58262000f28565b9050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000f7257808201518184015260208101905062000f55565b8381111562000f82576000848401525b50505050565b6000600282049050600182168062000fa157607f821691505b6020821081141562000fb85762000fb762000fbe565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f7472616e736665722069732070726f6869626974656400000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b620010608162000efc565b81146200106c57600080fd5b50565b614a42806200107f6000396000f3fe60806040526004361061027d5760003560e01c806370a082311161014f578063ba6269c6116100c1578063da3ef23f1161007a578063da3ef23f1461095f578063e985e9c514610988578063f138abfa146109c5578063f2fde38b146109ee578063fcd1aac914610a17578063fdf03cd514610a405761027d565b8063ba6269c614610835578063c668286214610860578063c82e9edc1461088b578063c87b56dd146108b4578063d6dfad76146108f1578063d9c7f8f11461091c5761027d565b8063895fc78811610113578063895fc788146107465780638da5cb5b1461075d57806395d89b4114610788578063a22cb465146107b3578063a5ac363d146107dc578063b88d4fde146108195761027d565b806370a082311461064d578063715018a61461068a5780637ec941ad146106a15780638462151c146106de578063877984cb1461071b5761027d565b80633ccfd60b116101f357806358303b10116101ac57806358303b10146105295780635c975abb146105545780635ec19e3d1461057f5780636352211e146105bc5780636b8ee0ec146105f95780636c0360eb146106225761027d565b80633ccfd60b1461043c5780633cf40df31461045357806342842e0e1461047e57806344a0d68a1461049a57806347705cbc146104c357806355f804b3146105005761027d565b80631249c58b116102455780631249c58b1461036c57806313faede6146103765780631581b600146103a157806318160ddd146103cc57806323b872dd146103f757806323c03085146104135761027d565b806301ffc9a71461028257806302329a29146102bf57806306fdde03146102e8578063081812fc14610313578063095ea7b314610350575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190613638565b610a69565b6040516102b69190613f4c565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e1919061360b565b610a7b565b005b3480156102f457600080fd5b506102fd610aa0565b60405161030a9190613fa4565b60405180910390f35b34801561031f57600080fd5b5061033a60048036038101906103359190613724565b610b32565b6040516103479190613ec3565b60405180910390f35b61036a600480360381019061036591906135cb565b610bb1565b005b610374610c0d565b005b34801561038257600080fd5b5061038b610ef0565b6040516103989190614178565b60405180910390f35b3480156103ad57600080fd5b506103b6610ef6565b6040516103c39190613ec3565b60405180910390f35b3480156103d857600080fd5b506103e1610f0e565b6040516103ee9190614178565b60405180910390f35b610411600480360381019061040c91906134b5565b610f25565b005b34801561041f57600080fd5b5061043a60048036038101906104359190613448565b61124a565b005b34801561044857600080fd5b50610451611296565b005b34801561045f57600080fd5b5061046861132b565b6040516104759190613f4c565b60405180910390f35b610498600480360381019061049391906134b5565b61133e565b005b3480156104a657600080fd5b506104c160048036038101906104bc9190613724565b61135e565b005b3480156104cf57600080fd5b506104ea60048036038101906104e59190613448565b611370565b6040516104f79190614178565b60405180910390f35b34801561050c57600080fd5b5061052760048036038101906105229190613692565b6113cf565b005b34801561053557600080fd5b5061053e6113f1565b60405161054b9190614178565b60405180910390f35b34801561056057600080fd5b506105696113f7565b6040516105769190613f4c565b60405180910390f35b34801561058b57600080fd5b506105a660048036038101906105a19190613724565b61140a565b6040516105b39190613f67565b60405180910390f35b3480156105c857600080fd5b506105e360048036038101906105de9190613724565b61157b565b6040516105f09190613ec3565b60405180910390f35b34801561060557600080fd5b50610620600480360381019061061b919061360b565b61158d565b005b34801561062e57600080fd5b506106376115b2565b6040516106449190613fa4565b60405180910390f35b34801561065957600080fd5b50610674600480360381019061066f9190613448565b611640565b6040516106819190614178565b60405180910390f35b34801561069657600080fd5b5061069f6116f9565b005b3480156106ad57600080fd5b506106c860048036038101906106c39190613751565b61170d565b6040516106d59190614178565b60405180910390f35b3480156106ea57600080fd5b5061070560048036038101906107009190613448565b61176b565b6040516107129190613f2a565b60405180910390f35b34801561072757600080fd5b506107306118b5565b60405161073d9190613f89565b60405180910390f35b34801561075257600080fd5b5061075b6118db565b005b34801561076957600080fd5b50610772611911565b60405161077f9190613ec3565b60405180910390f35b34801561079457600080fd5b5061079d61193a565b6040516107aa9190613fa4565b60405180910390f35b3480156107bf57600080fd5b506107da60048036038101906107d5919061358b565b6119cc565b005b3480156107e857600080fd5b5061080360048036038101906107fe9190613724565b611a28565b6040516108109190614178565b60405180910390f35b610833600480360381019061082e9190613508565b611a40565b005b34801561084157600080fd5b5061084a611ab3565b6040516108579190613f4c565b60405180910390f35b34801561086c57600080fd5b50610875611ac6565b6040516108829190613fa4565b60405180910390f35b34801561089757600080fd5b506108b260048036038101906108ad9190613791565b611b54565b005b3480156108c057600080fd5b506108db60048036038101906108d69190613724565b611cc0565b6040516108e89190613fa4565b60405180910390f35b3480156108fd57600080fd5b50610906611e1b565b6040516109139190613f4c565b60405180910390f35b34801561092857600080fd5b50610943600480360381019061093e9190613724565b611e2e565b6040516109569796959493929190613fc6565b60405180910390f35b34801561096b57600080fd5b5061098660048036038101906109819190613692565b612145565b005b34801561099457600080fd5b506109af60048036038101906109aa9190613475565b612167565b6040516109bc9190613f4c565b60405180910390f35b3480156109d157600080fd5b506109ec60048036038101906109e7919061360b565b6121fb565b005b3480156109fa57600080fd5b50610a156004803603810190610a109190613448565b612220565b005b348015610a2357600080fd5b50610a3e6004803603810190610a39919061360b565b6122a4565b005b348015610a4c57600080fd5b50610a676004803603810190610a629190613724565b6122c9565b005b6000610a74826122e1565b9050919050565b610a83612373565b80600a60006101000a81548160ff02191690831515021790555050565b606060038054610aaf90614483565b80601f0160208091040260200160405190810160405280929190818152602001828054610adb90614483565b8015610b285780601f10610afd57610100808354040283529160200191610b28565b820191906000526020600020905b815481529060010190602001808311610b0b57829003601f168201915b5050505050905090565b6000610b3d826123f1565b610b73576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60001515610bbd612450565b151514610bff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf690614058565b60405180910390fd5b610c098282612467565b5050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610c7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7290614078565b60405180910390fd5b600a60009054906101000a900460ff1615610ccb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc290614118565b60405180910390fd5b346009541115610d10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0790614158565b60405180910390fd5b6000600d6000600b54815260200190815260200160002060060160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610da8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9f90614138565b60405180910390fd5b600d6000600b54815260200190815260200160002060060160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190610e0e906144e6565b9190505550600b54600c6000610e226125ab565b815260200190815260200160002081905550610e3f3360016125b5565b6000600d6000600b54815260200190815260200160002060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051610e9d90613eae565b60006040518083038185875af1925050503d8060008114610eda576040519150601f19603f3d011682016040523d82523d6000602084013e610edf565b606091505b5050905080610eed57600080fd5b50565b60095481565b73decf4b112d4120b6998e5020a6b4819e490f7db681565b6000610f186125d3565b6002546001540303905090565b6000610f30826125dc565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f97576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610fa3846126aa565b91509150610fb98187610fb46126d1565b6126d9565b61100557610fce86610fc96126d1565b612167565b611004576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561106c576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611079868686600161271d565b801561108457600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506111528561112e8888876127b4565b7c0200000000000000000000000000000000000000000000000000000000176127dc565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156111da5760006001850190506000600560008381526020019081526020016000205414156111d85760015481146111d7578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46112428686866001612807565b505050505050565b611252612373565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61129e612373565b600073decf4b112d4120b6998e5020a6b4819e490f7db673ffffffffffffffffffffffffffffffffffffffff16476040516112d890613eae565b60006040518083038185875af1925050503d8060008114611315576040519150601f19603f3d011682016040523d82523d6000602084013e61131a565b606091505b505090508061132857600080fd5b50565b601060169054906101000a900460ff1681565b61135983838360405180602001604052806000815250611a40565b505050565b611366612373565b8060098190555050565b6000600d6000600b54815260200190815260200160002060060160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6113d7612373565b80600e90805190602001906113ed92919061319d565b5050565b600b5481565b600a60009054906101000a900460ff1681565b6060600d6000600c6000858152602001908152602001600020548152602001908152602001600020600101600d6000600c600086815260200190815260200160002054815260200190815260200160002060020161146661280d565b600d6000600c600088815260200190815260200160002054815260200190815260200160002060000160011515600d6000600b54815260200190815260200160002060040160149054906101000a900460ff161515146114d55760405180602001604052806000815250611527565b6114dd61280d565b600d6000600c60008a8152602001908152602001600020548152602001908152602001600020600501604051602001611517929190613e52565b6040516020818303038152906040525b600d6000600c60008a815260200190815260200160002054815260200190815260200160002060030160405160200161156596959493929190613d97565b6040516020818303038152906040529050919050565b6000611586826125dc565b9050919050565b611595612373565b80601060156101000a81548160ff02191690831515021790555050565b600e80546115bf90614483565b80601f01602080910402602001604051908101604052809291908181526020018280546115eb90614483565b80156116385780601f1061160d57610100808354040283529160200191611638565b820191906000526020600020905b81548152906001019060200180831161161b57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116a8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611701612373565b61170b600061289f565b565b6000600d600084815260200190815260200160002060060160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6060600080600061177b85611640565b905060008167ffffffffffffffff811115611799576117986145eb565b5b6040519080825280602002602001820160405280156117c75781602001602082028036833780820191505090505b5090506117d2613223565b60006117dc6125d3565b90505b8386146118a7576117ef81612963565b91508160400151156118005761189c565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461184057816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561189b578083878060010198508151811061188e5761188d6145bc565b5b6020026020010181815250505b5b8060010190506117df565b508195505050505050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118e3612373565b600b54600c60006118f26125ab565b81526020019081526020016000208190555061190f3360016125b5565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461194990614483565b80601f016020809104026020016040519081016040528092919081815260200182805461197590614483565b80156119c25780601f10611997576101008083540402835291602001916119c2565b820191906000526020600020905b8154815290600101906020018083116119a557829003601f168201915b5050505050905090565b600015156119d8612450565b151514611a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1190614098565b60405180910390fd5b611a24828261298e565b5050565b600c6020528060005260406000206000915090505481565b611a4b848484610f25565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611aad57611a7684848484612a99565b611aac576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b601060149054906101000a900460ff1681565b600f8054611ad390614483565b80601f0160208091040260200160405190810160405280929190818152602001828054611aff90614483565b8015611b4c5780601f10611b2157610100808354040283529160200191611b4c565b820191906000526020600020905b815481529060010190602001808311611b2f57829003601f168201915b505050505081565b611b5c612373565b86600d60008a81526020019081526020016000206000019080519060200190611b8692919061319d565b5085600d60008a81526020019081526020016000206001019080519060200190611bb192919061319d565b5084600d60008a81526020019081526020016000206002019080519060200190611bdc92919061319d565b5083600d60008a81526020019081526020016000206003019080519060200190611c0792919061319d565b5082600d60008a815260200190815260200160002060040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600d60008a81526020019081526020016000206005019080519060200190611c8792919061319d565b5081600d60008a815260200190815260200160002060040160146101000a81548160ff0219169083151502179055505050505050505050565b606060011515601060149054906101000a900460ff1615151415611d9557601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b8152600401611d399190614178565b60006040518083038186803b158015611d5157600080fd5b505afa158015611d65573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611d8e91906136db565b9050611e16565b60011515601060159054906101000a900460ff1615151415611de857611dc2611dbd8361140a565b612bf9565b604051602001611dd29190613e8c565b6040516020818303038152906040529050611e16565b611df182612d72565b600f604051602001611e04929190613d73565b60405160208183030381529060405290505b919050565b601060159054906101000a900460ff1681565b600d602052806000526040600020600091509050806000018054611e5190614483565b80601f0160208091040260200160405190810160405280929190818152602001828054611e7d90614483565b8015611eca5780601f10611e9f57610100808354040283529160200191611eca565b820191906000526020600020905b815481529060010190602001808311611ead57829003601f168201915b505050505090806001018054611edf90614483565b80601f0160208091040260200160405190810160405280929190818152602001828054611f0b90614483565b8015611f585780601f10611f2d57610100808354040283529160200191611f58565b820191906000526020600020905b815481529060010190602001808311611f3b57829003601f168201915b505050505090806002018054611f6d90614483565b80601f0160208091040260200160405190810160405280929190818152602001828054611f9990614483565b8015611fe65780601f10611fbb57610100808354040283529160200191611fe6565b820191906000526020600020905b815481529060010190602001808311611fc957829003601f168201915b505050505090806003018054611ffb90614483565b80601f016020809104026020016040519081016040528092919081815260200182805461202790614483565b80156120745780601f1061204957610100808354040283529160200191612074565b820191906000526020600020905b81548152906001019060200180831161205757829003601f168201915b5050505050908060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060040160149054906101000a900460ff16908060050180546120c290614483565b80601f01602080910402602001604051908101604052809291908181526020018280546120ee90614483565b801561213b5780601f106121105761010080835404028352916020019161213b565b820191906000526020600020905b81548152906001019060200180831161211e57829003601f168201915b5050505050905087565b61214d612373565b80600f908051906020019061216392919061319d565b5050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612203612373565b80601060146101000a81548160ff02191690831515021790555050565b612228612373565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612298576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228f906140b8565b60405180910390fd5b6122a18161289f565b50565b6122ac612373565b80601060166101000a81548160ff02191690831515021790555050565b6122d1612373565b80600b8190555050565b50505050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061233c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061236c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61237b612e11565b73ffffffffffffffffffffffffffffffffffffffff16612399611911565b73ffffffffffffffffffffffffffffffffffffffff16146123ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e6906140f8565b60405180910390fd5b565b6000816123fc6125d3565b1115801561240b575060015482105b8015612449575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b6000601060169054906101000a900460ff16905090565b60006124728261157b565b90508073ffffffffffffffffffffffffffffffffffffffff166124936126d1565b73ffffffffffffffffffffffffffffffffffffffff16146124f6576124bf816124ba6126d1565b612167565b6124f5576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600154905090565b6125cf828260405180602001604052806000815250612e19565b5050565b60006001905090565b600080829050806125eb6125d3565b11612673576001548110156126725760006005600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612670575b600081141561266657600560008360019003935083815260200190815260200160002054905061263b565b80925050506126a5565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b60001515612729612450565b151514806127635750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b6127a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612799906140d8565b60405180910390fd5b6127ae848484846122db565b50505050565b60008060e883901c905060e86127cb868684612eb7565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6060600e805461281c90614483565b80601f016020809104026020016040519081016040528092919081815260200182805461284890614483565b80156128955780601f1061286a57610100808354040283529160200191612895565b820191906000526020600020905b81548152906001019060200180831161287857829003601f168201915b5050505050905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61296b613223565b6129876005600084815260200190815260200160002054612ec0565b9050919050565b806008600061299b6126d1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612a486126d1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a8d9190613f4c565b60405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612abf6126d1565b8786866040518563ffffffff1660e01b8152600401612ae19493929190613ede565b602060405180830381600087803b158015612afb57600080fd5b505af1925050508015612b2c57506040513d601f19601f82011682018060405250810190612b299190613665565b60015b612ba6573d8060008114612b5c576040519150601f19603f3d011682016040523d82523d6000602084013e612b61565b606091505b50600081511415612b9e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082511415612c1c57604051806020016040528060008152509050612d6d565b60006040518060600160405280604081526020016149cd6040913990506000600360028551612c4b91906142b6565b612c55919061430c565b6004612c61919061433d565b90506000602082612c7291906142b6565b67ffffffffffffffff811115612c8b57612c8a6145eb565b5b6040519080825280601f01601f191660200182016040528015612cbd5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015612d2c576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825360018201915050612cd1565b600389510660018114612d465760028114612d5657612d61565b613d3d60f01b6002830352612d61565b603d60f81b60018303525b50505050508093505050505b919050565b6060612d7d826123f1565b612db3576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612dbd61280d565b9050600081511415612dde5760405180602001604052806000815250612e09565b80612de884612f76565b604051602001612df9929190613d4f565b6040516020818303038152906040525b915050919050565b600033905090565b612e238383612fcf565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612eb25760006001549050600083820390505b612e646000868380600101945086612a99565b612e9a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612e51578160015414612eaf57600080fd5b50505b505050565b60009392505050565b612ec8613223565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b606060a060405101806040526020810391506000825281835b600115612fba57600184039350600a81066030018453600a8104905080612fb557612fba565b612f8f565b50828103602084039350808452505050919050565b600060015490506000821415613011576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61301e600084838561271d565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506130958361308660008660006127b4565b61308f8561318d565b176127dc565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461313657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506130fb565b506000821415613172576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060018190555050506131886000848385612807565b505050565b60006001821460e11b9050919050565b8280546131a990614483565b90600052602060002090601f0160209004810192826131cb5760008555613212565b82601f106131e457805160ff1916838001178555613212565b82800160010185558215613212579182015b828111156132115782518255916020019190600101906131f6565b5b50905061321f9190613272565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b8082111561328b576000816000905550600101613273565b5090565b60006132a261329d846141b8565b614193565b9050828152602081018484840111156132be576132bd61461f565b5b6132c9848285614441565b509392505050565b60006132e46132df846141e9565b614193565b905082815260208101848484011115613300576132ff61461f565b5b61330b848285614441565b509392505050565b6000613326613321846141e9565b614193565b9050828152602081018484840111156133425761334161461f565b5b61334d848285614450565b509392505050565b60008135905061336481614970565b92915050565b60008135905061337981614987565b92915050565b60008135905061338e8161499e565b92915050565b6000815190506133a38161499e565b92915050565b600082601f8301126133be576133bd61461a565b5b81356133ce84826020860161328f565b91505092915050565b600082601f8301126133ec576133eb61461a565b5b81356133fc8482602086016132d1565b91505092915050565b600082601f83011261341a5761341961461a565b5b815161342a848260208601613313565b91505092915050565b600081359050613442816149b5565b92915050565b60006020828403121561345e5761345d614629565b5b600061346c84828501613355565b91505092915050565b6000806040838503121561348c5761348b614629565b5b600061349a85828601613355565b92505060206134ab85828601613355565b9150509250929050565b6000806000606084860312156134ce576134cd614629565b5b60006134dc86828701613355565b93505060206134ed86828701613355565b92505060406134fe86828701613433565b9150509250925092565b6000806000806080858703121561352257613521614629565b5b600061353087828801613355565b945050602061354187828801613355565b935050604061355287828801613433565b925050606085013567ffffffffffffffff81111561357357613572614624565b5b61357f878288016133a9565b91505092959194509250565b600080604083850312156135a2576135a1614629565b5b60006135b085828601613355565b92505060206135c18582860161336a565b9150509250929050565b600080604083850312156135e2576135e1614629565b5b60006135f085828601613355565b925050602061360185828601613433565b9150509250929050565b60006020828403121561362157613620614629565b5b600061362f8482850161336a565b91505092915050565b60006020828403121561364e5761364d614629565b5b600061365c8482850161337f565b91505092915050565b60006020828403121561367b5761367a614629565b5b600061368984828501613394565b91505092915050565b6000602082840312156136a8576136a7614629565b5b600082013567ffffffffffffffff8111156136c6576136c5614624565b5b6136d2848285016133d7565b91505092915050565b6000602082840312156136f1576136f0614629565b5b600082015167ffffffffffffffff81111561370f5761370e614624565b5b61371b84828501613405565b91505092915050565b60006020828403121561373a57613739614629565b5b600061374884828501613433565b91505092915050565b6000806040838503121561376857613767614629565b5b600061377685828601613433565b925050602061378785828601613355565b9150509250929050565b600080600080600080600080610100898b0312156137b2576137b1614629565b5b60006137c08b828c01613433565b985050602089013567ffffffffffffffff8111156137e1576137e0614624565b5b6137ed8b828c016133d7565b975050604089013567ffffffffffffffff81111561380e5761380d614624565b5b61381a8b828c016133d7565b965050606089013567ffffffffffffffff81111561383b5761383a614624565b5b6138478b828c016133d7565b955050608089013567ffffffffffffffff81111561386857613867614624565b5b6138748b828c016133d7565b94505060a06138858b828c01613355565b93505060c06138968b828c0161336a565b92505060e089013567ffffffffffffffff8111156138b7576138b6614624565b5b6138c38b828c016133d7565b9150509295985092959890939650565b60006138df8383613d31565b60208301905092915050565b6138f481614397565b82525050565b60006139058261423f565b61390f818561426d565b935061391a8361421a565b8060005b8381101561394b57815161393288826138d3565b975061393d83614260565b92505060018101905061391e565b5085935050505092915050565b613961816143a9565b82525050565b60006139728261424a565b61397c818561427e565b935061398c818560208601614450565b6139958161462e565b840191505092915050565b6139a98161440b565b82525050565b60006139ba82614255565b6139c4818561429a565b93506139d4818560208601614450565b6139dd8161462e565b840191505092915050565b60006139f382614255565b6139fd81856142ab565b9350613a0d818560208601614450565b80840191505092915050565b60008154613a2681614483565b613a3081866142ab565b94506001821660008114613a4b5760018114613a5c57613a8f565b60ff19831686528186019350613a8f565b613a658561422a565b60005b83811015613a8757815481890152600182019150602081019050613a68565b838801955050505b50505092915050565b6000613aa560158361429a565b9150613ab08261463f565b602082019050919050565b6000613ac86009836142ab565b9150613ad382614668565b600982019050919050565b6000613aeb601f8361429a565b9150613af682614691565b602082019050919050565b6000613b0e601f8361429a565b9150613b19826146ba565b602082019050919050565b6000613b31600f836142ab565b9150613b3c826146e3565b600f82019050919050565b6000613b5460268361429a565b9150613b5f8261470c565b604082019050919050565b6000613b776002836142ab565b9150613b828261475b565b600282019050919050565b6000613b9a6003836142ab565b9150613ba582614784565b600382019050919050565b6000613bbd6001836142ab565b9150613bc8826147ad565b600182019050919050565b6000613be060168361429a565b9150613beb826147d6565b602082019050919050565b6000613c0360208361429a565b9150613c0e826147ff565b602082019050919050565b6000613c2660168361429a565b9150613c3182614828565b602082019050919050565b6000613c496012836142ab565b9150613c5482614851565b601282019050919050565b6000613c6c601d836142ab565b9150613c778261487a565b601d82019050919050565b6000613c8f60168361429a565b9150613c9a826148a3565b602082019050919050565b6000613cb260008361428f565b9150613cbd826148cc565b600082019050919050565b6000613cd560128361429a565b9150613ce0826148cf565b602082019050919050565b6000613cf8600a836142ab565b9150613d03826148f8565b600a82019050919050565b6000613d1b602c836142ab565b9150613d2682614921565b602c82019050919050565b613d3a81614401565b82525050565b613d4981614401565b82525050565b6000613d5b82856139e8565b9150613d6782846139e8565b91508190509392505050565b6000613d7f82856139e8565b9150613d8b8284613a19565b91508190509392505050565b6000613da282613abb565b9150613dae8289613a19565b9150613db982613b6a565b9150613dc482613b24565b9150613dd08288613a19565b9150613ddb82613b6a565b9150613de682613ceb565b9150613df282876139e8565b9150613dfe8286613a19565b9150613e0982613b6a565b9150613e1582856139e8565b9150613e2082613d0e565b9150613e2c8284613a19565b9150613e3782613b8d565b9150613e4282613bb0565b9150819050979650505050505050565b6000613e5d82613c3c565b9150613e6982856139e8565b9150613e758284613a19565b9150613e8082613b6a565b91508190509392505050565b6000613e9782613c5f565b9150613ea382846139e8565b915081905092915050565b6000613eb982613ca5565b9150819050919050565b6000602082019050613ed860008301846138eb565b92915050565b6000608082019050613ef360008301876138eb565b613f0060208301866138eb565b613f0d6040830185613d40565b8181036060830152613f1f8184613967565b905095945050505050565b60006020820190508181036000830152613f4481846138fa565b905092915050565b6000602082019050613f616000830184613958565b92915050565b60006020820190508181036000830152613f818184613967565b905092915050565b6000602082019050613f9e60008301846139a0565b92915050565b60006020820190508181036000830152613fbe81846139af565b905092915050565b600060e0820190508181036000830152613fe0818a6139af565b90508181036020830152613ff481896139af565b9050818103604083015261400881886139af565b9050818103606083015261401c81876139af565b905061402b60808301866138eb565b61403860a0830185613958565b81810360c083015261404a81846139af565b905098975050505050505050565b6000602082019050818103600083015261407181613a98565b9050919050565b6000602082019050818103600083015261409181613ade565b9050919050565b600060208201905081810360008301526140b181613b01565b9050919050565b600060208201905081810360008301526140d181613b47565b9050919050565b600060208201905081810360008301526140f181613bd3565b9050919050565b6000602082019050818103600083015261411181613bf6565b9050919050565b6000602082019050818103600083015261413181613c19565b9050919050565b6000602082019050818103600083015261415181613c82565b9050919050565b6000602082019050818103600083015261417181613cc8565b9050919050565b600060208201905061418d6000830184613d40565b92915050565b600061419d6141ae565b90506141a982826144b5565b919050565b6000604051905090565b600067ffffffffffffffff8211156141d3576141d26145eb565b5b6141dc8261462e565b9050602081019050919050565b600067ffffffffffffffff821115614204576142036145eb565b5b61420d8261462e565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006142c182614401565b91506142cc83614401565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143015761430061452f565b5b828201905092915050565b600061431782614401565b915061432283614401565b9250826143325761433161455e565b5b828204905092915050565b600061434882614401565b915061435383614401565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561438c5761438b61452f565b5b828202905092915050565b60006143a2826143e1565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006144168261441d565b9050919050565b60006144288261442f565b9050919050565b600061443a826143e1565b9050919050565b82818337600083830152505050565b60005b8381101561446e578082015181840152602081019050614453565b8381111561447d576000848401525b50505050565b6000600282049050600182168061449b57607f821691505b602082108114156144af576144ae61458d565b5b50919050565b6144be8261462e565b810181811067ffffffffffffffff821117156144dd576144dc6145eb565b5b80604052505050565b60006144f182614401565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156145245761452361452f565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f617070726f76652069732070726f686962697465640000000000000000000000600082015250565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b7f736574417070726f76616c466f72416c6c2069732070726f6869626974656400600082015250565b7f226465736372697074696f6e223a220000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f222c000000000000000000000000000000000000000000000000000000000000600082015250565b7f227d5d0000000000000000000000000000000000000000000000000000000000600082015250565b7f7d00000000000000000000000000000000000000000000000000000000000000600082015250565b7f7472616e736665722069732070726f6869626974656400000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f74686520636f6e74726163742069732070617573656400000000000000000000600082015250565b7f22616e696d6174696f6e5f75726c223a20220000000000000000000000000000600082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b7f596f7520616c7265616479206861766520612053425400000000000000000000600082015250565b50565b7f696e73756666696369656e742066756e64730000000000000000000000000000600082015250565b7f22696d616765223a202200000000000000000000000000000000000000000000600082015250565b7f2261747472696275746573223a5b7b2274726169745f74797065223a2274797060008201527f65222c2276616c7565223a220000000000000000000000000000000000000000602082015250565b61497981614397565b811461498457600080fd5b50565b614990816143a9565b811461499b57600080fd5b50565b6149a7816143b5565b81146149b257600080fd5b50565b6149be81614401565b81146149c957600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220004d3027730e043e20c858228892ab27734c52837607d6a768e8ba62bce45eee64736f6c634300080700335468616e6b7320666f72206a6f696e696e67205a514e2d44414f2e20200a496c6c757374726174696f6e2062792068747470733a2f2f747769747465722e636f6d2f746f746f6d6964657369676e68747470733a2f2f646174612e7a716e2e7774662f716e63726561746f722f696d616765732f

Deployed Bytecode

0x60806040526004361061027d5760003560e01c806370a082311161014f578063ba6269c6116100c1578063da3ef23f1161007a578063da3ef23f1461095f578063e985e9c514610988578063f138abfa146109c5578063f2fde38b146109ee578063fcd1aac914610a17578063fdf03cd514610a405761027d565b8063ba6269c614610835578063c668286214610860578063c82e9edc1461088b578063c87b56dd146108b4578063d6dfad76146108f1578063d9c7f8f11461091c5761027d565b8063895fc78811610113578063895fc788146107465780638da5cb5b1461075d57806395d89b4114610788578063a22cb465146107b3578063a5ac363d146107dc578063b88d4fde146108195761027d565b806370a082311461064d578063715018a61461068a5780637ec941ad146106a15780638462151c146106de578063877984cb1461071b5761027d565b80633ccfd60b116101f357806358303b10116101ac57806358303b10146105295780635c975abb146105545780635ec19e3d1461057f5780636352211e146105bc5780636b8ee0ec146105f95780636c0360eb146106225761027d565b80633ccfd60b1461043c5780633cf40df31461045357806342842e0e1461047e57806344a0d68a1461049a57806347705cbc146104c357806355f804b3146105005761027d565b80631249c58b116102455780631249c58b1461036c57806313faede6146103765780631581b600146103a157806318160ddd146103cc57806323b872dd146103f757806323c03085146104135761027d565b806301ffc9a71461028257806302329a29146102bf57806306fdde03146102e8578063081812fc14610313578063095ea7b314610350575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190613638565b610a69565b6040516102b69190613f4c565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e1919061360b565b610a7b565b005b3480156102f457600080fd5b506102fd610aa0565b60405161030a9190613fa4565b60405180910390f35b34801561031f57600080fd5b5061033a60048036038101906103359190613724565b610b32565b6040516103479190613ec3565b60405180910390f35b61036a600480360381019061036591906135cb565b610bb1565b005b610374610c0d565b005b34801561038257600080fd5b5061038b610ef0565b6040516103989190614178565b60405180910390f35b3480156103ad57600080fd5b506103b6610ef6565b6040516103c39190613ec3565b60405180910390f35b3480156103d857600080fd5b506103e1610f0e565b6040516103ee9190614178565b60405180910390f35b610411600480360381019061040c91906134b5565b610f25565b005b34801561041f57600080fd5b5061043a60048036038101906104359190613448565b61124a565b005b34801561044857600080fd5b50610451611296565b005b34801561045f57600080fd5b5061046861132b565b6040516104759190613f4c565b60405180910390f35b610498600480360381019061049391906134b5565b61133e565b005b3480156104a657600080fd5b506104c160048036038101906104bc9190613724565b61135e565b005b3480156104cf57600080fd5b506104ea60048036038101906104e59190613448565b611370565b6040516104f79190614178565b60405180910390f35b34801561050c57600080fd5b5061052760048036038101906105229190613692565b6113cf565b005b34801561053557600080fd5b5061053e6113f1565b60405161054b9190614178565b60405180910390f35b34801561056057600080fd5b506105696113f7565b6040516105769190613f4c565b60405180910390f35b34801561058b57600080fd5b506105a660048036038101906105a19190613724565b61140a565b6040516105b39190613f67565b60405180910390f35b3480156105c857600080fd5b506105e360048036038101906105de9190613724565b61157b565b6040516105f09190613ec3565b60405180910390f35b34801561060557600080fd5b50610620600480360381019061061b919061360b565b61158d565b005b34801561062e57600080fd5b506106376115b2565b6040516106449190613fa4565b60405180910390f35b34801561065957600080fd5b50610674600480360381019061066f9190613448565b611640565b6040516106819190614178565b60405180910390f35b34801561069657600080fd5b5061069f6116f9565b005b3480156106ad57600080fd5b506106c860048036038101906106c39190613751565b61170d565b6040516106d59190614178565b60405180910390f35b3480156106ea57600080fd5b5061070560048036038101906107009190613448565b61176b565b6040516107129190613f2a565b60405180910390f35b34801561072757600080fd5b506107306118b5565b60405161073d9190613f89565b60405180910390f35b34801561075257600080fd5b5061075b6118db565b005b34801561076957600080fd5b50610772611911565b60405161077f9190613ec3565b60405180910390f35b34801561079457600080fd5b5061079d61193a565b6040516107aa9190613fa4565b60405180910390f35b3480156107bf57600080fd5b506107da60048036038101906107d5919061358b565b6119cc565b005b3480156107e857600080fd5b5061080360048036038101906107fe9190613724565b611a28565b6040516108109190614178565b60405180910390f35b610833600480360381019061082e9190613508565b611a40565b005b34801561084157600080fd5b5061084a611ab3565b6040516108579190613f4c565b60405180910390f35b34801561086c57600080fd5b50610875611ac6565b6040516108829190613fa4565b60405180910390f35b34801561089757600080fd5b506108b260048036038101906108ad9190613791565b611b54565b005b3480156108c057600080fd5b506108db60048036038101906108d69190613724565b611cc0565b6040516108e89190613fa4565b60405180910390f35b3480156108fd57600080fd5b50610906611e1b565b6040516109139190613f4c565b60405180910390f35b34801561092857600080fd5b50610943600480360381019061093e9190613724565b611e2e565b6040516109569796959493929190613fc6565b60405180910390f35b34801561096b57600080fd5b5061098660048036038101906109819190613692565b612145565b005b34801561099457600080fd5b506109af60048036038101906109aa9190613475565b612167565b6040516109bc9190613f4c565b60405180910390f35b3480156109d157600080fd5b506109ec60048036038101906109e7919061360b565b6121fb565b005b3480156109fa57600080fd5b50610a156004803603810190610a109190613448565b612220565b005b348015610a2357600080fd5b50610a3e6004803603810190610a39919061360b565b6122a4565b005b348015610a4c57600080fd5b50610a676004803603810190610a629190613724565b6122c9565b005b6000610a74826122e1565b9050919050565b610a83612373565b80600a60006101000a81548160ff02191690831515021790555050565b606060038054610aaf90614483565b80601f0160208091040260200160405190810160405280929190818152602001828054610adb90614483565b8015610b285780601f10610afd57610100808354040283529160200191610b28565b820191906000526020600020905b815481529060010190602001808311610b0b57829003601f168201915b5050505050905090565b6000610b3d826123f1565b610b73576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60001515610bbd612450565b151514610bff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf690614058565b60405180910390fd5b610c098282612467565b5050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610c7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7290614078565b60405180910390fd5b600a60009054906101000a900460ff1615610ccb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc290614118565b60405180910390fd5b346009541115610d10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0790614158565b60405180910390fd5b6000600d6000600b54815260200190815260200160002060060160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610da8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9f90614138565b60405180910390fd5b600d6000600b54815260200190815260200160002060060160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190610e0e906144e6565b9190505550600b54600c6000610e226125ab565b815260200190815260200160002081905550610e3f3360016125b5565b6000600d6000600b54815260200190815260200160002060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051610e9d90613eae565b60006040518083038185875af1925050503d8060008114610eda576040519150601f19603f3d011682016040523d82523d6000602084013e610edf565b606091505b5050905080610eed57600080fd5b50565b60095481565b73decf4b112d4120b6998e5020a6b4819e490f7db681565b6000610f186125d3565b6002546001540303905090565b6000610f30826125dc565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f97576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610fa3846126aa565b91509150610fb98187610fb46126d1565b6126d9565b61100557610fce86610fc96126d1565b612167565b611004576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561106c576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611079868686600161271d565b801561108457600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506111528561112e8888876127b4565b7c0200000000000000000000000000000000000000000000000000000000176127dc565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156111da5760006001850190506000600560008381526020019081526020016000205414156111d85760015481146111d7578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46112428686866001612807565b505050505050565b611252612373565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61129e612373565b600073decf4b112d4120b6998e5020a6b4819e490f7db673ffffffffffffffffffffffffffffffffffffffff16476040516112d890613eae565b60006040518083038185875af1925050503d8060008114611315576040519150601f19603f3d011682016040523d82523d6000602084013e61131a565b606091505b505090508061132857600080fd5b50565b601060169054906101000a900460ff1681565b61135983838360405180602001604052806000815250611a40565b505050565b611366612373565b8060098190555050565b6000600d6000600b54815260200190815260200160002060060160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6113d7612373565b80600e90805190602001906113ed92919061319d565b5050565b600b5481565b600a60009054906101000a900460ff1681565b6060600d6000600c6000858152602001908152602001600020548152602001908152602001600020600101600d6000600c600086815260200190815260200160002054815260200190815260200160002060020161146661280d565b600d6000600c600088815260200190815260200160002054815260200190815260200160002060000160011515600d6000600b54815260200190815260200160002060040160149054906101000a900460ff161515146114d55760405180602001604052806000815250611527565b6114dd61280d565b600d6000600c60008a8152602001908152602001600020548152602001908152602001600020600501604051602001611517929190613e52565b6040516020818303038152906040525b600d6000600c60008a815260200190815260200160002054815260200190815260200160002060030160405160200161156596959493929190613d97565b6040516020818303038152906040529050919050565b6000611586826125dc565b9050919050565b611595612373565b80601060156101000a81548160ff02191690831515021790555050565b600e80546115bf90614483565b80601f01602080910402602001604051908101604052809291908181526020018280546115eb90614483565b80156116385780601f1061160d57610100808354040283529160200191611638565b820191906000526020600020905b81548152906001019060200180831161161b57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116a8576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611701612373565b61170b600061289f565b565b6000600d600084815260200190815260200160002060060160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6060600080600061177b85611640565b905060008167ffffffffffffffff811115611799576117986145eb565b5b6040519080825280602002602001820160405280156117c75781602001602082028036833780820191505090505b5090506117d2613223565b60006117dc6125d3565b90505b8386146118a7576117ef81612963565b91508160400151156118005761189c565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461184057816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561189b578083878060010198508151811061188e5761188d6145bc565b5b6020026020010181815250505b5b8060010190506117df565b508195505050505050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118e3612373565b600b54600c60006118f26125ab565b81526020019081526020016000208190555061190f3360016125b5565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461194990614483565b80601f016020809104026020016040519081016040528092919081815260200182805461197590614483565b80156119c25780601f10611997576101008083540402835291602001916119c2565b820191906000526020600020905b8154815290600101906020018083116119a557829003601f168201915b5050505050905090565b600015156119d8612450565b151514611a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1190614098565b60405180910390fd5b611a24828261298e565b5050565b600c6020528060005260406000206000915090505481565b611a4b848484610f25565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611aad57611a7684848484612a99565b611aac576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b601060149054906101000a900460ff1681565b600f8054611ad390614483565b80601f0160208091040260200160405190810160405280929190818152602001828054611aff90614483565b8015611b4c5780601f10611b2157610100808354040283529160200191611b4c565b820191906000526020600020905b815481529060010190602001808311611b2f57829003601f168201915b505050505081565b611b5c612373565b86600d60008a81526020019081526020016000206000019080519060200190611b8692919061319d565b5085600d60008a81526020019081526020016000206001019080519060200190611bb192919061319d565b5084600d60008a81526020019081526020016000206002019080519060200190611bdc92919061319d565b5083600d60008a81526020019081526020016000206003019080519060200190611c0792919061319d565b5082600d60008a815260200190815260200160002060040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600d60008a81526020019081526020016000206005019080519060200190611c8792919061319d565b5081600d60008a815260200190815260200160002060040160146101000a81548160ff0219169083151502179055505050505050505050565b606060011515601060149054906101000a900460ff1615151415611d9557601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c87b56dd836040518263ffffffff1660e01b8152600401611d399190614178565b60006040518083038186803b158015611d5157600080fd5b505afa158015611d65573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611d8e91906136db565b9050611e16565b60011515601060159054906101000a900460ff1615151415611de857611dc2611dbd8361140a565b612bf9565b604051602001611dd29190613e8c565b6040516020818303038152906040529050611e16565b611df182612d72565b600f604051602001611e04929190613d73565b60405160208183030381529060405290505b919050565b601060159054906101000a900460ff1681565b600d602052806000526040600020600091509050806000018054611e5190614483565b80601f0160208091040260200160405190810160405280929190818152602001828054611e7d90614483565b8015611eca5780601f10611e9f57610100808354040283529160200191611eca565b820191906000526020600020905b815481529060010190602001808311611ead57829003601f168201915b505050505090806001018054611edf90614483565b80601f0160208091040260200160405190810160405280929190818152602001828054611f0b90614483565b8015611f585780601f10611f2d57610100808354040283529160200191611f58565b820191906000526020600020905b815481529060010190602001808311611f3b57829003601f168201915b505050505090806002018054611f6d90614483565b80601f0160208091040260200160405190810160405280929190818152602001828054611f9990614483565b8015611fe65780601f10611fbb57610100808354040283529160200191611fe6565b820191906000526020600020905b815481529060010190602001808311611fc957829003601f168201915b505050505090806003018054611ffb90614483565b80601f016020809104026020016040519081016040528092919081815260200182805461202790614483565b80156120745780601f1061204957610100808354040283529160200191612074565b820191906000526020600020905b81548152906001019060200180831161205757829003601f168201915b5050505050908060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060040160149054906101000a900460ff16908060050180546120c290614483565b80601f01602080910402602001604051908101604052809291908181526020018280546120ee90614483565b801561213b5780601f106121105761010080835404028352916020019161213b565b820191906000526020600020905b81548152906001019060200180831161211e57829003601f168201915b5050505050905087565b61214d612373565b80600f908051906020019061216392919061319d565b5050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612203612373565b80601060146101000a81548160ff02191690831515021790555050565b612228612373565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612298576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228f906140b8565b60405180910390fd5b6122a18161289f565b50565b6122ac612373565b80601060166101000a81548160ff02191690831515021790555050565b6122d1612373565b80600b8190555050565b50505050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061233c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061236c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61237b612e11565b73ffffffffffffffffffffffffffffffffffffffff16612399611911565b73ffffffffffffffffffffffffffffffffffffffff16146123ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e6906140f8565b60405180910390fd5b565b6000816123fc6125d3565b1115801561240b575060015482105b8015612449575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b6000601060169054906101000a900460ff16905090565b60006124728261157b565b90508073ffffffffffffffffffffffffffffffffffffffff166124936126d1565b73ffffffffffffffffffffffffffffffffffffffff16146124f6576124bf816124ba6126d1565b612167565b6124f5576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600154905090565b6125cf828260405180602001604052806000815250612e19565b5050565b60006001905090565b600080829050806125eb6125d3565b11612673576001548110156126725760006005600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612670575b600081141561266657600560008360019003935083815260200190815260200160002054905061263b565b80925050506126a5565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b60001515612729612450565b151514806127635750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b6127a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612799906140d8565b60405180910390fd5b6127ae848484846122db565b50505050565b60008060e883901c905060e86127cb868684612eb7565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6060600e805461281c90614483565b80601f016020809104026020016040519081016040528092919081815260200182805461284890614483565b80156128955780601f1061286a57610100808354040283529160200191612895565b820191906000526020600020905b81548152906001019060200180831161287857829003601f168201915b5050505050905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61296b613223565b6129876005600084815260200190815260200160002054612ec0565b9050919050565b806008600061299b6126d1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612a486126d1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a8d9190613f4c565b60405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612abf6126d1565b8786866040518563ffffffff1660e01b8152600401612ae19493929190613ede565b602060405180830381600087803b158015612afb57600080fd5b505af1925050508015612b2c57506040513d601f19601f82011682018060405250810190612b299190613665565b60015b612ba6573d8060008114612b5c576040519150601f19603f3d011682016040523d82523d6000602084013e612b61565b606091505b50600081511415612b9e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082511415612c1c57604051806020016040528060008152509050612d6d565b60006040518060600160405280604081526020016149cd6040913990506000600360028551612c4b91906142b6565b612c55919061430c565b6004612c61919061433d565b90506000602082612c7291906142b6565b67ffffffffffffffff811115612c8b57612c8a6145eb565b5b6040519080825280601f01601f191660200182016040528015612cbd5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b81831015612d2c576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825360018201915050612cd1565b600389510660018114612d465760028114612d5657612d61565b613d3d60f01b6002830352612d61565b603d60f81b60018303525b50505050508093505050505b919050565b6060612d7d826123f1565b612db3576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612dbd61280d565b9050600081511415612dde5760405180602001604052806000815250612e09565b80612de884612f76565b604051602001612df9929190613d4f565b6040516020818303038152906040525b915050919050565b600033905090565b612e238383612fcf565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612eb25760006001549050600083820390505b612e646000868380600101945086612a99565b612e9a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612e51578160015414612eaf57600080fd5b50505b505050565b60009392505050565b612ec8613223565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b606060a060405101806040526020810391506000825281835b600115612fba57600184039350600a81066030018453600a8104905080612fb557612fba565b612f8f565b50828103602084039350808452505050919050565b600060015490506000821415613011576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61301e600084838561271d565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506130958361308660008660006127b4565b61308f8561318d565b176127dc565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461313657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506130fb565b506000821415613172576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060018190555050506131886000848385612807565b505050565b60006001821460e11b9050919050565b8280546131a990614483565b90600052602060002090601f0160209004810192826131cb5760008555613212565b82601f106131e457805160ff1916838001178555613212565b82800160010185558215613212579182015b828111156132115782518255916020019190600101906131f6565b5b50905061321f9190613272565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b8082111561328b576000816000905550600101613273565b5090565b60006132a261329d846141b8565b614193565b9050828152602081018484840111156132be576132bd61461f565b5b6132c9848285614441565b509392505050565b60006132e46132df846141e9565b614193565b905082815260208101848484011115613300576132ff61461f565b5b61330b848285614441565b509392505050565b6000613326613321846141e9565b614193565b9050828152602081018484840111156133425761334161461f565b5b61334d848285614450565b509392505050565b60008135905061336481614970565b92915050565b60008135905061337981614987565b92915050565b60008135905061338e8161499e565b92915050565b6000815190506133a38161499e565b92915050565b600082601f8301126133be576133bd61461a565b5b81356133ce84826020860161328f565b91505092915050565b600082601f8301126133ec576133eb61461a565b5b81356133fc8482602086016132d1565b91505092915050565b600082601f83011261341a5761341961461a565b5b815161342a848260208601613313565b91505092915050565b600081359050613442816149b5565b92915050565b60006020828403121561345e5761345d614629565b5b600061346c84828501613355565b91505092915050565b6000806040838503121561348c5761348b614629565b5b600061349a85828601613355565b92505060206134ab85828601613355565b9150509250929050565b6000806000606084860312156134ce576134cd614629565b5b60006134dc86828701613355565b93505060206134ed86828701613355565b92505060406134fe86828701613433565b9150509250925092565b6000806000806080858703121561352257613521614629565b5b600061353087828801613355565b945050602061354187828801613355565b935050604061355287828801613433565b925050606085013567ffffffffffffffff81111561357357613572614624565b5b61357f878288016133a9565b91505092959194509250565b600080604083850312156135a2576135a1614629565b5b60006135b085828601613355565b92505060206135c18582860161336a565b9150509250929050565b600080604083850312156135e2576135e1614629565b5b60006135f085828601613355565b925050602061360185828601613433565b9150509250929050565b60006020828403121561362157613620614629565b5b600061362f8482850161336a565b91505092915050565b60006020828403121561364e5761364d614629565b5b600061365c8482850161337f565b91505092915050565b60006020828403121561367b5761367a614629565b5b600061368984828501613394565b91505092915050565b6000602082840312156136a8576136a7614629565b5b600082013567ffffffffffffffff8111156136c6576136c5614624565b5b6136d2848285016133d7565b91505092915050565b6000602082840312156136f1576136f0614629565b5b600082015167ffffffffffffffff81111561370f5761370e614624565b5b61371b84828501613405565b91505092915050565b60006020828403121561373a57613739614629565b5b600061374884828501613433565b91505092915050565b6000806040838503121561376857613767614629565b5b600061377685828601613433565b925050602061378785828601613355565b9150509250929050565b600080600080600080600080610100898b0312156137b2576137b1614629565b5b60006137c08b828c01613433565b985050602089013567ffffffffffffffff8111156137e1576137e0614624565b5b6137ed8b828c016133d7565b975050604089013567ffffffffffffffff81111561380e5761380d614624565b5b61381a8b828c016133d7565b965050606089013567ffffffffffffffff81111561383b5761383a614624565b5b6138478b828c016133d7565b955050608089013567ffffffffffffffff81111561386857613867614624565b5b6138748b828c016133d7565b94505060a06138858b828c01613355565b93505060c06138968b828c0161336a565b92505060e089013567ffffffffffffffff8111156138b7576138b6614624565b5b6138c38b828c016133d7565b9150509295985092959890939650565b60006138df8383613d31565b60208301905092915050565b6138f481614397565b82525050565b60006139058261423f565b61390f818561426d565b935061391a8361421a565b8060005b8381101561394b57815161393288826138d3565b975061393d83614260565b92505060018101905061391e565b5085935050505092915050565b613961816143a9565b82525050565b60006139728261424a565b61397c818561427e565b935061398c818560208601614450565b6139958161462e565b840191505092915050565b6139a98161440b565b82525050565b60006139ba82614255565b6139c4818561429a565b93506139d4818560208601614450565b6139dd8161462e565b840191505092915050565b60006139f382614255565b6139fd81856142ab565b9350613a0d818560208601614450565b80840191505092915050565b60008154613a2681614483565b613a3081866142ab565b94506001821660008114613a4b5760018114613a5c57613a8f565b60ff19831686528186019350613a8f565b613a658561422a565b60005b83811015613a8757815481890152600182019150602081019050613a68565b838801955050505b50505092915050565b6000613aa560158361429a565b9150613ab08261463f565b602082019050919050565b6000613ac86009836142ab565b9150613ad382614668565b600982019050919050565b6000613aeb601f8361429a565b9150613af682614691565b602082019050919050565b6000613b0e601f8361429a565b9150613b19826146ba565b602082019050919050565b6000613b31600f836142ab565b9150613b3c826146e3565b600f82019050919050565b6000613b5460268361429a565b9150613b5f8261470c565b604082019050919050565b6000613b776002836142ab565b9150613b828261475b565b600282019050919050565b6000613b9a6003836142ab565b9150613ba582614784565b600382019050919050565b6000613bbd6001836142ab565b9150613bc8826147ad565b600182019050919050565b6000613be060168361429a565b9150613beb826147d6565b602082019050919050565b6000613c0360208361429a565b9150613c0e826147ff565b602082019050919050565b6000613c2660168361429a565b9150613c3182614828565b602082019050919050565b6000613c496012836142ab565b9150613c5482614851565b601282019050919050565b6000613c6c601d836142ab565b9150613c778261487a565b601d82019050919050565b6000613c8f60168361429a565b9150613c9a826148a3565b602082019050919050565b6000613cb260008361428f565b9150613cbd826148cc565b600082019050919050565b6000613cd560128361429a565b9150613ce0826148cf565b602082019050919050565b6000613cf8600a836142ab565b9150613d03826148f8565b600a82019050919050565b6000613d1b602c836142ab565b9150613d2682614921565b602c82019050919050565b613d3a81614401565b82525050565b613d4981614401565b82525050565b6000613d5b82856139e8565b9150613d6782846139e8565b91508190509392505050565b6000613d7f82856139e8565b9150613d8b8284613a19565b91508190509392505050565b6000613da282613abb565b9150613dae8289613a19565b9150613db982613b6a565b9150613dc482613b24565b9150613dd08288613a19565b9150613ddb82613b6a565b9150613de682613ceb565b9150613df282876139e8565b9150613dfe8286613a19565b9150613e0982613b6a565b9150613e1582856139e8565b9150613e2082613d0e565b9150613e2c8284613a19565b9150613e3782613b8d565b9150613e4282613bb0565b9150819050979650505050505050565b6000613e5d82613c3c565b9150613e6982856139e8565b9150613e758284613a19565b9150613e8082613b6a565b91508190509392505050565b6000613e9782613c5f565b9150613ea382846139e8565b915081905092915050565b6000613eb982613ca5565b9150819050919050565b6000602082019050613ed860008301846138eb565b92915050565b6000608082019050613ef360008301876138eb565b613f0060208301866138eb565b613f0d6040830185613d40565b8181036060830152613f1f8184613967565b905095945050505050565b60006020820190508181036000830152613f4481846138fa565b905092915050565b6000602082019050613f616000830184613958565b92915050565b60006020820190508181036000830152613f818184613967565b905092915050565b6000602082019050613f9e60008301846139a0565b92915050565b60006020820190508181036000830152613fbe81846139af565b905092915050565b600060e0820190508181036000830152613fe0818a6139af565b90508181036020830152613ff481896139af565b9050818103604083015261400881886139af565b9050818103606083015261401c81876139af565b905061402b60808301866138eb565b61403860a0830185613958565b81810360c083015261404a81846139af565b905098975050505050505050565b6000602082019050818103600083015261407181613a98565b9050919050565b6000602082019050818103600083015261409181613ade565b9050919050565b600060208201905081810360008301526140b181613b01565b9050919050565b600060208201905081810360008301526140d181613b47565b9050919050565b600060208201905081810360008301526140f181613bd3565b9050919050565b6000602082019050818103600083015261411181613bf6565b9050919050565b6000602082019050818103600083015261413181613c19565b9050919050565b6000602082019050818103600083015261415181613c82565b9050919050565b6000602082019050818103600083015261417181613cc8565b9050919050565b600060208201905061418d6000830184613d40565b92915050565b600061419d6141ae565b90506141a982826144b5565b919050565b6000604051905090565b600067ffffffffffffffff8211156141d3576141d26145eb565b5b6141dc8261462e565b9050602081019050919050565b600067ffffffffffffffff821115614204576142036145eb565b5b61420d8261462e565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006142c182614401565b91506142cc83614401565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143015761430061452f565b5b828201905092915050565b600061431782614401565b915061432283614401565b9250826143325761433161455e565b5b828204905092915050565b600061434882614401565b915061435383614401565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561438c5761438b61452f565b5b828202905092915050565b60006143a2826143e1565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006144168261441d565b9050919050565b60006144288261442f565b9050919050565b600061443a826143e1565b9050919050565b82818337600083830152505050565b60005b8381101561446e578082015181840152602081019050614453565b8381111561447d576000848401525b50505050565b6000600282049050600182168061449b57607f821691505b602082108114156144af576144ae61458d565b5b50919050565b6144be8261462e565b810181811067ffffffffffffffff821117156144dd576144dc6145eb565b5b80604052505050565b60006144f182614401565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156145245761452361452f565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f617070726f76652069732070726f686962697465640000000000000000000000600082015250565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b7f736574417070726f76616c466f72416c6c2069732070726f6869626974656400600082015250565b7f226465736372697074696f6e223a220000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f222c000000000000000000000000000000000000000000000000000000000000600082015250565b7f227d5d0000000000000000000000000000000000000000000000000000000000600082015250565b7f7d00000000000000000000000000000000000000000000000000000000000000600082015250565b7f7472616e736665722069732070726f6869626974656400000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f74686520636f6e74726163742069732070617573656400000000000000000000600082015250565b7f22616e696d6174696f6e5f75726c223a20220000000000000000000000000000600082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b7f596f7520616c7265616479206861766520612053425400000000000000000000600082015250565b50565b7f696e73756666696369656e742066756e64730000000000000000000000000000600082015250565b7f22696d616765223a202200000000000000000000000000000000000000000000600082015250565b7f2261747472696275746573223a5b7b2274726169745f74797065223a2274797060008201527f65222c2276616c7565223a220000000000000000000000000000000000000000602082015250565b61497981614397565b811461498457600080fd5b50565b614990816143a9565b811461499b57600080fd5b50565b6149a7816143b5565b81146149b257600080fd5b50565b6149be81614401565b81146149c957600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220004d3027730e043e20c858228892ab27734c52837607d6a768e8ba62bce45eee64736f6c63430008070033

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.