APE Price: $0.70 (+3.32%)

Token

D0TS (D0TS)

Overview

Max Total Supply

1,881 D0TS

Holders

366

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
19 D0TS
0xeed172c72bb44076a481d18736b76bdafb494bcf
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
DotsNft

Compiler Version
v0.8.28+commit.7893614a

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 26 : DotsNft.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@limitbreak/creator-token-standards/src/access/OwnableBasic.sol";
import "@limitbreak/creator-token-standards/src/erc721c/ERC721AC.sol";
import "@limitbreak/creator-token-standards/src/programmable-royalties/MinterCreatorSharedRoyalties.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract DotsNft is OwnableBasic, ERC721AC, MinterCreatorSharedRoyalties {
    using MerkleProof for bytes32[];
    using Strings for uint256;

    bytes32 public merkleRoot;
    string private _baseTokenURI;

    error InvalidTokenId();
    
    // Phase control
    bool public claimPhaseActive;
    bool public publicPhaseActive;
    
    // Mint tracking
    mapping(address => bool) public hasClaimed;
    mapping(address => uint256) public publicMintCount;

    // Royalty constants
    uint256 private constant ROYALTY_FEE_NUMERATOR = 600; // 6% total royalty
    uint256 private constant MINTER_SHARES = 200; // 2% for minters
    uint256 private constant CREATOR_SHARES = 400; // 4% for creator
    
    // Constants
    uint256 public constant MAX_SUPPLY = 1881;
    uint256 public constant CLAIM_MINT_LIMIT = 1;
    uint256 public constant PUBLIC_MINT_LIMIT = 2;

    // Supply tracking
    uint256 private _currentSupply;

      constructor(
          address creator_,
          address paymentSplitterReference_,
          string memory name_,
          string memory symbol_,
          bytes32 merkleRoot_,
          string memory baseTokenURI_
      )
          ERC721AC(name_, symbol_)
          MinterCreatorSharedRoyalties(
              ROYALTY_FEE_NUMERATOR,  // 6% total royalty
              MINTER_SHARES,          // 2% for minters
              CREATOR_SHARES,         // 4% for creator
              creator_,
              paymentSplitterReference_
          )
      {
          merkleRoot = merkleRoot_;
          _baseTokenURI = baseTokenURI_;

          _mint(0xF5B7e691bF54857a634f43100bc9deA1Ac6547C0, 1);
          _mint(0xF5B7e691bF54857a634f43100bc9deA1Ac6547C0, 1);

      }

    // Phase control functions
    function setClaimPhase(bool _isActive) external onlyOwner {
        claimPhaseActive = _isActive;
    }

    function setPublicPhase(bool _isActive) external onlyOwner {
        publicPhaseActive = _isActive;
    }

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

    // Claim phase mint
    function claim(bytes32[] calldata proof) external {
        require(claimPhaseActive, "Claim phase not active");
        require(!hasClaimed[msg.sender], "Already claimed");
        require(_currentSupply + CLAIM_MINT_LIMIT <= MAX_SUPPLY, "Max supply reached");
        
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(
            MerkleProof.verify(proof, merkleRoot, leaf),
            "Invalid merkle proof"
        );

        hasClaimed[msg.sender] = true;
        _mint(msg.sender, CLAIM_MINT_LIMIT);
    }

    // Public phase mint
    function publicMint(uint256 quantity) external {
        require(publicPhaseActive, "Public phase not active");
        require(quantity > 0, "Must mint at least 1");
        require(_currentSupply + quantity <= MAX_SUPPLY, "Max supply reached");
        
        uint256 currentMintCount = publicMintCount[msg.sender];
        uint256 allowedMints = hasClaimed[msg.sender] ? 
            PUBLIC_MINT_LIMIT : 
            PUBLIC_MINT_LIMIT;
            
        require(
            currentMintCount + quantity <= allowedMints,
            "Exceeds mint limit"
        );

        publicMintCount[msg.sender] += quantity;
        _mint(msg.sender, quantity);
    }

    // URI functions
    function setBaseURI(string memory baseURI_) external onlyOwner {
        _baseTokenURI = baseURI_;
    }



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

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        if (ownerOf(tokenId) == address(0)) revert InvalidTokenId();

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

    // Override required interface support
    function supportsInterface(bytes4 interfaceId)
        public 
        view 
        virtual 
        override(ERC721AC, MinterCreatorSharedRoyaltiesBase) 
        returns (bool) 
    {
        return ERC721AC.supportsInterface(interfaceId) ||
            MinterCreatorSharedRoyaltiesBase.supportsInterface(interfaceId);
    }

   

    // Internal functions
    // Supply query functions
    function totalSupply() public view override returns (uint256) {
        return _currentSupply;
    }

    function remainingSupply() public view returns (uint256) {
        return MAX_SUPPLY - _currentSupply;
    }

    function _mint(address to, uint256 quantity) internal virtual override {
        uint256 nextTokenId = _nextTokenId();

        for (uint256 i = 0; i < quantity;) {
            _onMinted(to, nextTokenId + i);
            
            unchecked {
                ++i;
            }
        }

        _currentSupply += quantity;
        super._mint(to, quantity);
    }

  

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

File 2 of 26 : OwnableBasic.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "./OwnablePermissions.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

abstract contract OwnableBasic is OwnablePermissions, Ownable {
    function _requireCallerIsContractOwner() internal view virtual override {
        _checkOwner();
    }
}

File 3 of 26 : OwnablePermissions.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/Context.sol";

abstract contract OwnablePermissions is Context {
    function _requireCallerIsContractOwner() internal view virtual;
}

File 4 of 26 : ERC721AC.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "../utils/AutomaticValidatorTransferApproval.sol";
import "../utils/CreatorTokenBase.sol";
import "erc721a/contracts/ERC721A.sol";
import {TOKEN_TYPE_ERC721} from "@limitbreak/permit-c/src/Constants.sol";

/**
 * @title ERC721AC
 * @author Limit Break, Inc.
 * @notice Extends Azuki's ERC721-A implementation with Creator Token functionality, which
 *         allows the contract owner to update the transfer validation logic by managing a security policy in
 *         an external transfer validation security policy registry.  See {CreatorTokenTransferValidator}.
 */
abstract contract ERC721AC is ERC721A, CreatorTokenBase, AutomaticValidatorTransferApproval {

    constructor(string memory name_, string memory symbol_) CreatorTokenBase() ERC721A(name_, symbol_) {}

    /**
     * @notice Overrides behavior of isApprovedFor all such that if an operator is not explicitly approved
     *         for all, the contract owner can optionally auto-approve the 721-C transfer validator for transfers.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool isApproved) {
        isApproved = super.isApprovedForAll(owner, operator);

        if (!isApproved) {
            if (autoApproveTransfersFromValidator) {
                isApproved = operator == address(getTransferValidator());
            }
        }
    }

    /**
     * @notice Indicates whether the contract implements the specified interface.
     * @dev Overrides supportsInterface in ERC165.
     * @param interfaceId The interface id
     * @return true if the contract implements the specified interface, false otherwise
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return 
        interfaceId == type(ICreatorToken).interfaceId || 
        interfaceId == type(ICreatorTokenLegacy).interfaceId || 
        super.supportsInterface(interfaceId);
    }

    /**
     * @notice Returns the function selector for the transfer validator's validation function to be called 
     * @notice for transaction simulation. 
     */
    function getTransferValidationFunction() external pure returns (bytes4 functionSignature, bool isViewFunction) {
        functionSignature = bytes4(keccak256("validateTransfer(address,address,address,uint256)"));
        isViewFunction = true;
    }

    /// @dev Ties the erc721a _beforeTokenTransfers hook to more granular transfer validation logic
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual override {
        for (uint256 i = 0; i < quantity;) {
            _validateBeforeTransfer(from, to, startTokenId + i);
            unchecked {
                ++i;
            }
        }
    }

    /// @dev Ties the erc721a _afterTokenTransfer hook to more granular transfer validation logic
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual override {
        for (uint256 i = 0; i < quantity;) {
            _validateAfterTransfer(from, to, startTokenId + i);
            unchecked {
                ++i;
            }
        }
    }

    function _msgSenderERC721A() internal view virtual override returns (address) {
        return _msgSender();
    }

    function _tokenType() internal pure override returns(uint16) {
        return uint16(TOKEN_TYPE_ERC721);
    }
}

File 5 of 26 : ICreatorToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface ICreatorToken {
    event TransferValidatorUpdated(address oldValidator, address newValidator);
    function getTransferValidator() external view returns (address validator);
    function setTransferValidator(address validator) external;
    function getTransferValidationFunction() external view returns (bytes4 functionSignature, bool isViewFunction);
}

File 6 of 26 : ICreatorTokenLegacy.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface ICreatorTokenLegacy {
    event TransferValidatorUpdated(address oldValidator, address newValidator);
    function getTransferValidator() external view returns (address validator);
    function setTransferValidator(address validator) external;
}

File 7 of 26 : ITransferValidator.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface ITransferValidator {
    function applyCollectionTransferPolicy(address caller, address from, address to) external view;
    function validateTransfer(address caller, address from, address to) external view;
    function validateTransfer(address caller, address from, address to, uint256 tokenId) external view;
    function validateTransfer(address caller, address from, address to, uint256 tokenId, uint256 amount) external;

    function beforeAuthorizedTransfer(address operator, address token, uint256 tokenId) external;
    function afterAuthorizedTransfer(address token, uint256 tokenId) external;
    function beforeAuthorizedTransfer(address operator, address token) external;
    function afterAuthorizedTransfer(address token) external;
    function beforeAuthorizedTransfer(address token, uint256 tokenId) external;
    function beforeAuthorizedTransferWithAmount(address token, uint256 tokenId, uint256 amount) external;
    function afterAuthorizedTransferWithAmount(address token, uint256 tokenId) external;
}

File 8 of 26 : ITransferValidatorSetTokenType.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface ITransferValidatorSetTokenType {
    function setTokenTypeOfCollection(address collection, uint16 tokenType) external;
}

File 9 of 26 : IPaymentSplitterInitializable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IPaymentSplitterInitializable {
    function totalShares() external view returns (uint256);
    function totalReleased() external view returns (uint256);
    function totalReleased(IERC20 token) external view returns (uint256);
    function shares(address account) external view returns (uint256);
    function released(address account) external view returns (uint256);
    function released(IERC20 token, address account) external view returns (uint256);
    function payee(uint256 index) external view returns (address);
    function releasable(address account) external view returns (uint256);
    function releasable(IERC20 token, address account) external view returns (uint256);
    function initializePaymentSplitter(address[] calldata payees, uint256[] calldata shares_) external;
    function release(address payable account) external;
    function release(IERC20 token, address account) external;
}

File 10 of 26 : MinterCreatorSharedRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "./helpers/IPaymentSplitterInitializable.sol";
import "../access/OwnablePermissions.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/proxy/Clones.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @title MinterCreatorSharedRoyaltiesBase
 * @author Limit Break, Inc.
 * @dev Base functionality of an NFT mix-in contract implementing programmable royalties.  Royalties are shared between creators and minters.
 */
abstract contract MinterCreatorSharedRoyaltiesBase is IERC2981, ERC165 {

    error MinterCreatorSharedRoyalties__CreatorCannotBeZeroAddress();
    error MinterCreatorSharedRoyalties__CreatorSharesCannotBeZero();
    error MinterCreatorSharedRoyalties__MinterCannotBeZeroAddress();
    error MinterCreatorSharedRoyalties__MinterHasAlreadyBeenAssignedToTokenId();
    error MinterCreatorSharedRoyalties__MinterSharesCannotBeZero();
    error MinterCreatorSharedRoyalties__PaymentSplitterDoesNotExistForSpecifiedTokenId();
    error MinterCreatorSharedRoyalties__PaymentSplitterReferenceCannotBeZeroAddress();
    error MinterCreatorSharedRoyalties__RoyaltyFeeWillExceedSalePrice();

    enum ReleaseTo {
        Minter,
        Creator
    }

    uint256 public constant FEE_DENOMINATOR = 10_000;
    uint256 private _royaltyFeeNumerator;
    uint256 private _minterShares;
    uint256 private _creatorShares;
    address private _creator;
    address private _paymentSplitterReference;

    mapping (uint256 => address) private _minters;
    mapping (uint256 => address) private _paymentSplitters;
    mapping (address => address[]) private _minterPaymentSplitters;

    /**
     * @notice Indicates whether the contract implements the specified interface.
     * @dev Overrides supportsInterface in ERC165.
     * @param interfaceId The interface id
     * @return true if the contract implements the specified interface, false otherwise
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    function royaltyFeeNumerator() public virtual view returns (uint256) {
        return _royaltyFeeNumerator;
    }

    function minterShares() public virtual view returns (uint256) {
        return _minterShares;
    }

    function creatorShares() public virtual view returns (uint256) {
        return _creatorShares;
    }

    function creator() public virtual view returns (address) {
        return _creator;
    }

    function paymentSplitterReference() public virtual view returns (address) {
        return _paymentSplitterReference;
    }

    /**
     * @notice Returns the royalty fee and recipient for a given token.
     * @param  tokenId   The id of the token whose royalty info is being queried.
     * @param  salePrice The sale price of the token.
     * @return           The royalty fee and recipient for a given token.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view override returns (address, uint256) {
        return (_paymentSplitters[tokenId], (salePrice * royaltyFeeNumerator()) / FEE_DENOMINATOR);
    }

    /**
     * @notice Returns the minter of the token with id `tokenId`.
     * @param  tokenId  The id of the token whose minter is being queried.
     * @return         The minter of the token with id `tokenId`.
     */
    function minterOf(uint256 tokenId) external view returns (address) {
        return _minters[tokenId];
    }

    /**
     * @notice Returns the payment splitter of the token with id `tokenId`.
     * @param  tokenId  The id of the token whose payment splitter is being queried.
     * @return         The payment splitter of the token with id `tokenId`.
     */
    function paymentSplitterOf(uint256 tokenId) external view returns (address) {
        return _paymentSplitters[tokenId];
    }

    /**
     * @notice Returns the payment splitters of the minter `minter`.
     * @param  minter  The minter whose payment splitters are being queried.
     * @return         The payment splitters of the minter `minter`.
     */
    function paymentSplittersOfMinter(address minter) external view returns (address[] memory) {
        return _minterPaymentSplitters[minter];
    }

    /**
     * @notice Returns the amount of native funds that can be released to the minter or creator of the token with id `tokenId`.
     * @param  tokenId   The id of the token whose releasable funds are being queried.
     * @param  releaseTo Specifies whether the minter or creator should be queried.
     * @return           The amount of native funds that can be released to the minter or creator of the token with id `tokenId`.
     */
    function releasableNativeFunds(uint256 tokenId, ReleaseTo releaseTo) external view returns (uint256) {
        IPaymentSplitterInitializable paymentSplitter = _getPaymentSplitterForTokenOrRevert(tokenId);

        if (releaseTo == ReleaseTo.Minter) {
            return paymentSplitter.releasable(payable(_minters[tokenId]));
        } else {
            return paymentSplitter.releasable(payable(creator()));
        }
    }

    /**
     * @notice Returns the amount of ERC20 funds that can be released to the minter or creator of the token with id `tokenId`.
     * @param  tokenId   The id of the token whose releasable funds are being queried.
     * @param  coin      The address of the ERC20 token whose releasable funds are being queried.
     * @param  releaseTo Specifies whether the minter or creator should be queried.
     * @return           The amount of ERC20 funds that can be released to the minter or creator of the token with id `tokenId`.
     */
    function releasableERC20Funds(uint256 tokenId, address coin, ReleaseTo releaseTo) external view returns (uint256) {
        IPaymentSplitterInitializable paymentSplitter = _getPaymentSplitterForTokenOrRevert(tokenId);

        if (releaseTo == ReleaseTo.Minter) {
            return paymentSplitter.releasable(IERC20(coin), _minters[tokenId]);
        } else {
            return paymentSplitter.releasable(IERC20(coin), creator());
        }
    }

    /**
     * @notice Releases all available native funds to the minter or creator of the token with id `tokenId`.
     * @param  tokenId   The id of the token whose funds are being released.
     * @param  releaseTo Specifies whether the minter or creator should be released to.
     */
    function releaseNativeFunds(uint256 tokenId, ReleaseTo releaseTo) external {
        IPaymentSplitterInitializable paymentSplitter = _getPaymentSplitterForTokenOrRevert(tokenId);

        if (releaseTo == ReleaseTo.Minter) {
            paymentSplitter.release(payable(_minters[tokenId]));
        } else {
            paymentSplitter.release(payable(creator()));
        }
    }

    /**
     * @notice Releases all available ERC20 funds to the minter or creator of the token with id `tokenId`.
     * @param  tokenId   The id of the token whose funds are being released.
     * @param  coin      The address of the ERC20 token whose funds are being released.
     * @param  releaseTo Specifies whether the minter or creator should be released to.
     */
    function releaseERC20Funds(uint256 tokenId, address coin, ReleaseTo releaseTo) external {
        IPaymentSplitterInitializable paymentSplitter = _getPaymentSplitterForTokenOrRevert(tokenId);

        if(releaseTo == ReleaseTo.Minter) {
            paymentSplitter.release(IERC20(coin), _minters[tokenId]);
        } else {
            paymentSplitter.release(IERC20(coin), creator());
        }
    }

    /**
     * @dev   Internal function that must be called when a token is minted.
     *        Creates a payment splitter for the minter and creator of the token to share royalties.
     * @param minter  The minter of the token.
     * @param tokenId The id of the token that was minted.
     */
    function _onMinted(address minter, uint256 tokenId) internal {
        if (minter == address(0)) {
            revert MinterCreatorSharedRoyalties__MinterCannotBeZeroAddress();
        }

        if (_minters[tokenId] != address(0)) {
            revert MinterCreatorSharedRoyalties__MinterHasAlreadyBeenAssignedToTokenId();
        }

        address paymentSplitter = _createPaymentSplitter(minter);
        _paymentSplitters[tokenId] = paymentSplitter;
        _minterPaymentSplitters[minter].push(paymentSplitter);
        _minters[tokenId] = minter;
    }

    /**
     * @dev  Internal function that must be called when a token is burned.
     *       Deletes the payment splitter mapping and minter mapping for the token in case it is ever re-minted.
     * @param tokenId The id of the token that was burned.
     */
    function _onBurned(uint256 tokenId) internal {
        delete _paymentSplitters[tokenId];
        delete _minters[tokenId];
    }

    /**
     * @dev   Internal function that creates a payment splitter for the minter and creator of the token to share royalties.
     * @param minter The minter of the token.
     * @return       The address of the payment splitter.
     */
    function _createPaymentSplitter(address minter) private returns (address) {
        address creator_ = creator();
        address paymentSplitterReference_ = paymentSplitterReference();

        IPaymentSplitterInitializable paymentSplitter = 
            IPaymentSplitterInitializable(Clones.clone(paymentSplitterReference_));

        if (minter == creator_) {
            address[] memory payees = new address[](1);
            payees[0] = creator_;

            uint256[] memory shares = new uint256[](1);
            shares[0] = minterShares() + creatorShares();

            paymentSplitter.initializePaymentSplitter(payees, shares);
        } else {
            address[] memory payees = new address[](2);
            payees[0] = minter;
            payees[1] = creator_;

            uint256[] memory shares = new uint256[](2);
            shares[0] = minterShares();
            shares[1] = creatorShares();

            paymentSplitter.initializePaymentSplitter(payees, shares);
        }

        return address(paymentSplitter);
    }

    /**
     * @dev Gets the payment splitter for the specified token id or reverts if it does not exist.
     */
    function _getPaymentSplitterForTokenOrRevert(uint256 tokenId) private view returns (IPaymentSplitterInitializable) {
        address paymentSplitterForToken = _paymentSplitters[tokenId];
        if(paymentSplitterForToken == address(0)) {
            revert MinterCreatorSharedRoyalties__PaymentSplitterDoesNotExistForSpecifiedTokenId();
        }

        return IPaymentSplitterInitializable(payable(paymentSplitterForToken));
    }

    function _setRoyaltyFeeNumeratorAndShares(
        uint256 royaltyFeeNumerator_, 
        uint256 minterShares_, 
        uint256 creatorShares_, 
        address creator_,
        address paymentSplitterReference_) internal {
        if(royaltyFeeNumerator_ > FEE_DENOMINATOR) {
            revert MinterCreatorSharedRoyalties__RoyaltyFeeWillExceedSalePrice();
        }

        if (minterShares_ == 0) {
            revert MinterCreatorSharedRoyalties__MinterSharesCannotBeZero();
        }

        if (creatorShares_ == 0) {
            revert MinterCreatorSharedRoyalties__CreatorSharesCannotBeZero();
        }

        if (creator_ == address(0)) {
            revert MinterCreatorSharedRoyalties__CreatorCannotBeZeroAddress();
        }

        if (paymentSplitterReference_ == address(0)) {
            revert MinterCreatorSharedRoyalties__PaymentSplitterReferenceCannotBeZeroAddress();
        }

        _royaltyFeeNumerator = royaltyFeeNumerator_;
        _minterShares = minterShares_;
        _creatorShares = creatorShares_;
        _creator = creator_;
        _paymentSplitterReference = paymentSplitterReference_;
    }
}

/**
 * @title MinterCreatorSharedRoyalties
 * @author Limit Break, Inc.
 * @notice Constructable MinterCreatorSharedRoyalties Contract implementation.
 */
abstract contract MinterCreatorSharedRoyalties is MinterCreatorSharedRoyaltiesBase {

    uint256 private immutable _royaltyFeeNumeratorImmutable;
    uint256 private immutable _minterSharesImmutable;
    uint256 private immutable _creatorSharesImmutable;
    address private immutable _creatorImmutable;
    address private immutable _paymentSplitterReferenceImmutable;

    /**
     * @dev Constructor that sets the royalty fee numerator, creator, and minter/creator shares.
     * @dev Throws when defaultRoyaltyFeeNumerator_ is greater than FEE_DENOMINATOR
     * @param royaltyFeeNumerator_ The royalty fee numerator
     * @param minterShares_  The number of shares minters get allocated in payment processors
     * @param creatorShares_ The number of shares creators get allocated in payment processors
     * @param creator_       The NFT creator's royalty wallet
     */
    constructor(
        uint256 royaltyFeeNumerator_, 
        uint256 minterShares_, 
        uint256 creatorShares_, 
        address creator_,
        address paymentSplitterReference_) {
        _setRoyaltyFeeNumeratorAndShares(
            royaltyFeeNumerator_, 
            minterShares_, 
            creatorShares_, 
            creator_, 
            paymentSplitterReference_);

        _royaltyFeeNumeratorImmutable = royaltyFeeNumerator_;
        _minterSharesImmutable = minterShares_;
        _creatorSharesImmutable = creatorShares_;
        _creatorImmutable = creator_;
        _paymentSplitterReferenceImmutable = paymentSplitterReference_;
    }

    function royaltyFeeNumerator() public view override returns (uint256) {
        return _royaltyFeeNumeratorImmutable;
    }

    function minterShares() public view override returns (uint256) {
        return _minterSharesImmutable;
    }

    function creatorShares() public view override returns (uint256) {
        return _creatorSharesImmutable;
    }

    function creator() public view override returns (address) {
        return _creatorImmutable;
    }

    function paymentSplitterReference() public view override returns (address) {
        return _paymentSplitterReferenceImmutable;
    }
}

/**
 * @title MinterCreatorSharedRoyaltiesInitializable
 * @author Limit Break, Inc.
 * @notice Initializable MinterCreatorSharedRoyalties Contract implementation to allow for EIP-1167 clones. 
 */
abstract contract MinterCreatorSharedRoyaltiesInitializable is OwnablePermissions, MinterCreatorSharedRoyaltiesBase {

    error MinterCreatorSharedRoyaltiesInitializable__RoyaltyFeeAndSharesAlreadyInitialized();

    bool private _royaltyFeeAndSharesInitialized;

    function initializeMinterRoyaltyFee(
        uint256 royaltyFeeNumerator_, 
        uint256 minterShares_, 
        uint256 creatorShares_, 
        address creator_,
        address paymentSplitterReference_) public {
        _requireCallerIsContractOwner();

        if(_royaltyFeeAndSharesInitialized) {
            revert MinterCreatorSharedRoyaltiesInitializable__RoyaltyFeeAndSharesAlreadyInitialized();
        }

        _royaltyFeeAndSharesInitialized = true;

        _setRoyaltyFeeNumeratorAndShares(
            royaltyFeeNumerator_, 
            minterShares_, 
            creatorShares_, 
            creator_, 
            paymentSplitterReference_);
    }
}

File 11 of 26 : AutomaticValidatorTransferApproval.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "../access/OwnablePermissions.sol";

/**
 * @title AutomaticValidatorTransferApproval
 * @author Limit Break, Inc.
 * @notice Base contract mix-in that provides boilerplate code giving the contract owner the
 *         option to automatically approve a 721-C transfer validator implementation for transfers.
 */
abstract contract AutomaticValidatorTransferApproval is OwnablePermissions {

    /// @dev Emitted when the automatic approval flag is modified by the creator.
    event AutomaticApprovalOfTransferValidatorSet(bool autoApproved);

    /// @dev If true, the collection's transfer validator is automatically approved to transfer holder's tokens.
    bool public autoApproveTransfersFromValidator;

    /**
     * @notice Sets if the transfer validator is automatically approved as an operator for all token owners.
     * 
     * @dev    Throws when the caller is not the contract owner.
     * 
     * @param autoApprove If true, the collection's transfer validator will be automatically approved to
     *                    transfer holder's tokens.
     */
    function setAutomaticApprovalOfTransfersFromValidator(bool autoApprove) external {
        _requireCallerIsContractOwner();
        autoApproveTransfersFromValidator = autoApprove;
        emit AutomaticApprovalOfTransferValidatorSet(autoApprove);
    }
}

File 12 of 26 : CreatorTokenBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "../access/OwnablePermissions.sol";
import "../interfaces/ICreatorToken.sol";
import "../interfaces/ICreatorTokenLegacy.sol";
import "../interfaces/ITransferValidator.sol";
import "./TransferValidation.sol";
import "../interfaces/ITransferValidatorSetTokenType.sol";

/**
 * @title CreatorTokenBase
 * @author Limit Break, Inc.
 * @notice CreatorTokenBaseV3 is an abstract contract that provides basic functionality for managing token 
 * transfer policies through an implementation of ICreatorTokenTransferValidator/ICreatorTokenTransferValidatorV2/ICreatorTokenTransferValidatorV3. 
 * This contract is intended to be used as a base for creator-specific token contracts, enabling customizable transfer 
 * restrictions and security policies.
 *
 * <h4>Features:</h4>
 * <ul>Ownable: This contract can have an owner who can set and update the transfer validator.</ul>
 * <ul>TransferValidation: Implements the basic token transfer validation interface.</ul>
 *
 * <h4>Benefits:</h4>
 * <ul>Provides a flexible and modular way to implement custom token transfer restrictions and security policies.</ul>
 * <ul>Allows creators to enforce policies such as account and codehash blacklists, whitelists, and graylists.</ul>
 * <ul>Can be easily integrated into other token contracts as a base contract.</ul>
 *
 * <h4>Intended Usage:</h4>
 * <ul>Use as a base contract for creator token implementations that require advanced transfer restrictions and 
 *   security policies.</ul>
 * <ul>Set and update the ICreatorTokenTransferValidator implementation contract to enforce desired policies for the 
 *   creator token.</ul>
 *
 * <h4>Compatibility:</h4>
 * <ul>Backward and Forward Compatible - V1/V2/V3 Creator Token Base will work with V1/V2/V3 Transfer Validators.</ul>
 */
abstract contract CreatorTokenBase is OwnablePermissions, TransferValidation, ICreatorToken {

    /// @dev Thrown when setting a transfer validator address that has no deployed code.
    error CreatorTokenBase__InvalidTransferValidatorContract();

    /// @dev The default transfer validator that will be used if no transfer validator has been set by the creator.
    address public constant DEFAULT_TRANSFER_VALIDATOR = address(0x721C002B0059009a671D00aD1700c9748146cd1B);

    /// @dev Used to determine if the default transfer validator is applied.
    /// @dev Set to true when the creator sets a transfer validator address.
    bool private isValidatorInitialized;
    /// @dev Address of the transfer validator to apply to transactions.
    address private transferValidator;

    constructor() {
        _emitDefaultTransferValidator();
        _registerTokenType(DEFAULT_TRANSFER_VALIDATOR);
    }

    /**
     * @notice Sets the transfer validator for the token contract.
     *
     * @dev    Throws when provided validator contract is not the zero address and does not have code.
     * @dev    Throws when the caller is not the contract owner.
     *
     * @dev    <h4>Postconditions:</h4>
     *         1. The transferValidator address is updated.
     *         2. The `TransferValidatorUpdated` event is emitted.
     *
     * @param transferValidator_ The address of the transfer validator contract.
     */
    function setTransferValidator(address transferValidator_) public {
        _requireCallerIsContractOwner();

        bool isValidTransferValidator = transferValidator_.code.length > 0;

        if(transferValidator_ != address(0) && !isValidTransferValidator) {
            revert CreatorTokenBase__InvalidTransferValidatorContract();
        }

        emit TransferValidatorUpdated(address(getTransferValidator()), transferValidator_);

        isValidatorInitialized = true;
        transferValidator = transferValidator_;

        _registerTokenType(transferValidator_);
    }

    /**
     * @notice Returns the transfer validator contract address for this token contract.
     */
    function getTransferValidator() public view override returns (address validator) {
        validator = transferValidator;

        if (validator == address(0)) {
            if (!isValidatorInitialized) {
                validator = DEFAULT_TRANSFER_VALIDATOR;
            }
        }
    }

    /**
     * @dev Pre-validates a token transfer, reverting if the transfer is not allowed by this token's security policy.
     *      Inheriting contracts are responsible for overriding the _beforeTokenTransfer function, or its equivalent
     *      and calling _validateBeforeTransfer so that checks can be properly applied during token transfers.
     *
     * @dev Be aware that if the msg.sender is the transfer validator, the transfer is automatically permitted, as the
     *      transfer validator is expected to pre-validate the transfer.
     *
     * @dev Throws when the transfer doesn't comply with the collection's transfer policy, if the transferValidator is
     *      set to a non-zero address.
     *
     * @param caller  The address of the caller.
     * @param from    The address of the sender.
     * @param to      The address of the receiver.
     * @param tokenId The token id being transferred.
     */
    function _preValidateTransfer(
        address caller, 
        address from, 
        address to, 
        uint256 tokenId, 
        uint256 /*value*/) internal virtual override {
        address validator = getTransferValidator();

        if (validator != address(0)) {
            if (msg.sender == validator) {
                return;
            }

            ITransferValidator(validator).validateTransfer(caller, from, to, tokenId);
        }
    }

    /**
     * @dev Pre-validates a token transfer, reverting if the transfer is not allowed by this token's security policy.
     *      Inheriting contracts are responsible for overriding the _beforeTokenTransfer function, or its equivalent
     *      and calling _validateBeforeTransfer so that checks can be properly applied during token transfers.
     *
     * @dev Be aware that if the msg.sender is the transfer validator, the transfer is automatically permitted, as the
     *      transfer validator is expected to pre-validate the transfer.
     * 
     * @dev Used for ERC20 and ERC1155 token transfers which have an amount value to validate in the transfer validator.
     * @dev The `tokenId` for ERC20 tokens should be set to `0`.
     *
     * @dev Throws when the transfer doesn't comply with the collection's transfer policy, if the transferValidator is
     *      set to a non-zero address.
     *
     * @param caller  The address of the caller.
     * @param from    The address of the sender.
     * @param to      The address of the receiver.
     * @param tokenId The token id being transferred.
     * @param amount  The amount of token being transferred.
     */
    function _preValidateTransfer(
        address caller, 
        address from, 
        address to, 
        uint256 tokenId, 
        uint256 amount,
        uint256 /*value*/) internal virtual override {
        address validator = getTransferValidator();

        if (validator != address(0)) {
            if (msg.sender == validator) {
                return;
            }

            ITransferValidator(validator).validateTransfer(caller, from, to, tokenId, amount);
        }
    }

    function _tokenType() internal virtual pure returns(uint16);

    function _registerTokenType(address validator) internal {
        if (validator != address(0)) {
            uint256 validatorCodeSize;
            assembly {
                validatorCodeSize := extcodesize(validator)
            }
            if(validatorCodeSize > 0) {
                try ITransferValidatorSetTokenType(validator).setTokenTypeOfCollection(address(this), _tokenType()) {
                } catch { }
            }
        }
    }

    /**
     * @dev  Used during contract deployment for constructable and cloneable creator tokens
     * @dev  to emit the `TransferValidatorUpdated` event signaling the validator for the contract
     * @dev  is the default transfer validator.
     */
    function _emitDefaultTransferValidator() internal {
        emit TransferValidatorUpdated(address(0), DEFAULT_TRANSFER_VALIDATOR);
    }
}

File 13 of 26 : TransferValidation.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/Context.sol";

/**
 * @title TransferValidation
 * @author Limit Break, Inc.
 * @notice A mix-in that can be combined with ERC-721 contracts to provide more granular hooks.
 * Openzeppelin's ERC721 contract only provides hooks for before and after transfer.  This allows
 * developers to validate or customize transfers within the context of a mint, a burn, or a transfer.
 */
abstract contract TransferValidation is Context {
    
    /// @dev Thrown when the from and to address are both the zero address.
    error ShouldNotMintToBurnAddress();

    /*************************************************************************/
    /*                      Transfers Without Amounts                        */
    /*************************************************************************/

    /// @dev Inheriting contracts should call this function in the _beforeTokenTransfer function to get more granular hooks.
    function _validateBeforeTransfer(address from, address to, uint256 tokenId) internal virtual {
        bool fromZeroAddress = from == address(0);
        bool toZeroAddress = to == address(0);

        if(fromZeroAddress && toZeroAddress) {
            revert ShouldNotMintToBurnAddress();
        } else if(fromZeroAddress) {
            _preValidateMint(_msgSender(), to, tokenId, msg.value);
        } else if(toZeroAddress) {
            _preValidateBurn(_msgSender(), from, tokenId, msg.value);
        } else {
            _preValidateTransfer(_msgSender(), from, to, tokenId, msg.value);
        }
    }

    /// @dev Inheriting contracts should call this function in the _afterTokenTransfer function to get more granular hooks.
    function _validateAfterTransfer(address from, address to, uint256 tokenId) internal virtual {
        bool fromZeroAddress = from == address(0);
        bool toZeroAddress = to == address(0);

        if(fromZeroAddress && toZeroAddress) {
            revert ShouldNotMintToBurnAddress();
        } else if(fromZeroAddress) {
            _postValidateMint(_msgSender(), to, tokenId, msg.value);
        } else if(toZeroAddress) {
            _postValidateBurn(_msgSender(), from, tokenId, msg.value);
        } else {
            _postValidateTransfer(_msgSender(), from, to, tokenId, msg.value);
        }
    }

    /// @dev Optional validation hook that fires before a mint
    function _preValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires after a mint
    function _postValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires before a burn
    function _preValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires after a burn
    function _postValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires before a transfer
    function _preValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires after a transfer
    function _postValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {}

    /*************************************************************************/
    /*                         Transfers With Amounts                        */
    /*************************************************************************/

    /// @dev Inheriting contracts should call this function in the _beforeTokenTransfer function to get more granular hooks.
    function _validateBeforeTransfer(address from, address to, uint256 tokenId, uint256 amount) internal virtual {
        bool fromZeroAddress = from == address(0);
        bool toZeroAddress = to == address(0);

        if(fromZeroAddress && toZeroAddress) {
            revert ShouldNotMintToBurnAddress();
        } else if(fromZeroAddress) {
            _preValidateMint(_msgSender(), to, tokenId, amount, msg.value);
        } else if(toZeroAddress) {
            _preValidateBurn(_msgSender(), from, tokenId, amount, msg.value);
        } else {
            _preValidateTransfer(_msgSender(), from, to, tokenId, amount, msg.value);
        }
    }

    /// @dev Inheriting contracts should call this function in the _afterTokenTransfer function to get more granular hooks.
    function _validateAfterTransfer(address from, address to, uint256 tokenId, uint256 amount) internal virtual {
        bool fromZeroAddress = from == address(0);
        bool toZeroAddress = to == address(0);

        if(fromZeroAddress && toZeroAddress) {
            revert ShouldNotMintToBurnAddress();
        } else if(fromZeroAddress) {
            _postValidateMint(_msgSender(), to, tokenId, amount, msg.value);
        } else if(toZeroAddress) {
            _postValidateBurn(_msgSender(), from, tokenId, amount, msg.value);
        } else {
            _postValidateTransfer(_msgSender(), from, to, tokenId, amount, msg.value);
        }
    }

    /// @dev Optional validation hook that fires before a mint
    function _preValidateMint(address caller, address to, uint256 tokenId, uint256 amount, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires after a mint
    function _postValidateMint(address caller, address to, uint256 tokenId, uint256 amount, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires before a burn
    function _preValidateBurn(address caller, address from, uint256 tokenId, uint256 amount, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires after a burn
    function _postValidateBurn(address caller, address from, uint256 tokenId, uint256 amount, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires before a transfer
    function _preValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 amount, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires after a transfer
    function _postValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 amount, uint256 value) internal virtual {}
}

File 14 of 26 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @dev Constant bytes32 value of 0x000...000
bytes32 constant ZERO_BYTES32 = bytes32(0);

/// @dev Constant value of 0
uint256 constant ZERO = 0;
/// @dev Constant value of 1
uint256 constant ONE = 1;

/// @dev Constant value representing an open order in storage
uint8 constant ORDER_STATE_OPEN = 0;
/// @dev Constant value representing a filled order in storage
uint8 constant ORDER_STATE_FILLED = 1;
/// @dev Constant value representing a cancelled order in storage
uint8 constant ORDER_STATE_CANCELLED = 2;

/// @dev Constant value representing the ERC721 token type for signatures and transfer hooks
uint256 constant TOKEN_TYPE_ERC721 = 721;
/// @dev Constant value representing the ERC1155 token type for signatures and transfer hooks
uint256 constant TOKEN_TYPE_ERC1155 = 1155;
/// @dev Constant value representing the ERC20 token type for signatures and transfer hooks
uint256 constant TOKEN_TYPE_ERC20 = 20;

/// @dev Constant value to mask the upper bits of a signature that uses a packed `vs` value to extract `s`
bytes32 constant UPPER_BIT_MASK = 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;

/// @dev EIP-712 typehash used for validating signature based stored approvals
bytes32 constant UPDATE_APPROVAL_TYPEHASH =
    keccak256("UpdateApprovalBySignature(uint256 tokenType,address token,uint256 id,uint256 amount,uint256 nonce,address operator,uint256 approvalExpiration,uint256 sigDeadline,uint256 masterNonce)");

/// @dev EIP-712 typehash used for validating a single use permit without additional data
bytes32 constant SINGLE_USE_PERMIT_TYPEHASH =
    keccak256("PermitTransferFrom(uint256 tokenType,address token,uint256 id,uint256 amount,uint256 nonce,address operator,uint256 expiration,uint256 masterNonce)");

/// @dev EIP-712 typehash used for validating a single use permit with additional data
string constant SINGLE_USE_PERMIT_TRANSFER_ADVANCED_TYPEHASH_STUB =
    "PermitTransferFromWithAdditionalData(uint256 tokenType,address token,uint256 id,uint256 amount,uint256 nonce,address operator,uint256 expiration,uint256 masterNonce,";

/// @dev EIP-712 typehash used for validating an order permit that updates storage as it fills
string constant PERMIT_ORDER_ADVANCED_TYPEHASH_STUB =
    "PermitOrderWithAdditionalData(uint256 tokenType,address token,uint256 id,uint256 amount,uint256 salt,address operator,uint256 expiration,uint256 masterNonce,";

/// @dev Pausable flag for stored approval transfers of ERC721 assets
uint256 constant PAUSABLE_APPROVAL_TRANSFER_FROM_ERC721 = 1 << 0;
/// @dev Pausable flag for stored approval transfers of ERC1155 assets
uint256 constant PAUSABLE_APPROVAL_TRANSFER_FROM_ERC1155 = 1 << 1;
/// @dev Pausable flag for stored approval transfers of ERC20 assets
uint256 constant PAUSABLE_APPROVAL_TRANSFER_FROM_ERC20 = 1 << 2;

/// @dev Pausable flag for single use permit transfers of ERC721 assets
uint256 constant PAUSABLE_PERMITTED_TRANSFER_FROM_ERC721 = 1 << 3;
/// @dev Pausable flag for single use permit transfers of ERC1155 assets
uint256 constant PAUSABLE_PERMITTED_TRANSFER_FROM_ERC1155 = 1 << 4;
/// @dev Pausable flag for single use permit transfers of ERC20 assets
uint256 constant PAUSABLE_PERMITTED_TRANSFER_FROM_ERC20 = 1 << 5;

/// @dev Pausable flag for order fill transfers of ERC1155 assets
uint256 constant PAUSABLE_ORDER_TRANSFER_FROM_ERC1155 = 1 << 6;
/// @dev Pausable flag for order fill transfers of ERC20 assets
uint256 constant PAUSABLE_ORDER_TRANSFER_FROM_ERC20 = 1 << 7;

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 17 of 26 : Clones.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (proxy/Clones.sol)

pragma solidity ^0.8.0;

/**
 * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
 * deploying minimal proxy contracts, also known as "clones".
 *
 * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
 * > a minimal bytecode implementation that delegates all calls to a known, fixed address.
 *
 * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
 * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
 * deterministic method.
 *
 * _Available since v3.4._
 */
library Clones {
    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create opcode, which should never revert.
     */
    function clone(address implementation) internal returns (address instance) {
        /// @solidity memory-safe-assembly
        assembly {
            // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes
            // of the `implementation` address with the bytecode before the address.
            mstore(0x00, or(shr(0xe8, shl(0x60, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000))
            // Packs the remaining 17 bytes of `implementation` with the bytecode after the address.
            mstore(0x20, or(shl(0x78, implementation), 0x5af43d82803e903d91602b57fd5bf3))
            instance := create(0, 0x09, 0x37)
        }
        require(instance != address(0), "ERC1167: create failed");
    }

    /**
     * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
     *
     * This function uses the create2 opcode and a `salt` to deterministically deploy
     * the clone. Using the same `implementation` and `salt` multiple time will revert, since
     * the clones cannot be deployed twice at the same address.
     */
    function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
        /// @solidity memory-safe-assembly
        assembly {
            // Cleans the upper 96 bits of the `implementation` word, then packs the first 3 bytes
            // of the `implementation` address with the bytecode before the address.
            mstore(0x00, or(shr(0xe8, shl(0x60, implementation)), 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000))
            // Packs the remaining 17 bytes of `implementation` with the bytecode after the address.
            mstore(0x20, or(shl(0x78, implementation), 0x5af43d82803e903d91602b57fd5bf3))
            instance := create2(0, 0x09, 0x37, salt)
        }
        require(instance != address(0), "ERC1167: create2 failed");
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(
        address implementation,
        bytes32 salt,
        address deployer
    ) internal pure returns (address predicted) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(add(ptr, 0x38), deployer)
            mstore(add(ptr, 0x24), 0x5af43d82803e903d91602b57fd5bf3ff)
            mstore(add(ptr, 0x14), implementation)
            mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73)
            mstore(add(ptr, 0x58), salt)
            mstore(add(ptr, 0x78), keccak256(add(ptr, 0x0c), 0x37))
            predicted := keccak256(add(ptr, 0x43), 0x55)
        }
    }

    /**
     * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.
     */
    function predictDeterministicAddress(address implementation, bytes32 salt)
        internal
        view
        returns (address predicted)
    {
        return predictDeterministicAddress(implementation, salt, address(this));
    }
}

File 18 of 26 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 19 of 26 : 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 20 of 26 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 23 of 26 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 24 of 26 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

File 25 of 26 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"creator_","type":"address"},{"internalType":"address","name":"paymentSplitterReference_","type":"address"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"},{"internalType":"string","name":"baseTokenURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CreatorTokenBase__InvalidTransferValidatorContract","type":"error"},{"inputs":[],"name":"InvalidTokenId","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MinterCreatorSharedRoyalties__CreatorCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"MinterCreatorSharedRoyalties__CreatorSharesCannotBeZero","type":"error"},{"inputs":[],"name":"MinterCreatorSharedRoyalties__MinterCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"MinterCreatorSharedRoyalties__MinterHasAlreadyBeenAssignedToTokenId","type":"error"},{"inputs":[],"name":"MinterCreatorSharedRoyalties__MinterSharesCannotBeZero","type":"error"},{"inputs":[],"name":"MinterCreatorSharedRoyalties__PaymentSplitterDoesNotExistForSpecifiedTokenId","type":"error"},{"inputs":[],"name":"MinterCreatorSharedRoyalties__PaymentSplitterReferenceCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"MinterCreatorSharedRoyalties__RoyaltyFeeWillExceedSalePrice","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"ShouldNotMintToBurnAddress","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":false,"internalType":"bool","name":"autoApproved","type":"bool"}],"name":"AutomaticApprovalOfTransferValidatorSet","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldValidator","type":"address"},{"indexed":false,"internalType":"address","name":"newValidator","type":"address"}],"name":"TransferValidatorUpdated","type":"event"},{"inputs":[],"name":"CLAIM_MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_TRANSFER_VALIDATOR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"autoApproveTransfersFromValidator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimPhaseActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creatorShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTransferValidationFunction","outputs":[{"internalType":"bytes4","name":"functionSignature","type":"bytes4"},{"internalType":"bool","name":"isViewFunction","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getTransferValidator","outputs":[{"internalType":"address","name":"validator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isApproved","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"minterOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minterShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"paymentSplitterOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentSplitterReference","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"paymentSplittersOfMinter","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPhaseActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"coin","type":"address"},{"internalType":"enum MinterCreatorSharedRoyaltiesBase.ReleaseTo","name":"releaseTo","type":"uint8"}],"name":"releasableERC20Funds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"enum MinterCreatorSharedRoyaltiesBase.ReleaseTo","name":"releaseTo","type":"uint8"}],"name":"releasableNativeFunds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"coin","type":"address"},{"internalType":"enum MinterCreatorSharedRoyaltiesBase.ReleaseTo","name":"releaseTo","type":"uint8"}],"name":"releaseERC20Funds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"enum MinterCreatorSharedRoyaltiesBase.ReleaseTo","name":"releaseTo","type":"uint8"}],"name":"releaseNativeFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"remainingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyFeeNumerator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"autoApprove","type":"bool"}],"name":"setAutomaticApprovalOfTransfersFromValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setClaimPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setPublicPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"transferValidator_","type":"address"}],"name":"setTransferValidator","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

61012060405234801561001157600080fd5b506040516176583803806176588339818101604052810190610033919061165d565b61025860c86101908888888881818160029081610050919061195f565b508060039081610060919061195f565b5061006f6101cb60201b60201c565b60008190555050506100936100886101d460201b60201c565b6101dc60201b60201c565b6100a16102a260201b60201c565b6100c473721c002b0059009a671d00ad1700c9748146cd1b6102f260201b60201c565b50506100d985858585856103af60201b60201c565b84608081815250508360a081815250508260c081815250508173ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff166101008173ffffffffffffffffffffffffffffffffffffffff16815250505050505050816012819055508060139081610175919061195f565b5061019b73f5b7e691bf54857a634f43100bc9dea1ac6547c060016105c960201b60201c565b6101c073f5b7e691bf54857a634f43100bc9dea1ac6547c060016105c960201b60201c565b505050505050611dc5565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b7fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac600073721c002b0059009a671d00ad1700c9748146cd1b6040516102e8929190611a40565b60405180910390a1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146103ac576000813b905060008111156103aa578173ffffffffffffffffffffffffffffffffffffffff1663fb2de5d73061036061063b60201b60201c565b6040518363ffffffff1660e01b815260040161037d929190611a86565b600060405180830381600087803b15801561039757600080fd5b505af19250505080156103a8575060015b505b505b50565b6127108511156103eb576040517f3eca614700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008403610425576040517f774439b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000830361045f576040517f2a3ccc4900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036104c5576040517f82d6f02500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361052b576040517f459489fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84600a8190555083600b8190555082600c8190555081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050565b60006105d961064560201b60201c565b905060005b8281101561060c576106018482846105f69190611ade565b61064e60201b60201c565b8060010190506105de565b50816017600082825461061f9190611ade565b9250508190555061063683836108a960201b60201c565b505050565b60006102d1905090565b60008054905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036106b4576040517f022432f900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600f600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461074d576040517fcb756a3000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061075e83610a8260201b60201c565b9050806010600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600f600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b600080549050600082036108e9576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108fc6000848385610ea360201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506109858361096a6000866000610edc60201b60201c565b61097985610f0a60201b60201c565b17610f1a60201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114610a2657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506109eb565b5060008203610a61576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050610a7d6000848385610f4560201b60201c565b505050565b600080610a93610f7e60201b60201c565b90506000610aa5610f8860201b60201c565b90506000610ab882610f9360201b60201c565b90508273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c92576000600167ffffffffffffffff811115610b0a57610b096114e1565b5b604051908082528060200260200182016040528015610b385781602001602082028036833780820191505090505b5090508381600081518110610b5057610b4f611b12565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600167ffffffffffffffff811115610ba757610ba66114e1565b5b604051908082528060200260200182016040528015610bd55781602001602082028036833780820191505090505b509050610be661104d60201b60201c565b610bf461105760201b60201c565b610bfe9190611ade565b81600081518110610c1257610c11611b12565b5b6020026020010181815250508273ffffffffffffffffffffffffffffffffffffffff16636e260c1e83836040518363ffffffff1660e01b8152600401610c59929190611cbd565b600060405180830381600087803b158015610c7357600080fd5b505af1158015610c87573d6000803e3d6000fd5b505050505050610e98565b6000600267ffffffffffffffff811115610caf57610cae6114e1565b5b604051908082528060200260200182016040528015610cdd5781602001602082028036833780820191505090505b5090508581600081518110610cf557610cf4611b12565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508381600181518110610d4457610d43611b12565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600267ffffffffffffffff811115610d9b57610d9a6114e1565b5b604051908082528060200260200182016040528015610dc95781602001602082028036833780820191505090505b509050610dda61105760201b60201c565b81600081518110610dee57610ded611b12565b5b602002602001018181525050610e0861104d60201b60201c565b81600181518110610e1c57610e1b611b12565b5b6020026020010181815250508273ffffffffffffffffffffffffffffffffffffffff16636e260c1e83836040518363ffffffff1660e01b8152600401610e63929190611cbd565b600060405180830381600087803b158015610e7d57600080fd5b505af1158015610e91573d6000803e3d6000fd5b5050505050505b809350505050919050565b60005b81811015610ed557610eca85858386610ebf9190611ade565b61106160201b60201c565b806001019050610ea6565b5050505050565b60008060e883901c905060e8610ef986868461118560201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b60005b81811015610f7757610f6c85858386610f619190611ade565b61118e60201b60201c565b806001019050610f48565b5050505050565b600060e051905090565b600061010051905090565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f09050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611048576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103f90611d51565b60405180910390fd5b919050565b600060c051905090565b600060a051905090565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614905060008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490508180156110d15750805b15611108576040517f5cbd944100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81156111325761112d61111f6101d460201b60201c565b8585346112b260201b60201c565b61117e565b801561115c576111576111496101d460201b60201c565b8685346112b860201b60201c565b61117d565b61117c61116d6101d460201b60201c565b868686346112be60201b60201c565b5b5b5050505050565b60009392505050565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614905060008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490508180156111fe5750805b15611235576040517f5cbd944100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b811561125f5761125a61124c6101d460201b60201c565b8585346113b660201b60201c565b6112ab565b8015611289576112846112766101d460201b60201c565b8685346113bc60201b60201c565b6112aa565b6112a961129a6101d460201b60201c565b868686346113c260201b60201c565b5b5b5050505050565b50505050565b50505050565b60006112ce6113c960201b60201c565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146113ad578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff160361133d57506113af565b8073ffffffffffffffffffffffffffffffffffffffff1663caee23ea878787876040518563ffffffff1660e01b815260040161137c9493929190611d80565b60006040518083038186803b15801561139457600080fd5b505afa1580156113a8573d6000803e3d6000fd5b505050505b505b5050505050565b50505050565b50505050565b5050505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361145157600860149054906101000a900460ff166114505773721c002b0059009a671d00ad1700c9748146cd1b90505b5b90565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061149382611468565b9050919050565b6114a381611488565b81146114ae57600080fd5b50565b6000815190506114c08161149a565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611519826114d0565b810181811067ffffffffffffffff82111715611538576115376114e1565b5b80604052505050565b600061154b611454565b90506115578282611510565b919050565b600067ffffffffffffffff821115611577576115766114e1565b5b611580826114d0565b9050602081019050919050565b60005b838110156115ab578082015181840152602081019050611590565b60008484015250505050565b60006115ca6115c58461155c565b611541565b9050828152602081018484840111156115e6576115e56114cb565b5b6115f184828561158d565b509392505050565b600082601f83011261160e5761160d6114c6565b5b815161161e8482602086016115b7565b91505092915050565b6000819050919050565b61163a81611627565b811461164557600080fd5b50565b60008151905061165781611631565b92915050565b60008060008060008060c0878903121561167a5761167961145e565b5b600061168889828a016114b1565b965050602061169989828a016114b1565b955050604087015167ffffffffffffffff8111156116ba576116b9611463565b5b6116c689828a016115f9565b945050606087015167ffffffffffffffff8111156116e7576116e6611463565b5b6116f389828a016115f9565b935050608061170489828a01611648565b92505060a087015167ffffffffffffffff81111561172557611724611463565b5b61173189828a016115f9565b9150509295509295509295565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061179057607f821691505b6020821081036117a3576117a2611749565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261180b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826117ce565b61181586836117ce565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600061185c6118576118528461182d565b611837565b61182d565b9050919050565b6000819050919050565b61187683611841565b61188a61188282611863565b8484546117db565b825550505050565b600090565b61189f611892565b6118aa81848461186d565b505050565b5b818110156118ce576118c3600082611897565b6001810190506118b0565b5050565b601f821115611913576118e4816117a9565b6118ed846117be565b810160208510156118fc578190505b611910611908856117be565b8301826118af565b50505b505050565b600082821c905092915050565b600061193660001984600802611918565b1980831691505092915050565b600061194f8383611925565b9150826002028217905092915050565b6119688261173e565b67ffffffffffffffff811115611981576119806114e1565b5b61198b8254611778565b6119968282856118d2565b600060209050601f8311600181146119c957600084156119b7578287015190505b6119c18582611943565b865550611a29565b601f1984166119d7866117a9565b60005b828110156119ff578489015182556001820191506020850194506020810190506119da565b86831015611a1c5784890151611a18601f891682611925565b8355505b6001600288020188555050505b505050505050565b611a3a81611488565b82525050565b6000604082019050611a556000830185611a31565b611a626020830184611a31565b9392505050565b600061ffff82169050919050565b611a8081611a69565b82525050565b6000604082019050611a9b6000830185611a31565b611aa86020830184611a77565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611ae98261182d565b9150611af48361182d565b9250828201905080821115611b0c57611b0b611aaf565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611b7681611488565b82525050565b6000611b888383611b6d565b60208301905092915050565b6000602082019050919050565b6000611bac82611b41565b611bb68185611b4c565b9350611bc183611b5d565b8060005b83811015611bf2578151611bd98882611b7c565b9750611be483611b94565b925050600181019050611bc5565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611c348161182d565b82525050565b6000611c468383611c2b565b60208301905092915050565b6000602082019050919050565b6000611c6a82611bff565b611c748185611c0a565b9350611c7f83611c1b565b8060005b83811015611cb0578151611c978882611c3a565b9750611ca283611c52565b925050600181019050611c83565b5085935050505092915050565b60006040820190508181036000830152611cd78185611ba1565b90508181036020830152611ceb8184611c5f565b90509392505050565b600082825260208201905092915050565b7f455243313136373a20637265617465206661696c656400000000000000000000600082015250565b6000611d3b601683611cf4565b9150611d4682611d05565b602082019050919050565b60006020820190508181036000830152611d6a81611d2e565b9050919050565b611d7a8161182d565b82525050565b6000608082019050611d956000830187611a31565b611da26020830186611a31565b611daf6040830185611a31565b611dbc6060830184611d71565b95945050505050565b60805160a05160c05160e0516101005161584f611e096000396000611d7a01526000610c9401526000611dcc01526000611a0201526000611d3f015261584f6000f3fe6080604052600436106102ff5760003560e01c8063715018a6116101905780639e942ace116100dc578063bceae77b11610095578063da0239a61161006f578063da0239a614610b88578063e985e9c514610bb3578063ee62ad6314610bf0578063f2fde38b14610c2d576102ff565b8063bceae77b14610af5578063c87b56dd14610b20578063d73792a914610b5d576102ff565b80639e942ace146109f8578063a0c6d46514610a35578063a22cb46514610a5e578063a9fc664e14610a87578063b391c50814610ab0578063b88d4fde14610ad9576102ff565b806386c245081161014957806395d89b411161012357806395d89b411461093c57806396330b5f146109675780639c3b52fc146109a45780639e05d240146109cf576102ff565b806386c24508146108bb5780638da5cb5b146108e6578063939a6c1c14610911576102ff565b8063715018a6146107ab57806373b2e80e146107c257806377f33fe9146107ff5780637cb647591461083c57806381ddcc1f14610865578063835ee96414610890576102ff565b80632a55205a1161024f5780633bdec33e116102085780636221d13c116101e25780636221d13c146106c95780636352211e146106f45780636b6b3c631461073157806370a082311461076e576102ff565b80633bdec33e1461065957806342842e0e1461068457806355f804b3146106a0576102ff565b80632a55205a146105365780632db11544146105745780632eb4a7ab1461059d57806332cb6b0c146105c857806333c93f58146105f357806336d396f41461061c576102ff565b8063095ea7b3116102bc57806318160ddd1161029657806318160ddd1461049b578063187e0f17146104c657806323b872dd146104f1578063261a2f301461050d576102ff565b8063095ea7b314610428578063098144d4146104445780630d705df61461046f576102ff565b8063014635461461030457806301ffc9a71461032f57806302d05d3f1461036c57806306451d071461039757806306fdde03146103c0578063081812fc146103eb575b600080fd5b34801561031057600080fd5b50610319610c56565b6040516103269190614065565b60405180910390f35b34801561033b57600080fd5b50610356600480360381019061035191906140ec565b610c6e565b6040516103639190614134565b60405180910390f35b34801561037857600080fd5b50610381610c90565b60405161038e9190614065565b60405180910390f35b3480156103a357600080fd5b506103be60048036038101906103b9919061417b565b610cb8565b005b3480156103cc57600080fd5b506103d5610cdd565b6040516103e29190614238565b60405180910390f35b3480156103f757600080fd5b50610412600480360381019061040d9190614290565b610d6f565b60405161041f9190614065565b60405180910390f35b610442600480360381019061043d91906142e9565b610dee565b005b34801561045057600080fd5b50610459610f32565b6040516104669190614065565b60405180910390f35b34801561047b57600080fd5b50610484610fbd565b604051610492929190614338565b60405180910390f35b3480156104a757600080fd5b506104b0610feb565b6040516104bd9190614370565b60405180910390f35b3480156104d257600080fd5b506104db610ff5565b6040516104e89190614134565b60405180910390f35b61050b6004803603810190610506919061438b565b611008565b005b34801561051957600080fd5b50610534600480360381019061052f9190614403565b61132a565b005b34801561054257600080fd5b5061055d60048036038101906105589190614456565b611483565b60405161056b929190614496565b60405180910390f35b34801561058057600080fd5b5061059b60048036038101906105969190614290565b6114e5565b005b3480156105a957600080fd5b506105b261171f565b6040516105bf91906144d8565b60405180910390f35b3480156105d457600080fd5b506105dd611725565b6040516105ea9190614370565b60405180910390f35b3480156105ff57600080fd5b5061061a600480360381019061061591906144f3565b61172b565b005b34801561062857600080fd5b50610643600480360381019061063e9190614403565b61187f565b6040516106509190614370565b60405180910390f35b34801561066557600080fd5b5061066e6119fe565b60405161067b9190614370565b60405180910390f35b61069e6004803603810190610699919061438b565b611a26565b005b3480156106ac57600080fd5b506106c760048036038101906106c29190614668565b611a46565b005b3480156106d557600080fd5b506106de611a61565b6040516106eb9190614134565b60405180910390f35b34801561070057600080fd5b5061071b60048036038101906107169190614290565b611a74565b6040516107289190614065565b60405180910390f35b34801561073d57600080fd5b5061075860048036038101906107539190614290565b611a86565b6040516107659190614065565b60405180910390f35b34801561077a57600080fd5b50610795600480360381019061079091906146b1565b611ac3565b6040516107a29190614370565b60405180910390f35b3480156107b757600080fd5b506107c0611b7b565b005b3480156107ce57600080fd5b506107e960048036038101906107e491906146b1565b611b8f565b6040516107f69190614134565b60405180910390f35b34801561080b57600080fd5b50610826600480360381019061082191906144f3565b611baf565b6040516108339190614370565b60405180910390f35b34801561084857600080fd5b50610863600480360381019061085e919061470a565b611d29565b005b34801561087157600080fd5b5061087a611d3b565b6040516108879190614370565b60405180910390f35b34801561089c57600080fd5b506108a5611d63565b6040516108b29190614134565b60405180910390f35b3480156108c757600080fd5b506108d0611d76565b6040516108dd9190614065565b60405180910390f35b3480156108f257600080fd5b506108fb611d9e565b6040516109089190614065565b60405180910390f35b34801561091d57600080fd5b50610926611dc8565b6040516109339190614370565b60405180910390f35b34801561094857600080fd5b50610951611df0565b60405161095e9190614238565b60405180910390f35b34801561097357600080fd5b5061098e600480360381019061098991906146b1565b611e82565b60405161099b9190614370565b60405180910390f35b3480156109b057600080fd5b506109b9611e9a565b6040516109c69190614370565b60405180910390f35b3480156109db57600080fd5b506109f660048036038101906109f1919061417b565b611e9f565b005b348015610a0457600080fd5b50610a1f6004803603810190610a1a9190614290565b611efb565b604051610a2c9190614065565b60405180910390f35b348015610a4157600080fd5b50610a5c6004803603810190610a57919061417b565b611f38565b005b348015610a6a57600080fd5b50610a856004803603810190610a809190614737565b611f5d565b005b348015610a9357600080fd5b50610aae6004803603810190610aa991906146b1565b612068565b005b348015610abc57600080fd5b50610ad76004803603810190610ad291906147d7565b6121a9565b005b610af36004803603810190610aee91906148c5565b6123f8565b005b348015610b0157600080fd5b50610b0a61246b565b604051610b179190614370565b60405180910390f35b348015610b2c57600080fd5b50610b476004803603810190610b429190614290565b612470565b604051610b549190614238565b60405180910390f35b348015610b6957600080fd5b50610b7261253d565b604051610b7f9190614370565b60405180910390f35b348015610b9457600080fd5b50610b9d612543565b604051610baa9190614370565b60405180910390f35b348015610bbf57600080fd5b50610bda6004803603810190610bd59190614948565b61255a565b604051610be79190614134565b60405180910390f35b348015610bfc57600080fd5b50610c176004803603810190610c1291906146b1565b6125c2565b604051610c249190614a46565b60405180910390f35b348015610c3957600080fd5b50610c546004803603810190610c4f91906146b1565b61268f565b005b73721c002b0059009a671d00ad1700c9748146cd1b81565b6000610c7982612712565b80610c895750610c88826127f4565b5b9050919050565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b610cc061286e565b80601460006101000a81548160ff02191690831515021790555050565b606060028054610cec90614a97565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1890614a97565b8015610d655780601f10610d3a57610100808354040283529160200191610d65565b820191906000526020600020905b815481529060010190602001808311610d4857829003601f168201915b5050505050905090565b6000610d7a826128ec565b610db0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610df982611a74565b90508073ffffffffffffffffffffffffffffffffffffffff16610e1a61294b565b73ffffffffffffffffffffffffffffffffffffffff1614610e7d57610e4681610e4161294b565b61255a565b610e7c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fba57600860149054906101000a900460ff16610fb95773721c002b0059009a671d00ad1700c9748146cd1b90505b5b90565b6000807fcaee23ea077851ee825819a64124f89235283956b811450bfef78adb3ab8b8d89150600190509091565b6000601754905090565b601460019054906101000a900460ff1681565b60006110138261295a565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461107a576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061108684612a26565b9150915061109c818761109761294b565b612a4d565b6110e8576110b1866110ac61294b565b61255a565b6110e7576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361114e576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61115b8686866001612a91565b801561116657600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061123485611210888887612ac4565b7c020000000000000000000000000000000000000000000000000000000017612aec565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036112ba57600060018501905060006004600083815260200190815260200160002054036112b85760005481146112b7578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113228686866001612b17565b505050505050565b600061133584612b4a565b90506000600181111561134b5761134a614ac8565b5b82600181111561135e5761135d614ac8565b5b03611408578073ffffffffffffffffffffffffffffffffffffffff166348b7504484600f600088815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518363ffffffff1660e01b81526004016113d1929190614b56565b600060405180830381600087803b1580156113eb57600080fd5b505af11580156113ff573d6000803e3d6000fd5b5050505061147d565b8073ffffffffffffffffffffffffffffffffffffffff166348b750448461142d610c90565b6040518363ffffffff1660e01b815260040161144a929190614b56565b600060405180830381600087803b15801561146457600080fd5b505af1158015611478573d6000803e3d6000fd5b505050505b50505050565b6000806010600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106114c5611d3b565b856114d09190614bae565b6114da9190614c1f565b915091509250929050565b601460019054906101000a900460ff16611534576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152b90614c9c565b60405180910390fd5b60008111611577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156e90614d08565b60405180910390fd5b610759816017546115889190614d28565b11156115c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c090614da8565b60405180910390fd5b6000601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661166757600261166a565b60025b90508083836116799190614d28565b11156116ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b190614e14565b60405180910390fd5b82601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117099190614d28565b9250508190555061171a3384612bf2565b505050565b60125481565b61075981565b600061173683612b4a565b90506000600181111561174c5761174b614ac8565b5b82600181111561175f5761175e614ac8565b5b03611807578073ffffffffffffffffffffffffffffffffffffffff166319165587600f600086815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016117d09190614e55565b600060405180830381600087803b1580156117ea57600080fd5b505af11580156117fe573d6000803e3d6000fd5b5050505061187a565b8073ffffffffffffffffffffffffffffffffffffffff16631916558761182b610c90565b6040518263ffffffff1660e01b81526004016118479190614e55565b600060405180830381600087803b15801561186157600080fd5b505af1158015611875573d6000803e3d6000fd5b505050505b505050565b60008061188b85612b4a565b9050600060018111156118a1576118a0614ac8565b5b8360018111156118b4576118b3614ac8565b5b03611970578073ffffffffffffffffffffffffffffffffffffffff1663c45ac05085600f600089815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518363ffffffff1660e01b8152600401611927929190614b56565b602060405180830381865afa158015611944573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119689190614e85565b9150506119f7565b8073ffffffffffffffffffffffffffffffffffffffff1663c45ac05085611995610c90565b6040518363ffffffff1660e01b81526004016119b2929190614b56565b602060405180830381865afa1580156119cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f39190614e85565b9150505b9392505050565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b611a41838383604051806020016040528060008152506123f8565b505050565b611a4e61286e565b8060139081611a5d9190615054565b5050565b600960149054906101000a900460ff1681565b6000611a7f8261295a565b9050919050565b60006010600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b2a576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611b8361286e565b611b8d6000612c52565b565b60156020528060005260406000206000915054906101000a900460ff1681565b600080611bbb84612b4a565b905060006001811115611bd157611bd0614ac8565b5b836001811115611be457611be3614ac8565b5b03611c9e578073ffffffffffffffffffffffffffffffffffffffff1663a3f8eace600f600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401611c559190615147565b602060405180830381865afa158015611c72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c969190614e85565b915050611d23565b8073ffffffffffffffffffffffffffffffffffffffff1663a3f8eace611cc2610c90565b6040518263ffffffff1660e01b8152600401611cde9190615147565b602060405180830381865afa158015611cfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d1f9190614e85565b9150505b92915050565b611d3161286e565b8060128190555050565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b601460009054906101000a900460ff1681565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60007f0000000000000000000000000000000000000000000000000000000000000000905090565b606060038054611dff90614a97565b80601f0160208091040260200160405190810160405280929190818152602001828054611e2b90614a97565b8015611e785780601f10611e4d57610100808354040283529160200191611e78565b820191906000526020600020905b815481529060010190602001808311611e5b57829003601f168201915b5050505050905090565b60166020528060005260406000206000915090505481565b600181565b611ea7612d18565b80600960146101000a81548160ff0219169083151502179055507f6787c7f9a80aa0f5ceddab2c54f1f5169c0b88e75dd5e19d5e858a64144c7dbc81604051611ef09190614134565b60405180910390a150565b6000600f600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611f4061286e565b80601460016101000a81548160ff02191690831515021790555050565b8060076000611f6a61294b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661201761294b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161205c9190614134565b60405180910390a35050565b612070612d18565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156120c9575080155b15612100576040517f32483afb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac612129610f32565b83604051612138929190615162565b60405180910390a16001600860146101000a81548160ff02191690831515021790555081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506121a582612d22565b5050565b601460009054906101000a900460ff166121f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ef906151d7565b60405180910390fd5b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227c90615243565b60405180910390fd5b61075960016017546122979190614d28565b11156122d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122cf90614da8565b60405180910390fd5b6000336040516020016122eb91906152ab565b604051602081830303815290604052805190602001209050612351838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060125483612dd9565b612390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238790615312565b60405180910390fd5b6001601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506123f3336001612bf2565b505050565b612403848484611008565b60008373ffffffffffffffffffffffffffffffffffffffff163b146124655761242e84848484612df0565b612464576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600281565b6060600073ffffffffffffffffffffffffffffffffffffffff1661249383611a74565b73ffffffffffffffffffffffffffffffffffffffff16036124e0576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006124ea612f40565b9050600081511161250a5760405180602001604052806000815250612535565b8061251484612fd2565b6040516020016125259291906153ba565b6040516020818303038152906040525b915050919050565b61271081565b600060175461075961255591906153e9565b905090565b600061256683836130a0565b9050806125bc57600960149054906101000a900460ff16156125bb5761258a610f32565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161490505b5b92915050565b6060601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561268357602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311612639575b50505050509050919050565b61269761286e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612706576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126fd9061548f565b60405180910390fd5b61270f81612c52565b50565b60007fad0d7f6c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127dd57507fa07d229a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806127ed57506127ec82613134565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128675750612866826131c6565b5b9050919050565b612876613230565b73ffffffffffffffffffffffffffffffffffffffff16612894611d9e565b73ffffffffffffffffffffffffffffffffffffffff16146128ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e1906154fb565b60405180910390fd5b565b6000816128f7613238565b11158015612906575060005482105b8015612944575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000612955613230565b905090565b60008082905080612969613238565b116129ef576000548110156129ee5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036129ec575b600081036129e25760046000836001900393508381526020019081526020016000205490506129b8565b8092505050612a21565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b60005b81811015612abd57612ab285858386612aad9190614d28565b613241565b806001019050612a94565b5050505050565b60008060e883901c905060e8612adb868684613341565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b60005b81811015612b4357612b3885858386612b339190614d28565b61334a565b806001019050612b1a565b5050505050565b6000806010600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612be9576040517f219f780400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b6000612bfc61344a565b905060005b82811015612c2957612c1e848284612c199190614d28565b613453565b806001019050612c01565b508160176000828254612c3c9190614d28565b92505081905550612c4d83836136a8565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612d2061286e565b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612dd6576000813b90506000811115612dd4578173ffffffffffffffffffffffffffffffffffffffff1663fb2de5d730612d8a613863565b6040518363ffffffff1660e01b8152600401612da7929190615538565b600060405180830381600087803b158015612dc157600080fd5b505af1925050508015612dd2575060015b505b505b50565b600082612de6858461386d565b1490509392505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e1661294b565b8786866040518563ffffffff1660e01b8152600401612e3894939291906155b6565b6020604051808303816000875af1925050508015612e7457506040513d601f19601f82011682018060405250810190612e719190615617565b60015b612eed573d8060008114612ea4576040519150601f19603f3d011682016040523d82523d6000602084013e612ea9565b606091505b506000815103612ee5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060138054612f4f90614a97565b80601f0160208091040260200160405190810160405280929190818152602001828054612f7b90614a97565b8015612fc85780601f10612f9d57610100808354040283529160200191612fc8565b820191906000526020600020905b815481529060010190602001808311612fab57829003601f168201915b5050505050905090565b606060006001612fe1846138bd565b01905060008167ffffffffffffffff81111561300057612fff61453d565b5b6040519080825280601f01601f1916602001820160405280156130325781602001600182028036833780820191505090505b509050600082602001820190505b600115613095578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161308957613088614bf0565b5b04945060008503613040575b819350505050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061318f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806131bf5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60006001905090565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614905060008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490508180156132b15750805b156132e8576040517f5cbd944100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8115613306576133016132f9613230565b858534613a10565b61333a565b80156133245761331f613317613230565b868534613a16565b613339565b61333861332f613230565b86868634613a1c565b5b5b5050505050565b60009392505050565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614905060008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490508180156133ba5750805b156133f1576040517f5cbd944100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b811561340f5761340a613402613230565b858534613b0e565b613443565b801561342d57613428613420613230565b868534613b14565b613442565b613441613438613230565b86868634613b1a565b5b5b5050505050565b60008054905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036134b9576040517f022432f900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600f600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613552576040517fcb756a3000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061355d83613b21565b9050806010600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600f600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b600080549050600082036136e8576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6136f56000848385612a91565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061376c8361375d6000866000612ac4565b61376685613f18565b17612aec565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461380d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506137d2565b5060008203613848576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061385e6000848385612b17565b505050565b60006102d1905090565b60008082905060005b84518110156138b2576138a38286838151811061389657613895615644565b5b6020026020010151613f28565b91508080600101915050613876565b508091505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061391b577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161391157613910614bf0565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613958576d04ee2d6d415b85acef8100000000838161394e5761394d614bf0565b5b0492506020810190505b662386f26fc10000831061398757662386f26fc10000838161397d5761397c614bf0565b5b0492506010810190505b6305f5e10083106139b0576305f5e10083816139a6576139a5614bf0565b5b0492506008810190505b61271083106139d55761271083816139cb576139ca614bf0565b5b0492506004810190505b606483106139f857606483816139ee576139ed614bf0565b5b0492506002810190505b600a8310613a07576001810190505b80915050919050565b50505050565b50505050565b6000613a26610f32565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613b05578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1603613a955750613b07565b8073ffffffffffffffffffffffffffffffffffffffff1663caee23ea878787876040518563ffffffff1660e01b8152600401613ad49493929190615673565b60006040518083038186803b158015613aec57600080fd5b505afa158015613b00573d6000803e3d6000fd5b505050505b505b5050505050565b50505050565b50505050565b5050505050565b600080613b2c610c90565b90506000613b38611d76565b90506000613b4582613f53565b90508273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603613d13576000600167ffffffffffffffff811115613b9757613b9661453d565b5b604051908082528060200260200182016040528015613bc55781602001602082028036833780820191505090505b5090508381600081518110613bdd57613bdc615644565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600167ffffffffffffffff811115613c3457613c3361453d565b5b604051908082528060200260200182016040528015613c625781602001602082028036833780820191505090505b509050613c6d611dc8565b613c756119fe565b613c7f9190614d28565b81600081518110613c9357613c92615644565b5b6020026020010181815250508273ffffffffffffffffffffffffffffffffffffffff16636e260c1e83836040518363ffffffff1660e01b8152600401613cda929190615776565b600060405180830381600087803b158015613cf457600080fd5b505af1158015613d08573d6000803e3d6000fd5b505050505050613f0d565b6000600267ffffffffffffffff811115613d3057613d2f61453d565b5b604051908082528060200260200182016040528015613d5e5781602001602082028036833780820191505090505b5090508581600081518110613d7657613d75615644565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508381600181518110613dc557613dc4615644565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600267ffffffffffffffff811115613e1c57613e1b61453d565b5b604051908082528060200260200182016040528015613e4a5781602001602082028036833780820191505090505b509050613e556119fe565b81600081518110613e6957613e68615644565b5b602002602001018181525050613e7d611dc8565b81600181518110613e9157613e90615644565b5b6020026020010181815250508273ffffffffffffffffffffffffffffffffffffffff16636e260c1e83836040518363ffffffff1660e01b8152600401613ed8929190615776565b600060405180830381600087803b158015613ef257600080fd5b505af1158015613f06573d6000803e3d6000fd5b5050505050505b809350505050919050565b60006001821460e11b9050919050565b6000818310613f4057613f3b828461400d565b613f4b565b613f4a838361400d565b5b905092915050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f09050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603614008576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613fff906157f9565b60405180910390fd5b919050565b600082600052816020526040600020905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061404f82614024565b9050919050565b61405f81614044565b82525050565b600060208201905061407a6000830184614056565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6140c981614094565b81146140d457600080fd5b50565b6000813590506140e6816140c0565b92915050565b6000602082840312156141025761410161408a565b5b6000614110848285016140d7565b91505092915050565b60008115159050919050565b61412e81614119565b82525050565b60006020820190506141496000830184614125565b92915050565b61415881614119565b811461416357600080fd5b50565b6000813590506141758161414f565b92915050565b6000602082840312156141915761419061408a565b5b600061419f84828501614166565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156141e25780820151818401526020810190506141c7565b60008484015250505050565b6000601f19601f8301169050919050565b600061420a826141a8565b61421481856141b3565b93506142248185602086016141c4565b61422d816141ee565b840191505092915050565b6000602082019050818103600083015261425281846141ff565b905092915050565b6000819050919050565b61426d8161425a565b811461427857600080fd5b50565b60008135905061428a81614264565b92915050565b6000602082840312156142a6576142a561408a565b5b60006142b48482850161427b565b91505092915050565b6142c681614044565b81146142d157600080fd5b50565b6000813590506142e3816142bd565b92915050565b60008060408385031215614300576142ff61408a565b5b600061430e858286016142d4565b925050602061431f8582860161427b565b9150509250929050565b61433281614094565b82525050565b600060408201905061434d6000830185614329565b61435a6020830184614125565b9392505050565b61436a8161425a565b82525050565b60006020820190506143856000830184614361565b92915050565b6000806000606084860312156143a4576143a361408a565b5b60006143b2868287016142d4565b93505060206143c3868287016142d4565b92505060406143d48682870161427b565b9150509250925092565b600281106143eb57600080fd5b50565b6000813590506143fd816143de565b92915050565b60008060006060848603121561441c5761441b61408a565b5b600061442a8682870161427b565b935050602061443b868287016142d4565b925050604061444c868287016143ee565b9150509250925092565b6000806040838503121561446d5761446c61408a565b5b600061447b8582860161427b565b925050602061448c8582860161427b565b9150509250929050565b60006040820190506144ab6000830185614056565b6144b86020830184614361565b9392505050565b6000819050919050565b6144d2816144bf565b82525050565b60006020820190506144ed60008301846144c9565b92915050565b6000806040838503121561450a5761450961408a565b5b60006145188582860161427b565b9250506020614529858286016143ee565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614575826141ee565b810181811067ffffffffffffffff821117156145945761459361453d565b5b80604052505050565b60006145a7614080565b90506145b3828261456c565b919050565b600067ffffffffffffffff8211156145d3576145d261453d565b5b6145dc826141ee565b9050602081019050919050565b82818337600083830152505050565b600061460b614606846145b8565b61459d565b90508281526020810184848401111561462757614626614538565b5b6146328482856145e9565b509392505050565b600082601f83011261464f5761464e614533565b5b813561465f8482602086016145f8565b91505092915050565b60006020828403121561467e5761467d61408a565b5b600082013567ffffffffffffffff81111561469c5761469b61408f565b5b6146a88482850161463a565b91505092915050565b6000602082840312156146c7576146c661408a565b5b60006146d5848285016142d4565b91505092915050565b6146e7816144bf565b81146146f257600080fd5b50565b600081359050614704816146de565b92915050565b6000602082840312156147205761471f61408a565b5b600061472e848285016146f5565b91505092915050565b6000806040838503121561474e5761474d61408a565b5b600061475c858286016142d4565b925050602061476d85828601614166565b9150509250929050565b600080fd5b600080fd5b60008083601f84011261479757614796614533565b5b8235905067ffffffffffffffff8111156147b4576147b3614777565b5b6020830191508360208202830111156147d0576147cf61477c565b5b9250929050565b600080602083850312156147ee576147ed61408a565b5b600083013567ffffffffffffffff81111561480c5761480b61408f565b5b61481885828601614781565b92509250509250929050565b600067ffffffffffffffff82111561483f5761483e61453d565b5b614848826141ee565b9050602081019050919050565b600061486861486384614824565b61459d565b90508281526020810184848401111561488457614883614538565b5b61488f8482856145e9565b509392505050565b600082601f8301126148ac576148ab614533565b5b81356148bc848260208601614855565b91505092915050565b600080600080608085870312156148df576148de61408a565b5b60006148ed878288016142d4565b94505060206148fe878288016142d4565b935050604061490f8782880161427b565b925050606085013567ffffffffffffffff8111156149305761492f61408f565b5b61493c87828801614897565b91505092959194509250565b6000806040838503121561495f5761495e61408a565b5b600061496d858286016142d4565b925050602061497e858286016142d4565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6149bd81614044565b82525050565b60006149cf83836149b4565b60208301905092915050565b6000602082019050919050565b60006149f382614988565b6149fd8185614993565b9350614a08836149a4565b8060005b83811015614a39578151614a2088826149c3565b9750614a2b836149db565b925050600181019050614a0c565b5085935050505092915050565b60006020820190508181036000830152614a6081846149e8565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614aaf57607f821691505b602082108103614ac257614ac1614a68565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000819050919050565b6000614b1c614b17614b1284614024565b614af7565b614024565b9050919050565b6000614b2e82614b01565b9050919050565b6000614b4082614b23565b9050919050565b614b5081614b35565b82525050565b6000604082019050614b6b6000830185614b47565b614b786020830184614056565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614bb98261425a565b9150614bc48361425a565b9250828202614bd28161425a565b91508282048414831517614be957614be8614b7f565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614c2a8261425a565b9150614c358361425a565b925082614c4557614c44614bf0565b5b828204905092915050565b7f5075626c6963207068617365206e6f7420616374697665000000000000000000600082015250565b6000614c866017836141b3565b9150614c9182614c50565b602082019050919050565b60006020820190508181036000830152614cb581614c79565b9050919050565b7f4d757374206d696e74206174206c656173742031000000000000000000000000600082015250565b6000614cf26014836141b3565b9150614cfd82614cbc565b602082019050919050565b60006020820190508181036000830152614d2181614ce5565b9050919050565b6000614d338261425a565b9150614d3e8361425a565b9250828201905080821115614d5657614d55614b7f565b5b92915050565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b6000614d926012836141b3565b9150614d9d82614d5c565b602082019050919050565b60006020820190508181036000830152614dc181614d85565b9050919050565b7f45786365656473206d696e74206c696d69740000000000000000000000000000600082015250565b6000614dfe6012836141b3565b9150614e0982614dc8565b602082019050919050565b60006020820190508181036000830152614e2d81614df1565b9050919050565b6000614e3f82614024565b9050919050565b614e4f81614e34565b82525050565b6000602082019050614e6a6000830184614e46565b92915050565b600081519050614e7f81614264565b92915050565b600060208284031215614e9b57614e9a61408a565b5b6000614ea984828501614e70565b91505092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614f147fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614ed7565b614f1e8683614ed7565b95508019841693508086168417925050509392505050565b6000614f51614f4c614f478461425a565b614af7565b61425a565b9050919050565b6000819050919050565b614f6b83614f36565b614f7f614f7782614f58565b848454614ee4565b825550505050565b600090565b614f94614f87565b614f9f818484614f62565b505050565b5b81811015614fc357614fb8600082614f8c565b600181019050614fa5565b5050565b601f82111561500857614fd981614eb2565b614fe284614ec7565b81016020851015614ff1578190505b615005614ffd85614ec7565b830182614fa4565b50505b505050565b600082821c905092915050565b600061502b6000198460080261500d565b1980831691505092915050565b6000615044838361501a565b9150826002028217905092915050565b61505d826141a8565b67ffffffffffffffff8111156150765761507561453d565b5b6150808254614a97565b61508b828285614fc7565b600060209050601f8311600181146150be57600084156150ac578287015190505b6150b68582615038565b86555061511e565b601f1984166150cc86614eb2565b60005b828110156150f4578489015182556001820191506020850194506020810190506150cf565b86831015615111578489015161510d601f89168261501a565b8355505b6001600288020188555050505b505050505050565b600061513182614b23565b9050919050565b61514181615126565b82525050565b600060208201905061515c6000830184615138565b92915050565b60006040820190506151776000830185614056565b6151846020830184614056565b9392505050565b7f436c61696d207068617365206e6f742061637469766500000000000000000000600082015250565b60006151c16016836141b3565b91506151cc8261518b565b602082019050919050565b600060208201905081810360008301526151f0816151b4565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b600061522d600f836141b3565b9150615238826151f7565b602082019050919050565b6000602082019050818103600083015261525c81615220565b9050919050565b60008160601b9050919050565b600061527b82615263565b9050919050565b600061528d82615270565b9050919050565b6152a56152a082614044565b615282565b82525050565b60006152b78284615294565b60148201915081905092915050565b7f496e76616c6964206d65726b6c652070726f6f66000000000000000000000000600082015250565b60006152fc6014836141b3565b9150615307826152c6565b602082019050919050565b6000602082019050818103600083015261532b816152ef565b9050919050565b600081905092915050565b6000615348826141a8565b6153528185615332565b93506153628185602086016141c4565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006153a4600583615332565b91506153af8261536e565b600582019050919050565b60006153c6828561533d565b91506153d2828461533d565b91506153dd82615397565b91508190509392505050565b60006153f48261425a565b91506153ff8361425a565b925082820390508181111561541757615416614b7f565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154796026836141b3565b91506154848261541d565b604082019050919050565b600060208201905081810360008301526154a88161546c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006154e56020836141b3565b91506154f0826154af565b602082019050919050565b60006020820190508181036000830152615514816154d8565b9050919050565b600061ffff82169050919050565b6155328161551b565b82525050565b600060408201905061554d6000830185614056565b61555a6020830184615529565b9392505050565b600081519050919050565b600082825260208201905092915050565b600061558882615561565b615592818561556c565b93506155a28185602086016141c4565b6155ab816141ee565b840191505092915050565b60006080820190506155cb6000830187614056565b6155d86020830186614056565b6155e56040830185614361565b81810360608301526155f7818461557d565b905095945050505050565b600081519050615611816140c0565b92915050565b60006020828403121561562d5761562c61408a565b5b600061563b84828501615602565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006080820190506156886000830187614056565b6156956020830186614056565b6156a26040830185614056565b6156af6060830184614361565b95945050505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6156ed8161425a565b82525050565b60006156ff83836156e4565b60208301905092915050565b6000602082019050919050565b6000615723826156b8565b61572d81856156c3565b9350615738836156d4565b8060005b8381101561576957815161575088826156f3565b975061575b8361570b565b92505060018101905061573c565b5085935050505092915050565b6000604082019050818103600083015261579081856149e8565b905081810360208301526157a48184615718565b90509392505050565b7f455243313136373a20637265617465206661696c656400000000000000000000600082015250565b60006157e36016836141b3565b91506157ee826157ad565b602082019050919050565b60006020820190508181036000830152615812816157d6565b905091905056fea26469706673582212205a4a0903f212bee611640e1dfaebce42caf1def62615b1409989b6796f2bde8564736f6c634300081c0033000000000000000000000000f750f1f2f11ab2e38dcd20c22b0533ce05069ea9000000000000000000000000b8b2d9e20f5997f439e364392c43d5a7fc2dbb7800000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100fa28e8655ec4806165029b7f4667ba5aa5bd9e734802232b63dca7ecea8d54e400000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000004443054530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044430545300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e68747470733a2f2f646f74736e66742e78797a2f6170692f746f6b656e2f0000

Deployed Bytecode

0x6080604052600436106102ff5760003560e01c8063715018a6116101905780639e942ace116100dc578063bceae77b11610095578063da0239a61161006f578063da0239a614610b88578063e985e9c514610bb3578063ee62ad6314610bf0578063f2fde38b14610c2d576102ff565b8063bceae77b14610af5578063c87b56dd14610b20578063d73792a914610b5d576102ff565b80639e942ace146109f8578063a0c6d46514610a35578063a22cb46514610a5e578063a9fc664e14610a87578063b391c50814610ab0578063b88d4fde14610ad9576102ff565b806386c245081161014957806395d89b411161012357806395d89b411461093c57806396330b5f146109675780639c3b52fc146109a45780639e05d240146109cf576102ff565b806386c24508146108bb5780638da5cb5b146108e6578063939a6c1c14610911576102ff565b8063715018a6146107ab57806373b2e80e146107c257806377f33fe9146107ff5780637cb647591461083c57806381ddcc1f14610865578063835ee96414610890576102ff565b80632a55205a1161024f5780633bdec33e116102085780636221d13c116101e25780636221d13c146106c95780636352211e146106f45780636b6b3c631461073157806370a082311461076e576102ff565b80633bdec33e1461065957806342842e0e1461068457806355f804b3146106a0576102ff565b80632a55205a146105365780632db11544146105745780632eb4a7ab1461059d57806332cb6b0c146105c857806333c93f58146105f357806336d396f41461061c576102ff565b8063095ea7b3116102bc57806318160ddd1161029657806318160ddd1461049b578063187e0f17146104c657806323b872dd146104f1578063261a2f301461050d576102ff565b8063095ea7b314610428578063098144d4146104445780630d705df61461046f576102ff565b8063014635461461030457806301ffc9a71461032f57806302d05d3f1461036c57806306451d071461039757806306fdde03146103c0578063081812fc146103eb575b600080fd5b34801561031057600080fd5b50610319610c56565b6040516103269190614065565b60405180910390f35b34801561033b57600080fd5b50610356600480360381019061035191906140ec565b610c6e565b6040516103639190614134565b60405180910390f35b34801561037857600080fd5b50610381610c90565b60405161038e9190614065565b60405180910390f35b3480156103a357600080fd5b506103be60048036038101906103b9919061417b565b610cb8565b005b3480156103cc57600080fd5b506103d5610cdd565b6040516103e29190614238565b60405180910390f35b3480156103f757600080fd5b50610412600480360381019061040d9190614290565b610d6f565b60405161041f9190614065565b60405180910390f35b610442600480360381019061043d91906142e9565b610dee565b005b34801561045057600080fd5b50610459610f32565b6040516104669190614065565b60405180910390f35b34801561047b57600080fd5b50610484610fbd565b604051610492929190614338565b60405180910390f35b3480156104a757600080fd5b506104b0610feb565b6040516104bd9190614370565b60405180910390f35b3480156104d257600080fd5b506104db610ff5565b6040516104e89190614134565b60405180910390f35b61050b6004803603810190610506919061438b565b611008565b005b34801561051957600080fd5b50610534600480360381019061052f9190614403565b61132a565b005b34801561054257600080fd5b5061055d60048036038101906105589190614456565b611483565b60405161056b929190614496565b60405180910390f35b34801561058057600080fd5b5061059b60048036038101906105969190614290565b6114e5565b005b3480156105a957600080fd5b506105b261171f565b6040516105bf91906144d8565b60405180910390f35b3480156105d457600080fd5b506105dd611725565b6040516105ea9190614370565b60405180910390f35b3480156105ff57600080fd5b5061061a600480360381019061061591906144f3565b61172b565b005b34801561062857600080fd5b50610643600480360381019061063e9190614403565b61187f565b6040516106509190614370565b60405180910390f35b34801561066557600080fd5b5061066e6119fe565b60405161067b9190614370565b60405180910390f35b61069e6004803603810190610699919061438b565b611a26565b005b3480156106ac57600080fd5b506106c760048036038101906106c29190614668565b611a46565b005b3480156106d557600080fd5b506106de611a61565b6040516106eb9190614134565b60405180910390f35b34801561070057600080fd5b5061071b60048036038101906107169190614290565b611a74565b6040516107289190614065565b60405180910390f35b34801561073d57600080fd5b5061075860048036038101906107539190614290565b611a86565b6040516107659190614065565b60405180910390f35b34801561077a57600080fd5b50610795600480360381019061079091906146b1565b611ac3565b6040516107a29190614370565b60405180910390f35b3480156107b757600080fd5b506107c0611b7b565b005b3480156107ce57600080fd5b506107e960048036038101906107e491906146b1565b611b8f565b6040516107f69190614134565b60405180910390f35b34801561080b57600080fd5b50610826600480360381019061082191906144f3565b611baf565b6040516108339190614370565b60405180910390f35b34801561084857600080fd5b50610863600480360381019061085e919061470a565b611d29565b005b34801561087157600080fd5b5061087a611d3b565b6040516108879190614370565b60405180910390f35b34801561089c57600080fd5b506108a5611d63565b6040516108b29190614134565b60405180910390f35b3480156108c757600080fd5b506108d0611d76565b6040516108dd9190614065565b60405180910390f35b3480156108f257600080fd5b506108fb611d9e565b6040516109089190614065565b60405180910390f35b34801561091d57600080fd5b50610926611dc8565b6040516109339190614370565b60405180910390f35b34801561094857600080fd5b50610951611df0565b60405161095e9190614238565b60405180910390f35b34801561097357600080fd5b5061098e600480360381019061098991906146b1565b611e82565b60405161099b9190614370565b60405180910390f35b3480156109b057600080fd5b506109b9611e9a565b6040516109c69190614370565b60405180910390f35b3480156109db57600080fd5b506109f660048036038101906109f1919061417b565b611e9f565b005b348015610a0457600080fd5b50610a1f6004803603810190610a1a9190614290565b611efb565b604051610a2c9190614065565b60405180910390f35b348015610a4157600080fd5b50610a5c6004803603810190610a57919061417b565b611f38565b005b348015610a6a57600080fd5b50610a856004803603810190610a809190614737565b611f5d565b005b348015610a9357600080fd5b50610aae6004803603810190610aa991906146b1565b612068565b005b348015610abc57600080fd5b50610ad76004803603810190610ad291906147d7565b6121a9565b005b610af36004803603810190610aee91906148c5565b6123f8565b005b348015610b0157600080fd5b50610b0a61246b565b604051610b179190614370565b60405180910390f35b348015610b2c57600080fd5b50610b476004803603810190610b429190614290565b612470565b604051610b549190614238565b60405180910390f35b348015610b6957600080fd5b50610b7261253d565b604051610b7f9190614370565b60405180910390f35b348015610b9457600080fd5b50610b9d612543565b604051610baa9190614370565b60405180910390f35b348015610bbf57600080fd5b50610bda6004803603810190610bd59190614948565b61255a565b604051610be79190614134565b60405180910390f35b348015610bfc57600080fd5b50610c176004803603810190610c1291906146b1565b6125c2565b604051610c249190614a46565b60405180910390f35b348015610c3957600080fd5b50610c546004803603810190610c4f91906146b1565b61268f565b005b73721c002b0059009a671d00ad1700c9748146cd1b81565b6000610c7982612712565b80610c895750610c88826127f4565b5b9050919050565b60007f000000000000000000000000f750f1f2f11ab2e38dcd20c22b0533ce05069ea9905090565b610cc061286e565b80601460006101000a81548160ff02191690831515021790555050565b606060028054610cec90614a97565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1890614a97565b8015610d655780601f10610d3a57610100808354040283529160200191610d65565b820191906000526020600020905b815481529060010190602001808311610d4857829003601f168201915b5050505050905090565b6000610d7a826128ec565b610db0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610df982611a74565b90508073ffffffffffffffffffffffffffffffffffffffff16610e1a61294b565b73ffffffffffffffffffffffffffffffffffffffff1614610e7d57610e4681610e4161294b565b61255a565b610e7c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fba57600860149054906101000a900460ff16610fb95773721c002b0059009a671d00ad1700c9748146cd1b90505b5b90565b6000807fcaee23ea077851ee825819a64124f89235283956b811450bfef78adb3ab8b8d89150600190509091565b6000601754905090565b601460019054906101000a900460ff1681565b60006110138261295a565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461107a576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061108684612a26565b9150915061109c818761109761294b565b612a4d565b6110e8576110b1866110ac61294b565b61255a565b6110e7576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361114e576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61115b8686866001612a91565b801561116657600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061123485611210888887612ac4565b7c020000000000000000000000000000000000000000000000000000000017612aec565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036112ba57600060018501905060006004600083815260200190815260200160002054036112b85760005481146112b7578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46113228686866001612b17565b505050505050565b600061133584612b4a565b90506000600181111561134b5761134a614ac8565b5b82600181111561135e5761135d614ac8565b5b03611408578073ffffffffffffffffffffffffffffffffffffffff166348b7504484600f600088815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518363ffffffff1660e01b81526004016113d1929190614b56565b600060405180830381600087803b1580156113eb57600080fd5b505af11580156113ff573d6000803e3d6000fd5b5050505061147d565b8073ffffffffffffffffffffffffffffffffffffffff166348b750448461142d610c90565b6040518363ffffffff1660e01b815260040161144a929190614b56565b600060405180830381600087803b15801561146457600080fd5b505af1158015611478573d6000803e3d6000fd5b505050505b50505050565b6000806010600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106114c5611d3b565b856114d09190614bae565b6114da9190614c1f565b915091509250929050565b601460019054906101000a900460ff16611534576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152b90614c9c565b60405180910390fd5b60008111611577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156e90614d08565b60405180910390fd5b610759816017546115889190614d28565b11156115c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c090614da8565b60405180910390fd5b6000601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661166757600261166a565b60025b90508083836116799190614d28565b11156116ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b190614e14565b60405180910390fd5b82601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117099190614d28565b9250508190555061171a3384612bf2565b505050565b60125481565b61075981565b600061173683612b4a565b90506000600181111561174c5761174b614ac8565b5b82600181111561175f5761175e614ac8565b5b03611807578073ffffffffffffffffffffffffffffffffffffffff166319165587600f600086815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016117d09190614e55565b600060405180830381600087803b1580156117ea57600080fd5b505af11580156117fe573d6000803e3d6000fd5b5050505061187a565b8073ffffffffffffffffffffffffffffffffffffffff16631916558761182b610c90565b6040518263ffffffff1660e01b81526004016118479190614e55565b600060405180830381600087803b15801561186157600080fd5b505af1158015611875573d6000803e3d6000fd5b505050505b505050565b60008061188b85612b4a565b9050600060018111156118a1576118a0614ac8565b5b8360018111156118b4576118b3614ac8565b5b03611970578073ffffffffffffffffffffffffffffffffffffffff1663c45ac05085600f600089815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518363ffffffff1660e01b8152600401611927929190614b56565b602060405180830381865afa158015611944573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119689190614e85565b9150506119f7565b8073ffffffffffffffffffffffffffffffffffffffff1663c45ac05085611995610c90565b6040518363ffffffff1660e01b81526004016119b2929190614b56565b602060405180830381865afa1580156119cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f39190614e85565b9150505b9392505050565b60007f00000000000000000000000000000000000000000000000000000000000000c8905090565b611a41838383604051806020016040528060008152506123f8565b505050565b611a4e61286e565b8060139081611a5d9190615054565b5050565b600960149054906101000a900460ff1681565b6000611a7f8261295a565b9050919050565b60006010600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b2a576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611b8361286e565b611b8d6000612c52565b565b60156020528060005260406000206000915054906101000a900460ff1681565b600080611bbb84612b4a565b905060006001811115611bd157611bd0614ac8565b5b836001811115611be457611be3614ac8565b5b03611c9e578073ffffffffffffffffffffffffffffffffffffffff1663a3f8eace600f600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401611c559190615147565b602060405180830381865afa158015611c72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c969190614e85565b915050611d23565b8073ffffffffffffffffffffffffffffffffffffffff1663a3f8eace611cc2610c90565b6040518263ffffffff1660e01b8152600401611cde9190615147565b602060405180830381865afa158015611cfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d1f9190614e85565b9150505b92915050565b611d3161286e565b8060128190555050565b60007f0000000000000000000000000000000000000000000000000000000000000258905090565b601460009054906101000a900460ff1681565b60007f000000000000000000000000b8b2d9e20f5997f439e364392c43d5a7fc2dbb78905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60007f0000000000000000000000000000000000000000000000000000000000000190905090565b606060038054611dff90614a97565b80601f0160208091040260200160405190810160405280929190818152602001828054611e2b90614a97565b8015611e785780601f10611e4d57610100808354040283529160200191611e78565b820191906000526020600020905b815481529060010190602001808311611e5b57829003601f168201915b5050505050905090565b60166020528060005260406000206000915090505481565b600181565b611ea7612d18565b80600960146101000a81548160ff0219169083151502179055507f6787c7f9a80aa0f5ceddab2c54f1f5169c0b88e75dd5e19d5e858a64144c7dbc81604051611ef09190614134565b60405180910390a150565b6000600f600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611f4061286e565b80601460016101000a81548160ff02191690831515021790555050565b8060076000611f6a61294b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661201761294b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161205c9190614134565b60405180910390a35050565b612070612d18565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156120c9575080155b15612100576040517f32483afb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac612129610f32565b83604051612138929190615162565b60405180910390a16001600860146101000a81548160ff02191690831515021790555081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506121a582612d22565b5050565b601460009054906101000a900460ff166121f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ef906151d7565b60405180910390fd5b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612285576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227c90615243565b60405180910390fd5b61075960016017546122979190614d28565b11156122d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122cf90614da8565b60405180910390fd5b6000336040516020016122eb91906152ab565b604051602081830303815290604052805190602001209050612351838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060125483612dd9565b612390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238790615312565b60405180910390fd5b6001601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506123f3336001612bf2565b505050565b612403848484611008565b60008373ffffffffffffffffffffffffffffffffffffffff163b146124655761242e84848484612df0565b612464576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600281565b6060600073ffffffffffffffffffffffffffffffffffffffff1661249383611a74565b73ffffffffffffffffffffffffffffffffffffffff16036124e0576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006124ea612f40565b9050600081511161250a5760405180602001604052806000815250612535565b8061251484612fd2565b6040516020016125259291906153ba565b6040516020818303038152906040525b915050919050565b61271081565b600060175461075961255591906153e9565b905090565b600061256683836130a0565b9050806125bc57600960149054906101000a900460ff16156125bb5761258a610f32565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161490505b5b92915050565b6060601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561268357602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311612639575b50505050509050919050565b61269761286e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612706576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126fd9061548f565b60405180910390fd5b61270f81612c52565b50565b60007fad0d7f6c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127dd57507fa07d229a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806127ed57506127ec82613134565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128675750612866826131c6565b5b9050919050565b612876613230565b73ffffffffffffffffffffffffffffffffffffffff16612894611d9e565b73ffffffffffffffffffffffffffffffffffffffff16146128ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e1906154fb565b60405180910390fd5b565b6000816128f7613238565b11158015612906575060005482105b8015612944575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b6000612955613230565b905090565b60008082905080612969613238565b116129ef576000548110156129ee5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036129ec575b600081036129e25760046000836001900393508381526020019081526020016000205490506129b8565b8092505050612a21565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b60005b81811015612abd57612ab285858386612aad9190614d28565b613241565b806001019050612a94565b5050505050565b60008060e883901c905060e8612adb868684613341565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b60005b81811015612b4357612b3885858386612b339190614d28565b61334a565b806001019050612b1a565b5050505050565b6000806010600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612be9576040517f219f780400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b6000612bfc61344a565b905060005b82811015612c2957612c1e848284612c199190614d28565b613453565b806001019050612c01565b508160176000828254612c3c9190614d28565b92505081905550612c4d83836136a8565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612d2061286e565b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612dd6576000813b90506000811115612dd4578173ffffffffffffffffffffffffffffffffffffffff1663fb2de5d730612d8a613863565b6040518363ffffffff1660e01b8152600401612da7929190615538565b600060405180830381600087803b158015612dc157600080fd5b505af1925050508015612dd2575060015b505b505b50565b600082612de6858461386d565b1490509392505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e1661294b565b8786866040518563ffffffff1660e01b8152600401612e3894939291906155b6565b6020604051808303816000875af1925050508015612e7457506040513d601f19601f82011682018060405250810190612e719190615617565b60015b612eed573d8060008114612ea4576040519150601f19603f3d011682016040523d82523d6000602084013e612ea9565b606091505b506000815103612ee5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060138054612f4f90614a97565b80601f0160208091040260200160405190810160405280929190818152602001828054612f7b90614a97565b8015612fc85780601f10612f9d57610100808354040283529160200191612fc8565b820191906000526020600020905b815481529060010190602001808311612fab57829003601f168201915b5050505050905090565b606060006001612fe1846138bd565b01905060008167ffffffffffffffff81111561300057612fff61453d565b5b6040519080825280601f01601f1916602001820160405280156130325781602001600182028036833780820191505090505b509050600082602001820190505b600115613095578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161308957613088614bf0565b5b04945060008503613040575b819350505050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061318f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806131bf5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60006001905090565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614905060008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490508180156132b15750805b156132e8576040517f5cbd944100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8115613306576133016132f9613230565b858534613a10565b61333a565b80156133245761331f613317613230565b868534613a16565b613339565b61333861332f613230565b86868634613a1c565b5b5b5050505050565b60009392505050565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614905060008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161490508180156133ba5750805b156133f1576040517f5cbd944100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b811561340f5761340a613402613230565b858534613b0e565b613443565b801561342d57613428613420613230565b868534613b14565b613442565b613441613438613230565b86868634613b1a565b5b5b5050505050565b60008054905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036134b9576040517f022432f900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600f600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613552576040517fcb756a3000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061355d83613b21565b9050806010600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600f600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b600080549050600082036136e8576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6136f56000848385612a91565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061376c8361375d6000866000612ac4565b61376685613f18565b17612aec565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461380d57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506137d2565b5060008203613848576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061385e6000848385612b17565b505050565b60006102d1905090565b60008082905060005b84518110156138b2576138a38286838151811061389657613895615644565b5b6020026020010151613f28565b91508080600101915050613876565b508091505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061391b577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161391157613910614bf0565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613958576d04ee2d6d415b85acef8100000000838161394e5761394d614bf0565b5b0492506020810190505b662386f26fc10000831061398757662386f26fc10000838161397d5761397c614bf0565b5b0492506010810190505b6305f5e10083106139b0576305f5e10083816139a6576139a5614bf0565b5b0492506008810190505b61271083106139d55761271083816139cb576139ca614bf0565b5b0492506004810190505b606483106139f857606483816139ee576139ed614bf0565b5b0492506002810190505b600a8310613a07576001810190505b80915050919050565b50505050565b50505050565b6000613a26610f32565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613b05578073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1603613a955750613b07565b8073ffffffffffffffffffffffffffffffffffffffff1663caee23ea878787876040518563ffffffff1660e01b8152600401613ad49493929190615673565b60006040518083038186803b158015613aec57600080fd5b505afa158015613b00573d6000803e3d6000fd5b505050505b505b5050505050565b50505050565b50505050565b5050505050565b600080613b2c610c90565b90506000613b38611d76565b90506000613b4582613f53565b90508273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603613d13576000600167ffffffffffffffff811115613b9757613b9661453d565b5b604051908082528060200260200182016040528015613bc55781602001602082028036833780820191505090505b5090508381600081518110613bdd57613bdc615644565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600167ffffffffffffffff811115613c3457613c3361453d565b5b604051908082528060200260200182016040528015613c625781602001602082028036833780820191505090505b509050613c6d611dc8565b613c756119fe565b613c7f9190614d28565b81600081518110613c9357613c92615644565b5b6020026020010181815250508273ffffffffffffffffffffffffffffffffffffffff16636e260c1e83836040518363ffffffff1660e01b8152600401613cda929190615776565b600060405180830381600087803b158015613cf457600080fd5b505af1158015613d08573d6000803e3d6000fd5b505050505050613f0d565b6000600267ffffffffffffffff811115613d3057613d2f61453d565b5b604051908082528060200260200182016040528015613d5e5781602001602082028036833780820191505090505b5090508581600081518110613d7657613d75615644565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508381600181518110613dc557613dc4615644565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600267ffffffffffffffff811115613e1c57613e1b61453d565b5b604051908082528060200260200182016040528015613e4a5781602001602082028036833780820191505090505b509050613e556119fe565b81600081518110613e6957613e68615644565b5b602002602001018181525050613e7d611dc8565b81600181518110613e9157613e90615644565b5b6020026020010181815250508273ffffffffffffffffffffffffffffffffffffffff16636e260c1e83836040518363ffffffff1660e01b8152600401613ed8929190615776565b600060405180830381600087803b158015613ef257600080fd5b505af1158015613f06573d6000803e3d6000fd5b5050505050505b809350505050919050565b60006001821460e11b9050919050565b6000818310613f4057613f3b828461400d565b613f4b565b613f4a838361400d565b5b905092915050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f09050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603614008576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613fff906157f9565b60405180910390fd5b919050565b600082600052816020526040600020905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061404f82614024565b9050919050565b61405f81614044565b82525050565b600060208201905061407a6000830184614056565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6140c981614094565b81146140d457600080fd5b50565b6000813590506140e6816140c0565b92915050565b6000602082840312156141025761410161408a565b5b6000614110848285016140d7565b91505092915050565b60008115159050919050565b61412e81614119565b82525050565b60006020820190506141496000830184614125565b92915050565b61415881614119565b811461416357600080fd5b50565b6000813590506141758161414f565b92915050565b6000602082840312156141915761419061408a565b5b600061419f84828501614166565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156141e25780820151818401526020810190506141c7565b60008484015250505050565b6000601f19601f8301169050919050565b600061420a826141a8565b61421481856141b3565b93506142248185602086016141c4565b61422d816141ee565b840191505092915050565b6000602082019050818103600083015261425281846141ff565b905092915050565b6000819050919050565b61426d8161425a565b811461427857600080fd5b50565b60008135905061428a81614264565b92915050565b6000602082840312156142a6576142a561408a565b5b60006142b48482850161427b565b91505092915050565b6142c681614044565b81146142d157600080fd5b50565b6000813590506142e3816142bd565b92915050565b60008060408385031215614300576142ff61408a565b5b600061430e858286016142d4565b925050602061431f8582860161427b565b9150509250929050565b61433281614094565b82525050565b600060408201905061434d6000830185614329565b61435a6020830184614125565b9392505050565b61436a8161425a565b82525050565b60006020820190506143856000830184614361565b92915050565b6000806000606084860312156143a4576143a361408a565b5b60006143b2868287016142d4565b93505060206143c3868287016142d4565b92505060406143d48682870161427b565b9150509250925092565b600281106143eb57600080fd5b50565b6000813590506143fd816143de565b92915050565b60008060006060848603121561441c5761441b61408a565b5b600061442a8682870161427b565b935050602061443b868287016142d4565b925050604061444c868287016143ee565b9150509250925092565b6000806040838503121561446d5761446c61408a565b5b600061447b8582860161427b565b925050602061448c8582860161427b565b9150509250929050565b60006040820190506144ab6000830185614056565b6144b86020830184614361565b9392505050565b6000819050919050565b6144d2816144bf565b82525050565b60006020820190506144ed60008301846144c9565b92915050565b6000806040838503121561450a5761450961408a565b5b60006145188582860161427b565b9250506020614529858286016143ee565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614575826141ee565b810181811067ffffffffffffffff821117156145945761459361453d565b5b80604052505050565b60006145a7614080565b90506145b3828261456c565b919050565b600067ffffffffffffffff8211156145d3576145d261453d565b5b6145dc826141ee565b9050602081019050919050565b82818337600083830152505050565b600061460b614606846145b8565b61459d565b90508281526020810184848401111561462757614626614538565b5b6146328482856145e9565b509392505050565b600082601f83011261464f5761464e614533565b5b813561465f8482602086016145f8565b91505092915050565b60006020828403121561467e5761467d61408a565b5b600082013567ffffffffffffffff81111561469c5761469b61408f565b5b6146a88482850161463a565b91505092915050565b6000602082840312156146c7576146c661408a565b5b60006146d5848285016142d4565b91505092915050565b6146e7816144bf565b81146146f257600080fd5b50565b600081359050614704816146de565b92915050565b6000602082840312156147205761471f61408a565b5b600061472e848285016146f5565b91505092915050565b6000806040838503121561474e5761474d61408a565b5b600061475c858286016142d4565b925050602061476d85828601614166565b9150509250929050565b600080fd5b600080fd5b60008083601f84011261479757614796614533565b5b8235905067ffffffffffffffff8111156147b4576147b3614777565b5b6020830191508360208202830111156147d0576147cf61477c565b5b9250929050565b600080602083850312156147ee576147ed61408a565b5b600083013567ffffffffffffffff81111561480c5761480b61408f565b5b61481885828601614781565b92509250509250929050565b600067ffffffffffffffff82111561483f5761483e61453d565b5b614848826141ee565b9050602081019050919050565b600061486861486384614824565b61459d565b90508281526020810184848401111561488457614883614538565b5b61488f8482856145e9565b509392505050565b600082601f8301126148ac576148ab614533565b5b81356148bc848260208601614855565b91505092915050565b600080600080608085870312156148df576148de61408a565b5b60006148ed878288016142d4565b94505060206148fe878288016142d4565b935050604061490f8782880161427b565b925050606085013567ffffffffffffffff8111156149305761492f61408f565b5b61493c87828801614897565b91505092959194509250565b6000806040838503121561495f5761495e61408a565b5b600061496d858286016142d4565b925050602061497e858286016142d4565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6149bd81614044565b82525050565b60006149cf83836149b4565b60208301905092915050565b6000602082019050919050565b60006149f382614988565b6149fd8185614993565b9350614a08836149a4565b8060005b83811015614a39578151614a2088826149c3565b9750614a2b836149db565b925050600181019050614a0c565b5085935050505092915050565b60006020820190508181036000830152614a6081846149e8565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614aaf57607f821691505b602082108103614ac257614ac1614a68565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000819050919050565b6000614b1c614b17614b1284614024565b614af7565b614024565b9050919050565b6000614b2e82614b01565b9050919050565b6000614b4082614b23565b9050919050565b614b5081614b35565b82525050565b6000604082019050614b6b6000830185614b47565b614b786020830184614056565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614bb98261425a565b9150614bc48361425a565b9250828202614bd28161425a565b91508282048414831517614be957614be8614b7f565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614c2a8261425a565b9150614c358361425a565b925082614c4557614c44614bf0565b5b828204905092915050565b7f5075626c6963207068617365206e6f7420616374697665000000000000000000600082015250565b6000614c866017836141b3565b9150614c9182614c50565b602082019050919050565b60006020820190508181036000830152614cb581614c79565b9050919050565b7f4d757374206d696e74206174206c656173742031000000000000000000000000600082015250565b6000614cf26014836141b3565b9150614cfd82614cbc565b602082019050919050565b60006020820190508181036000830152614d2181614ce5565b9050919050565b6000614d338261425a565b9150614d3e8361425a565b9250828201905080821115614d5657614d55614b7f565b5b92915050565b7f4d617820737570706c7920726561636865640000000000000000000000000000600082015250565b6000614d926012836141b3565b9150614d9d82614d5c565b602082019050919050565b60006020820190508181036000830152614dc181614d85565b9050919050565b7f45786365656473206d696e74206c696d69740000000000000000000000000000600082015250565b6000614dfe6012836141b3565b9150614e0982614dc8565b602082019050919050565b60006020820190508181036000830152614e2d81614df1565b9050919050565b6000614e3f82614024565b9050919050565b614e4f81614e34565b82525050565b6000602082019050614e6a6000830184614e46565b92915050565b600081519050614e7f81614264565b92915050565b600060208284031215614e9b57614e9a61408a565b5b6000614ea984828501614e70565b91505092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614f147fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614ed7565b614f1e8683614ed7565b95508019841693508086168417925050509392505050565b6000614f51614f4c614f478461425a565b614af7565b61425a565b9050919050565b6000819050919050565b614f6b83614f36565b614f7f614f7782614f58565b848454614ee4565b825550505050565b600090565b614f94614f87565b614f9f818484614f62565b505050565b5b81811015614fc357614fb8600082614f8c565b600181019050614fa5565b5050565b601f82111561500857614fd981614eb2565b614fe284614ec7565b81016020851015614ff1578190505b615005614ffd85614ec7565b830182614fa4565b50505b505050565b600082821c905092915050565b600061502b6000198460080261500d565b1980831691505092915050565b6000615044838361501a565b9150826002028217905092915050565b61505d826141a8565b67ffffffffffffffff8111156150765761507561453d565b5b6150808254614a97565b61508b828285614fc7565b600060209050601f8311600181146150be57600084156150ac578287015190505b6150b68582615038565b86555061511e565b601f1984166150cc86614eb2565b60005b828110156150f4578489015182556001820191506020850194506020810190506150cf565b86831015615111578489015161510d601f89168261501a565b8355505b6001600288020188555050505b505050505050565b600061513182614b23565b9050919050565b61514181615126565b82525050565b600060208201905061515c6000830184615138565b92915050565b60006040820190506151776000830185614056565b6151846020830184614056565b9392505050565b7f436c61696d207068617365206e6f742061637469766500000000000000000000600082015250565b60006151c16016836141b3565b91506151cc8261518b565b602082019050919050565b600060208201905081810360008301526151f0816151b4565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b600061522d600f836141b3565b9150615238826151f7565b602082019050919050565b6000602082019050818103600083015261525c81615220565b9050919050565b60008160601b9050919050565b600061527b82615263565b9050919050565b600061528d82615270565b9050919050565b6152a56152a082614044565b615282565b82525050565b60006152b78284615294565b60148201915081905092915050565b7f496e76616c6964206d65726b6c652070726f6f66000000000000000000000000600082015250565b60006152fc6014836141b3565b9150615307826152c6565b602082019050919050565b6000602082019050818103600083015261532b816152ef565b9050919050565b600081905092915050565b6000615348826141a8565b6153528185615332565b93506153628185602086016141c4565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006153a4600583615332565b91506153af8261536e565b600582019050919050565b60006153c6828561533d565b91506153d2828461533d565b91506153dd82615397565b91508190509392505050565b60006153f48261425a565b91506153ff8361425a565b925082820390508181111561541757615416614b7f565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006154796026836141b3565b91506154848261541d565b604082019050919050565b600060208201905081810360008301526154a88161546c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006154e56020836141b3565b91506154f0826154af565b602082019050919050565b60006020820190508181036000830152615514816154d8565b9050919050565b600061ffff82169050919050565b6155328161551b565b82525050565b600060408201905061554d6000830185614056565b61555a6020830184615529565b9392505050565b600081519050919050565b600082825260208201905092915050565b600061558882615561565b615592818561556c565b93506155a28185602086016141c4565b6155ab816141ee565b840191505092915050565b60006080820190506155cb6000830187614056565b6155d86020830186614056565b6155e56040830185614361565b81810360608301526155f7818461557d565b905095945050505050565b600081519050615611816140c0565b92915050565b60006020828403121561562d5761562c61408a565b5b600061563b84828501615602565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006080820190506156886000830187614056565b6156956020830186614056565b6156a26040830185614056565b6156af6060830184614361565b95945050505050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6156ed8161425a565b82525050565b60006156ff83836156e4565b60208301905092915050565b6000602082019050919050565b6000615723826156b8565b61572d81856156c3565b9350615738836156d4565b8060005b8381101561576957815161575088826156f3565b975061575b8361570b565b92505060018101905061573c565b5085935050505092915050565b6000604082019050818103600083015261579081856149e8565b905081810360208301526157a48184615718565b90509392505050565b7f455243313136373a20637265617465206661696c656400000000000000000000600082015250565b60006157e36016836141b3565b91506157ee826157ad565b602082019050919050565b60006020820190508181036000830152615812816157d6565b905091905056fea26469706673582212205a4a0903f212bee611640e1dfaebce42caf1def62615b1409989b6796f2bde8564736f6c634300081c0033

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

000000000000000000000000f750f1f2f11ab2e38dcd20c22b0533ce05069ea9000000000000000000000000b8b2d9e20f5997f439e364392c43d5a7fc2dbb7800000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100fa28e8655ec4806165029b7f4667ba5aa5bd9e734802232b63dca7ecea8d54e400000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000004443054530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044430545300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e68747470733a2f2f646f74736e66742e78797a2f6170692f746f6b656e2f0000

-----Decoded View---------------
Arg [0] : creator_ (address): 0xf750F1F2f11aB2E38DcD20C22B0533Ce05069eA9
Arg [1] : paymentSplitterReference_ (address): 0xb8b2d9e20f5997f439e364392C43D5A7FC2DBb78
Arg [2] : name_ (string): D0TS
Arg [3] : symbol_ (string): D0TS
Arg [4] : merkleRoot_ (bytes32): 0xfa28e8655ec4806165029b7f4667ba5aa5bd9e734802232b63dca7ecea8d54e4
Arg [5] : baseTokenURI_ (string): https://dotsnft.xyz/api/token/

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000f750f1f2f11ab2e38dcd20c22b0533ce05069ea9
Arg [1] : 000000000000000000000000b8b2d9e20f5997f439e364392c43d5a7fc2dbb78
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : fa28e8655ec4806165029b7f4667ba5aa5bd9e734802232b63dca7ecea8d54e4
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [7] : 4430545300000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 4430545300000000000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [11] : 68747470733a2f2f646f74736e66742e78797a2f6170692f746f6b656e2f0000


[ 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.