ETH Price: $2,618.35 (+1.42%)

Token

aiImaginedFaces On-Chain by Van Arman (AIIF)
 

Overview

Max Total Supply

100 AIIF

Holders

83

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
claudiodigital.eth
Balance
1 AIIF
0x37ba996dd7eb738af38af7839a17ad19cad5f155
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
AiImaginedFacesOnChain

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : AiImaginedFacesOnChain.sol
// SPDX-License-Identifier: MIT
// 
//
//    Pindar Van Arman's
//      ___    ____   ____                      _                __   ______                    
//     /   |  /  _/  /  _/___ ___  ____ _____ _(_)___  ___  ____/ /  / ____/___ _________  _____
//    / /| |  / /    / // __ `__ \/ __ `/ __ `/ / __ \/ _ \/ __  /  / /_  / __ `/ ___/ _ \/ ___/
//   / ___ |_/ /   _/ // / / / / / /_/ / /_/ / / / / /  __/ /_/ /  / __/ / /_/ / /__/  __(__  ) 
//  /_/  |_/___/  /___/_/ /_/ /_/\__,_/\__, /_/_/ /_/\___/\__,_/  /_/    \__,_/\___/\___/____/       
//                                    /____/                                                  
//   100 AI Imagined Faces
//   100% On-Chain
//
//   Version 1.1
//   with special thanks to bitquence and brougkr

pragma solidity >=0.8.9 <0.9.0;

import 'erc721a/contracts/ERC721A.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import "./Base64.sol";
import "./LiveMintEnabled.sol"; //BM Modification
import "./InflateLib.sol"; //bitquence Modification

contract AiImaginedFacesOnChain is ERC721A, Ownable, ReentrancyGuard, LiveMintEnabled { //BM Modification

  using Strings for uint256;

  uint256 public cost;
  uint256 public maxSupply;
  uint256 public maxMintAmountPerTx;

  bool public paused = true;

  address public ownerAddress;
  address public theAdminAddress;
  string public collectionDescription = "AI Imagined Faces On-Chain";
 
  string public constant image_header = "<svg id='aiface' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024' width='1024' height='1024'><rect width='1024' height='1024'/>";
  string public constant image_footer = "<style> #aiface{}.bota { animation: 3.0s bota infinite alternate ease-in-out; } @keyframes bota { from { opacity: 0.75; } to { opacity: 0.1; }} #aiface2{}.mida { animation: 2.0s mida infinite alternate ease-in-out; } @keyframes mida { from { opacity: 0.75; } to { opacity: 0.1; }} #aiface3{}.topa { animation: 1.5s topa infinite alternate ease-in-out; } @keyframes topa { from { opacity: 0.75; } to { opacity: 0.1; }} #aiface4{}.bota2 { animation: 2.0s bota2 infinite alternate ease-in-out; } @keyframes bota2 { from { opacity: 0.1; } to { opacity: 0.75; }} #aiface5{}.mida2 { animation: 1.5s mida2 infinite alternate ease-in-out; } @keyframes mida2 { from { opacity: 0.1; } to { opacity: 0.75; }} #aiface6{}.topa2 { animation: 1.0s topa2 infinite alternate ease-in-out; } @keyframes topa2 { from { opacity: 0.1; } to { opacity: 0.75; }} </style> </svg>";

  struct tokenData {    
        string name;
        bytes image_content;
        uint origsize;
        string trait;
        bool updated;
  }

  mapping (uint256 => tokenData) tokens;

  constructor(
    string memory _tokenName,
    string memory _tokenSymbol,
    uint256 _cost,
    uint256 _maxSupply,
    uint256 _maxMintAmountPerTx
    ) ERC721A(_tokenName, _tokenSymbol) {
    setCost(_cost);
    maxSupply = _maxSupply;
    setMaxMintAmountPerTx(_maxMintAmountPerTx);
  }

function aiImaginedFace(uint _tokenId) public view returns (string memory) {
      return string(abi.encodePacked(
              'data:image/svg+xml;base64,', Base64.encode(bytes(abi.encodePacked(
                            image_header,
                            InflateLib.puff(tokens[_tokenId].image_content, tokens[_tokenId].origsize),
                            image_footer
                          ))))); 
  }   

function aiImaginedFaces(uint _tokenId) public view returns (string memory) {
      return string(abi.encodePacked(
              'data:image/svg+xml;base64,', Base64.encode(bytes(abi.encodePacked(
                            image_header,
                            "<g>",
                            buildColumn(_tokenId+3,"</g><g transform='translate(0 "),
                            buildColumn(_tokenId,"</g><g transform='translate(341.333 "),
                            buildColumn(_tokenId+6,"</g><g transform='translate(682.666 "),
                            "</g>",
                            image_footer
                          ))))); 
  }   

  function buildColumn(uint256 _tokenId, string memory _xystring) public view returns(string memory) {
          return string(abi.encodePacked(
            _xystring,
            "0) scale(0.3333 0.3333)'>",
            InflateLib.puff(tokens[_tokenId+1].image_content, tokens[_tokenId+1].origsize),
            _xystring,
            "341.333) scale(0.3333 0.3333)'>",
             InflateLib.puff(tokens[_tokenId].image_content, tokens[_tokenId].origsize),
            _xystring,
            "642.666) scale(0.3333 0.3333)'>",
            InflateLib.puff(tokens[_tokenId+2].image_content, tokens[_tokenId+2].origsize)
          ));
  }

  function aiImaginedFaceText(uint _tokenId) public view returns (string memory) {
      return string(abi.encodePacked(
                            image_header,
                            InflateLib.puff(tokens[_tokenId].image_content,tokens[_tokenId].origsize),
                            image_footer
                          )); 
  }   

  //BM Modifications
  function purchaseTo(address Recipient) override virtual external onlyLiveMint returns (uint tokenID) 
  {
       _safeMint(Recipient, 1);
       return (totalSupply() - 1);
  }

  function ownerMint(uint256 _mintAmount) public onlyOwner {
    require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, 'Invalid mint amount!');
    _safeMint(_msgSender(), _mintAmount);
  }

  function _ChangeLiveMintAddress(address LiveMintAddress) override virtual external onlyOwner 
  { 
    _LIVE_MINT_ADDRESS = LiveMintAddress; 
  }
  //BM Modifications

  modifier requireAdminOrOwner() {
    require(theAdminAddress == msg.sender || ownerAddress == msg.sender,"Requires admin or owner privileges");
    _;
  }

  function setAdminAddress(address _adminAddress) public onlyOwner{
        theAdminAddress = _adminAddress;
  }

  //Set permissions for relayer
  //pass in bytes and orig size
  function setTokenInfo(uint _tokenId, string memory _name, bytes memory _image_content_bytes, uint _origsize, string memory _trait) public requireAdminOrOwner() { 
        //require(_exists(_tokenId),"ERC721Metadata: URI query for nonexistent token");
        tokens[_tokenId].name = _name;
        tokens[_tokenId].trait = _trait;
        tokens[_tokenId].updated = true;
        tokens[_tokenId].origsize = _origsize;
        //bytes uncompressed_image = ???
        //_image_content_string = ???
        tokens[_tokenId].image_content = _image_content_bytes;
  }

  function buildMetadata(uint256 _tokenId) public view returns(string memory) {
            return string(abi.encodePacked(
              'data:application/json;base64,', Base64.encode(bytes(abi.encodePacked(
                          '{"name":"', 
                          tokens[_tokenId].name,
                          '", "description":"', 
                          collectionDescription,
                          '", "attributes":', 
                          tokens[_tokenId].trait,
                          ', "image": "',
                          'data:image/svg+xml;base64,', Base64.encode(bytes(abi.encodePacked( 
                            image_header,
                            InflateLib.puff(tokens[_tokenId].image_content, tokens[_tokenId].origsize),
                            image_footer))),
                          '"}'))))); 
  }

  function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
      require(_exists(_tokenId),"ERC721Metadata: URI query for nonexistent token");
      return buildMetadata(_tokenId);
  } 

  modifier mintCompliance(uint256 _mintAmount) {
    require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, 'Invalid mint amount!');
    require(totalSupply() + _mintAmount <= maxSupply, 'Max supply exceeded!');
    _;
  }

  modifier mintPriceCompliance(uint256 _mintAmount) {
    require(msg.value >= cost * _mintAmount, 'Insufficient funds!');
    _;
  }

  function walletOfOwner(address _owner) public view returns (uint256[] memory) {
    uint256 ownerTokenCount = balanceOf(_owner);
    uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
    uint256 currentTokenId = _startTokenId();
    uint256 ownedTokenIndex = 0;
    address latestOwnerAddress;
    while (ownedTokenIndex < ownerTokenCount && currentTokenId < _currentIndex) {
      TokenOwnership memory ownership = _ownerships[currentTokenId];
      if (!ownership.burned) {
        if (ownership.addr != address(0)) {
          latestOwnerAddress = ownership.addr;
        }
        if (latestOwnerAddress == _owner) {
          ownedTokenIds[ownedTokenIndex] = currentTokenId;
          ownedTokenIndex++;
        }
      }
      currentTokenId++;
    }
    return ownedTokenIds;
  }

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

  function setCost(uint256 _cost) public onlyOwner {
    cost = _cost;
  }

  function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner {
    maxMintAmountPerTx = _maxMintAmountPerTx;
  }

  function setPaused(bool _state) public onlyOwner {
    paused = _state;
  }

  function withdraw() public onlyOwner nonReentrant {
    
    // =============================================================================
    (bool os, ) = payable(owner()).call{value: address(this).balance}('');
    require(os);
    // =============================================================================
  }

}

File 2 of 16 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _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 _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

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

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

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

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

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

    /**
     * Sets the auxillary 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 {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

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

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

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

    /**
     * @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.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // 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 {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

    /**
     * @dev This is 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 {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

        // 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 {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

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

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

    /**
     * @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 {}
}

File 3 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

File 4 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 of 16 : Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides a function for encoding some bytes in base64
library Base64 {
    string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';
        
        // load the table into memory
        string memory table = TABLE;

        // 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) {}
            {
               dataPtr := add(dataPtr, 3)
               
               // read 3 bytes
               let input := mload(dataPtr)
               
               // write 4 characters
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, 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;
    }
}

File 7 of 16 : LiveMintEnabled.sol
//SPDX-License-Identifier: MIT
/**
 * @title LiveMintEnabled
 * @dev @brougkr
 * note: This Contract Is Used To Enable LiveMint To Purchase Tokens From Your Contract
 * note: This Contract Should Be Imported and Included In The `is` Portion Of The Contract Declaration, ex. `contract NFT is Ownable, LiveMintEnabled`
 * note: You Can Copy Or Modify The Example Functions Below To Implement The Two Functions In Your Contract
 */
pragma solidity >=0.8.9 <0.9.0; //was 0.8.17
abstract contract LiveMintEnabled
{
    /**
     * @dev LiveMint purchaseTo
     * note: Should Be Implemented With onlyLiveMint Access Modifier
     * note: Should Return The TokenID Being Transferred To The Recipient
     */
    function purchaseTo(address Recipient) external virtual returns (uint tokenID);

    // purchaseTo() EXAMPLE: 
    // Here Is An Example Of The Function Implemented In An Standard ERC721 Contract (you can copy paste the function below into your contract)
    // function purchaseTo(address Recipient) override virtual external onlyLiveMint returns (uint tokenID) 
    // {
    //     _mint(Recipient, 1);
    //     return (totalSupply() - 1);
    // }

    /**
     * @dev ChangeLiveMintAddress Changes The LiveMint Address | note: Should Be Implemented To Include onlyOwner Or Similar Access Modifier
     */
    function _ChangeLiveMintAddress(address LiveMintAddress) external virtual;

    // _ChangeLiveMintAddress EXAMPLE: 
    // Here Is An Example Of The Function Implemented In An Standard ERC721 Contract (you can copy paste the function below into your contract)
    // function _ChangeLiveMintAddress(address LiveMintAddress) override virtual external onlyOwner { _LIVE_MINT_ADDRESS = LiveMintAddress; }

    /**
     * @dev LiveMint Address
     */
    //address _LIVE_MINT_ADDRESS = 0x30AaDE58f58bA10794d2d0786C7aCa2cfd137207; // GOERLI
    address _LIVE_MINT_ADDRESS = 0x158E81d47C0199132a4D70940AEdBA5566551bd4; // MAINNET

    /**
     * @dev Access Modifier For LiveMint
     */
    modifier onlyLiveMint
    {
        require(msg.sender == _LIVE_MINT_ADDRESS, "onlyLiveMint: msg.sender Is Not The LiveMint Contract");
        _;
    }
}

File 8 of 16 : InflateLib.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.8.0 <0.9.0;

/// @notice Based on https://github.com/madler/zlib/blob/master/contrib/puff
library InflateLib {
    // Maximum bits in a code
    uint256 constant MAXBITS = 15;
    // Maximum number of literal/length codes
    uint256 constant MAXLCODES = 286;
    // Maximum number of distance codes
    uint256 constant MAXDCODES = 30;
    // Maximum codes lengths to read
    uint256 constant MAXCODES = (MAXLCODES + MAXDCODES);
    // Number of fixed literal/length codes
    uint256 constant FIXLCODES = 288;

    // Error codes
    enum ErrorCode {
        ERR_NONE, // 0 successful inflate
        ERR_NOT_TERMINATED, // 1 available inflate data did not terminate
        ERR_OUTPUT_EXHAUSTED, // 2 output space exhausted before completing inflate
        ERR_INVALID_BLOCK_TYPE, // 3 invalid block type (type == 3)
        ERR_STORED_LENGTH_NO_MATCH, // 4 stored block length did not match one's complement
        ERR_TOO_MANY_LENGTH_OR_DISTANCE_CODES, // 5 dynamic block code description: too many length or distance codes
        ERR_CODE_LENGTHS_CODES_INCOMPLETE, // 6 dynamic block code description: code lengths codes incomplete
        ERR_REPEAT_NO_FIRST_LENGTH, // 7 dynamic block code description: repeat lengths with no first length
        ERR_REPEAT_MORE, // 8 dynamic block code description: repeat more than specified lengths
        ERR_INVALID_LITERAL_LENGTH_CODE_LENGTHS, // 9 dynamic block code description: invalid literal/length code lengths
        ERR_INVALID_DISTANCE_CODE_LENGTHS, // 10 dynamic block code description: invalid distance code lengths
        ERR_MISSING_END_OF_BLOCK, // 11 dynamic block code description: missing end-of-block code
        ERR_INVALID_LENGTH_OR_DISTANCE_CODE, // 12 invalid literal/length or distance code in fixed or dynamic block
        ERR_DISTANCE_TOO_FAR, // 13 distance is too far back in fixed or dynamic block
        ERR_CONSTRUCT // 14 internal: error in construct()
    }

    // Input and output state
    struct State {
        //////////////////
        // Output state //
        //////////////////
        // Output buffer
        bytes output;
        // Bytes written to out so far
        uint256 outcnt;
        /////////////////
        // Input state //
        /////////////////
        // Input buffer
        bytes input;
        // Bytes read so far
        uint256 incnt;
        ////////////////
        // Temp state //
        ////////////////
        // Bit buffer
        uint256 bitbuf;
        // Number of bits in bit buffer
        uint256 bitcnt;
        //////////////////////////
        // Static Huffman codes //
        //////////////////////////
        Huffman lencode;
        Huffman distcode;
    }

    // Huffman code decoding tables
    struct Huffman {
        uint256[] counts;
        uint256[] symbols;
    }

    function bits(State memory s, uint256 need)
        private
        pure
        returns (ErrorCode, uint256)
    {
        // Bit accumulator (can use up to 20 bits)
        uint256 val;

        // Load at least need bits into val
        val = s.bitbuf;
        while (s.bitcnt < need) {
            if (s.incnt == s.input.length) {
                // Out of input
                return (ErrorCode.ERR_NOT_TERMINATED, 0);
            }

            // Load eight bits
            val |= uint256(uint8(s.input[s.incnt++])) << s.bitcnt;
            s.bitcnt += 8;
        }

        // Drop need bits and update buffer, always zero to seven bits left
        s.bitbuf = val >> need;
        s.bitcnt -= need;

        // Return need bits, zeroing the bits above that
        uint256 ret = (val & ((1 << need) - 1));
        return (ErrorCode.ERR_NONE, ret);
    }

    function _stored(State memory s) private pure returns (ErrorCode) {
        // Length of stored block
        uint256 len;

        // Discard leftover bits from current byte (assumes s.bitcnt < 8)
        s.bitbuf = 0;
        s.bitcnt = 0;

        // Get length and check against its one's complement
        if (s.incnt + 4 > s.input.length) {
            // Not enough input
            return ErrorCode.ERR_NOT_TERMINATED;
        }
        len = uint256(uint8(s.input[s.incnt++]));
        len |= uint256(uint8(s.input[s.incnt++])) << 8;

        if (
            uint8(s.input[s.incnt++]) != (~len & 0xFF) ||
            uint8(s.input[s.incnt++]) != ((~len >> 8) & 0xFF)
        ) {
            // Didn't match complement!
            return ErrorCode.ERR_STORED_LENGTH_NO_MATCH;
        }

        // Copy len bytes from in to out
        if (s.incnt + len > s.input.length) {
            // Not enough input
            return ErrorCode.ERR_NOT_TERMINATED;
        }
        if (s.outcnt + len > s.output.length) {
            // Not enough output space
            return ErrorCode.ERR_OUTPUT_EXHAUSTED;
        }
        while (len != 0) {
            // Note: Solidity reverts on underflow, so we decrement here
            len -= 1;
            s.output[s.outcnt++] = s.input[s.incnt++];
        }

        // Done with a valid stored block
        return ErrorCode.ERR_NONE;
    }

    function _decode(State memory s, Huffman memory h)
        private
        pure
        returns (ErrorCode, uint256)
    {
        // Current number of bits in code
        uint256 len;
        // Len bits being decoded
        uint256 code = 0;
        // First code of length len
        uint256 first = 0;
        // Number of codes of length len
        uint256 count;
        // Index of first code of length len in symbol table
        uint256 index = 0;
        // Error code
        ErrorCode err;

        for (len = 1; len <= MAXBITS; len++) {
            // Get next bit
            uint256 tempCode;
            (err, tempCode) = bits(s, 1);
            if (err != ErrorCode.ERR_NONE) {
                return (err, 0);
            }
            code |= tempCode;
            count = h.counts[len];

            // If length len, return symbol
            if (code < first + count) {
                return (ErrorCode.ERR_NONE, h.symbols[index + (code - first)]);
            }
            // Else update for next length
            index += count;
            first += count;
            first <<= 1;
            code <<= 1;
        }

        // Ran out of codes
        return (ErrorCode.ERR_INVALID_LENGTH_OR_DISTANCE_CODE, 0);
    }

    function _construct(
        Huffman memory h,
        uint256[] memory lengths,
        uint256 n,
        uint256 start
    ) private pure returns (ErrorCode) {
        // Current symbol when stepping through lengths[]
        uint256 symbol;
        // Current length when stepping through h.counts[]
        uint256 len;
        // Number of possible codes left of current length
        uint256 left;
        // Offsets in symbol table for each length
        uint256[MAXBITS + 1] memory offs;

        // Count number of codes of each length
        for (len = 0; len <= MAXBITS; len++) {
            h.counts[len] = 0;
        }
        for (symbol = 0; symbol < n; symbol++) {
            // Assumes lengths are within bounds
            h.counts[lengths[start + symbol]]++;
        }
        // No codes!
        if (h.counts[0] == n) {
            // Complete, but decode() will fail
            return (ErrorCode.ERR_NONE);
        }

        // Check for an over-subscribed or incomplete set of lengths

        // One possible code of zero length
        left = 1;

        for (len = 1; len <= MAXBITS; len++) {
            // One more bit, double codes left
            left <<= 1;
            if (left < h.counts[len]) {
                // Over-subscribed--return error
                return ErrorCode.ERR_CONSTRUCT;
            }
            // Deduct count from possible codes

            left -= h.counts[len];
        }

        // Generate offsets into symbol table for each length for sorting
        offs[1] = 0;
        for (len = 1; len < MAXBITS; len++) {
            offs[len + 1] = offs[len] + h.counts[len];
        }

        // Put symbols in table sorted by length, by symbol order within each length
        for (symbol = 0; symbol < n; symbol++) {
            if (lengths[start + symbol] != 0) {
                h.symbols[offs[lengths[start + symbol]]++] = symbol;
            }
        }

        // Left > 0 means incomplete
        return left > 0 ? ErrorCode.ERR_CONSTRUCT : ErrorCode.ERR_NONE;
    }

    function _codes(
        State memory s,
        Huffman memory lencode,
        Huffman memory distcode
    ) private pure returns (ErrorCode) {
        // Decoded symbol
        uint256 symbol;
        // Length for copy
        uint256 len;
        // Distance for copy
        uint256 dist;
        // TODO Solidity doesn't support constant arrays, but these are fixed at compile-time
        // Size base for length codes 257..285
        uint16[29] memory lens =
            [
                3,
                4,
                5,
                6,
                7,
                8,
                9,
                10,
                11,
                13,
                15,
                17,
                19,
                23,
                27,
                31,
                35,
                43,
                51,
                59,
                67,
                83,
                99,
                115,
                131,
                163,
                195,
                227,
                258
            ];
        // Extra bits for length codes 257..285
        uint8[29] memory lext =
            [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                1,
                1,
                1,
                1,
                2,
                2,
                2,
                2,
                3,
                3,
                3,
                3,
                4,
                4,
                4,
                4,
                5,
                5,
                5,
                5,
                0
            ];
        // Offset base for distance codes 0..29
        uint16[30] memory dists =
            [
                1,
                2,
                3,
                4,
                5,
                7,
                9,
                13,
                17,
                25,
                33,
                49,
                65,
                97,
                129,
                193,
                257,
                385,
                513,
                769,
                1025,
                1537,
                2049,
                3073,
                4097,
                6145,
                8193,
                12289,
                16385,
                24577
            ];
        // Extra bits for distance codes 0..29
        uint8[30] memory dext =
            [
                0,
                0,
                0,
                0,
                1,
                1,
                2,
                2,
                3,
                3,
                4,
                4,
                5,
                5,
                6,
                6,
                7,
                7,
                8,
                8,
                9,
                9,
                10,
                10,
                11,
                11,
                12,
                12,
                13,
                13
            ];
        // Error code
        ErrorCode err;

        // Decode literals and length/distance pairs
        while (symbol != 256) {
            (err, symbol) = _decode(s, lencode);
            if (err != ErrorCode.ERR_NONE) {
                // Invalid symbol
                return err;
            }

            if (symbol < 256) {
                // Literal: symbol is the byte
                // Write out the literal
                if (s.outcnt == s.output.length) {
                    return ErrorCode.ERR_OUTPUT_EXHAUSTED;
                }
                s.output[s.outcnt] = bytes1(uint8(symbol));
                s.outcnt++;
            } else if (symbol > 256) {
                uint256 tempBits;
                // Length
                // Get and compute length
                symbol -= 257;
                if (symbol >= 29) {
                    // Invalid fixed code
                    return ErrorCode.ERR_INVALID_LENGTH_OR_DISTANCE_CODE;
                }

                (err, tempBits) = bits(s, lext[symbol]);
                if (err != ErrorCode.ERR_NONE) {
                    return err;
                }
                len = lens[symbol] + tempBits;

                // Get and check distance
                (err, symbol) = _decode(s, distcode);
                if (err != ErrorCode.ERR_NONE) {
                    // Invalid symbol
                    return err;
                }
                (err, tempBits) = bits(s, dext[symbol]);
                if (err != ErrorCode.ERR_NONE) {
                    return err;
                }
                dist = dists[symbol] + tempBits;
                if (dist > s.outcnt) {
                    // Distance too far back
                    return ErrorCode.ERR_DISTANCE_TOO_FAR;
                }

                // Copy length bytes from distance bytes back
                if (s.outcnt + len > s.output.length) {
                    return ErrorCode.ERR_OUTPUT_EXHAUSTED;
                }
                while (len != 0) {
                    // Note: Solidity reverts on underflow, so we decrement here
                    len -= 1;
                    s.output[s.outcnt] = s.output[s.outcnt - dist];
                    s.outcnt++;
                }
            } else {
                s.outcnt += len;
            }
        }

        // Done with a valid fixed or dynamic block
        return ErrorCode.ERR_NONE;
    }

    function _build_fixed(State memory s) private pure returns (ErrorCode) {
        // Build fixed Huffman tables
        // TODO this is all a compile-time constant
        uint256 symbol;
        uint256[] memory lengths = new uint256[](FIXLCODES);

        // Literal/length table
        for (symbol = 0; symbol < 144; symbol++) {
            lengths[symbol] = 8;
        }
        for (; symbol < 256; symbol++) {
            lengths[symbol] = 9;
        }
        for (; symbol < 280; symbol++) {
            lengths[symbol] = 7;
        }
        for (; symbol < FIXLCODES; symbol++) {
            lengths[symbol] = 8;
        }

        _construct(s.lencode, lengths, FIXLCODES, 0);

        // Distance table
        for (symbol = 0; symbol < MAXDCODES; symbol++) {
            lengths[symbol] = 5;
        }

        _construct(s.distcode, lengths, MAXDCODES, 0);

        return ErrorCode.ERR_NONE;
    }

    function _fixed(State memory s) private pure returns (ErrorCode) {
        // Decode data until end-of-block code
        return _codes(s, s.lencode, s.distcode);
    }

    function _build_dynamic_lengths(State memory s)
        private
        pure
        returns (ErrorCode, uint256[] memory)
    {
        uint256 ncode;
        // Index of lengths[]
        uint256 index;
        // Descriptor code lengths
        uint256[] memory lengths = new uint256[](MAXCODES);
        // Error code
        ErrorCode err;
        // Permutation of code length codes
        uint8[19] memory order =
            [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];

        (err, ncode) = bits(s, 4);
        if (err != ErrorCode.ERR_NONE) {
            return (err, lengths);
        }
        ncode += 4;

        // Read code length code lengths (really), missing lengths are zero
        for (index = 0; index < ncode; index++) {
            (err, lengths[order[index]]) = bits(s, 3);
            if (err != ErrorCode.ERR_NONE) {
                return (err, lengths);
            }
        }
        for (; index < 19; index++) {
            lengths[order[index]] = 0;
        }

        return (ErrorCode.ERR_NONE, lengths);
    }

    function _build_dynamic(State memory s)
        private
        pure
        returns (
            ErrorCode,
            Huffman memory,
            Huffman memory
        )
    {
        // Number of lengths in descriptor
        uint256 nlen;
        uint256 ndist;
        // Index of lengths[]
        uint256 index;
        // Error code
        ErrorCode err;
        // Descriptor code lengths
        uint256[] memory lengths = new uint256[](MAXCODES);
        // Length and distance codes
        Huffman memory lencode =
            Huffman(new uint256[](MAXBITS + 1), new uint256[](MAXLCODES));
        Huffman memory distcode =
            Huffman(new uint256[](MAXBITS + 1), new uint256[](MAXDCODES));
        uint256 tempBits;

        // Get number of lengths in each table, check lengths
        (err, nlen) = bits(s, 5);
        if (err != ErrorCode.ERR_NONE) {
            return (err, lencode, distcode);
        }
        nlen += 257;
        (err, ndist) = bits(s, 5);
        if (err != ErrorCode.ERR_NONE) {
            return (err, lencode, distcode);
        }
        ndist += 1;

        if (nlen > MAXLCODES || ndist > MAXDCODES) {
            // Bad counts
            return (
                ErrorCode.ERR_TOO_MANY_LENGTH_OR_DISTANCE_CODES,
                lencode,
                distcode
            );
        }

        (err, lengths) = _build_dynamic_lengths(s);
        if (err != ErrorCode.ERR_NONE) {
            return (err, lencode, distcode);
        }

        // Build huffman table for code lengths codes (use lencode temporarily)
        err = _construct(lencode, lengths, 19, 0);
        if (err != ErrorCode.ERR_NONE) {
            // Require complete code set here
            return (
                ErrorCode.ERR_CODE_LENGTHS_CODES_INCOMPLETE,
                lencode,
                distcode
            );
        }

        // Read length/literal and distance code length tables
        index = 0;
        while (index < nlen + ndist) {
            // Decoded value
            uint256 symbol;
            // Last length to repeat
            uint256 len;

            (err, symbol) = _decode(s, lencode);
            if (err != ErrorCode.ERR_NONE) {
                // Invalid symbol
                return (err, lencode, distcode);
            }

            if (symbol < 16) {
                // Length in 0..15
                lengths[index++] = symbol;
            } else {
                // Repeat instruction
                // Assume repeating zeros
                len = 0;
                if (symbol == 16) {
                    // Repeat last length 3..6 times
                    if (index == 0) {
                        // No last length!
                        return (
                            ErrorCode.ERR_REPEAT_NO_FIRST_LENGTH,
                            lencode,
                            distcode
                        );
                    }
                    // Last length
                    len = lengths[index - 1];
                    (err, tempBits) = bits(s, 2);
                    if (err != ErrorCode.ERR_NONE) {
                        return (err, lencode, distcode);
                    }
                    symbol = 3 + tempBits;
                } else if (symbol == 17) {
                    // Repeat zero 3..10 times
                    (err, tempBits) = bits(s, 3);
                    if (err != ErrorCode.ERR_NONE) {
                        return (err, lencode, distcode);
                    }
                    symbol = 3 + tempBits;
                } else {
                    // == 18, repeat zero 11..138 times
                    (err, tempBits) = bits(s, 7);
                    if (err != ErrorCode.ERR_NONE) {
                        return (err, lencode, distcode);
                    }
                    symbol = 11 + tempBits;
                }

                if (index + symbol > nlen + ndist) {
                    // Too many lengths!
                    return (ErrorCode.ERR_REPEAT_MORE, lencode, distcode);
                }
                while (symbol != 0) {
                    // Note: Solidity reverts on underflow, so we decrement here
                    symbol -= 1;

                    // Repeat last or zero symbol times
                    lengths[index++] = len;
                }
            }
        }

        // Check for end-of-block code -- there better be one!
        if (lengths[256] == 0) {
            return (ErrorCode.ERR_MISSING_END_OF_BLOCK, lencode, distcode);
        }

        // Build huffman table for literal/length codes
        err = _construct(lencode, lengths, nlen, 0);
        if (
            err != ErrorCode.ERR_NONE &&
            (err == ErrorCode.ERR_NOT_TERMINATED ||
                err == ErrorCode.ERR_OUTPUT_EXHAUSTED ||
                nlen != lencode.counts[0] + lencode.counts[1])
        ) {
            // Incomplete code ok only for single length 1 code
            return (
                ErrorCode.ERR_INVALID_LITERAL_LENGTH_CODE_LENGTHS,
                lencode,
                distcode
            );
        }

        // Build huffman table for distance codes
        err = _construct(distcode, lengths, ndist, nlen);
        if (
            err != ErrorCode.ERR_NONE &&
            (err == ErrorCode.ERR_NOT_TERMINATED ||
                err == ErrorCode.ERR_OUTPUT_EXHAUSTED ||
                ndist != distcode.counts[0] + distcode.counts[1])
        ) {
            // Incomplete code ok only for single length 1 code
            return (
                ErrorCode.ERR_INVALID_DISTANCE_CODE_LENGTHS,
                lencode,
                distcode
            );
        }

        return (ErrorCode.ERR_NONE, lencode, distcode);
    }

    function _dynamic(State memory s) private pure returns (ErrorCode) {
        // Length and distance codes
        Huffman memory lencode;
        Huffman memory distcode;
        // Error code
        ErrorCode err;

        (err, lencode, distcode) = _build_dynamic(s);
        if (err != ErrorCode.ERR_NONE) {
            return err;
        }

        // Decode data until end-of-block code
        return _codes(s, lencode, distcode);
    }

    function puff(bytes memory source, uint256 destlen)
        internal
        pure
        returns (bytes memory)
    {
        // Input/output state
        State memory s =
            State(
                new bytes(destlen),
                0,
                source,
                0,
                0,
                0,
                Huffman(new uint256[](MAXBITS + 1), new uint256[](FIXLCODES)),
                Huffman(new uint256[](MAXBITS + 1), new uint256[](MAXDCODES))
            );
        // Temp: last bit
        uint256 last;
        // Temp: block type bit
        uint256 t;
        // Error code
        ErrorCode err;

        // Build fixed Huffman tables
        err = _build_fixed(s);
        if (err != ErrorCode.ERR_NONE) {
            revert();
        }

        // Process blocks until last block or error
        while (last == 0) {
            // One if last block
            (err, last) = bits(s, 1);
            if (err != ErrorCode.ERR_NONE) {
                revert();
            }

            // Block type 0..3
            (err, t) = bits(s, 2);
            if (err != ErrorCode.ERR_NONE) {
                revert();
            }

            err = (
                t == 0
                    ? _stored(s)
                    : (
                        t == 1
                            ? _fixed(s)
                            : (
                                t == 2
                                    ? _dynamic(s)
                                    : ErrorCode.ERR_INVALID_BLOCK_TYPE
                            )
                    )
            );
            // type == 3, invalid

            if (err != ErrorCode.ERR_NONE) {
                // Return with error
                break;
            }
        }

        return (s.output);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 14 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"uint256","name":"_cost","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","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":"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":[{"internalType":"address","name":"LiveMintAddress","type":"address"}],"name":"_ChangeLiveMintAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"aiImaginedFace","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"aiImaginedFaceText","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"aiImaginedFaces","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_xystring","type":"string"}],"name":"buildColumn","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"buildMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionDescription","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":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"image_footer","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"image_header","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"Recipient","type":"address"}],"name":"purchaseTo","outputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_adminAddress","type":"address"}],"name":"setAdminAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"bytes","name":"_image_content_bytes","type":"bytes"},{"internalType":"uint256","name":"_origsize","type":"uint256"},{"internalType":"string","name":"_trait","type":"string"}],"name":"setTokenInfo","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":[],"name":"theAdminAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600a80546001600160a01b03191673158e81d47c0199132a4d70940aedba5566551bd4179055600e805460ff1916600117905560c0604052601a60808190527f414920496d6167696e6564204661636573204f6e2d436861696e00000000000060a090815262000073916010919062000207565b503480156200008157600080fd5b5060405162004efb38038062004efb833981016040819052620000a4916200037a565b845185908590620000bd90600290602085019062000207565b508051620000d390600390602084019062000207565b5050600160005550620000e63362000111565b6001600955620000f68362000163565b600c8290556200010681620001b7565b50505050506200043c565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620001b25760405162461bcd60e51b8152602060048201819052602482015260008051602062004edb83398151915260448201526064015b60405180910390fd5b600b55565b6008546001600160a01b03163314620002025760405162461bcd60e51b8152602060048201819052602482015260008051602062004edb8339815191526044820152606401620001a9565b600d55565b8280546200021590620003ff565b90600052602060002090601f01602090048101928262000239576000855562000284565b82601f106200025457805160ff191683800117855562000284565b8280016001018555821562000284579182015b828111156200028457825182559160200191906001019062000267565b506200029292915062000296565b5090565b5b8082111562000292576000815560010162000297565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002d557600080fd5b81516001600160401b0380821115620002f257620002f2620002ad565b604051601f8301601f19908116603f011681019082821181831017156200031d576200031d620002ad565b816040528381526020925086838588010111156200033a57600080fd5b600091505b838210156200035e57858201830151818301840152908201906200033f565b83821115620003705760008385830101525b9695505050505050565b600080600080600060a086880312156200039357600080fd5b85516001600160401b0380821115620003ab57600080fd5b620003b989838a01620002c3565b96506020880151915080821115620003d057600080fd5b50620003df88828901620002c3565b60408801516060890151608090990151979a919950979695509350505050565b600181811c908216806200041457607f821691505b602082108114156200043657634e487b7160e01b600052602260045260246000fd5b50919050565b614a8f806200044c6000396000f3fe608060405234801561001057600080fd5b50600436106102535760003560e01c806370a0823111610146578063b88d4fde116100c3578063e2c6875c11610087578063e2c6875c146104ed578063e985e9c5146104f5578063edf8770414610531578063f19e75d414610544578063f2fde38b14610557578063ffbc530c1461056a57600080fd5b8063b88d4fde14610498578063c87b56dd146104ab578063d1577656146104be578063d5abeb01146104d1578063de7ad152146104da57600080fd5b80638f84aa091161010a5780638f84aa091461044957806394354fd01461046157806395d89b411461046a578063a22cb46514610472578063b071401b1461048557600080fd5b806370a08231146103f7578063715018a61461040a57806384130d57146104125780638da5cb5b146104255780638e64112c1461043657600080fd5b80632433ab26116101d4578063438b630011610198578063438b63001461039157806344a0d68a146103b15780635c975abb146103c45780636352211e146103d157806368d7a00c146103e457600080fd5b80632433ab2614610348578063278036811461035b5780632c1e816d146103635780633ccfd60b1461037657806342842e0e1461037e57600080fd5b806313faede61161021b57806313faede6146102e857806316c38b3c146102ff57806318160ddd146103125780631bdc6dc21461032257806323b872dd1461033557600080fd5b806301ffc9a71461025857806306fdde031461028057806307b4c24c14610295578063081812fc146102a8578063095ea7b3146102d3575b600080fd5b61026b610266366004613c9d565b610572565b60405190151581526020015b60405180910390f35b6102886105c4565b6040516102779190613d12565b6102886102a3366004613d25565b610656565b6102bb6102b6366004613d25565b610775565b6040516001600160a01b039091168152602001610277565b6102e66102e1366004613d55565b6107b9565b005b6102f1600b5481565b604051908152602001610277565b6102e661030d366004613d8f565b610847565b60015460005403600019016102f1565b610288610330366004613e4c565b61088d565b6102e6610343366004613e92565b610b07565b610288610356366004613d25565b610b12565b610288610c16565b6102e6610371366004613ece565b610c32565b6102e6610c7e565b6102e661038c366004613e92565b610d79565b6103a461039f366004613ece565b610d94565b6040516102779190613ee9565b6102e66103bf366004613d25565b610ed4565b600e5461026b9060ff1681565b6102bb6103df366004613d25565b610f03565b6102886103f2366004613d25565b610f15565b6102f1610405366004613ece565b611016565b6102e6611064565b600f546102bb906001600160a01b031681565b6008546001600160a01b03166102bb565b6102e6610444366004613ece565b61109a565b600e546102bb9061010090046001600160a01b031681565b6102f1600d5481565b6102886110e6565b6102e6610480366004613f2d565b6110f5565b6102e6610493366004613d25565b61118b565b6102e66104a6366004613f60565b6111ba565b6102886104b9366004613d25565b61120b565b6102f16104cc366004613ece565b611283565b6102f1600c5481565b6102e66104e8366004613fc7565b611324565b61028861142e565b61026b610503366004614062565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61028861053f366004613d25565b6114bc565b6102e6610552366004613d25565b6115d4565b6102e6610565366004613ece565b611660565b6102886116f8565b60006001600160e01b031982166380ac58cd60e01b14806105a357506001600160e01b03198216635b5e139f60e01b145b806105be57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546105d39061408c565b80601f01602080910402602001604051908101604052809291908181526020018280546105ff9061408c565b801561064c5780601f106106215761010080835404028352916020019161064c565b820191906000526020600020905b81548152906001019060200180831161062f57829003601f168201915b5050505050905090565b606061074f6040518060c0016040528060898152602001614618608991396106bd6106828560036140dd565b6040518060400160405280601e81526020017f3c2f673e3c67207472616e73666f726d3d277472616e736c617465283020000081525061088d565b6106df856040518060600160405280602481526020016146e16024913961088d565b61070b6106ed8760066140dd565b6040518060600160405280602481526020016145f46024913961088d565b6040518061038001604052806103558152602001614705610355913960405160200161073b9594939291906140f5565b604051602081830303815290604052611717565b60405160200161075f9190614187565b6040516020818303038152906040529050919050565b60006107808261187e565b61079d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006107c482610f03565b9050806001600160a01b0316836001600160a01b031614156107f95760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061081957506108178133610503565b155b15610837576040516367d9dca160e11b815260040160405180910390fd5b6108428383836118b7565b505050565b6008546001600160a01b0316331461087a5760405162461bcd60e51b8152600401610871906141cc565b60405180910390fd5b600e805460ff1916911515919091179055565b606081610964601160006108a28760016140dd565b815260200190815260200160002060010180546108be9061408c565b80601f01602080910402602001604051908101604052809291908181526020018280546108ea9061408c565b80156109375780601f1061090c57610100808354040283529160200191610937565b820191906000526020600020905b81548152906001019060200180831161091a57829003601f168201915b50505050506011600087600161094d91906140dd565b815260200190815260200160002060020154611913565b600085815260116020526040902060010180548591610a1d916109869061408c565b80601f01602080910402602001604051908101604052809291908181526020018280546109b29061408c565b80156109ff5780601f106109d4576101008083540402835291602001916109ff565b820191906000526020600020905b8154815290600101906020018083116109e257829003601f168201915b50505060008a81526011602052604090206002015491506119139050565b85610adb60116000610a308b60026140dd565b81526020019081526020016000206001018054610a4c9061408c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a789061408c565b8015610ac55780601f10610a9a57610100808354040283529160200191610ac5565b820191906000526020600020905b815481529060010190602001808311610aa857829003601f168201915b5050505050601160008b600261094d91906140dd565b604051602001610af096959493929190614201565b604051602081830303815290604052905092915050565b610842838383611b9b565b606061074f6040518060c00160405280608981526020016146186089913960008481526011602052604090206001018054610be89190610b519061408c565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7d9061408c565b8015610bca5780601f10610b9f57610100808354040283529160200191610bca565b820191906000526020600020905b815481529060010190602001808311610bad57829003601f168201915b50505060008881526011602052604090206002015491506119139050565b6040518061038001604052806103558152602001614705610355913960405160200161073b93929190614305565b6040518060c00160405280608981526020016146186089913981565b6008546001600160a01b03163314610c5c5760405162461bcd60e51b8152600401610871906141cc565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610ca85760405162461bcd60e51b8152600401610871906141cc565b60026009541415610cfb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610871565b60026009556000610d146008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610d5e576040519150601f19603f3d011682016040523d82523d6000602084013e610d63565b606091505b5050905080610d7157600080fd5b506001600955565b610842838383604051806020016040528060008152506111ba565b60606000610da183611016565b90506000816001600160401b03811115610dbd57610dbd613daa565b604051908082528060200260200182016040528015610de6578160200160208202803683370190505b50905060016000805b8482108015610dff575060005483105b15610ec957600083815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290610eb65780516001600160a01b031615610e7057805191505b876001600160a01b0316826001600160a01b03161415610eb65783858481518110610e9d57610e9d614348565b602090810291909101015282610eb28161435e565b9350505b83610ec08161435e565b94505050610def565b509195945050505050565b6008546001600160a01b03163314610efe5760405162461bcd60e51b8152600401610871906141cc565b600b55565b6000610f0e82611d89565b5192915050565b60606040518060c00160405280608981526020016146186089913960008381526011602052604090206001018054610fe89190610f519061408c565b80601f0160208091040260200160405190810160405280929190818152602001828054610f7d9061408c565b8015610fca5780601f10610f9f57610100808354040283529160200191610fca565b820191906000526020600020905b815481529060010190602001808311610fad57829003601f168201915b50505060008781526011602052604090206002015491506119139050565b6040518061038001604052806103558152602001614705610355913960405160200161075f93929190614305565b60006001600160a01b03821661103f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b0316331461108e5760405162461bcd60e51b8152600401610871906141cc565b6110986000611eb0565b565b6008546001600160a01b031633146110c45760405162461bcd60e51b8152600401610871906141cc565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600380546105d39061408c565b6001600160a01b03821633141561111f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146111b55760405162461bcd60e51b8152600401610871906141cc565b600d55565b6111c5848484611b9b565b6001600160a01b0383163b151580156111e757506111e584848484611f02565b155b15611205576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606112168261187e565b61127a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610871565b6105be826114bc565b600a546000906001600160a01b031633146112fe5760405162461bcd60e51b815260206004820152603560248201527f6f6e6c794c6976654d696e743a206d73672e73656e646572204973204e6f7420604482015274151a1948131a5d99535a5b9d0810dbdb9d1c9858dd605a1b6064820152608401610871565b611309826001611ffa565b6001805460005403600019016105be9190614379565b919050565b600f546001600160a01b031633148061134c5750600e5461010090046001600160a01b031633145b6113a35760405162461bcd60e51b815260206004820152602260248201527f52657175697265732061646d696e206f72206f776e65722070726976696c6567604482015261657360f01b6064820152608401610871565b600085815260116020908152604090912085516113c292870190613bcf565b50600085815260116020908152604090912082516113e892600390920191840190613bcf565b50600085815260116020908152604090912060048101805460ff19166001908117909155600282018590558551611426939290910191860190613bcf565b505050505050565b6010805461143b9061408c565b80601f01602080910402602001604051908101604052809291908181526020018280546114679061408c565b80156114b45780601f10611489576101008083540402835291602001916114b4565b820191906000526020600020905b81548152906001019060200180831161149757829003601f168201915b505050505081565b600081815260116020908152604091829020825160c0810190935260898084526060936115c49360109260038501926115b1929091906146189083013960008881526011602052604090206001018054610be8919061151a9061408c565b80601f01602080910402602001604051908101604052809291908181526020018280546115469061408c565b80156115935780601f1061156857610100808354040283529160200191611593565b820191906000526020600020905b81548152906001019060200180831161157657829003601f168201915b50505060008c81526011602052604090206002015491506119139050565b60405160200161073b949392919061442a565b60405160200161075f91906144fd565b6008546001600160a01b031633146115fe5760405162461bcd60e51b8152600401610871906141cc565b6000811180156116105750600d548111155b6116535760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b6044820152606401610871565b61165d3382611ffa565b50565b6008546001600160a01b0316331461168a5760405162461bcd60e51b8152600401610871906141cc565b6001600160a01b0381166116ef5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610871565b61165d81611eb0565b6040518061038001604052806103558152602001614705610355913981565b606081516000141561173757505060408051602081019091526000815290565b60006040518060600160405280604081526020016146a1604091399050600060038451600261176691906140dd565b6117709190614542565b61177b906004614564565b9050600061178a8260206140dd565b6001600160401b038111156117a1576117a1613daa565b6040519080825280601f01601f1916602001820160405280156117cb576020820181803683370190505b509050818152600183018586518101602084015b818310156118395760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b938201939093526004016117df565b600389510660018114611853576002811461186457611870565b613d3d60f01b600119830152611870565b603d60f81b6000198301525b509398975050505050505050565b600081600111158015611892575060005482105b80156105be575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60606000604051806101000160405280846001600160401b0381111561193b5761193b613daa565b6040519080825280601f01601f191660200182016040528015611965576020820181803683370190505b508152602001600081526020018581526020016000815260200160008152602001600081526020016040518060400160405280600f60016119a691906140dd565b6001600160401b038111156119bd576119bd613daa565b6040519080825280602002602001820160405280156119e6578160200160208202803683370190505b5081526040805161012080825261242082019092526020928301929091908201612400803683370190505081525081526020016040518060400160405280600f6001611a3291906140dd565b6001600160401b03811115611a4957611a49613daa565b604051908082528060200260200182016040528015611a72578160200160208202803683370190505b50815260408051601e8082526103e0820190925260209283019290919082016103c08036833750505090529052905060008080611aae84612018565b9050600081600e811115611ac457611ac4614583565b14611ace57600080fd5b82611b8f57611ade8460016121a2565b93509050600081600e811115611af657611af6614583565b14611b0057600080fd5b611b0b8460026121a2565b92509050600081600e811115611b2357611b23614583565b14611b2d57600080fd5b8115611b615781600114611b585781600214611b4a576003611b6a565b611b5384612276565b611b6a565b611b53846122f0565b611b6a84612305565b9050600081600e811115611b8057611b80614583565b14611b8a57611b8f565b611ace565b50509051949350505050565b6000611ba682611d89565b9050836001600160a01b031681600001516001600160a01b031614611bdd5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611bfb5750611bfb8533610503565b80611c16575033611c0b84610775565b6001600160a01b0316145b905080611c3657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611c5d57604051633a954ecd60e21b815260040160405180910390fd5b611c69600084876118b7565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611d3d576000548214611d3d57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101919091528180600111158015611db9575060005481105b15611e9757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611e955780516001600160a01b031615611e2c579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611e90579392505050565b611e2c565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611f37903390899088908890600401614599565b602060405180830381600087803b158015611f5157600080fd5b505af1925050508015611f81575060408051601f3d908101601f19168201909252611f7e918101906145d6565b60015b611fdc573d808015611faf576040519150601f19603f3d011682016040523d82523d6000602084013e611fb4565b606091505b508051611fd4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b612014828260405180602001604052806000815250612515565b5050565b604080516101208082526124208201909252600091829182916020820161240080368337019050509050600091505b609082101561208157600881838151811061206457612064614348565b6020908102919091010152816120798161435e565b925050612047565b6101008210156120bc57600981838151811061209f5761209f614348565b6020908102919091010152816120b48161435e565b925050612081565b6101188210156120f75760078183815181106120da576120da614348565b6020908102919091010152816120ef8161435e565b9250506120bc565b61012082101561213257600881838151811061211557612115614348565b60209081029190910101528161212a8161435e565b9250506120f7565b6121458460c00151826101206000612522565b50600091505b601e82101561218557600581838151811061216857612168614348565b60209081029190910101528161217d8161435e565b92505061214b565b6121978460e0015182601e6000612522565b506000949350505050565b608082015160009081905b838560a00151101561223657846040015151856060015114156121d85760016000925092505061226f565b60a08501516040860151606087018051906121f28261435e565b90528151811061220457612204614348565b602001015160f81c60f81b60f81c60ff16901b8117905060088560a00181815161222e91906140dd565b9052506121ad565b80841c608086015260a085018051859190612252908390614379565b9052506000612264600180871b614379565b600094509091169150505b9250929050565b6000612295604051806040016040528060608152602001606081525090565b604080518082019091526060808252602082015260006122b4856127eb565b90945092509050600081600e8111156122cf576122cf614583565b146122dc57949350505050565b6122e7858484612ea1565b95945050505050565b60006105be828360c001518460e00151612ea1565b60006080820181905260a08201819052604082015151606083015182919061232e9060046140dd565b111561233d5750600192915050565b6040830151606084018051906123528261435e565b90528151811061236457612364614348565b0160200151604084015160608501805160f89390931c9350600892906123898261435e565b90528151811061239b5761239b614348565b602001015160f81c60f81b60f81c60ff16901b81179050801960ff1683604001518460600180518091906123ce9061435e565b9052815181106123e0576123e0614348565b016020015160f81c14158061242b5750604083015160608401805160ff841960081c16929161240e8261435e565b90528151811061242057612420614348565b016020015160f81c14155b156124395750600492915050565b82604001515181846060015161244f91906140dd565b111561245e5750600192915050565b82515160208401516124719083906140dd565b11156124805750600292915050565b801561250c57612491600182614379565b905082604001518360600180518091906124aa9061435e565b9052815181106124bc576124bc614348565b602001015160f81c60f81b83600001518460200180518091906124de9061435e565b9052815181106124f0576124f0614348565b60200101906001600160f81b031916908160001a905350612480565b50600092915050565b61084283838360016136ce565b600080600080612530613c53565b600092505b600f83116125725760008960000151848151811061255557612555614348565b60209081029190910101528261256a8161435e565b935050612535565b600093505b868410156125de5788518861258c86896140dd565b8151811061259c5761259c614348565b6020026020010151815181106125b4576125b4614348565b6020026020010180518091906125c99061435e565b905250836125d68161435e565b945050612577565b8689600001516000815181106125f6576125f6614348565b60200260200101511415612611576000945050505050611ff2565b60019150600192505b600f8311612694578851805160019390931b928490811061263d5761263d614348565b602002602001015182101561265957600e945050505050611ff2565b885180518490811061266d5761266d614348565b6020026020010151826126809190614379565b91508261268c8161435e565b93505061261a565b60006020820152600192505b600f8310156127195788518051849081106126bd576126bd614348565b60200260200101518184601081106126d7576126d7614348565b60200201516126e691906140dd565b816126f28560016140dd565b6010811061270257612702614348565b6020020152826127118161435e565b9350506126a0565b600093505b868410156127cc578761273185886140dd565b8151811061274157612741614348565b60200260200101516000146127ba5760208901518490828a612763848b6140dd565b8151811061277357612773614348565b60200260200101516010811061278b5761278b614348565b6020020180519061279b8261435e565b9052815181106127ad576127ad614348565b6020026020010181815250505b836127c48161435e565b94505061271e565b600082116127db5760006127de565b600e5b9998505050505050505050565b600061280a604051806040016040528060608152602001606081525090565b6040805180820190915260608082526020820152600080808080612831601e61011e6140dd565b6001600160401b0381111561284857612848613daa565b604051908082528060200260200182016040528015612871578160200160208202803683370190505b50905060006040518060400160405280600f600161288f91906140dd565b6001600160401b038111156128a6576128a6613daa565b6040519080825280602002602001820160405280156128cf578160200160208202803683370190505b5081526040805161011e8082526123e0820190925260209283019290919082016123c08036833701905050815250905060006040518060400160405280600f600161291a91906140dd565b6001600160401b0381111561293157612931613daa565b60405190808252806020026020018201604052801561295a578160200160208202803683370190505b50815260408051601e8082526103e0820190925260209283019290919082016103c0803683375050509052905060006129948c60056121a2565b98509450600085600e8111156129ac576129ac614583565b146129c457509298509650909450612e9a9350505050565b6129d0610101896140dd565b97506129dd8c60056121a2565b97509450600085600e8111156129f5576129f5614583565b14612a0d57509298509650909450612e9a9350505050565b612a186001886140dd565b965061011e881180612a2a5750601e87115b15612a445750600599509097509550612e9a945050505050565b612a4d8c61389e565b9095509350600085600e811115612a6657612a66614583565b14612a7e57509298509650909450612e9a9350505050565b612a8c838560136000612522565b9450600085600e811115612aa257612aa2614583565b14612abc5750600699509097509550612e9a945050505050565b600095505b612acb87896140dd565b861015612cc457600080612adf8e86613ac0565b9097509150600087600e811115612af857612af8614583565b14612b125750949a509198509650612e9a95505050505050565b6010821015612b4a57818689612b278161435e565b9a5081518110612b3957612b39614348565b602002602001018181525050612cbd565b5060006010821415612be95787612b73575060079b50929950909750612e9a9650505050505050565b85612b7f60018a614379565b81518110612b8f57612b8f614348565b60200260200101519050612ba48e60026121a2565b9097509250600087600e811115612bbd57612bbd614583565b14612bd75750949a509198509650612e9a95505050505050565b612be28360036140dd565b9150612c49565b8160111415612bfd57612ba48e60036121a2565b612c088e60076121a2565b9097509250600087600e811115612c2157612c21614583565b14612c3b5750949a509198509650612e9a95505050505050565b612c4683600b6140dd565b91505b612c53898b6140dd565b612c5d838a6140dd565b1115612c7b575060089b50929950909750612e9a9650505050505050565b8115612cbd57612c8c600183614379565b9150808689612c9a8161435e565b9a5081518110612cac57612cac614348565b602002602001018181525050612c7b565b5050612ac1565b8361010081518110612cd857612cd8614348565b602002602001015160001415612cfd5750600b99509097509550612e9a945050505050565b612d0a83858a6000612522565b9450600085600e811115612d2057612d20614583565b14158015612daa5750600185600e811115612d3d57612d3d614583565b1480612d5a5750600285600e811115612d5857612d58614583565b145b80612daa5750825180516001908110612d7557612d75614348565b60200260200101518360000151600081518110612d9457612d94614348565b6020026020010151612da691906140dd565b8814155b15612dc45750600999509097509550612e9a945050505050565b612dd08285898b612522565b9450600085600e811115612de657612de6614583565b14158015612e705750600185600e811115612e0357612e03614583565b1480612e205750600285600e811115612e1e57612e1e614583565b145b80612e705750815180516001908110612e3b57612e3b614348565b60200260200101518260000151600081518110612e5a57612e5a614348565b6020026020010151612e6c91906140dd565b8714155b15612e8a5750600a99509097509550612e9a945050505050565b5060009950909750955050505050505b9193909250565b6000806000806000604051806103a00160405280600361ffff168152602001600461ffff168152602001600561ffff168152602001600661ffff168152602001600761ffff168152602001600861ffff168152602001600961ffff168152602001600a61ffff168152602001600b61ffff168152602001600d61ffff168152602001600f61ffff168152602001601161ffff168152602001601361ffff168152602001601761ffff168152602001601b61ffff168152602001601f61ffff168152602001602361ffff168152602001602b61ffff168152602001603361ffff168152602001603b61ffff168152602001604361ffff168152602001605361ffff168152602001606361ffff168152602001607361ffff168152602001608361ffff16815260200160a361ffff16815260200160c361ffff16815260200160e361ffff16815260200161010261ffff1681525090506000604051806103a00160405280600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600160ff168152602001600160ff168152602001600160ff168152602001600160ff168152602001600260ff168152602001600260ff168152602001600260ff168152602001600260ff168152602001600360ff168152602001600360ff168152602001600360ff168152602001600360ff168152602001600460ff168152602001600460ff168152602001600460ff168152602001600460ff168152602001600560ff168152602001600560ff168152602001600560ff168152602001600560ff168152602001600060ff1681525090506000604051806103c00160405280600161ffff168152602001600261ffff168152602001600361ffff168152602001600461ffff168152602001600561ffff168152602001600761ffff168152602001600961ffff168152602001600d61ffff168152602001601161ffff168152602001601961ffff168152602001602161ffff168152602001603161ffff168152602001604161ffff168152602001606161ffff168152602001608161ffff16815260200160c161ffff16815260200161010161ffff16815260200161018161ffff16815260200161020161ffff16815260200161030161ffff16815260200161040161ffff16815260200161060161ffff16815260200161080161ffff168152602001610c0161ffff16815260200161100161ffff16815260200161180161ffff16815260200161200161ffff16815260200161300161ffff16815260200161400161ffff16815260200161600161ffff1681525090506000604051806103c00160405280600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600160ff168152602001600160ff168152602001600260ff168152602001600260ff168152602001600360ff168152602001600360ff168152602001600460ff168152602001600460ff168152602001600560ff168152602001600560ff168152602001600660ff168152602001600660ff168152602001600760ff168152602001600760ff168152602001600860ff168152602001600860ff168152602001600960ff168152602001600960ff168152602001600a60ff168152602001600a60ff168152602001600b60ff168152602001600b60ff168152602001600c60ff168152602001600c60ff168152602001600d60ff168152602001600d60ff16815250905060005b87610100146136ba576133db8c8c613ac0565b98509050600081600e8111156133f3576133f3614583565b146134075797506136c79650505050505050565b61010088101561347d578b515160208d01511415613430576002985050505050505050506136c7565b8760f81b8c600001518d602001518151811061344e5761344e614348565b60200101906001600160f81b031916908160001a90535060208c018051906134758261435e565b9052506133c8565b6101008811156136a85760006134956101018a614379565b9850601d89106134b157600c99505050505050505050506136c7565b6134d48d868b601d81106134c7576134c7614348565b602002015160ff166121a2565b9092509050600082600e8111156134ed576134ed614583565b14613502575097506136c79650505050505050565b80868a601d811061351557613515614348565b602002015161ffff1661352891906140dd565b97506135348d8c613ac0565b99509150600082600e81111561354c5761354c614583565b14613561575097506136c79650505050505050565b6135778d848b601e81106134c7576134c7614348565b9092509050600082600e81111561359057613590614583565b146135a5575097506136c79650505050505050565b80848a601e81106135b8576135b8614348565b602002015161ffff166135cb91906140dd565b96508c602001518711156135eb57600d99505050505050505050506136c7565b8c515160208e01516135fe908a906140dd565b111561361657600299505050505050505050506136c7565b87156136a257613627600189614379565b97508c60000151878e6020015161363e9190614379565b8151811061364e5761364e614348565b602001015160f81c60f81b8d600001518e602001518151811061367357613673614348565b60200101906001600160f81b031916908160001a90535060208d0180519061369a8261435e565b905250613616565b506133c8565b868c60200181815161347591906140dd565b6000985050505050505050505b9392505050565b6000546001600160a01b0385166136f757604051622e076360e81b815260040160405180910390fd5b836137155760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156137c657506001600160a01b0387163b15155b1561384f575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46138176000888480600101955088611f02565b613834576040516368d2bf6b60e11b815260040160405180910390fd5b808214156137cc57826000541461384a57600080fd5b613895565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415613850575b50600055611d82565b600060608180806138b2601e61011e6140dd565b6001600160401b038111156138c9576138c9613daa565b6040519080825280602002602001820160405280156138f2578160200160208202803683370190505b506040805161026081018252601081526011602082015260129181019190915260006060820181905260086080830152600760a0830152600960c0830152600660e0830152600a6101008301526005610120830152600b61014083015260046101608301819052600c61018084015260036101a0840152600d6101c084015260026101e0840152600e6102008401526001610220840152600f610240840152929350916139a09089906121a2565b95509150600082600e8111156139b8576139b8614583565b146139c95750969095509350505050565b6139d46004866140dd565b9450600093505b84841015613a5d576139ee8860036121a2565b84838760138110613a0157613a01614348565b602002015160ff1681518110613a1957613a19614348565b60209081029190910101529150600082600e811115613a3a57613a3a614583565b14613a4b5750969095509350505050565b83613a558161435e565b9450506139db565b6013841015613ab057600083828660138110613a7b57613a7b614348565b602002015160ff1681518110613a9357613a93614348565b602090810291909101015283613aa88161435e565b945050613a5d565b5060009791965090945050505050565b600080600181808080805b600f8611613bbc576000613ae08b60016121a2565b9092509050600082600e811115613af957613af9614583565b14613b10575096506000955061226f945050505050565b895180519682179688908110613b2857613b28614348565b602002602001015193508385613b3e91906140dd565b861015613b895760208a0151600090613b578789614379565b613b6190866140dd565b81518110613b7157613b71614348565b6020026020010151985098505050505050505061226f565b613b9384846140dd565b9250613b9f84866140dd565b600196871b961b9450869050613bb48161435e565b965050613acb565b50600c9960009950975050505050505050565b828054613bdb9061408c565b90600052602060002090601f016020900481019282613bfd5760008555613c43565b82601f10613c1657805160ff1916838001178555613c43565b82800160010185558215613c43579182015b82811115613c43578251825591602001919060010190613c28565b50613c4f929150613c72565b5090565b6040518061020001604052806010906020820280368337509192915050565b5b80821115613c4f5760008155600101613c73565b6001600160e01b03198116811461165d57600080fd5b600060208284031215613caf57600080fd5b81356136c781613c87565b60005b83811015613cd5578181015183820152602001613cbd565b838111156112055750506000910152565b60008151808452613cfe816020860160208601613cba565b601f01601f19169290920160200192915050565b6020815260006136c76020830184613ce6565b600060208284031215613d3757600080fd5b5035919050565b80356001600160a01b038116811461131f57600080fd5b60008060408385031215613d6857600080fd5b613d7183613d3e565b946020939093013593505050565b8035801515811461131f57600080fd5b600060208284031215613da157600080fd5b6136c782613d7f565b634e487b7160e01b600052604160045260246000fd5b600082601f830112613dd157600080fd5b81356001600160401b0380821115613deb57613deb613daa565b604051601f8301601f19908116603f01168101908282118183101715613e1357613e13613daa565b81604052838152866020858801011115613e2c57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215613e5f57600080fd5b8235915060208301356001600160401b03811115613e7c57600080fd5b613e8885828601613dc0565b9150509250929050565b600080600060608486031215613ea757600080fd5b613eb084613d3e565b9250613ebe60208501613d3e565b9150604084013590509250925092565b600060208284031215613ee057600080fd5b6136c782613d3e565b6020808252825182820181905260009190848201906040850190845b81811015613f2157835183529284019291840191600101613f05565b50909695505050505050565b60008060408385031215613f4057600080fd5b613f4983613d3e565b9150613f5760208401613d7f565b90509250929050565b60008060008060808587031215613f7657600080fd5b613f7f85613d3e565b9350613f8d60208601613d3e565b92506040850135915060608501356001600160401b03811115613faf57600080fd5b613fbb87828801613dc0565b91505092959194509250565b600080600080600060a08688031215613fdf57600080fd5b8535945060208601356001600160401b0380821115613ffd57600080fd5b61400989838a01613dc0565b9550604088013591508082111561401f57600080fd5b61402b89838a01613dc0565b945060608801359350608088013591508082111561404857600080fd5b5061405588828901613dc0565b9150509295509295909350565b6000806040838503121561407557600080fd5b61407e83613d3e565b9150613f5760208401613d3e565b600181811c908216806140a057607f821691505b602082108114156140c157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156140f0576140f06140c7565b500190565b60008651614107818460208b01613cba565b621e339f60e91b9083019081528651614127816003840160208b01613cba565b865191019061413d816003840160208a01613cba565b8551910190614153816003840160208901613cba565b631e17b39f60e11b600392909101918201528351614178816007840160208801613cba565b01600701979650505050505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000008152600082516141bf81601a850160208701613cba565b91909101601a0192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000875160206142148285838d01613cba565b7f3029207363616c6528302e3333333320302e3333333329273e00000000000000918401918252885161424d8160198501848d01613cba565b88519201916142628160198501848c01613cba565b7f3334312e33333329207363616c6528302e3333333320302e3333333329273e0060199390910192830152865161429f8160388501848b01613cba565b86519201916142b48160388501848a01613cba565b7f3634322e36363629207363616c6528302e3333333320302e3333333329273e006038939091019283015284516142f18160578501848901613cba565b919091016057019998505050505050505050565b60008451614317818460208901613cba565b84519083019061432b818360208901613cba565b845191019061433e818360208801613cba565b0195945050505050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415614372576143726140c7565b5060010190565b60008282101561438b5761438b6140c7565b500390565b8054600090600181811c90808316806143aa57607f831692505b60208084108214156143cc57634e487b7160e01b600052602260045260246000fd5b8180156143e057600181146143f15761441e565b60ff1986168952848901965061441e565b60008881526020902060005b868110156144165781548b8201529085019083016143fd565b505084890196505b50505050505092915050565b683d913730b6b2911d1160b91b815260006144486009830187614390565b71111610113232b9b1b934b83a34b7b7111d1160711b815261446d6012820187614390565b6f1116101130ba3a3934b13aba32b9911d60811b815290506144926010820186614390565b6b16101134b6b0b3b2911d101160a11b81527f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600c82015284519091506144e0816026840160208801613cba565b61227d60f01b602692909101918201526028019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161453581601d850160208701613cba565b91909101601d0192915050565b60008261455f57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561457e5761457e6140c7565b500290565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906145cc90830184613ce6565b9695505050505050565b6000602082840312156145e857600080fd5b81516136c781613c8756fe3c2f673e3c67207472616e73666f726d3d277472616e736c617465283638322e363636203c7376672069643d276169666163652720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667272076696577426f783d2730203020313032342031303234272077696474683d273130323427206865696768743d2731303234273e3c726563742077696474683d273130323427206865696768743d2731303234272f3e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f673e3c67207472616e73666f726d3d277472616e736c617465283334312e333333203c7374796c653e20236169666163657b7d2e626f7461207b20616e696d6174696f6e3a20332e307320626f746120696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d657320626f7461207b2066726f6d207b206f7061636974793a20302e37353b207d20746f207b206f7061636974793a20302e313b207d7d2023616966616365327b7d2e6d696461207b20616e696d6174696f6e3a20322e3073206d69646120696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d6573206d696461207b2066726f6d207b206f7061636974793a20302e37353b207d20746f207b206f7061636974793a20302e313b207d7d2023616966616365337b7d2e746f7061207b20616e696d6174696f6e3a20312e357320746f706120696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d657320746f7061207b2066726f6d207b206f7061636974793a20302e37353b207d20746f207b206f7061636974793a20302e313b207d7d2023616966616365347b7d2e626f746132207b20616e696d6174696f6e3a20322e307320626f74613220696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d657320626f746132207b2066726f6d207b206f7061636974793a20302e313b207d20746f207b206f7061636974793a20302e37353b207d7d2023616966616365357b7d2e6d69646132207b20616e696d6174696f6e3a20312e3573206d6964613220696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d6573206d69646132207b2066726f6d207b206f7061636974793a20302e313b207d20746f207b206f7061636974793a20302e37353b207d7d2023616966616365367b7d2e746f706132207b20616e696d6174696f6e3a20312e307320746f70613220696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d657320746f706132207b2066726f6d207b206f7061636974793a20302e313b207d20746f207b206f7061636974793a20302e37353b207d7d203c2f7374796c653e203c2f7376673ea2646970667358221220fadee702f17b8e1ee6ae30354f7787f52977ab94d534f02ed07bdaba3bf2a3b964736f6c634300080900334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000003635c9adc5dea000000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000256169496d6167696e65644661636573204f6e2d436861696e2062792056616e2041726d616e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044149494600000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102535760003560e01c806370a0823111610146578063b88d4fde116100c3578063e2c6875c11610087578063e2c6875c146104ed578063e985e9c5146104f5578063edf8770414610531578063f19e75d414610544578063f2fde38b14610557578063ffbc530c1461056a57600080fd5b8063b88d4fde14610498578063c87b56dd146104ab578063d1577656146104be578063d5abeb01146104d1578063de7ad152146104da57600080fd5b80638f84aa091161010a5780638f84aa091461044957806394354fd01461046157806395d89b411461046a578063a22cb46514610472578063b071401b1461048557600080fd5b806370a08231146103f7578063715018a61461040a57806384130d57146104125780638da5cb5b146104255780638e64112c1461043657600080fd5b80632433ab26116101d4578063438b630011610198578063438b63001461039157806344a0d68a146103b15780635c975abb146103c45780636352211e146103d157806368d7a00c146103e457600080fd5b80632433ab2614610348578063278036811461035b5780632c1e816d146103635780633ccfd60b1461037657806342842e0e1461037e57600080fd5b806313faede61161021b57806313faede6146102e857806316c38b3c146102ff57806318160ddd146103125780631bdc6dc21461032257806323b872dd1461033557600080fd5b806301ffc9a71461025857806306fdde031461028057806307b4c24c14610295578063081812fc146102a8578063095ea7b3146102d3575b600080fd5b61026b610266366004613c9d565b610572565b60405190151581526020015b60405180910390f35b6102886105c4565b6040516102779190613d12565b6102886102a3366004613d25565b610656565b6102bb6102b6366004613d25565b610775565b6040516001600160a01b039091168152602001610277565b6102e66102e1366004613d55565b6107b9565b005b6102f1600b5481565b604051908152602001610277565b6102e661030d366004613d8f565b610847565b60015460005403600019016102f1565b610288610330366004613e4c565b61088d565b6102e6610343366004613e92565b610b07565b610288610356366004613d25565b610b12565b610288610c16565b6102e6610371366004613ece565b610c32565b6102e6610c7e565b6102e661038c366004613e92565b610d79565b6103a461039f366004613ece565b610d94565b6040516102779190613ee9565b6102e66103bf366004613d25565b610ed4565b600e5461026b9060ff1681565b6102bb6103df366004613d25565b610f03565b6102886103f2366004613d25565b610f15565b6102f1610405366004613ece565b611016565b6102e6611064565b600f546102bb906001600160a01b031681565b6008546001600160a01b03166102bb565b6102e6610444366004613ece565b61109a565b600e546102bb9061010090046001600160a01b031681565b6102f1600d5481565b6102886110e6565b6102e6610480366004613f2d565b6110f5565b6102e6610493366004613d25565b61118b565b6102e66104a6366004613f60565b6111ba565b6102886104b9366004613d25565b61120b565b6102f16104cc366004613ece565b611283565b6102f1600c5481565b6102e66104e8366004613fc7565b611324565b61028861142e565b61026b610503366004614062565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61028861053f366004613d25565b6114bc565b6102e6610552366004613d25565b6115d4565b6102e6610565366004613ece565b611660565b6102886116f8565b60006001600160e01b031982166380ac58cd60e01b14806105a357506001600160e01b03198216635b5e139f60e01b145b806105be57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600280546105d39061408c565b80601f01602080910402602001604051908101604052809291908181526020018280546105ff9061408c565b801561064c5780601f106106215761010080835404028352916020019161064c565b820191906000526020600020905b81548152906001019060200180831161062f57829003601f168201915b5050505050905090565b606061074f6040518060c0016040528060898152602001614618608991396106bd6106828560036140dd565b6040518060400160405280601e81526020017f3c2f673e3c67207472616e73666f726d3d277472616e736c617465283020000081525061088d565b6106df856040518060600160405280602481526020016146e16024913961088d565b61070b6106ed8760066140dd565b6040518060600160405280602481526020016145f46024913961088d565b6040518061038001604052806103558152602001614705610355913960405160200161073b9594939291906140f5565b604051602081830303815290604052611717565b60405160200161075f9190614187565b6040516020818303038152906040529050919050565b60006107808261187e565b61079d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006107c482610f03565b9050806001600160a01b0316836001600160a01b031614156107f95760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061081957506108178133610503565b155b15610837576040516367d9dca160e11b815260040160405180910390fd5b6108428383836118b7565b505050565b6008546001600160a01b0316331461087a5760405162461bcd60e51b8152600401610871906141cc565b60405180910390fd5b600e805460ff1916911515919091179055565b606081610964601160006108a28760016140dd565b815260200190815260200160002060010180546108be9061408c565b80601f01602080910402602001604051908101604052809291908181526020018280546108ea9061408c565b80156109375780601f1061090c57610100808354040283529160200191610937565b820191906000526020600020905b81548152906001019060200180831161091a57829003601f168201915b50505050506011600087600161094d91906140dd565b815260200190815260200160002060020154611913565b600085815260116020526040902060010180548591610a1d916109869061408c565b80601f01602080910402602001604051908101604052809291908181526020018280546109b29061408c565b80156109ff5780601f106109d4576101008083540402835291602001916109ff565b820191906000526020600020905b8154815290600101906020018083116109e257829003601f168201915b50505060008a81526011602052604090206002015491506119139050565b85610adb60116000610a308b60026140dd565b81526020019081526020016000206001018054610a4c9061408c565b80601f0160208091040260200160405190810160405280929190818152602001828054610a789061408c565b8015610ac55780601f10610a9a57610100808354040283529160200191610ac5565b820191906000526020600020905b815481529060010190602001808311610aa857829003601f168201915b5050505050601160008b600261094d91906140dd565b604051602001610af096959493929190614201565b604051602081830303815290604052905092915050565b610842838383611b9b565b606061074f6040518060c00160405280608981526020016146186089913960008481526011602052604090206001018054610be89190610b519061408c565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7d9061408c565b8015610bca5780601f10610b9f57610100808354040283529160200191610bca565b820191906000526020600020905b815481529060010190602001808311610bad57829003601f168201915b50505060008881526011602052604090206002015491506119139050565b6040518061038001604052806103558152602001614705610355913960405160200161073b93929190614305565b6040518060c00160405280608981526020016146186089913981565b6008546001600160a01b03163314610c5c5760405162461bcd60e51b8152600401610871906141cc565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610ca85760405162461bcd60e51b8152600401610871906141cc565b60026009541415610cfb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610871565b60026009556000610d146008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610d5e576040519150601f19603f3d011682016040523d82523d6000602084013e610d63565b606091505b5050905080610d7157600080fd5b506001600955565b610842838383604051806020016040528060008152506111ba565b60606000610da183611016565b90506000816001600160401b03811115610dbd57610dbd613daa565b604051908082528060200260200182016040528015610de6578160200160208202803683370190505b50905060016000805b8482108015610dff575060005483105b15610ec957600083815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290610eb65780516001600160a01b031615610e7057805191505b876001600160a01b0316826001600160a01b03161415610eb65783858481518110610e9d57610e9d614348565b602090810291909101015282610eb28161435e565b9350505b83610ec08161435e565b94505050610def565b509195945050505050565b6008546001600160a01b03163314610efe5760405162461bcd60e51b8152600401610871906141cc565b600b55565b6000610f0e82611d89565b5192915050565b60606040518060c00160405280608981526020016146186089913960008381526011602052604090206001018054610fe89190610f519061408c565b80601f0160208091040260200160405190810160405280929190818152602001828054610f7d9061408c565b8015610fca5780601f10610f9f57610100808354040283529160200191610fca565b820191906000526020600020905b815481529060010190602001808311610fad57829003601f168201915b50505060008781526011602052604090206002015491506119139050565b6040518061038001604052806103558152602001614705610355913960405160200161075f93929190614305565b60006001600160a01b03821661103f576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b0316331461108e5760405162461bcd60e51b8152600401610871906141cc565b6110986000611eb0565b565b6008546001600160a01b031633146110c45760405162461bcd60e51b8152600401610871906141cc565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600380546105d39061408c565b6001600160a01b03821633141561111f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146111b55760405162461bcd60e51b8152600401610871906141cc565b600d55565b6111c5848484611b9b565b6001600160a01b0383163b151580156111e757506111e584848484611f02565b155b15611205576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606112168261187e565b61127a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610871565b6105be826114bc565b600a546000906001600160a01b031633146112fe5760405162461bcd60e51b815260206004820152603560248201527f6f6e6c794c6976654d696e743a206d73672e73656e646572204973204e6f7420604482015274151a1948131a5d99535a5b9d0810dbdb9d1c9858dd605a1b6064820152608401610871565b611309826001611ffa565b6001805460005403600019016105be9190614379565b919050565b600f546001600160a01b031633148061134c5750600e5461010090046001600160a01b031633145b6113a35760405162461bcd60e51b815260206004820152602260248201527f52657175697265732061646d696e206f72206f776e65722070726976696c6567604482015261657360f01b6064820152608401610871565b600085815260116020908152604090912085516113c292870190613bcf565b50600085815260116020908152604090912082516113e892600390920191840190613bcf565b50600085815260116020908152604090912060048101805460ff19166001908117909155600282018590558551611426939290910191860190613bcf565b505050505050565b6010805461143b9061408c565b80601f01602080910402602001604051908101604052809291908181526020018280546114679061408c565b80156114b45780601f10611489576101008083540402835291602001916114b4565b820191906000526020600020905b81548152906001019060200180831161149757829003601f168201915b505050505081565b600081815260116020908152604091829020825160c0810190935260898084526060936115c49360109260038501926115b1929091906146189083013960008881526011602052604090206001018054610be8919061151a9061408c565b80601f01602080910402602001604051908101604052809291908181526020018280546115469061408c565b80156115935780601f1061156857610100808354040283529160200191611593565b820191906000526020600020905b81548152906001019060200180831161157657829003601f168201915b50505060008c81526011602052604090206002015491506119139050565b60405160200161073b949392919061442a565b60405160200161075f91906144fd565b6008546001600160a01b031633146115fe5760405162461bcd60e51b8152600401610871906141cc565b6000811180156116105750600d548111155b6116535760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b6044820152606401610871565b61165d3382611ffa565b50565b6008546001600160a01b0316331461168a5760405162461bcd60e51b8152600401610871906141cc565b6001600160a01b0381166116ef5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610871565b61165d81611eb0565b6040518061038001604052806103558152602001614705610355913981565b606081516000141561173757505060408051602081019091526000815290565b60006040518060600160405280604081526020016146a1604091399050600060038451600261176691906140dd565b6117709190614542565b61177b906004614564565b9050600061178a8260206140dd565b6001600160401b038111156117a1576117a1613daa565b6040519080825280601f01601f1916602001820160405280156117cb576020820181803683370190505b509050818152600183018586518101602084015b818310156118395760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b938201939093526004016117df565b600389510660018114611853576002811461186457611870565b613d3d60f01b600119830152611870565b603d60f81b6000198301525b509398975050505050505050565b600081600111158015611892575060005482105b80156105be575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60606000604051806101000160405280846001600160401b0381111561193b5761193b613daa565b6040519080825280601f01601f191660200182016040528015611965576020820181803683370190505b508152602001600081526020018581526020016000815260200160008152602001600081526020016040518060400160405280600f60016119a691906140dd565b6001600160401b038111156119bd576119bd613daa565b6040519080825280602002602001820160405280156119e6578160200160208202803683370190505b5081526040805161012080825261242082019092526020928301929091908201612400803683370190505081525081526020016040518060400160405280600f6001611a3291906140dd565b6001600160401b03811115611a4957611a49613daa565b604051908082528060200260200182016040528015611a72578160200160208202803683370190505b50815260408051601e8082526103e0820190925260209283019290919082016103c08036833750505090529052905060008080611aae84612018565b9050600081600e811115611ac457611ac4614583565b14611ace57600080fd5b82611b8f57611ade8460016121a2565b93509050600081600e811115611af657611af6614583565b14611b0057600080fd5b611b0b8460026121a2565b92509050600081600e811115611b2357611b23614583565b14611b2d57600080fd5b8115611b615781600114611b585781600214611b4a576003611b6a565b611b5384612276565b611b6a565b611b53846122f0565b611b6a84612305565b9050600081600e811115611b8057611b80614583565b14611b8a57611b8f565b611ace565b50509051949350505050565b6000611ba682611d89565b9050836001600160a01b031681600001516001600160a01b031614611bdd5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611bfb5750611bfb8533610503565b80611c16575033611c0b84610775565b6001600160a01b0316145b905080611c3657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611c5d57604051633a954ecd60e21b815260040160405180910390fd5b611c69600084876118b7565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611d3d576000548214611d3d57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101919091528180600111158015611db9575060005481105b15611e9757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611e955780516001600160a01b031615611e2c579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215611e90579392505050565b611e2c565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611f37903390899088908890600401614599565b602060405180830381600087803b158015611f5157600080fd5b505af1925050508015611f81575060408051601f3d908101601f19168201909252611f7e918101906145d6565b60015b611fdc573d808015611faf576040519150601f19603f3d011682016040523d82523d6000602084013e611fb4565b606091505b508051611fd4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b612014828260405180602001604052806000815250612515565b5050565b604080516101208082526124208201909252600091829182916020820161240080368337019050509050600091505b609082101561208157600881838151811061206457612064614348565b6020908102919091010152816120798161435e565b925050612047565b6101008210156120bc57600981838151811061209f5761209f614348565b6020908102919091010152816120b48161435e565b925050612081565b6101188210156120f75760078183815181106120da576120da614348565b6020908102919091010152816120ef8161435e565b9250506120bc565b61012082101561213257600881838151811061211557612115614348565b60209081029190910101528161212a8161435e565b9250506120f7565b6121458460c00151826101206000612522565b50600091505b601e82101561218557600581838151811061216857612168614348565b60209081029190910101528161217d8161435e565b92505061214b565b6121978460e0015182601e6000612522565b506000949350505050565b608082015160009081905b838560a00151101561223657846040015151856060015114156121d85760016000925092505061226f565b60a08501516040860151606087018051906121f28261435e565b90528151811061220457612204614348565b602001015160f81c60f81b60f81c60ff16901b8117905060088560a00181815161222e91906140dd565b9052506121ad565b80841c608086015260a085018051859190612252908390614379565b9052506000612264600180871b614379565b600094509091169150505b9250929050565b6000612295604051806040016040528060608152602001606081525090565b604080518082019091526060808252602082015260006122b4856127eb565b90945092509050600081600e8111156122cf576122cf614583565b146122dc57949350505050565b6122e7858484612ea1565b95945050505050565b60006105be828360c001518460e00151612ea1565b60006080820181905260a08201819052604082015151606083015182919061232e9060046140dd565b111561233d5750600192915050565b6040830151606084018051906123528261435e565b90528151811061236457612364614348565b0160200151604084015160608501805160f89390931c9350600892906123898261435e565b90528151811061239b5761239b614348565b602001015160f81c60f81b60f81c60ff16901b81179050801960ff1683604001518460600180518091906123ce9061435e565b9052815181106123e0576123e0614348565b016020015160f81c14158061242b5750604083015160608401805160ff841960081c16929161240e8261435e565b90528151811061242057612420614348565b016020015160f81c14155b156124395750600492915050565b82604001515181846060015161244f91906140dd565b111561245e5750600192915050565b82515160208401516124719083906140dd565b11156124805750600292915050565b801561250c57612491600182614379565b905082604001518360600180518091906124aa9061435e565b9052815181106124bc576124bc614348565b602001015160f81c60f81b83600001518460200180518091906124de9061435e565b9052815181106124f0576124f0614348565b60200101906001600160f81b031916908160001a905350612480565b50600092915050565b61084283838360016136ce565b600080600080612530613c53565b600092505b600f83116125725760008960000151848151811061255557612555614348565b60209081029190910101528261256a8161435e565b935050612535565b600093505b868410156125de5788518861258c86896140dd565b8151811061259c5761259c614348565b6020026020010151815181106125b4576125b4614348565b6020026020010180518091906125c99061435e565b905250836125d68161435e565b945050612577565b8689600001516000815181106125f6576125f6614348565b60200260200101511415612611576000945050505050611ff2565b60019150600192505b600f8311612694578851805160019390931b928490811061263d5761263d614348565b602002602001015182101561265957600e945050505050611ff2565b885180518490811061266d5761266d614348565b6020026020010151826126809190614379565b91508261268c8161435e565b93505061261a565b60006020820152600192505b600f8310156127195788518051849081106126bd576126bd614348565b60200260200101518184601081106126d7576126d7614348565b60200201516126e691906140dd565b816126f28560016140dd565b6010811061270257612702614348565b6020020152826127118161435e565b9350506126a0565b600093505b868410156127cc578761273185886140dd565b8151811061274157612741614348565b60200260200101516000146127ba5760208901518490828a612763848b6140dd565b8151811061277357612773614348565b60200260200101516010811061278b5761278b614348565b6020020180519061279b8261435e565b9052815181106127ad576127ad614348565b6020026020010181815250505b836127c48161435e565b94505061271e565b600082116127db5760006127de565b600e5b9998505050505050505050565b600061280a604051806040016040528060608152602001606081525090565b6040805180820190915260608082526020820152600080808080612831601e61011e6140dd565b6001600160401b0381111561284857612848613daa565b604051908082528060200260200182016040528015612871578160200160208202803683370190505b50905060006040518060400160405280600f600161288f91906140dd565b6001600160401b038111156128a6576128a6613daa565b6040519080825280602002602001820160405280156128cf578160200160208202803683370190505b5081526040805161011e8082526123e0820190925260209283019290919082016123c08036833701905050815250905060006040518060400160405280600f600161291a91906140dd565b6001600160401b0381111561293157612931613daa565b60405190808252806020026020018201604052801561295a578160200160208202803683370190505b50815260408051601e8082526103e0820190925260209283019290919082016103c0803683375050509052905060006129948c60056121a2565b98509450600085600e8111156129ac576129ac614583565b146129c457509298509650909450612e9a9350505050565b6129d0610101896140dd565b97506129dd8c60056121a2565b97509450600085600e8111156129f5576129f5614583565b14612a0d57509298509650909450612e9a9350505050565b612a186001886140dd565b965061011e881180612a2a5750601e87115b15612a445750600599509097509550612e9a945050505050565b612a4d8c61389e565b9095509350600085600e811115612a6657612a66614583565b14612a7e57509298509650909450612e9a9350505050565b612a8c838560136000612522565b9450600085600e811115612aa257612aa2614583565b14612abc5750600699509097509550612e9a945050505050565b600095505b612acb87896140dd565b861015612cc457600080612adf8e86613ac0565b9097509150600087600e811115612af857612af8614583565b14612b125750949a509198509650612e9a95505050505050565b6010821015612b4a57818689612b278161435e565b9a5081518110612b3957612b39614348565b602002602001018181525050612cbd565b5060006010821415612be95787612b73575060079b50929950909750612e9a9650505050505050565b85612b7f60018a614379565b81518110612b8f57612b8f614348565b60200260200101519050612ba48e60026121a2565b9097509250600087600e811115612bbd57612bbd614583565b14612bd75750949a509198509650612e9a95505050505050565b612be28360036140dd565b9150612c49565b8160111415612bfd57612ba48e60036121a2565b612c088e60076121a2565b9097509250600087600e811115612c2157612c21614583565b14612c3b5750949a509198509650612e9a95505050505050565b612c4683600b6140dd565b91505b612c53898b6140dd565b612c5d838a6140dd565b1115612c7b575060089b50929950909750612e9a9650505050505050565b8115612cbd57612c8c600183614379565b9150808689612c9a8161435e565b9a5081518110612cac57612cac614348565b602002602001018181525050612c7b565b5050612ac1565b8361010081518110612cd857612cd8614348565b602002602001015160001415612cfd5750600b99509097509550612e9a945050505050565b612d0a83858a6000612522565b9450600085600e811115612d2057612d20614583565b14158015612daa5750600185600e811115612d3d57612d3d614583565b1480612d5a5750600285600e811115612d5857612d58614583565b145b80612daa5750825180516001908110612d7557612d75614348565b60200260200101518360000151600081518110612d9457612d94614348565b6020026020010151612da691906140dd565b8814155b15612dc45750600999509097509550612e9a945050505050565b612dd08285898b612522565b9450600085600e811115612de657612de6614583565b14158015612e705750600185600e811115612e0357612e03614583565b1480612e205750600285600e811115612e1e57612e1e614583565b145b80612e705750815180516001908110612e3b57612e3b614348565b60200260200101518260000151600081518110612e5a57612e5a614348565b6020026020010151612e6c91906140dd565b8714155b15612e8a5750600a99509097509550612e9a945050505050565b5060009950909750955050505050505b9193909250565b6000806000806000604051806103a00160405280600361ffff168152602001600461ffff168152602001600561ffff168152602001600661ffff168152602001600761ffff168152602001600861ffff168152602001600961ffff168152602001600a61ffff168152602001600b61ffff168152602001600d61ffff168152602001600f61ffff168152602001601161ffff168152602001601361ffff168152602001601761ffff168152602001601b61ffff168152602001601f61ffff168152602001602361ffff168152602001602b61ffff168152602001603361ffff168152602001603b61ffff168152602001604361ffff168152602001605361ffff168152602001606361ffff168152602001607361ffff168152602001608361ffff16815260200160a361ffff16815260200160c361ffff16815260200160e361ffff16815260200161010261ffff1681525090506000604051806103a00160405280600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600160ff168152602001600160ff168152602001600160ff168152602001600160ff168152602001600260ff168152602001600260ff168152602001600260ff168152602001600260ff168152602001600360ff168152602001600360ff168152602001600360ff168152602001600360ff168152602001600460ff168152602001600460ff168152602001600460ff168152602001600460ff168152602001600560ff168152602001600560ff168152602001600560ff168152602001600560ff168152602001600060ff1681525090506000604051806103c00160405280600161ffff168152602001600261ffff168152602001600361ffff168152602001600461ffff168152602001600561ffff168152602001600761ffff168152602001600961ffff168152602001600d61ffff168152602001601161ffff168152602001601961ffff168152602001602161ffff168152602001603161ffff168152602001604161ffff168152602001606161ffff168152602001608161ffff16815260200160c161ffff16815260200161010161ffff16815260200161018161ffff16815260200161020161ffff16815260200161030161ffff16815260200161040161ffff16815260200161060161ffff16815260200161080161ffff168152602001610c0161ffff16815260200161100161ffff16815260200161180161ffff16815260200161200161ffff16815260200161300161ffff16815260200161400161ffff16815260200161600161ffff1681525090506000604051806103c00160405280600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600160ff168152602001600160ff168152602001600260ff168152602001600260ff168152602001600360ff168152602001600360ff168152602001600460ff168152602001600460ff168152602001600560ff168152602001600560ff168152602001600660ff168152602001600660ff168152602001600760ff168152602001600760ff168152602001600860ff168152602001600860ff168152602001600960ff168152602001600960ff168152602001600a60ff168152602001600a60ff168152602001600b60ff168152602001600b60ff168152602001600c60ff168152602001600c60ff168152602001600d60ff168152602001600d60ff16815250905060005b87610100146136ba576133db8c8c613ac0565b98509050600081600e8111156133f3576133f3614583565b146134075797506136c79650505050505050565b61010088101561347d578b515160208d01511415613430576002985050505050505050506136c7565b8760f81b8c600001518d602001518151811061344e5761344e614348565b60200101906001600160f81b031916908160001a90535060208c018051906134758261435e565b9052506133c8565b6101008811156136a85760006134956101018a614379565b9850601d89106134b157600c99505050505050505050506136c7565b6134d48d868b601d81106134c7576134c7614348565b602002015160ff166121a2565b9092509050600082600e8111156134ed576134ed614583565b14613502575097506136c79650505050505050565b80868a601d811061351557613515614348565b602002015161ffff1661352891906140dd565b97506135348d8c613ac0565b99509150600082600e81111561354c5761354c614583565b14613561575097506136c79650505050505050565b6135778d848b601e81106134c7576134c7614348565b9092509050600082600e81111561359057613590614583565b146135a5575097506136c79650505050505050565b80848a601e81106135b8576135b8614348565b602002015161ffff166135cb91906140dd565b96508c602001518711156135eb57600d99505050505050505050506136c7565b8c515160208e01516135fe908a906140dd565b111561361657600299505050505050505050506136c7565b87156136a257613627600189614379565b97508c60000151878e6020015161363e9190614379565b8151811061364e5761364e614348565b602001015160f81c60f81b8d600001518e602001518151811061367357613673614348565b60200101906001600160f81b031916908160001a90535060208d0180519061369a8261435e565b905250613616565b506133c8565b868c60200181815161347591906140dd565b6000985050505050505050505b9392505050565b6000546001600160a01b0385166136f757604051622e076360e81b815260040160405180910390fd5b836137155760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808085018380156137c657506001600160a01b0387163b15155b1561384f575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46138176000888480600101955088611f02565b613834576040516368d2bf6b60e11b815260040160405180910390fd5b808214156137cc57826000541461384a57600080fd5b613895565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415613850575b50600055611d82565b600060608180806138b2601e61011e6140dd565b6001600160401b038111156138c9576138c9613daa565b6040519080825280602002602001820160405280156138f2578160200160208202803683370190505b506040805161026081018252601081526011602082015260129181019190915260006060820181905260086080830152600760a0830152600960c0830152600660e0830152600a6101008301526005610120830152600b61014083015260046101608301819052600c61018084015260036101a0840152600d6101c084015260026101e0840152600e6102008401526001610220840152600f610240840152929350916139a09089906121a2565b95509150600082600e8111156139b8576139b8614583565b146139c95750969095509350505050565b6139d46004866140dd565b9450600093505b84841015613a5d576139ee8860036121a2565b84838760138110613a0157613a01614348565b602002015160ff1681518110613a1957613a19614348565b60209081029190910101529150600082600e811115613a3a57613a3a614583565b14613a4b5750969095509350505050565b83613a558161435e565b9450506139db565b6013841015613ab057600083828660138110613a7b57613a7b614348565b602002015160ff1681518110613a9357613a93614348565b602090810291909101015283613aa88161435e565b945050613a5d565b5060009791965090945050505050565b600080600181808080805b600f8611613bbc576000613ae08b60016121a2565b9092509050600082600e811115613af957613af9614583565b14613b10575096506000955061226f945050505050565b895180519682179688908110613b2857613b28614348565b602002602001015193508385613b3e91906140dd565b861015613b895760208a0151600090613b578789614379565b613b6190866140dd565b81518110613b7157613b71614348565b6020026020010151985098505050505050505061226f565b613b9384846140dd565b9250613b9f84866140dd565b600196871b961b9450869050613bb48161435e565b965050613acb565b50600c9960009950975050505050505050565b828054613bdb9061408c565b90600052602060002090601f016020900481019282613bfd5760008555613c43565b82601f10613c1657805160ff1916838001178555613c43565b82800160010185558215613c43579182015b82811115613c43578251825591602001919060010190613c28565b50613c4f929150613c72565b5090565b6040518061020001604052806010906020820280368337509192915050565b5b80821115613c4f5760008155600101613c73565b6001600160e01b03198116811461165d57600080fd5b600060208284031215613caf57600080fd5b81356136c781613c87565b60005b83811015613cd5578181015183820152602001613cbd565b838111156112055750506000910152565b60008151808452613cfe816020860160208601613cba565b601f01601f19169290920160200192915050565b6020815260006136c76020830184613ce6565b600060208284031215613d3757600080fd5b5035919050565b80356001600160a01b038116811461131f57600080fd5b60008060408385031215613d6857600080fd5b613d7183613d3e565b946020939093013593505050565b8035801515811461131f57600080fd5b600060208284031215613da157600080fd5b6136c782613d7f565b634e487b7160e01b600052604160045260246000fd5b600082601f830112613dd157600080fd5b81356001600160401b0380821115613deb57613deb613daa565b604051601f8301601f19908116603f01168101908282118183101715613e1357613e13613daa565b81604052838152866020858801011115613e2c57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215613e5f57600080fd5b8235915060208301356001600160401b03811115613e7c57600080fd5b613e8885828601613dc0565b9150509250929050565b600080600060608486031215613ea757600080fd5b613eb084613d3e565b9250613ebe60208501613d3e565b9150604084013590509250925092565b600060208284031215613ee057600080fd5b6136c782613d3e565b6020808252825182820181905260009190848201906040850190845b81811015613f2157835183529284019291840191600101613f05565b50909695505050505050565b60008060408385031215613f4057600080fd5b613f4983613d3e565b9150613f5760208401613d7f565b90509250929050565b60008060008060808587031215613f7657600080fd5b613f7f85613d3e565b9350613f8d60208601613d3e565b92506040850135915060608501356001600160401b03811115613faf57600080fd5b613fbb87828801613dc0565b91505092959194509250565b600080600080600060a08688031215613fdf57600080fd5b8535945060208601356001600160401b0380821115613ffd57600080fd5b61400989838a01613dc0565b9550604088013591508082111561401f57600080fd5b61402b89838a01613dc0565b945060608801359350608088013591508082111561404857600080fd5b5061405588828901613dc0565b9150509295509295909350565b6000806040838503121561407557600080fd5b61407e83613d3e565b9150613f5760208401613d3e565b600181811c908216806140a057607f821691505b602082108114156140c157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156140f0576140f06140c7565b500190565b60008651614107818460208b01613cba565b621e339f60e91b9083019081528651614127816003840160208b01613cba565b865191019061413d816003840160208a01613cba565b8551910190614153816003840160208901613cba565b631e17b39f60e11b600392909101918201528351614178816007840160208801613cba565b01600701979650505050505050565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000008152600082516141bf81601a850160208701613cba565b91909101601a0192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000875160206142148285838d01613cba565b7f3029207363616c6528302e3333333320302e3333333329273e00000000000000918401918252885161424d8160198501848d01613cba565b88519201916142628160198501848c01613cba565b7f3334312e33333329207363616c6528302e3333333320302e3333333329273e0060199390910192830152865161429f8160388501848b01613cba565b86519201916142b48160388501848a01613cba565b7f3634322e36363629207363616c6528302e3333333320302e3333333329273e006038939091019283015284516142f18160578501848901613cba565b919091016057019998505050505050505050565b60008451614317818460208901613cba565b84519083019061432b818360208901613cba565b845191019061433e818360208801613cba565b0195945050505050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415614372576143726140c7565b5060010190565b60008282101561438b5761438b6140c7565b500390565b8054600090600181811c90808316806143aa57607f831692505b60208084108214156143cc57634e487b7160e01b600052602260045260246000fd5b8180156143e057600181146143f15761441e565b60ff1986168952848901965061441e565b60008881526020902060005b868110156144165781548b8201529085019083016143fd565b505084890196505b50505050505092915050565b683d913730b6b2911d1160b91b815260006144486009830187614390565b71111610113232b9b1b934b83a34b7b7111d1160711b815261446d6012820187614390565b6f1116101130ba3a3934b13aba32b9911d60811b815290506144926010820186614390565b6b16101134b6b0b3b2911d101160a11b81527f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600c82015284519091506144e0816026840160208801613cba565b61227d60f01b602692909101918201526028019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161453581601d850160208701613cba565b91909101601d0192915050565b60008261455f57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561457e5761457e6140c7565b500290565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906145cc90830184613ce6565b9695505050505050565b6000602082840312156145e857600080fd5b81516136c781613c8756fe3c2f673e3c67207472616e73666f726d3d277472616e736c617465283638322e363636203c7376672069643d276169666163652720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667272076696577426f783d2730203020313032342031303234272077696474683d273130323427206865696768743d2731303234273e3c726563742077696474683d273130323427206865696768743d2731303234272f3e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c2f673e3c67207472616e73666f726d3d277472616e736c617465283334312e333333203c7374796c653e20236169666163657b7d2e626f7461207b20616e696d6174696f6e3a20332e307320626f746120696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d657320626f7461207b2066726f6d207b206f7061636974793a20302e37353b207d20746f207b206f7061636974793a20302e313b207d7d2023616966616365327b7d2e6d696461207b20616e696d6174696f6e3a20322e3073206d69646120696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d6573206d696461207b2066726f6d207b206f7061636974793a20302e37353b207d20746f207b206f7061636974793a20302e313b207d7d2023616966616365337b7d2e746f7061207b20616e696d6174696f6e3a20312e357320746f706120696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d657320746f7061207b2066726f6d207b206f7061636974793a20302e37353b207d20746f207b206f7061636974793a20302e313b207d7d2023616966616365347b7d2e626f746132207b20616e696d6174696f6e3a20322e307320626f74613220696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d657320626f746132207b2066726f6d207b206f7061636974793a20302e313b207d20746f207b206f7061636974793a20302e37353b207d7d2023616966616365357b7d2e6d69646132207b20616e696d6174696f6e3a20312e3573206d6964613220696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d6573206d69646132207b2066726f6d207b206f7061636974793a20302e313b207d20746f207b206f7061636974793a20302e37353b207d7d2023616966616365367b7d2e746f706132207b20616e696d6174696f6e3a20312e307320746f70613220696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d657320746f706132207b2066726f6d207b206f7061636974793a20302e313b207d20746f207b206f7061636974793a20302e37353b207d7d203c2f7374796c653e203c2f7376673ea2646970667358221220fadee702f17b8e1ee6ae30354f7787f52977ab94d534f02ed07bdaba3bf2a3b964736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000003635c9adc5dea000000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000256169496d6167696e65644661636573204f6e2d436861696e2062792056616e2041726d616e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044149494600000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenName (string): aiImaginedFaces On-Chain by Van Arman
Arg [1] : _tokenSymbol (string): AIIF
Arg [2] : _cost (uint256): 1000000000000000000000
Arg [3] : _maxSupply (uint256): 100
Arg [4] : _maxMintAmountPerTx (uint256): 1

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 00000000000000000000000000000000000000000000003635c9adc5dea00000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000025
Arg [6] : 6169496d6167696e65644661636573204f6e2d436861696e2062792056616e20
Arg [7] : 41726d616e000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 4149494600000000000000000000000000000000000000000000000000000000


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.