ETH Price: $3,645.73 (+1.27%)
 

Overview

Max Total Supply

557 BWP

Holders

239

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 BWP
0x6d92D11430fB5901dB027fA61a3Ce80DA4d575dF
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:
BlackWavesPassNFT

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

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

/**
                               _
     /\                       | |
    /  \   _ __ ___   __ _  __| | ___ _   _ ___
   / /\ \ | '_ ` _ \ / _` |/ _` |/ _ | | | / __|
  / ____ \| | | | | | (_| | (_| |  __| |_| \__ \
 /_/    \_|_| |_| |_|\__,_|\__,_|\___|\__,_|___/

 @powered by: amadeus-nft.io
*/

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721A.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

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

contract BlackWavesPassNFT is Ownable, ERC721A, ReentrancyGuard {
    constructor(
    ) ERC721A("Black Waves Pass NFT", "BWP") {}

    uint256 public collectionSize = 1005;

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

    // For marketing etc.
    function reserveMintBatch(uint256[] calldata quantities, address[] calldata tos) external onlyOwner {
        for(uint256 i = 0; i < quantities.length; i++){
            require(
                totalSupply() + quantities[i] <= collectionSize,
                "Too many already minted before dev mint."
            );
            _safeMint(tos[i], quantities[i]);
        }
    }

    // metadata URI
    string private _baseTokenURI;

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

    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    function withdrawMoney() external onlyOwner nonReentrant {
        address amadeusAddress = address(0x718a7438297Ac14382F25802bb18422A4DadD31b);
        uint256 royaltyForAmadeus = address(this).balance / 100 * 10;
        uint256 remain = address(this).balance - royaltyForAmadeus;
        (bool success, ) = amadeusAddress.call{value: royaltyForAmadeus}("");
        require(success, "Transfer failed.");
        (success, ) = msg.sender.call{value: remain}("");
        require(success, "Transfer failed.");
    }

    function numberMinted(address owner) public view returns (uint256) {
        return _numberMinted(owner);
    }

    function getOwnershipData(uint256 tokenId)
    external
    view
    returns (TokenOwnership memory)
    {
        return _ownershipOf(tokenId);
    }

    function refundIfOver(uint256 price) private {
        require(msg.value >= price, "Need to send more ETH.");
        if (msg.value > price) {
            payable(msg.sender).transfer(msg.value - price);
        }
    }
    // allowList mint
    uint256 public allowListMintPrice = 0.000000 ether;
    // default false
    bool public allowListStatus = false;
    uint256 public amountForAllowList = 5;
    uint256 public immutable maxPerAddressDuringMint = 5;

    bytes32 private merkleRoot;

    mapping(address => bool) public allowListAppeared;
    mapping(address => uint256) public allowListStock;

    function allowListMint(uint256 quantity, bytes32[] memory proof) external payable {
        require(allowListStatus, "not begun");
        require(totalSupply() + quantity <= collectionSize, "reached max supply");
        require(amountForAllowList >= quantity, "reached max amount");
        require(isInAllowList(msg.sender, proof), "Invalid Merkle Proof.");
        if(!allowListAppeared[msg.sender]){
            allowListAppeared[msg.sender] = true;
            allowListStock[msg.sender] = maxPerAddressDuringMint;
        }
        require(allowListStock[msg.sender] >= quantity, "reached amount per address");
        allowListStock[msg.sender] -= quantity;
        _safeMint(msg.sender, quantity);
        amountForAllowList -= quantity;
        refundIfOver(allowListMintPrice*quantity);
    }

    function setRoot(bytes32 root) external onlyOwner{
        merkleRoot = root;
    }

    function setAllowListStatus(bool status) external onlyOwner {
        allowListStatus = status;
    }

    function isInAllowList(address addr, bytes32[] memory proof) public view returns(bool) {
        bytes32 leaf = keccak256(abi.encodePacked(addr));
        return MerkleProof.verify(proof, merkleRoot, leaf);
    }

    //public sale
    function getPublicSalePrice(uint256 offset) public view returns(uint256){
        if (1000 < 500 + amountForPublicSale - offset){
            return 0.000000 ether;
        }
        return 0.003000 ether;
    }
    function getPublicSalePriceTotal(uint256 quantity) public view returns(uint256){
        uint256 totalPrice = 0;
        for(uint256 i = 0;i < quantity;i++){
            totalPrice += getPublicSalePrice(i);
        }
        return totalPrice;
    }
    bool public publicSaleStatus = false;
    uint256 public amountForPublicSale = 1000;
    // per mint public sale limitation
    uint256 public immutable publicSalePerMint = 2;

    function publicSaleMint(uint256 quantity) external payable callerIsUser{
        require(
        publicSaleStatus,
        "not begun"
        );
        require(
        totalSupply() + quantity <= collectionSize,
        "reached max supply"
        );
        require(
        amountForPublicSale >= quantity,
        "reached max amount"
        );

        require(
        quantity <= publicSalePerMint,
        "reached max amount per mint"
        );

        _safeMint(msg.sender, quantity);
        refundIfOver(getPublicSalePriceTotal(quantity));
        amountForPublicSale -= quantity;
    }

    function setPublicSaleStatus(bool status) external onlyOwner {
        publicSaleStatus = status;
    }
}

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  // Token name
  string private _name;

  // Token symbol
  string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return _tokenApprovals[tokenId].value;
  }

  /**
   * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
  function setApprovalForAll(address operator, bool approved) public virtual override {
    if (operator == _msgSenderERC721A()) revert ApproveToCaller();

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

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

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

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

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

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

  /**
   * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
  function transferFrom(
    address from,
    address to,
    uint256 tokenId
  ) public virtual override {
    uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

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

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

    _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

  /**
   * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  ) public virtual override {
    transferFrom(from, to, tokenId);
    if (to.code.length != 0)
      if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
        revert TransferToNonERC721ReceiverImplementer();
      }
  }

  /**
   * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
  function _beforeTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}

  /**
   * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
  function _afterTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}

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

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

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

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

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

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

    uint256 toMasked;
    uint256 end = startTokenId + quantity;

    // Use assembly to loop and emit the `Transfer` event for gas savings.
    assembly {
    // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
      toMasked := and(to, _BITMASK_ADDRESS)
    // Emit the `Transfer` event.
      log4(
      0, // Start of data (0, since no data).
      0, // End of data (0, since no data).
      _TRANSFER_EVENT_SIGNATURE, // Signature.
      0, // `address(0)`.
      toMasked, // `to`.
      startTokenId // `tokenId`.
      )

      for {
        let tokenId := add(startTokenId, 1)
      } iszero(eq(tokenId, end)) {
        tokenId := add(tokenId, 1)
      } {
      // Emit the `Transfer` event. Similar to above.
        log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
      }
    }
    if (toMasked == 0) revert MintToZeroAddress();

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

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

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

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

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

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

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

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

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

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

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

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

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

    address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  /**
   * @dev Converts a uint256 to its ASCII string decimal representation.
     */
  function _toString(uint256 value) internal pure virtual returns (string memory ptr) {
    assembly {
    // The maximum value of a uint256 contains 78 digits (1 byte per digit),
    // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
    // We will need 1 32-byte word to store the length,
    // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
      ptr := add(mload(0x40), 128)
    // Update the free memory pointer to allocate.
      mstore(0x40, ptr)

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

    // We write the string from the rightmost digit to the leftmost digit.
    // The following is essentially a do-while loop that also handles the zero case.
    // Costs a bit more than early returning for the zero case,
    // but cheaper in terms of deployment and overall runtime costs.
      for {
      // Initialize and perform the first pass without check.
        let temp := value
      // Move the pointer 1 byte leftwards to point to an empty character slot.
        ptr := sub(ptr, 1)
      // Write the character to the pointer.
      // The ASCII index of the '0' character is 48.
        mstore8(ptr, add(48, mod(temp, 10)))
        temp := div(temp, 10)
      } temp {
      // Keep dividing `temp` until zero.
        temp := div(temp, 10)
      } {
      // Body of the for loop.
        ptr := sub(ptr, 1)
        mstore8(ptr, add(48, mod(temp, 10)))
      }

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

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

pragma solidity ^0.8.4;

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

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

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowListAppeared","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"allowListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"allowListMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowListStock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountForAllowList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountForPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionSize","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offset","type":"uint256"}],"name":"getPublicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"getPublicSalePriceTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"isInAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerAddressDuringMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"quantities","type":"uint256[]"},{"internalType":"address[]","name":"tos","type":"address[]"}],"name":"reserveMintBatch","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":"bool","name":"status","type":"bool"}],"name":"setAllowListStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setPublicSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526103ed600a556000600c556000600d60006101000a81548160ff0219169083151502179055506005600e5560056080908152506000601260006101000a81548160ff0219169083151502179055506103e8601355600260a0908152503480156200006d57600080fd5b506040518060400160405280601481526020017f426c61636b2057617665732050617373204e46540000000000000000000000008152506040518060400160405280600381526020017f4257500000000000000000000000000000000000000000000000000000000000815250620000fa620000ee6200015260201b60201c565b6200015a60201b60201c565b81600390805190602001906200011292919062000223565b5080600490805190602001906200012b92919062000223565b506200013c6200021e60201b60201c565b6001819055505050600160098190555062000338565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600090565b8280546200023190620002d3565b90600052602060002090601f016020900481019282620002555760008555620002a1565b82601f106200027057805160ff1916838001178555620002a1565b82800160010185558215620002a1579182015b82811115620002a057825182559160200191906001019062000283565b5b509050620002b09190620002b4565b5090565b5b80821115620002cf576000816000905550600101620002b5565b5090565b60006002820490506001821680620002ec57607f821691505b6020821081141562000303576200030262000309565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60805160a0516142c96200036c600039600081816110a10152611ad001526000818161148c015261209301526142c96000f3fe60806040526004361061023b5760003560e01c80638626eb181161012e578063b6c693e5116100ab578063dc33e6811161006f578063dc33e6811461088a578063e1ab4f68146108c7578063e985e9c514610904578063ec8bda8e14610941578063f2fde38b1461095d5761023b565b8063b6c693e514610793578063b88d4fde146107be578063c5d98bb3146107e7578063c87b56dd14610824578063dab5f340146108615761023b565b80639dc74e63116100f25780639dc74e63146106e3578063a22cb4651461070e578063ac44600214610737578063b3ab66b01461074e578063b423fe671461076a5761023b565b80638626eb18146105fa5780638bc35c2f146106255780638da5cb5b146106505780639231ab2a1461067b57806395d89b41146106b85761023b565b80633cd47537116101bc5780636352211e116101805780636352211e1461051357806368855b641461055057806370a082311461057b578063715018a6146105b8578063802751ca146105cf5761023b565b80633cd475371461043057806342842e0e14610459578063431ea23c1461048257806345c0f533146104bf57806355f804b3146104ea5761023b565b806318160ddd1161020357806318160ddd1461034b57806323b872dd146103765780632990e3171461039f578063300bc3a1146103dc5780633ba5ae24146104055761023b565b806301ffc9a714610240578063050c8ffc1461027d57806306fdde03146102ba578063081812fc146102e5578063095ea7b314610322575b600080fd5b34801561024c57600080fd5b506102676004803603810190610262919061339d565b610986565b60405161027491906138ea565b60405180910390f35b34801561028957600080fd5b506102a4600480360381019061029f91906130a3565b610a18565b6040516102b19190613ae2565b60405180910390f35b3480156102c657600080fd5b506102cf610a30565b6040516102dc9190613905565b60405180910390f35b3480156102f157600080fd5b5061030c60048036038101906103079190613444565b610ac2565b6040516103199190613883565b60405180910390f35b34801561032e57600080fd5b5061034960048036038101906103449190613282565b610b41565b005b34801561035757600080fd5b50610360610c85565b60405161036d9190613ae2565b60405180910390f35b34801561038257600080fd5b5061039d60048036038101906103989190613110565b610c9c565b005b3480156103ab57600080fd5b506103c660048036038101906103c19190613444565b610fc1565b6040516103d39190613ae2565b60405180910390f35b3480156103e857600080fd5b5061040360048036038101906103fe9190613343565b611006565b005b34801561041157600080fd5b5061041a61109f565b6040516104279190613ae2565b60405180910390f35b34801561043c57600080fd5b50610457600480360381019061045291906132c2565b6110c3565b005b34801561046557600080fd5b50610480600480360381019061047b9190613110565b611221565b005b34801561048e57600080fd5b506104a960048036038101906104a49190613444565b611241565b6040516104b69190613ae2565b60405180910390f35b3480156104cb57600080fd5b506104d4611280565b6040516104e19190613ae2565b60405180910390f35b3480156104f657600080fd5b50610511600480360381019061050c91906133f7565b611286565b005b34801561051f57600080fd5b5061053a60048036038101906105359190613444565b611318565b6040516105479190613883565b60405180910390f35b34801561055c57600080fd5b5061056561132a565b6040516105729190613ae2565b60405180910390f35b34801561058757600080fd5b506105a2600480360381019061059d91906130a3565b611330565b6040516105af9190613ae2565b60405180910390f35b3480156105c457600080fd5b506105cd6113e9565b005b3480156105db57600080fd5b506105e4611471565b6040516105f191906138ea565b60405180910390f35b34801561060657600080fd5b5061060f611484565b60405161061c9190613ae2565b60405180910390f35b34801561063157600080fd5b5061063a61148a565b6040516106479190613ae2565b60405180910390f35b34801561065c57600080fd5b506106656114ae565b6040516106729190613883565b60405180910390f35b34801561068757600080fd5b506106a2600480360381019061069d9190613444565b6114d7565b6040516106af9190613ac7565b60405180910390f35b3480156106c457600080fd5b506106cd6114ef565b6040516106da9190613905565b60405180910390f35b3480156106ef57600080fd5b506106f8611581565b6040516107059190613ae2565b60405180910390f35b34801561071a57600080fd5b5061073560048036038101906107309190613242565b611587565b005b34801561074357600080fd5b5061074c6116ff565b005b61076860048036038101906107639190613444565b611975565b005b34801561077657600080fd5b50610791600480360381019061078c9190613343565b611b68565b005b34801561079f57600080fd5b506107a8611c01565b6040516107b591906138ea565b60405180910390f35b3480156107ca57600080fd5b506107e560048036038101906107e09190613163565b611c14565b005b3480156107f357600080fd5b5061080e600480360381019061080991906131e6565b611c87565b60405161081b91906138ea565b60405180910390f35b34801561083057600080fd5b5061084b60048036038101906108469190613444565b611cc9565b6040516108589190613905565b60405180910390f35b34801561086d57600080fd5b5061088860048036038101906108839190613370565b611d68565b005b34801561089657600080fd5b506108b160048036038101906108ac91906130a3565b611dee565b6040516108be9190613ae2565b60405180910390f35b3480156108d357600080fd5b506108ee60048036038101906108e991906130a3565b611e00565b6040516108fb91906138ea565b60405180910390f35b34801561091057600080fd5b5061092b600480360381019061092691906130d0565b611e20565b60405161093891906138ea565b60405180910390f35b61095b60048036038101906109569190613471565b611eb4565b005b34801561096957600080fd5b50610984600480360381019061097f91906130a3565b61220b565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109e157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a115750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60116020528060005260406000206000915090505481565b606060038054610a3f90613dc5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6b90613dc5565b8015610ab85780601f10610a8d57610100808354040283529160200191610ab8565b820191906000526020600020905b815481529060010190602001808311610a9b57829003601f168201915b5050505050905090565b6000610acd82612303565b610b03576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b4c82611318565b90508073ffffffffffffffffffffffffffffffffffffffff16610b6d612362565b73ffffffffffffffffffffffffffffffffffffffff1614610bd057610b9981610b94612362565b611e20565b610bcf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610c8f61236a565b6002546001540303905090565b6000610ca78261236f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d0e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d1a8461243d565b91509150610d308187610d2b612362565b612464565b610d7c57610d4586610d40612362565b611e20565b610d7b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610de3576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610df086868660016124a8565b8015610dfb57600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610ec985610ea58888876124ae565b7c0200000000000000000000000000000000000000000000000000000000176124d6565b600560008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610f51576000600185019050600060056000838152602001908152602001600020541415610f4f576001548114610f4e578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fb98686866001612501565b505050505050565b6000806000905060005b83811015610ffc57610fdc81611241565b82610fe79190613bcd565b91508080610ff490613e28565b915050610fcb565b5080915050919050565b61100e612507565b73ffffffffffffffffffffffffffffffffffffffff1661102c6114ae565b73ffffffffffffffffffffffffffffffffffffffff1614611082576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107990613a27565b60405180910390fd5b80600d60006101000a81548160ff02191690831515021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6110cb612507565b73ffffffffffffffffffffffffffffffffffffffff166110e96114ae565b73ffffffffffffffffffffffffffffffffffffffff161461113f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113690613a27565b60405180910390fd5b60005b8484905081101561121a57600a5485858381811061116357611162613f22565b5b90506020020135611172610c85565b61117c9190613bcd565b11156111bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b4906139c7565b60405180910390fd5b6112078383838181106111d3576111d2613f22565b5b90506020020160208101906111e891906130a3565b8686848181106111fb576111fa613f22565b5b9050602002013561250f565b808061121290613e28565b915050611142565b5050505050565b61123c83838360405180602001604052806000815250611c14565b505050565b6000816013546101f46112549190613bcd565b61125e9190613cae565b6103e81015611270576000905061127b565b660aa87bee53800090505b919050565b600a5481565b61128e612507565b73ffffffffffffffffffffffffffffffffffffffff166112ac6114ae565b73ffffffffffffffffffffffffffffffffffffffff1614611302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f990613a27565b60405180910390fd5b8181600b9190611313929190612d23565b505050565b60006113238261236f565b9050919050565b600c5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611398576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6113f1612507565b73ffffffffffffffffffffffffffffffffffffffff1661140f6114ae565b73ffffffffffffffffffffffffffffffffffffffff1614611465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145c90613a27565b60405180910390fd5b61146f600061252d565b565b600d60009054906101000a900460ff1681565b600e5481565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114df612da9565b6114e8826125f1565b9050919050565b6060600480546114fe90613dc5565b80601f016020809104026020016040519081016040528092919081815260200182805461152a90613dc5565b80156115775780601f1061154c57610100808354040283529160200191611577565b820191906000526020600020905b81548152906001019060200180831161155a57829003601f168201915b5050505050905090565b60135481565b61158f612362565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115f4576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060086000611601612362565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116ae612362565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116f391906138ea565b60405180910390a35050565b611707612507565b73ffffffffffffffffffffffffffffffffffffffff166117256114ae565b73ffffffffffffffffffffffffffffffffffffffff161461177b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177290613a27565b60405180910390fd5b600260095414156117c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b890613aa7565b60405180910390fd5b6002600981905550600073718a7438297ac14382f25802bb18422a4dadd31b90506000600a6064476117f39190613c23565b6117fd9190613c54565b90506000814761180d9190613cae565b905060008373ffffffffffffffffffffffffffffffffffffffff16836040516118359061386e565b60006040518083038185875af1925050503d8060008114611872576040519150601f19603f3d011682016040523d82523d6000602084013e611877565b606091505b50509050806118bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b290613a67565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16826040516118df9061386e565b60006040518083038185875af1925050503d806000811461191c576040519150601f19603f3d011682016040523d82523d6000602084013e611921565b606091505b50508091505080611967576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195e90613a67565b60405180910390fd5b505050506001600981905550565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146119e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119da90613967565b60405180910390fd5b601260009054906101000a900460ff16611a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a29906139a7565b60405180910390fd5b600a5481611a3e610c85565b611a489190613bcd565b1115611a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a80906139e7565b60405180910390fd5b806013541015611ace576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac590613987565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811115611b31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2890613a47565b60405180910390fd5b611b3b338261250f565b611b4c611b4782610fc1565b612611565b8060136000828254611b5e9190613cae565b9250508190555050565b611b70612507565b73ffffffffffffffffffffffffffffffffffffffff16611b8e6114ae565b73ffffffffffffffffffffffffffffffffffffffff1614611be4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdb90613a27565b60405180910390fd5b80601260006101000a81548160ff02191690831515021790555050565b601260009054906101000a900460ff1681565b611c1f848484610c9c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611c8157611c4a848484846126b2565b611c80576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60008083604051602001611c9b919061382f565b604051602081830303815290604052805190602001209050611cc083600f5483612812565b91505092915050565b6060611cd482612303565b611d0a576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611d14612829565b9050600081511415611d355760405180602001604052806000815250611d60565b80611d3f846128bb565b604051602001611d5092919061384a565b6040516020818303038152906040525b915050919050565b611d70612507565b73ffffffffffffffffffffffffffffffffffffffff16611d8e6114ae565b73ffffffffffffffffffffffffffffffffffffffff1614611de4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddb90613a27565b60405180910390fd5b80600f8190555050565b6000611df982612915565b9050919050565b60106020528060005260406000206000915054906101000a900460ff1681565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600d60009054906101000a900460ff16611f03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611efa906139a7565b60405180910390fd5b600a5482611f0f610c85565b611f199190613bcd565b1115611f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f51906139e7565b60405180910390fd5b81600e541015611f9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9690613987565b60405180910390fd5b611fa93382611c87565b611fe8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fdf90613947565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166120f6576001601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f0000000000000000000000000000000000000000000000000000000000000000601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b81601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015612178576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216f90613a07565b60405180910390fd5b81601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121c79190613cae565b925050819055506121d8338361250f565b81600e60008282546121ea9190613cae565b9250508190555061220782600c546122029190613c54565b612611565b5050565b612213612507565b73ffffffffffffffffffffffffffffffffffffffff166122316114ae565b73ffffffffffffffffffffffffffffffffffffffff1614612287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227e90613a27565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ee90613927565b60405180910390fd5b6123008161252d565b50565b60008161230e61236a565b1115801561231d575060015482105b801561235b575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6000808290508061237e61236a565b11612406576001548110156124055760006005600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612403575b60008114156123f95760056000836001900393508381526020019081526020016000205490506123ce565b8092505050612438565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86124c586868461296c565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b612529828260405180602001604052806000815250612975565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6125f9612da9565b61260a6126058361236f565b612a13565b9050919050565b80341015612654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264b90613a87565b60405180910390fd5b803411156126af573373ffffffffffffffffffffffffffffffffffffffff166108fc82346126829190613cae565b9081150290604051600060405180830381858888f193505050501580156126ad573d6000803e3d6000fd5b505b50565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026126d8612362565b8786866040518563ffffffff1660e01b81526004016126fa949392919061389e565b602060405180830381600087803b15801561271457600080fd5b505af192505050801561274557506040513d601f19601f8201168201806040525081019061274291906133ca565b60015b6127bf573d8060008114612775576040519150601f19603f3d011682016040523d82523d6000602084013e61277a565b606091505b506000815114156127b7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008261281f8584612ac9565b1490509392505050565b6060600b805461283890613dc5565b80601f016020809104026020016040519081016040528092919081815260200182805461286490613dc5565b80156128b15780601f10612886576101008083540402835291602001916128b1565b820191906000526020600020905b81548152906001019060200180831161289457829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561290157600183039250600a81066030018353600a810490506128e1565b508181036020830392508083525050919050565b600067ffffffffffffffff6040600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60009392505050565b61297f8383612b3e565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612a0e5760006001549050600083820390505b6129c060008683806001019450866126b2565b6129f6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106129ad578160015414612a0b57600080fd5b50505b505050565b612a1b612da9565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008082905060005b8451811015612b33576000858281518110612af057612aef613f22565b5b60200260200101519050808311612b1257612b0b8382612cfc565b9250612b1f565b612b1c8184612cfc565b92505b508080612b2b90613e28565b915050612ad2565b508091505092915050565b600060015490506000821415612b80576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b8d60008483856124a8565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612c0483612bf560008660006124ae565b612bfe85612d13565b176124d6565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612ca557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612c6a565b506000821415612ce1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055505050612cf76000848385612501565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b828054612d2f90613dc5565b90600052602060002090601f016020900481019282612d515760008555612d98565b82601f10612d6a57803560ff1916838001178555612d98565b82800160010185558215612d98579182015b82811115612d97578235825591602001919060010190612d7c565b5b509050612da59190612df8565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b80821115612e11576000816000905550600101612df9565b5090565b6000612e28612e2384613b22565b613afd565b90508083825260208201905082856020860282011115612e4b57612e4a613f8a565b5b60005b85811015612e7b5781612e618882612fcb565b845260208401935060208301925050600181019050612e4e565b5050509392505050565b6000612e98612e9384613b4e565b613afd565b905082815260208101848484011115612eb457612eb3613f8f565b5b612ebf848285613d83565b509392505050565b600081359050612ed681614220565b92915050565b60008083601f840112612ef257612ef1613f85565b5b8235905067ffffffffffffffff811115612f0f57612f0e613f80565b5b602083019150836020820283011115612f2b57612f2a613f8a565b5b9250929050565b600082601f830112612f4757612f46613f85565b5b8135612f57848260208601612e15565b91505092915050565b60008083601f840112612f7657612f75613f85565b5b8235905067ffffffffffffffff811115612f9357612f92613f80565b5b602083019150836020820283011115612faf57612fae613f8a565b5b9250929050565b600081359050612fc581614237565b92915050565b600081359050612fda8161424e565b92915050565b600081359050612fef81614265565b92915050565b60008151905061300481614265565b92915050565b600082601f83011261301f5761301e613f85565b5b813561302f848260208601612e85565b91505092915050565b60008083601f84011261304e5761304d613f85565b5b8235905067ffffffffffffffff81111561306b5761306a613f80565b5b60208301915083600182028301111561308757613086613f8a565b5b9250929050565b60008135905061309d8161427c565b92915050565b6000602082840312156130b9576130b8613f99565b5b60006130c784828501612ec7565b91505092915050565b600080604083850312156130e7576130e6613f99565b5b60006130f585828601612ec7565b925050602061310685828601612ec7565b9150509250929050565b60008060006060848603121561312957613128613f99565b5b600061313786828701612ec7565b935050602061314886828701612ec7565b92505060406131598682870161308e565b9150509250925092565b6000806000806080858703121561317d5761317c613f99565b5b600061318b87828801612ec7565b945050602061319c87828801612ec7565b93505060406131ad8782880161308e565b925050606085013567ffffffffffffffff8111156131ce576131cd613f94565b5b6131da8782880161300a565b91505092959194509250565b600080604083850312156131fd576131fc613f99565b5b600061320b85828601612ec7565b925050602083013567ffffffffffffffff81111561322c5761322b613f94565b5b61323885828601612f32565b9150509250929050565b6000806040838503121561325957613258613f99565b5b600061326785828601612ec7565b925050602061327885828601612fb6565b9150509250929050565b6000806040838503121561329957613298613f99565b5b60006132a785828601612ec7565b92505060206132b88582860161308e565b9150509250929050565b600080600080604085870312156132dc576132db613f99565b5b600085013567ffffffffffffffff8111156132fa576132f9613f94565b5b61330687828801612f60565b9450945050602085013567ffffffffffffffff81111561332957613328613f94565b5b61333587828801612edc565b925092505092959194509250565b60006020828403121561335957613358613f99565b5b600061336784828501612fb6565b91505092915050565b60006020828403121561338657613385613f99565b5b600061339484828501612fcb565b91505092915050565b6000602082840312156133b3576133b2613f99565b5b60006133c184828501612fe0565b91505092915050565b6000602082840312156133e0576133df613f99565b5b60006133ee84828501612ff5565b91505092915050565b6000806020838503121561340e5761340d613f99565b5b600083013567ffffffffffffffff81111561342c5761342b613f94565b5b61343885828601613038565b92509250509250929050565b60006020828403121561345a57613459613f99565b5b60006134688482850161308e565b91505092915050565b6000806040838503121561348857613487613f99565b5b60006134968582860161308e565b925050602083013567ffffffffffffffff8111156134b7576134b6613f94565b5b6134c385828601612f32565b9150509250929050565b6134d681613ce2565b82525050565b6134e581613ce2565b82525050565b6134fc6134f782613ce2565b613e71565b82525050565b61350b81613cf4565b82525050565b61351a81613cf4565b82525050565b600061352b82613b7f565b6135358185613b95565b9350613545818560208601613d92565b61354e81613f9e565b840191505092915050565b600061356482613b8a565b61356e8185613bb1565b935061357e818560208601613d92565b61358781613f9e565b840191505092915050565b600061359d82613b8a565b6135a78185613bc2565b93506135b7818560208601613d92565b80840191505092915050565b60006135d0602683613bb1565b91506135db82613fbc565b604082019050919050565b60006135f3601583613bb1565b91506135fe8261400b565b602082019050919050565b6000613616601e83613bb1565b915061362182614034565b602082019050919050565b6000613639601283613bb1565b91506136448261405d565b602082019050919050565b600061365c600983613bb1565b915061366782614086565b602082019050919050565b600061367f602883613bb1565b915061368a826140af565b604082019050919050565b60006136a2601283613bb1565b91506136ad826140fe565b602082019050919050565b60006136c5601a83613bb1565b91506136d082614127565b602082019050919050565b60006136e8602083613bb1565b91506136f382614150565b602082019050919050565b600061370b601b83613bb1565b915061371682614179565b602082019050919050565b600061372e600083613ba6565b9150613739826141a2565b600082019050919050565b6000613751601083613bb1565b915061375c826141a5565b602082019050919050565b6000613774601683613bb1565b915061377f826141ce565b602082019050919050565b6000613797601f83613bb1565b91506137a2826141f7565b602082019050919050565b6080820160008201516137c360008501826134cd565b5060208201516137d66020850182613820565b5060408201516137e96040850182613502565b5060608201516137fc6060850182613802565b50505050565b61380b81613d56565b82525050565b61381a81613d65565b82525050565b61382981613d6f565b82525050565b600061383b82846134eb565b60148201915081905092915050565b60006138568285613592565b91506138628284613592565b91508190509392505050565b600061387982613721565b9150819050919050565b600060208201905061389860008301846134dc565b92915050565b60006080820190506138b360008301876134dc565b6138c060208301866134dc565b6138cd6040830185613811565b81810360608301526138df8184613520565b905095945050505050565b60006020820190506138ff6000830184613511565b92915050565b6000602082019050818103600083015261391f8184613559565b905092915050565b60006020820190508181036000830152613940816135c3565b9050919050565b60006020820190508181036000830152613960816135e6565b9050919050565b6000602082019050818103600083015261398081613609565b9050919050565b600060208201905081810360008301526139a08161362c565b9050919050565b600060208201905081810360008301526139c08161364f565b9050919050565b600060208201905081810360008301526139e081613672565b9050919050565b60006020820190508181036000830152613a0081613695565b9050919050565b60006020820190508181036000830152613a20816136b8565b9050919050565b60006020820190508181036000830152613a40816136db565b9050919050565b60006020820190508181036000830152613a60816136fe565b9050919050565b60006020820190508181036000830152613a8081613744565b9050919050565b60006020820190508181036000830152613aa081613767565b9050919050565b60006020820190508181036000830152613ac08161378a565b9050919050565b6000608082019050613adc60008301846137ad565b92915050565b6000602082019050613af76000830184613811565b92915050565b6000613b07613b18565b9050613b138282613df7565b919050565b6000604051905090565b600067ffffffffffffffff821115613b3d57613b3c613f51565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613b6957613b68613f51565b5b613b7282613f9e565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613bd882613d65565b9150613be383613d65565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613c1857613c17613e95565b5b828201905092915050565b6000613c2e82613d65565b9150613c3983613d65565b925082613c4957613c48613ec4565b5b828204905092915050565b6000613c5f82613d65565b9150613c6a83613d65565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613ca357613ca2613e95565b5b828202905092915050565b6000613cb982613d65565b9150613cc483613d65565b925082821015613cd757613cd6613e95565b5b828203905092915050565b6000613ced82613d36565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b83811015613db0578082015181840152602081019050613d95565b83811115613dbf576000848401525b50505050565b60006002820490506001821680613ddd57607f821691505b60208210811415613df157613df0613ef3565b5b50919050565b613e0082613f9e565b810181811067ffffffffffffffff82111715613e1f57613e1e613f51565b5b80604052505050565b6000613e3382613d65565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613e6657613e65613e95565b5b600182019050919050565b6000613e7c82613e83565b9050919050565b6000613e8e82613faf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f496e76616c6964204d65726b6c652050726f6f662e0000000000000000000000600082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b7f72656163686564206d617820616d6f756e740000000000000000000000000000600082015250565b7f6e6f7420626567756e0000000000000000000000000000000000000000000000600082015250565b7f546f6f206d616e7920616c7265616479206d696e746564206265666f7265206460008201527f6576206d696e742e000000000000000000000000000000000000000000000000602082015250565b7f72656163686564206d617820737570706c790000000000000000000000000000600082015250565b7f7265616368656420616d6f756e74207065722061646472657373000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f72656163686564206d617820616d6f756e7420706572206d696e740000000000600082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f4e65656420746f2073656e64206d6f7265204554482e00000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61422981613ce2565b811461423457600080fd5b50565b61424081613cf4565b811461424b57600080fd5b50565b61425781613d00565b811461426257600080fd5b50565b61426e81613d0a565b811461427957600080fd5b50565b61428581613d65565b811461429057600080fd5b5056fea26469706673582212208a5425e8e8c9ddbc54784aca55b87d64bb41d43cf71d550c0fe360fb5b1b5f7d64736f6c63430008070033

Deployed Bytecode

0x60806040526004361061023b5760003560e01c80638626eb181161012e578063b6c693e5116100ab578063dc33e6811161006f578063dc33e6811461088a578063e1ab4f68146108c7578063e985e9c514610904578063ec8bda8e14610941578063f2fde38b1461095d5761023b565b8063b6c693e514610793578063b88d4fde146107be578063c5d98bb3146107e7578063c87b56dd14610824578063dab5f340146108615761023b565b80639dc74e63116100f25780639dc74e63146106e3578063a22cb4651461070e578063ac44600214610737578063b3ab66b01461074e578063b423fe671461076a5761023b565b80638626eb18146105fa5780638bc35c2f146106255780638da5cb5b146106505780639231ab2a1461067b57806395d89b41146106b85761023b565b80633cd47537116101bc5780636352211e116101805780636352211e1461051357806368855b641461055057806370a082311461057b578063715018a6146105b8578063802751ca146105cf5761023b565b80633cd475371461043057806342842e0e14610459578063431ea23c1461048257806345c0f533146104bf57806355f804b3146104ea5761023b565b806318160ddd1161020357806318160ddd1461034b57806323b872dd146103765780632990e3171461039f578063300bc3a1146103dc5780633ba5ae24146104055761023b565b806301ffc9a714610240578063050c8ffc1461027d57806306fdde03146102ba578063081812fc146102e5578063095ea7b314610322575b600080fd5b34801561024c57600080fd5b506102676004803603810190610262919061339d565b610986565b60405161027491906138ea565b60405180910390f35b34801561028957600080fd5b506102a4600480360381019061029f91906130a3565b610a18565b6040516102b19190613ae2565b60405180910390f35b3480156102c657600080fd5b506102cf610a30565b6040516102dc9190613905565b60405180910390f35b3480156102f157600080fd5b5061030c60048036038101906103079190613444565b610ac2565b6040516103199190613883565b60405180910390f35b34801561032e57600080fd5b5061034960048036038101906103449190613282565b610b41565b005b34801561035757600080fd5b50610360610c85565b60405161036d9190613ae2565b60405180910390f35b34801561038257600080fd5b5061039d60048036038101906103989190613110565b610c9c565b005b3480156103ab57600080fd5b506103c660048036038101906103c19190613444565b610fc1565b6040516103d39190613ae2565b60405180910390f35b3480156103e857600080fd5b5061040360048036038101906103fe9190613343565b611006565b005b34801561041157600080fd5b5061041a61109f565b6040516104279190613ae2565b60405180910390f35b34801561043c57600080fd5b50610457600480360381019061045291906132c2565b6110c3565b005b34801561046557600080fd5b50610480600480360381019061047b9190613110565b611221565b005b34801561048e57600080fd5b506104a960048036038101906104a49190613444565b611241565b6040516104b69190613ae2565b60405180910390f35b3480156104cb57600080fd5b506104d4611280565b6040516104e19190613ae2565b60405180910390f35b3480156104f657600080fd5b50610511600480360381019061050c91906133f7565b611286565b005b34801561051f57600080fd5b5061053a60048036038101906105359190613444565b611318565b6040516105479190613883565b60405180910390f35b34801561055c57600080fd5b5061056561132a565b6040516105729190613ae2565b60405180910390f35b34801561058757600080fd5b506105a2600480360381019061059d91906130a3565b611330565b6040516105af9190613ae2565b60405180910390f35b3480156105c457600080fd5b506105cd6113e9565b005b3480156105db57600080fd5b506105e4611471565b6040516105f191906138ea565b60405180910390f35b34801561060657600080fd5b5061060f611484565b60405161061c9190613ae2565b60405180910390f35b34801561063157600080fd5b5061063a61148a565b6040516106479190613ae2565b60405180910390f35b34801561065c57600080fd5b506106656114ae565b6040516106729190613883565b60405180910390f35b34801561068757600080fd5b506106a2600480360381019061069d9190613444565b6114d7565b6040516106af9190613ac7565b60405180910390f35b3480156106c457600080fd5b506106cd6114ef565b6040516106da9190613905565b60405180910390f35b3480156106ef57600080fd5b506106f8611581565b6040516107059190613ae2565b60405180910390f35b34801561071a57600080fd5b5061073560048036038101906107309190613242565b611587565b005b34801561074357600080fd5b5061074c6116ff565b005b61076860048036038101906107639190613444565b611975565b005b34801561077657600080fd5b50610791600480360381019061078c9190613343565b611b68565b005b34801561079f57600080fd5b506107a8611c01565b6040516107b591906138ea565b60405180910390f35b3480156107ca57600080fd5b506107e560048036038101906107e09190613163565b611c14565b005b3480156107f357600080fd5b5061080e600480360381019061080991906131e6565b611c87565b60405161081b91906138ea565b60405180910390f35b34801561083057600080fd5b5061084b60048036038101906108469190613444565b611cc9565b6040516108589190613905565b60405180910390f35b34801561086d57600080fd5b5061088860048036038101906108839190613370565b611d68565b005b34801561089657600080fd5b506108b160048036038101906108ac91906130a3565b611dee565b6040516108be9190613ae2565b60405180910390f35b3480156108d357600080fd5b506108ee60048036038101906108e991906130a3565b611e00565b6040516108fb91906138ea565b60405180910390f35b34801561091057600080fd5b5061092b600480360381019061092691906130d0565b611e20565b60405161093891906138ea565b60405180910390f35b61095b60048036038101906109569190613471565b611eb4565b005b34801561096957600080fd5b50610984600480360381019061097f91906130a3565b61220b565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109e157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a115750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60116020528060005260406000206000915090505481565b606060038054610a3f90613dc5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6b90613dc5565b8015610ab85780601f10610a8d57610100808354040283529160200191610ab8565b820191906000526020600020905b815481529060010190602001808311610a9b57829003601f168201915b5050505050905090565b6000610acd82612303565b610b03576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b4c82611318565b90508073ffffffffffffffffffffffffffffffffffffffff16610b6d612362565b73ffffffffffffffffffffffffffffffffffffffff1614610bd057610b9981610b94612362565b611e20565b610bcf576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610c8f61236a565b6002546001540303905090565b6000610ca78261236f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610d0e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610d1a8461243d565b91509150610d308187610d2b612362565b612464565b610d7c57610d4586610d40612362565b611e20565b610d7b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610de3576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610df086868660016124a8565b8015610dfb57600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610ec985610ea58888876124ae565b7c0200000000000000000000000000000000000000000000000000000000176124d6565b600560008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415610f51576000600185019050600060056000838152602001908152602001600020541415610f4f576001548114610f4e578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610fb98686866001612501565b505050505050565b6000806000905060005b83811015610ffc57610fdc81611241565b82610fe79190613bcd565b91508080610ff490613e28565b915050610fcb565b5080915050919050565b61100e612507565b73ffffffffffffffffffffffffffffffffffffffff1661102c6114ae565b73ffffffffffffffffffffffffffffffffffffffff1614611082576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107990613a27565b60405180910390fd5b80600d60006101000a81548160ff02191690831515021790555050565b7f000000000000000000000000000000000000000000000000000000000000000281565b6110cb612507565b73ffffffffffffffffffffffffffffffffffffffff166110e96114ae565b73ffffffffffffffffffffffffffffffffffffffff161461113f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113690613a27565b60405180910390fd5b60005b8484905081101561121a57600a5485858381811061116357611162613f22565b5b90506020020135611172610c85565b61117c9190613bcd565b11156111bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b4906139c7565b60405180910390fd5b6112078383838181106111d3576111d2613f22565b5b90506020020160208101906111e891906130a3565b8686848181106111fb576111fa613f22565b5b9050602002013561250f565b808061121290613e28565b915050611142565b5050505050565b61123c83838360405180602001604052806000815250611c14565b505050565b6000816013546101f46112549190613bcd565b61125e9190613cae565b6103e81015611270576000905061127b565b660aa87bee53800090505b919050565b600a5481565b61128e612507565b73ffffffffffffffffffffffffffffffffffffffff166112ac6114ae565b73ffffffffffffffffffffffffffffffffffffffff1614611302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f990613a27565b60405180910390fd5b8181600b9190611313929190612d23565b505050565b60006113238261236f565b9050919050565b600c5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611398576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6113f1612507565b73ffffffffffffffffffffffffffffffffffffffff1661140f6114ae565b73ffffffffffffffffffffffffffffffffffffffff1614611465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145c90613a27565b60405180910390fd5b61146f600061252d565b565b600d60009054906101000a900460ff1681565b600e5481565b7f000000000000000000000000000000000000000000000000000000000000000581565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114df612da9565b6114e8826125f1565b9050919050565b6060600480546114fe90613dc5565b80601f016020809104026020016040519081016040528092919081815260200182805461152a90613dc5565b80156115775780601f1061154c57610100808354040283529160200191611577565b820191906000526020600020905b81548152906001019060200180831161155a57829003601f168201915b5050505050905090565b60135481565b61158f612362565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115f4576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060086000611601612362565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166116ae612362565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116f391906138ea565b60405180910390a35050565b611707612507565b73ffffffffffffffffffffffffffffffffffffffff166117256114ae565b73ffffffffffffffffffffffffffffffffffffffff161461177b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177290613a27565b60405180910390fd5b600260095414156117c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b890613aa7565b60405180910390fd5b6002600981905550600073718a7438297ac14382f25802bb18422a4dadd31b90506000600a6064476117f39190613c23565b6117fd9190613c54565b90506000814761180d9190613cae565b905060008373ffffffffffffffffffffffffffffffffffffffff16836040516118359061386e565b60006040518083038185875af1925050503d8060008114611872576040519150601f19603f3d011682016040523d82523d6000602084013e611877565b606091505b50509050806118bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b290613a67565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16826040516118df9061386e565b60006040518083038185875af1925050503d806000811461191c576040519150601f19603f3d011682016040523d82523d6000602084013e611921565b606091505b50508091505080611967576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195e90613a67565b60405180910390fd5b505050506001600981905550565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146119e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119da90613967565b60405180910390fd5b601260009054906101000a900460ff16611a32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a29906139a7565b60405180910390fd5b600a5481611a3e610c85565b611a489190613bcd565b1115611a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a80906139e7565b60405180910390fd5b806013541015611ace576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac590613987565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000002811115611b31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2890613a47565b60405180910390fd5b611b3b338261250f565b611b4c611b4782610fc1565b612611565b8060136000828254611b5e9190613cae565b9250508190555050565b611b70612507565b73ffffffffffffffffffffffffffffffffffffffff16611b8e6114ae565b73ffffffffffffffffffffffffffffffffffffffff1614611be4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdb90613a27565b60405180910390fd5b80601260006101000a81548160ff02191690831515021790555050565b601260009054906101000a900460ff1681565b611c1f848484610c9c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611c8157611c4a848484846126b2565b611c80576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60008083604051602001611c9b919061382f565b604051602081830303815290604052805190602001209050611cc083600f5483612812565b91505092915050565b6060611cd482612303565b611d0a576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611d14612829565b9050600081511415611d355760405180602001604052806000815250611d60565b80611d3f846128bb565b604051602001611d5092919061384a565b6040516020818303038152906040525b915050919050565b611d70612507565b73ffffffffffffffffffffffffffffffffffffffff16611d8e6114ae565b73ffffffffffffffffffffffffffffffffffffffff1614611de4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddb90613a27565b60405180910390fd5b80600f8190555050565b6000611df982612915565b9050919050565b60106020528060005260406000206000915054906101000a900460ff1681565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600d60009054906101000a900460ff16611f03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611efa906139a7565b60405180910390fd5b600a5482611f0f610c85565b611f199190613bcd565b1115611f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f51906139e7565b60405180910390fd5b81600e541015611f9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9690613987565b60405180910390fd5b611fa93382611c87565b611fe8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fdf90613947565b60405180910390fd5b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166120f6576001601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f0000000000000000000000000000000000000000000000000000000000000005601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b81601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015612178576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216f90613a07565b60405180910390fd5b81601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121c79190613cae565b925050819055506121d8338361250f565b81600e60008282546121ea9190613cae565b9250508190555061220782600c546122029190613c54565b612611565b5050565b612213612507565b73ffffffffffffffffffffffffffffffffffffffff166122316114ae565b73ffffffffffffffffffffffffffffffffffffffff1614612287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227e90613a27565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ee90613927565b60405180910390fd5b6123008161252d565b50565b60008161230e61236a565b1115801561231d575060015482105b801561235b575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6000808290508061237e61236a565b11612406576001548110156124055760006005600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612403575b60008114156123f95760056000836001900393508381526020019081526020016000205490506123ce565b8092505050612438565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86124c586868461296c565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b612529828260405180602001604052806000815250612975565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6125f9612da9565b61260a6126058361236f565b612a13565b9050919050565b80341015612654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264b90613a87565b60405180910390fd5b803411156126af573373ffffffffffffffffffffffffffffffffffffffff166108fc82346126829190613cae565b9081150290604051600060405180830381858888f193505050501580156126ad573d6000803e3d6000fd5b505b50565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026126d8612362565b8786866040518563ffffffff1660e01b81526004016126fa949392919061389e565b602060405180830381600087803b15801561271457600080fd5b505af192505050801561274557506040513d601f19601f8201168201806040525081019061274291906133ca565b60015b6127bf573d8060008114612775576040519150601f19603f3d011682016040523d82523d6000602084013e61277a565b606091505b506000815114156127b7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60008261281f8584612ac9565b1490509392505050565b6060600b805461283890613dc5565b80601f016020809104026020016040519081016040528092919081815260200182805461286490613dc5565b80156128b15780601f10612886576101008083540402835291602001916128b1565b820191906000526020600020905b81548152906001019060200180831161289457829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561290157600183039250600a81066030018353600a810490506128e1565b508181036020830392508083525050919050565b600067ffffffffffffffff6040600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60009392505050565b61297f8383612b3e565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612a0e5760006001549050600083820390505b6129c060008683806001019450866126b2565b6129f6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106129ad578160015414612a0b57600080fd5b50505b505050565b612a1b612da9565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008082905060005b8451811015612b33576000858281518110612af057612aef613f22565b5b60200260200101519050808311612b1257612b0b8382612cfc565b9250612b1f565b612b1c8184612cfc565b92505b508080612b2b90613e28565b915050612ad2565b508091505092915050565b600060015490506000821415612b80576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b8d60008483856124a8565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612c0483612bf560008660006124ae565b612bfe85612d13565b176124d6565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612ca557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612c6a565b506000821415612ce1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055505050612cf76000848385612501565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b828054612d2f90613dc5565b90600052602060002090601f016020900481019282612d515760008555612d98565b82601f10612d6a57803560ff1916838001178555612d98565b82800160010185558215612d98579182015b82811115612d97578235825591602001919060010190612d7c565b5b509050612da59190612df8565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b80821115612e11576000816000905550600101612df9565b5090565b6000612e28612e2384613b22565b613afd565b90508083825260208201905082856020860282011115612e4b57612e4a613f8a565b5b60005b85811015612e7b5781612e618882612fcb565b845260208401935060208301925050600181019050612e4e565b5050509392505050565b6000612e98612e9384613b4e565b613afd565b905082815260208101848484011115612eb457612eb3613f8f565b5b612ebf848285613d83565b509392505050565b600081359050612ed681614220565b92915050565b60008083601f840112612ef257612ef1613f85565b5b8235905067ffffffffffffffff811115612f0f57612f0e613f80565b5b602083019150836020820283011115612f2b57612f2a613f8a565b5b9250929050565b600082601f830112612f4757612f46613f85565b5b8135612f57848260208601612e15565b91505092915050565b60008083601f840112612f7657612f75613f85565b5b8235905067ffffffffffffffff811115612f9357612f92613f80565b5b602083019150836020820283011115612faf57612fae613f8a565b5b9250929050565b600081359050612fc581614237565b92915050565b600081359050612fda8161424e565b92915050565b600081359050612fef81614265565b92915050565b60008151905061300481614265565b92915050565b600082601f83011261301f5761301e613f85565b5b813561302f848260208601612e85565b91505092915050565b60008083601f84011261304e5761304d613f85565b5b8235905067ffffffffffffffff81111561306b5761306a613f80565b5b60208301915083600182028301111561308757613086613f8a565b5b9250929050565b60008135905061309d8161427c565b92915050565b6000602082840312156130b9576130b8613f99565b5b60006130c784828501612ec7565b91505092915050565b600080604083850312156130e7576130e6613f99565b5b60006130f585828601612ec7565b925050602061310685828601612ec7565b9150509250929050565b60008060006060848603121561312957613128613f99565b5b600061313786828701612ec7565b935050602061314886828701612ec7565b92505060406131598682870161308e565b9150509250925092565b6000806000806080858703121561317d5761317c613f99565b5b600061318b87828801612ec7565b945050602061319c87828801612ec7565b93505060406131ad8782880161308e565b925050606085013567ffffffffffffffff8111156131ce576131cd613f94565b5b6131da8782880161300a565b91505092959194509250565b600080604083850312156131fd576131fc613f99565b5b600061320b85828601612ec7565b925050602083013567ffffffffffffffff81111561322c5761322b613f94565b5b61323885828601612f32565b9150509250929050565b6000806040838503121561325957613258613f99565b5b600061326785828601612ec7565b925050602061327885828601612fb6565b9150509250929050565b6000806040838503121561329957613298613f99565b5b60006132a785828601612ec7565b92505060206132b88582860161308e565b9150509250929050565b600080600080604085870312156132dc576132db613f99565b5b600085013567ffffffffffffffff8111156132fa576132f9613f94565b5b61330687828801612f60565b9450945050602085013567ffffffffffffffff81111561332957613328613f94565b5b61333587828801612edc565b925092505092959194509250565b60006020828403121561335957613358613f99565b5b600061336784828501612fb6565b91505092915050565b60006020828403121561338657613385613f99565b5b600061339484828501612fcb565b91505092915050565b6000602082840312156133b3576133b2613f99565b5b60006133c184828501612fe0565b91505092915050565b6000602082840312156133e0576133df613f99565b5b60006133ee84828501612ff5565b91505092915050565b6000806020838503121561340e5761340d613f99565b5b600083013567ffffffffffffffff81111561342c5761342b613f94565b5b61343885828601613038565b92509250509250929050565b60006020828403121561345a57613459613f99565b5b60006134688482850161308e565b91505092915050565b6000806040838503121561348857613487613f99565b5b60006134968582860161308e565b925050602083013567ffffffffffffffff8111156134b7576134b6613f94565b5b6134c385828601612f32565b9150509250929050565b6134d681613ce2565b82525050565b6134e581613ce2565b82525050565b6134fc6134f782613ce2565b613e71565b82525050565b61350b81613cf4565b82525050565b61351a81613cf4565b82525050565b600061352b82613b7f565b6135358185613b95565b9350613545818560208601613d92565b61354e81613f9e565b840191505092915050565b600061356482613b8a565b61356e8185613bb1565b935061357e818560208601613d92565b61358781613f9e565b840191505092915050565b600061359d82613b8a565b6135a78185613bc2565b93506135b7818560208601613d92565b80840191505092915050565b60006135d0602683613bb1565b91506135db82613fbc565b604082019050919050565b60006135f3601583613bb1565b91506135fe8261400b565b602082019050919050565b6000613616601e83613bb1565b915061362182614034565b602082019050919050565b6000613639601283613bb1565b91506136448261405d565b602082019050919050565b600061365c600983613bb1565b915061366782614086565b602082019050919050565b600061367f602883613bb1565b915061368a826140af565b604082019050919050565b60006136a2601283613bb1565b91506136ad826140fe565b602082019050919050565b60006136c5601a83613bb1565b91506136d082614127565b602082019050919050565b60006136e8602083613bb1565b91506136f382614150565b602082019050919050565b600061370b601b83613bb1565b915061371682614179565b602082019050919050565b600061372e600083613ba6565b9150613739826141a2565b600082019050919050565b6000613751601083613bb1565b915061375c826141a5565b602082019050919050565b6000613774601683613bb1565b915061377f826141ce565b602082019050919050565b6000613797601f83613bb1565b91506137a2826141f7565b602082019050919050565b6080820160008201516137c360008501826134cd565b5060208201516137d66020850182613820565b5060408201516137e96040850182613502565b5060608201516137fc6060850182613802565b50505050565b61380b81613d56565b82525050565b61381a81613d65565b82525050565b61382981613d6f565b82525050565b600061383b82846134eb565b60148201915081905092915050565b60006138568285613592565b91506138628284613592565b91508190509392505050565b600061387982613721565b9150819050919050565b600060208201905061389860008301846134dc565b92915050565b60006080820190506138b360008301876134dc565b6138c060208301866134dc565b6138cd6040830185613811565b81810360608301526138df8184613520565b905095945050505050565b60006020820190506138ff6000830184613511565b92915050565b6000602082019050818103600083015261391f8184613559565b905092915050565b60006020820190508181036000830152613940816135c3565b9050919050565b60006020820190508181036000830152613960816135e6565b9050919050565b6000602082019050818103600083015261398081613609565b9050919050565b600060208201905081810360008301526139a08161362c565b9050919050565b600060208201905081810360008301526139c08161364f565b9050919050565b600060208201905081810360008301526139e081613672565b9050919050565b60006020820190508181036000830152613a0081613695565b9050919050565b60006020820190508181036000830152613a20816136b8565b9050919050565b60006020820190508181036000830152613a40816136db565b9050919050565b60006020820190508181036000830152613a60816136fe565b9050919050565b60006020820190508181036000830152613a8081613744565b9050919050565b60006020820190508181036000830152613aa081613767565b9050919050565b60006020820190508181036000830152613ac08161378a565b9050919050565b6000608082019050613adc60008301846137ad565b92915050565b6000602082019050613af76000830184613811565b92915050565b6000613b07613b18565b9050613b138282613df7565b919050565b6000604051905090565b600067ffffffffffffffff821115613b3d57613b3c613f51565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613b6957613b68613f51565b5b613b7282613f9e565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613bd882613d65565b9150613be383613d65565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613c1857613c17613e95565b5b828201905092915050565b6000613c2e82613d65565b9150613c3983613d65565b925082613c4957613c48613ec4565b5b828204905092915050565b6000613c5f82613d65565b9150613c6a83613d65565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613ca357613ca2613e95565b5b828202905092915050565b6000613cb982613d65565b9150613cc483613d65565b925082821015613cd757613cd6613e95565b5b828203905092915050565b6000613ced82613d36565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b83811015613db0578082015181840152602081019050613d95565b83811115613dbf576000848401525b50505050565b60006002820490506001821680613ddd57607f821691505b60208210811415613df157613df0613ef3565b5b50919050565b613e0082613f9e565b810181811067ffffffffffffffff82111715613e1f57613e1e613f51565b5b80604052505050565b6000613e3382613d65565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613e6657613e65613e95565b5b600182019050919050565b6000613e7c82613e83565b9050919050565b6000613e8e82613faf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f496e76616c6964204d65726b6c652050726f6f662e0000000000000000000000600082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b7f72656163686564206d617820616d6f756e740000000000000000000000000000600082015250565b7f6e6f7420626567756e0000000000000000000000000000000000000000000000600082015250565b7f546f6f206d616e7920616c7265616479206d696e746564206265666f7265206460008201527f6576206d696e742e000000000000000000000000000000000000000000000000602082015250565b7f72656163686564206d617820737570706c790000000000000000000000000000600082015250565b7f7265616368656420616d6f756e74207065722061646472657373000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f72656163686564206d617820616d6f756e7420706572206d696e740000000000600082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f4e65656420746f2073656e64206d6f7265204554482e00000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61422981613ce2565b811461423457600080fd5b50565b61424081613cf4565b811461424b57600080fd5b50565b61425781613d00565b811461426257600080fd5b50565b61426e81613d0a565b811461427957600080fd5b50565b61428581613d65565b811461429057600080fd5b5056fea26469706673582212208a5425e8e8c9ddbc54784aca55b87d64bb41d43cf71d550c0fe360fb5b1b5f7d64736f6c63430008070033

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.