ETH Price: $2,348.96 (+0.48%)
Gas: 8.39 Gwei

Token

Augur (AUGUR)
 

Overview

Max Total Supply

168 AUGUR

Holders

59

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 AUGUR
0x9E906ae055328C7A09D206992D6397faedBc731C
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Augur

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : augur.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

/**
@author smashice.eth
@checkout dtech.vision and hupfmedia.de
β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–“β–’β–“β–‘β–‘β–’β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–“β–’β–“β–’β–ˆβ–’β–“β–’β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–’β–“β–‘β–“β–’β–“β–’β–“β–‘β–“β–‘β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–’β–“β–‘β–“β–’β–“β–’β–“β–‘β–“β–‘β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–‘β–“β–‘β–“β–’β–“β–’β–’β–“β–“β–’β–“β–‘β–“β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–“β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–‘β–‘β–“β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–“β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–“β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–‘β–“β–‘β–’β–‘β–’β–‘β–’β–ˆβ–ˆβ–’β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–“β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–ˆβ–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–“β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–’β–“β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–“β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–‘β–‘β–’β–ˆβ–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–ˆβ–“β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–’β–ˆβ–ˆβ–’β–’β–“β–’β–’β–’β–ˆβ–ˆβ–’β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–“β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–‘β–‘β–’β–ˆβ–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–ˆβ–“β–‘β–‘β–‘
β–‘β–‘β–‘β–’β–’β–ˆβ–ˆβ–’β–“β–‘β–’β–“β–‘β–ˆβ–ˆβ–’β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–“β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–ˆβ–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–“β–‘β–‘β–‘
β–‘β–‘β–‘β–’β–’β–“β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–“β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–ˆβ–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–‘β–‘β–‘β–ˆβ–ˆβ–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–’β–‘β–‘β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–“β–‘β–‘β–‘
β–‘β–‘β–‘β–’β–“β–‘β–’β–‘β–’β–‘β–’β–‘β–’β–‘β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–‘β–‘β–‘β–‘β–‘β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–’β–‘β–‘β–’β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–’β–“β–‘β–“β–‘β–“β–’β–“β–’β–“β–‘β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–’β–‘β–“β–‘β–“β–’β–“β–’β–“β–‘β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–‘β–“β–‘β–“β–’β–“β–‘β–‘β–‘β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–“β–’β–“β–‘β–‘β–‘β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–’β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
*/

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ERC721-templates/chirulabsERC721A.sol";

contract Augur is chirulabsERC721A { 
    event Received(address, uint);
    // see https://docs.soliditylang.org/en/latest/contracts.html#receive-ether-function
    receive() external payable {
        emit Received(msg.sender, msg.value);
    }
    using Strings for uint;
    /**
     * @param name The NFT collection name
     * @param symbol The NFT collection symbol
     * @param receiver The wallet address to recieve the royalties
     * @param feeNumerator Numerator of royalty % where Denominator default is 10000
     */
    constructor (
        string memory name, 
        string memory symbol,
        address receiver,
        uint96 feeNumerator
        ) 
    chirulabsERC721A(name, symbol, receiver, feeNumerator)
    {
        fundReciever = receiver;
        _safeMint(0x5D7D6e4c6293e1c31A588133016827aC5920501E, 8);
        _safeMint(0x75F025606496bF75DDFe94BC912C42B48B0241c0, 8);

        initCards();
    }

    address internal fundReciever;

    uint8 public burnState = 0;
    bool public burnActive = false;
    bool public mintActive = false;
    bool private payingOut = false;

    string public baseURI1 = "ar://r7UGzRyCXkCob3tv23gw3Qe2sAYup6aG5ykcwkRDprs/";
    string public baseURI2 = "ar://0SIxU-WtHTsvjlyTO7rZl6gq0Y9DXQYYYQf4i7ouDB4/";
    string public baseURI3 = "ar://7_3YkgijnGn2B9s-D7axZVF_pEhALJ33Jy6guJfKmys/";
    string public baseURI4 = "ar://haN6isUXg_EPczVHL5uxeZVtiU-XlFkwqa3IVoggfyE/";
    string public baseURI5;

    uint128 public MAX_SUPPLY = 150; 
    uint128 public cardsLeft = 150;
    uint128[150] private cards;

    mapping(address => uint256) presalebook;
    mapping(uint256 => uint8) public tokenPhase;
    mapping(uint256 => uint256) tokenAlias;

    /**
     * Allows owner to send aribitrary amounts of tokens to arbitrary adresses in last stage
     * @param recipient Array of addresses of which recipient[i] will recieve amount [i]
     * @param amount Array of integers of which amount[i] will be airdropped to recipient[i]
     */
    function airdrop(
        address[] memory recipient,
        uint256[] memory amount
    )
    public onlyOwner
    {
        require(burnState == 4, "Be patient.");
        for(uint i = 0; i < recipient.length; ++i)
        {
            require(totalSupply() + (amount[i]) <= MAX_SUPPLY, "705 no more token available");
            uint256 start = totalSupply();
            _safeMint(recipient[i], amount[i]);
            for(uint256 j = 0; j < amount[i]; ++j)
            {
                tokenPhase[start + j] = 4;
            }
        }
    }

    /**
     * If mint is active, set it to not active.
     * If mint is not active, set it to active.
     */
    function flipMintState() 
    public onlyOwner
    {
        mintActive = !mintActive;
    }

    /**
     * Allows you to buy tokens
     * @param amount_ amount of tokens to get
     */
    function mint(
        uint256 amount_
    ) 
    public payable 
    {
        require(mintActive, "702 Feature disabled/not active"); 
        require(burnState == 0, "Burn started");

        presalebook[msg.sender] = presalebook[msg.sender] + amount_;
        require(presalebook[msg.sender] <= 2, "Already claimed");

        require(msg.sender == tx.origin, "don't try...");
        require(totalSupply() + (amount_) <= MAX_SUPPLY, "705 no more token available"); 

        _safeMint(msg.sender, amount_); 
    }

    /**
     * Allows owner to finish minting and mint all remaining tokens to themselves
     */
    function closeMint() 
    public onlyOwner {
        mintActive = false;
        uint256 rest = MAX_SUPPLY - totalSupply();
        uint256 one = rest / 2;
        _safeMint(0x5D7D6e4c6293e1c31A588133016827aC5920501E, one);
        _safeMint(0x75F025606496bF75DDFe94BC912C42B48B0241c0, rest - one);
    }

    /**
     * burn changes tokenPhase if eligable
     * @param tokenId_ the token to evolve
     */
    function burn(
        uint256 tokenId_
    )
    public
    {
        require(burnActive && burnState < 3, "702 Feature disabled/not active");
        require(_exists(tokenId_), "704 Query for nonexistent token");
        require(msg.sender == ownerOf(tokenId_), "not your token");
        uint8 phase = tokenPhase[tokenId_];
        require(phase == burnState, "Token not in proper phase");
        
        tokenPhase[tokenId_] = phase+1;
        //draw lucky number as "new" TokenId
        tokenAlias[tokenId_] = draw(); 
    }

    /**
     * Allows owner to switch burning to the next phase
     */
    function incrementBurn(
    ) 
    public onlyOwner
    {
        require(!burnActive, "Can't increment while burn is active!");
        require(burnState < 3, "Be patient.");
        burnState++;
        initCards();
    }

    function startPhase5(
        uint128 size,
        string memory baseURI5_
    ) public onlyOwner
    {
        require(burnState == 3, "Be patient.");
        require(totalSupply() == MAX_SUPPLY, "Close mint first!");
        MAX_SUPPLY = MAX_SUPPLY + size;
        baseURI5 = baseURI5_;
        burnState = 4;
    }

    /**
     * Allows owner to toggle burning on/off
     */
    function flipBurnActive(
    ) 
    public onlyOwner
    {
        burnActive = !burnActive;
    }

    /**
     * Allows owner to withdraw all ETH
     */
    function withdraw()
    public 
    {
        payingOut = true;
        uint256 total = address(this).balance;
        uint256 bal =  total / 2;
        (bool success, ) = payable(0x5D7D6e4c6293e1c31A588133016827aC5920501E).call{value: bal}(""); 
        require(success, "Transfer failed!");
        (success, ) = payable(0x75F025606496bF75DDFe94BC912C42B48B0241c0).call{value: (total - bal)}(""); 
        require(success, "Transfer failed!");
        payingOut = false;
    }

    /**
     * Allows owner to set reciever of withdrawl
     * @param reciever who to recieve the balance of the contract
     */
    function setReciever(address reciever)
    public onlyOwner
    {
        fundReciever = reciever;
    }

    /**
     * Allows owner to set baseURI for all tokens
     * @param newBaseURI1_ new baseuri to be used in tokenuri generation of phase 0
     * @param newBaseURI2_ new baseuri to be used in tokenuri generation of phase 1
     * @param newBaseURI3_ new baseuri to be used in tokenuri generation of phase 2
     * @param newBaseURI4_ new baseuri to be used in tokenuri generation of phase 3
     * @param newBaseURI5_ new baseuri to be used in tokenuri generation of phase 4
     */
    function setBaseURI(
        string calldata newBaseURI1_,
        string calldata newBaseURI2_,
        string calldata newBaseURI3_,
        string calldata newBaseURI4_,
        string calldata newBaseURI5_
    ) external onlyOwner 
    {
        baseURI1 = newBaseURI1_;
        baseURI2 = newBaseURI2_;
        baseURI3 = newBaseURI3_;
        baseURI4 = newBaseURI4_;
        baseURI5 = newBaseURI5_;
    }

    /**
     * Allows owner to set new EIP2981 Royalty share and/or reciever for the whole collection
     * @param reciever_ new royalty reciever to be used
     * @param feeNumerator_ new royalty share in basis points to be used e.g. 100 = 1%
     */
    function setRoyalty(
        address reciever_,
        uint96 feeNumerator_
    ) public onlyOwner
    {
        _setDefaultRoyalty(reciever_, feeNumerator_);
    }

    /**
     * Returns the URI (Link) to the given tokenId
     * @param tokenId_ tokenId of which to get the URI
     */
    function tokenURI(
        uint tokenId_
    ) public override view
    returns (string memory)
    {
        require(_exists(tokenId_), "704 Query for nonexistent token");

        uint8 _phase = tokenPhase[tokenId_];
        uint256 metadataID = _phase == 0 ? tokenId_ : tokenAlias[tokenId_]; // if phase 0 use tokenId, else use alias
        string memory _baseURI = _phase == 0 ? baseURI1 : _phase == 1 ? baseURI2
                               : _phase == 2 ? baseURI3 : _phase == 3 ? baseURI4
                               : baseURI5;
        return bytes(_baseURI).length > 0 ? string(abi.encodePacked(_baseURI, metadataID.toString(), '.json')) : "https://dtech.vision";
    }

    /**
     * Facilitates drawing a random number without replacement
     * @return uint128 pseudo random number out of numbers left
     */
    function draw(
    )
    private returns(
        uint128
    )
    {
        require(cardsLeft > 0, "Can't draw anymore.");
        uint128 i = uint128(block.prevrandao % cardsLeft);
        uint128 out = cards[i];
        cards[i] = cards[cardsLeft -1];
        cards[cardsLeft -1] = cardsLeft;
        cardsLeft -= 1;
        return out;
    }

    /** init all cards and reset cardsLeft
     */
    function initCards()
    private {
        cardsLeft = 150;
        for(uint128 i = 0; i < cards.length; ++i)
        {
            cards[i] = i;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 13 : 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 4 of 13 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 5 of 13 : 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 6 of 13 : 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 7 of 13 : 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 8 of 13 : 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 9 of 13 : 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 10 of 13 : 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 11 of 13 : chirulabsERC721A.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "erc721a/contracts/ERC721A.sol";

contract chirulabsERC721A is ERC721A, ERC2981, Ownable {
    /**
     * @param name The NFT collection name
     * @param symbol The NFT collection symbol
     * @param receiver The wallet address to recieve the royalties
     * @param feeNumerator Numerator of royalty % where Denominator default is 10000
     */
    constructor (
        string memory name, 
        string memory symbol,
        address receiver,
        uint96 feeNumerator
        ) 
        ERC721A(name, symbol) 
    {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId) ||
        interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
        interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
        interfaceId == 0x5b5e139f || // ERC165 interface ID for ERC721Metadata.
        interfaceId == type(IERC2981).interfaceId; 
    }
}

File 12 of 13 : 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 13 of 13 : 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
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipient","type":"address[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI1","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI2","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI3","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI4","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI5","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnState","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cardsLeft","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"closeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipBurnActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incrementBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"string","name":"newBaseURI1_","type":"string"},{"internalType":"string","name":"newBaseURI2_","type":"string"},{"internalType":"string","name":"newBaseURI3_","type":"string"},{"internalType":"string","name":"newBaseURI4_","type":"string"},{"internalType":"string","name":"newBaseURI5_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"reciever","type":"address"}],"name":"setReciever","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"reciever_","type":"address"},{"internalType":"uint96","name":"feeNumerator_","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"size","type":"uint128"},{"internalType":"string","name":"baseURI5_","type":"string"}],"name":"startPhase5","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":"","type":"uint256"}],"name":"tokenPhase","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526000600b60146101000a81548160ff021916908360ff1602179055506000600b60156101000a81548160ff0219169083151502179055506000600b60166101000a81548160ff0219169083151502179055506000600b60176101000a81548160ff0219169083151502179055506040518060600160405280603181526020016200687a60319139600c90816200009b919062000d61565b506040518060600160405280603181526020016200684960319139600d9081620000c6919062000d61565b50604051806060016040528060318152602001620068ab60319139600e9081620000f1919062000d61565b50604051806060016040528060318152602001620068dc60319139600f90816200011c919062000d61565b506096601160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506096601160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055503480156200019e57600080fd5b506040516200690d3803806200690d8339818101604052810190620001c491906200105a565b8383838383838160029081620001db919062000d61565b508060039081620001ed919062000d61565b50620001fe620002e560201b60201c565b6000819055505050620002266200021a620002ea60201b60201c565b620002f260201b60201c565b620002388282620003b860201b60201c565b5050505081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620002a4735d7d6e4c6293e1c31a588133016827ac5920501e60086200055b60201b60201c565b620002cb7375f025606496bf75ddfe94bc912c42b48b0241c060086200055b60201b60201c565b620002db6200058160201b60201c565b505050506200143e565b600090565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003c86200065c60201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000429576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004209062001191565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200049b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004929062001203565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6200057d8282604051806020016040528060008152506200066660201b60201c565b5050565b6096601160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060005b6096816fffffffffffffffffffffffffffffffff1610156200065957806012826fffffffffffffffffffffffffffffffff166096811062000604576200060362001225565b5b600291828204019190066010026101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055508062000651906200129f565b9050620005be565b50565b6000612710905090565b6200067883836200071760201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b146200071257600080549050600083820390505b620006c16000868380600101945086620008fe60201b60201c565b620006f8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110620006a65781600054146200070f57600080fd5b50505b505050565b6000805490506000820362000758576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200076d600084838562000a5f60201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550620007fc83620007de600086600062000a6560201b60201c565b620007ef8562000a9560201b60201c565b1762000aa560201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146200089f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905062000862565b5060008203620008db576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050620008f9600084838562000ad060201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026200092c62000ad660201b60201c565b8786866040518563ffffffff1660e01b81526004016200095094939291906200135b565b6020604051808303816000875af19250505080156200098f57506040513d601f19601f820116820180604052508101906200098c91906200140c565b60015b62000a0c573d8060008114620009c2576040519150601f19603f3d011682016040523d82523d6000602084013e620009c7565b606091505b50600081510362000a04576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e862000a8486868462000ade60201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000b6957607f821691505b60208210810362000b7f5762000b7e62000b21565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000be97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000baa565b62000bf5868362000baa565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000c4262000c3c62000c368462000c0d565b62000c17565b62000c0d565b9050919050565b6000819050919050565b62000c5e8362000c21565b62000c7662000c6d8262000c49565b84845462000bb7565b825550505050565b600090565b62000c8d62000c7e565b62000c9a81848462000c53565b505050565b5b8181101562000cc25762000cb660008262000c83565b60018101905062000ca0565b5050565b601f82111562000d115762000cdb8162000b85565b62000ce68462000b9a565b8101602085101562000cf6578190505b62000d0e62000d058562000b9a565b83018262000c9f565b50505b505050565b600082821c905092915050565b600062000d366000198460080262000d16565b1980831691505092915050565b600062000d51838362000d23565b9150826002028217905092915050565b62000d6c8262000ae7565b67ffffffffffffffff81111562000d885762000d8762000af2565b5b62000d94825462000b50565b62000da182828562000cc6565b600060209050601f83116001811462000dd9576000841562000dc4578287015190505b62000dd0858262000d43565b86555062000e40565b601f19841662000de98662000b85565b60005b8281101562000e135784890151825560018201915060208501945060208101905062000dec565b8683101562000e33578489015162000e2f601f89168262000d23565b8355505b6001600288020188555050505b505050505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b62000e828262000e66565b810181811067ffffffffffffffff8211171562000ea45762000ea362000af2565b5b80604052505050565b600062000eb962000e48565b905062000ec7828262000e77565b919050565b600067ffffffffffffffff82111562000eea5762000ee962000af2565b5b62000ef58262000e66565b9050602081019050919050565b60005b8381101562000f2257808201518184015260208101905062000f05565b60008484015250505050565b600062000f4562000f3f8462000ecc565b62000ead565b90508281526020810184848401111562000f645762000f6362000e61565b5b62000f7184828562000f02565b509392505050565b600082601f83011262000f915762000f9062000e5c565b5b815162000fa384826020860162000f2e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000fd98262000fac565b9050919050565b62000feb8162000fcc565b811462000ff757600080fd5b50565b6000815190506200100b8162000fe0565b92915050565b60006bffffffffffffffffffffffff82169050919050565b620010348162001011565b81146200104057600080fd5b50565b600081519050620010548162001029565b92915050565b6000806000806080858703121562001077576200107662000e52565b5b600085015167ffffffffffffffff81111562001098576200109762000e57565b5b620010a68782880162000f79565b945050602085015167ffffffffffffffff811115620010ca57620010c962000e57565b5b620010d88782880162000f79565b9350506040620010eb8782880162000ffa565b9250506060620010fe8782880162001043565b91505092959194509250565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062001179602a836200110a565b915062001186826200111b565b604082019050919050565b60006020820190508181036000830152620011ac816200116a565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000620011eb6019836200110a565b9150620011f882620011b3565b602082019050919050565b600060208201905081810360008301526200121e81620011dc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006fffffffffffffffffffffffffffffffff82169050919050565b6000620012ac8262001283565b91506fffffffffffffffffffffffffffffffff8203620012d157620012d062001254565b5b600182019050919050565b620012e78162000fcc565b82525050565b620012f88162000c0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60006200132782620012fe565b62001333818562001309565b93506200134581856020860162000f02565b620013508162000e66565b840191505092915050565b6000608082019050620013726000830187620012dc565b620013816020830186620012dc565b620013906040830185620012ed565b8181036060830152620013a481846200131a565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b620013e681620013af565b8114620013f257600080fd5b50565b6000815190506200140681620013db565b92915050565b60006020828403121562001425576200142462000e52565b5b60006200143584828501620013f5565b91505092915050565b6153fb806200144e6000396000f3fe60806040526004361061024a5760003560e01c806364f101f011610139578063a0db86f9116100b6578063ba7b999b1161007a578063ba7b999b14610822578063c87b56dd1461084b578063d87e684e14610888578063e985e9c51461089f578063f2fde38b146108dc578063f8449b15146109055761028a565b8063a0db86f91461074c578063a22cb46514610775578063b0a6f4c61461079e578063b5cf0ed7146107db578063b88d4fde146108065761028a565b8063864ef3e5116100fd578063864ef3e5146106865780638da5cb5b146106b15780638f2fc60b146106dc57806395d89b4114610705578063a0712d68146107305761028a565b806364f101f0146105c757806367243482146105de57806370a0823114610607578063715018a61461064457806376b580391461065b5761028a565b8063269d9e92116101c75780633ccfd60b1161018b5780633ccfd60b1461051757806342842e0e1461052e57806342966c681461054a57806359c74f29146105735780636352211e1461058a5761028a565b8063269d9e921461042f5780632a55205a1461045a578063311da6781461049857806332cb6b0c146104c15780633a043ef0146104ec5761028a565b80630b7aed831161020e5780630b7aed831461037b57806318160ddd1461039257806319b74247146103bd57806323b872dd146103e857806325fd90f3146104045761028a565b806301ffc9a71461028f57806306fdde03146102cc578063081812fc146102f7578063095ea7b3146103345780630aaf0c2e146103505761028a565b3661028a577f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f885258743334604051610280929190613821565b60405180910390a1005b600080fd5b34801561029b57600080fd5b506102b660048036038101906102b191906138b6565b610930565b6040516102c391906138fe565b60405180910390f35b3480156102d857600080fd5b506102e1610a3a565b6040516102ee91906139a9565b60405180910390f35b34801561030357600080fd5b5061031e600480360381019061031991906139f7565b610acc565b60405161032b9190613a24565b60405180910390f35b61034e60048036038101906103499190613a6b565b610b4b565b005b34801561035c57600080fd5b50610365610c8f565b60405161037291906139a9565b60405180910390f35b34801561038757600080fd5b50610390610d1d565b005b34801561039e57600080fd5b506103a7610d51565b6040516103b49190613aab565b60405180910390f35b3480156103c957600080fd5b506103d2610d68565b6040516103df91906139a9565b60405180910390f35b61040260048036038101906103fd9190613ac6565b610df6565b005b34801561041057600080fd5b50610419611118565b60405161042691906138fe565b60405180910390f35b34801561043b57600080fd5b5061044461112b565b6040516104519190613b35565b60405180910390f35b34801561046657600080fd5b50610481600480360381019061047c9190613b50565b61113e565b60405161048f929190613821565b60405180910390f35b3480156104a457600080fd5b506104bf60048036038101906104ba9190613bf5565b611328565b005b3480156104cd57600080fd5b506104d6611396565b6040516104e39190613d3d565b60405180910390f35b3480156104f857600080fd5b506105016113b8565b60405161050e91906139a9565b60405180910390f35b34801561052357600080fd5b5061052c611446565b005b61054860048036038101906105439190613ac6565b611622565b005b34801561055657600080fd5b50610571600480360381019061056c91906139f7565b611642565b005b34801561057f57600080fd5b50610588611856565b005b34801561059657600080fd5b506105b160048036038101906105ac91906139f7565b61188a565b6040516105be9190613a24565b60405180910390f35b3480156105d357600080fd5b506105dc61189c565b005b3480156105ea57600080fd5b5061060560048036038101906106009190613f59565b611962565b005b34801561061357600080fd5b5061062e60048036038101906106299190613fd1565b611b3a565b60405161063b9190613aab565b60405180910390f35b34801561065057600080fd5b50610659611bf2565b005b34801561066757600080fd5b50610670611c06565b60405161067d91906139a9565b60405180910390f35b34801561069257600080fd5b5061069b611c94565b6040516106a891906138fe565b60405180910390f35b3480156106bd57600080fd5b506106c6611ca7565b6040516106d39190613a24565b60405180910390f35b3480156106e857600080fd5b5061070360048036038101906106fe9190614042565b611cd1565b005b34801561071157600080fd5b5061071a611ce7565b60405161072791906139a9565b60405180910390f35b61074a600480360381019061074591906139f7565b611d79565b005b34801561075857600080fd5b50610773600480360381019061076e9190613fd1565b61202e565b005b34801561078157600080fd5b5061079c600480360381019061079791906140ae565b61207a565b005b3480156107aa57600080fd5b506107c560048036038101906107c091906139f7565b612185565b6040516107d29190613b35565b60405180910390f35b3480156107e757600080fd5b506107f06121a5565b6040516107fd9190613d3d565b60405180910390f35b610820600480360381019061081b91906141a3565b6121c7565b005b34801561082e57600080fd5b50610849600480360381019061084491906142f3565b61223a565b005b34801561085757600080fd5b50610872600480360381019061086d91906139f7565b6123a2565b60405161087f91906139a9565b60405180910390f35b34801561089457600080fd5b5061089d61258d565b005b3480156108ab57600080fd5b506108c660048036038101906108c1919061434f565b61267c565b6040516108d391906138fe565b60405180910390f35b3480156108e857600080fd5b5061090360048036038101906108fe9190613fd1565b612710565b005b34801561091157600080fd5b5061091a612793565b60405161092791906139a9565b60405180910390f35b600061093b82612821565b8061096b57506301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061099b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109cb5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a3357507f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610a49906143be565b80601f0160208091040260200160405190810160405280929190818152602001828054610a75906143be565b8015610ac25780601f10610a9757610100808354040283529160200191610ac2565b820191906000526020600020905b815481529060010190602001808311610aa557829003601f168201915b5050505050905090565b6000610ad78261289b565b610b0d576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b568261188a565b90508073ffffffffffffffffffffffffffffffffffffffff16610b776128fa565b73ffffffffffffffffffffffffffffffffffffffff1614610bda57610ba381610b9e6128fa565b61267c565b610bd9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600c8054610c9c906143be565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc8906143be565b8015610d155780601f10610cea57610100808354040283529160200191610d15565b820191906000526020600020905b815481529060010190602001808311610cf857829003601f168201915b505050505081565b610d25612902565b600b60159054906101000a900460ff1615600b60156101000a81548160ff021916908315150217905550565b6000610d5b612980565b6001546000540303905090565b600d8054610d75906143be565b80601f0160208091040260200160405190810160405280929190818152602001828054610da1906143be565b8015610dee5780601f10610dc357610100808354040283529160200191610dee565b820191906000526020600020905b815481529060010190602001808311610dd157829003601f168201915b505050505081565b6000610e0182612985565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e68576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610e7484612a51565b91509150610e8a8187610e856128fa565b612a78565b610ed657610e9f86610e9a6128fa565b61267c565b610ed5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f3c576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f498686866001612abc565b8015610f5457600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061102285610ffe888887612ac2565b7c020000000000000000000000000000000000000000000000000000000017612aea565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036110a857600060018501905060006004600083815260200190815260200160002054036110a65760005481146110a5578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111108686866001612b15565b505050505050565b600b60169054906101000a900460ff1681565b600b60149054906101000a900460ff1681565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036112d35760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006112dd612b1b565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686611309919061441e565b611313919061448f565b90508160000151819350935050509250929050565b611330612902565b8989600c9182611341929190614677565b508787600d9182611353929190614677565b508585600e9182611365929190614677565b508383600f9182611377929190614677565b50818160109182611389929190614677565b5050505050505050505050565b601160009054906101000a90046fffffffffffffffffffffffffffffffff1681565b601080546113c5906143be565b80601f01602080910402602001604051908101604052809291908181526020018280546113f1906143be565b801561143e5780601f106114135761010080835404028352916020019161143e565b820191906000526020600020905b81548152906001019060200180831161142157829003601f168201915b505050505081565b6001600b60176101000a81548160ff02191690831515021790555060004790506000600282611475919061448f565b90506000735d7d6e4c6293e1c31a588133016827ac5920501e73ffffffffffffffffffffffffffffffffffffffff16826040516114b190614778565b60006040518083038185875af1925050503d80600081146114ee576040519150601f19603f3d011682016040523d82523d6000602084013e6114f3565b606091505b5050905080611537576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152e906147d9565b60405180910390fd5b7375f025606496bf75ddfe94bc912c42b48b0241c073ffffffffffffffffffffffffffffffffffffffff16828461156e91906147f9565b60405161157a90614778565b60006040518083038185875af1925050503d80600081146115b7576040519150601f19603f3d011682016040523d82523d6000602084013e6115bc565b606091505b50508091505080611602576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f9906147d9565b60405180910390fd5b6000600b60176101000a81548160ff021916908315150217905550505050565b61163d838383604051806020016040528060008152506121c7565b505050565b600b60159054906101000a900460ff16801561167057506003600b60149054906101000a900460ff1660ff16105b6116af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a690614879565b60405180910390fd5b6116b88161289b565b6116f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ee906148e5565b60405180910390fd5b6117008161188a565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461176d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176490614951565b60405180910390fd5b6000605e600083815260200190815260200160002060009054906101000a900460ff169050600b60149054906101000a900460ff1660ff168160ff16146117e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e0906149bd565b60405180910390fd5b6001816117f691906149dd565b605e600084815260200190815260200160002060006101000a81548160ff021916908360ff160217905550611829612b25565b6fffffffffffffffffffffffffffffffff16605f6000848152602001908152602001600020819055505050565b61185e612902565b600b60169054906101000a900460ff1615600b60166101000a81548160ff021916908315150217905550565b600061189582612985565b9050919050565b6118a4612902565b6000600b60166101000a81548160ff02191690831515021790555060006118c9610d51565b601160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1661190491906147f9565b90506000600282611915919061448f565b9050611935735d7d6e4c6293e1c31a588133016827ac5920501e82612e26565b61195e7375f025606496bf75ddfe94bc912c42b48b0241c0828461195991906147f9565b612e26565b5050565b61196a612902565b6004600b60149054906101000a900460ff1660ff16146119bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b690614a5e565b60405180910390fd5b60005b8251811015611b3557601160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16828281518110611a0f57611a0e614a7e565b5b6020026020010151611a1f610d51565b611a299190614aad565b1115611a6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6190614b2d565b60405180910390fd5b6000611a74610d51565b9050611ab4848381518110611a8c57611a8b614a7e565b5b6020026020010151848481518110611aa757611aa6614a7e565b5b6020026020010151612e26565b60005b838381518110611aca57611ac9614a7e565b5b6020026020010151811015611b22576004605e60008385611aeb9190614aad565b815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080611b1b90614b4d565b9050611ab7565b505080611b2e90614b4d565b90506119c2565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ba1576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611bfa612902565b611c046000612e44565b565b600f8054611c13906143be565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3f906143be565b8015611c8c5780601f10611c6157610100808354040283529160200191611c8c565b820191906000526020600020905b815481529060010190602001808311611c6f57829003601f168201915b505050505081565b600b60159054906101000a900460ff1681565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611cd9612902565b611ce38282612f0a565b5050565b606060038054611cf6906143be565b80601f0160208091040260200160405190810160405280929190818152602001828054611d22906143be565b8015611d6f5780601f10611d4457610100808354040283529160200191611d6f565b820191906000526020600020905b815481529060010190602001808311611d5257829003601f168201915b5050505050905090565b600b60169054906101000a900460ff16611dc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbf90614879565b60405180910390fd5b6000600b60149054906101000a900460ff1660ff1614611e1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1490614be1565b60405180910390fd5b80605d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e689190614aad565b605d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002605d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611f2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2590614c4d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611f9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9390614cb9565b60405180910390fd5b601160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681611fd6610d51565b611fe09190614aad565b1115612021576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201890614b2d565b60405180910390fd5b61202b3382612e26565b50565b612036612902565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b80600760006120876128fa565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166121346128fa565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161217991906138fe565b60405180910390a35050565b605e6020528060005260406000206000915054906101000a900460ff1681565b601160109054906101000a90046fffffffffffffffffffffffffffffffff1681565b6121d2848484610df6565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612234576121fd8484848461309f565b612233576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612242612902565b6003600b60149054906101000a900460ff1660ff1614612297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228e90614a5e565b60405180910390fd5b601160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166122d0610d51565b14612310576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230790614d25565b60405180910390fd5b81601160009054906101000a90046fffffffffffffffffffffffffffffffff1661233a9190614d45565b601160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555080601090816123819190614d89565b506004600b60146101000a81548160ff021916908360ff1602179055505050565b60606123ad8261289b565b6123ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e3906148e5565b60405180910390fd5b6000605e600084815260200190815260200160002060009054906101000a900460ff1690506000808260ff161461243657605f600085815260200190815260200160002054612438565b835b90506000808360ff16146124865760018360ff161461247e5760028360ff16146124765760038360ff161461246e576010612471565b600f5b612479565b600e5b612481565b600d5b612489565b600c5b8054612494906143be565b80601f01602080910402602001604051908101604052809291908181526020018280546124c0906143be565b801561250d5780601f106124e25761010080835404028352916020019161250d565b820191906000526020600020905b8154815290600101906020018083116124f057829003601f168201915b505050505090506000815111612558576040518060400160405280601481526020017f68747470733a2f2f64746563682e766973696f6e000000000000000000000000815250612583565b80612562836131ef565b604051602001612573929190614ee3565b6040516020818303038152906040525b9350505050919050565b612595612902565b600b60159054906101000a900460ff16156125e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125dc90614f84565b60405180910390fd5b6003600b60149054906101000a900460ff1660ff161061263a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263190614a5e565b60405180910390fd5b600b601481819054906101000a900460ff168092919061265990614fa4565b91906101000a81548160ff021916908360ff1602179055505061267a6132bd565b565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612718612902565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277e9061503f565b60405180910390fd5b61279081612e44565b50565b600e80546127a0906143be565b80601f01602080910402602001604051908101604052809291908181526020018280546127cc906143be565b80156128195780601f106127ee57610100808354040283529160200191612819565b820191906000526020600020905b8154815290600101906020018083116127fc57829003601f168201915b505050505081565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612894575061289382613391565b5b9050919050565b6000816128a6612980565b111580156128b5575060005482105b80156128f3575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b61290a6133fb565b73ffffffffffffffffffffffffffffffffffffffff16612928611ca7565b73ffffffffffffffffffffffffffffffffffffffff161461297e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612975906150ab565b60405180910390fd5b565b600090565b60008082905080612994612980565b11612a1a57600054811015612a195760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612a17575b60008103612a0d5760046000836001900393508381526020019081526020016000205490506129e3565b8092505050612a4c565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612ad9868684613403565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000612710905090565b600080601160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1611612b99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9090615117565b60405180910390fd5b6000601160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1644612bd79190615137565b905060006012826fffffffffffffffffffffffffffffffff1660968110612c0157612c00614a7e565b5b600291828204019190066010029054906101000a90046fffffffffffffffffffffffffffffffff16905060126001601160109054906101000a90046fffffffffffffffffffffffffffffffff16612c589190615168565b6fffffffffffffffffffffffffffffffff1660968110612c7b57612c7a614a7e565b5b600291828204019190066010029054906101000a90046fffffffffffffffffffffffffffffffff166012836fffffffffffffffffffffffffffffffff1660968110612cc957612cc8614a7e565b5b600291828204019190066010026101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550601160109054906101000a90046fffffffffffffffffffffffffffffffff1660126001601160109054906101000a90046fffffffffffffffffffffffffffffffff16612d569190615168565b6fffffffffffffffffffffffffffffffff1660968110612d7957612d78614a7e565b5b600291828204019190066010026101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001601160108282829054906101000a90046fffffffffffffffffffffffffffffffff16612de89190615168565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550809250505090565b612e4082826040518060200160405280600081525061340c565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612f12612b1b565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612f70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f679061521e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612fdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fd69061528a565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130c56128fa565b8786866040518563ffffffff1660e01b81526004016130e794939291906152ff565b6020604051808303816000875af192505050801561312357506040513d601f19601f820116820180604052508101906131209190615360565b60015b61319c573d8060008114613153576040519150601f19603f3d011682016040523d82523d6000602084013e613158565b606091505b506000815103613194576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600060016131fe846134a9565b01905060008167ffffffffffffffff81111561321d5761321c613d58565b5b6040519080825280601f01601f19166020018201604052801561324f5781602001600182028036833780820191505090505b509050600082602001820190505b6001156132b2578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816132a6576132a5614460565b5b0494506000850361325d575b819350505050919050565b6096601160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060005b6096816fffffffffffffffffffffffffffffffff16101561338e57806012826fffffffffffffffffffffffffffffffff166096811061333c5761333b614a7e565b5b600291828204019190066010026101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550806133879061538d565b90506132fa565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60009392505050565b61341683836135fc565b60008373ffffffffffffffffffffffffffffffffffffffff163b146134a457600080549050600083820390505b613456600086838060010194508661309f565b61348c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106134435781600054146134a157600080fd5b50505b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613507577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816134fd576134fc614460565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613544576d04ee2d6d415b85acef8100000000838161353a57613539614460565b5b0492506020810190505b662386f26fc10000831061357357662386f26fc10000838161356957613568614460565b5b0492506010810190505b6305f5e100831061359c576305f5e100838161359257613591614460565b5b0492506008810190505b61271083106135c15761271083816135b7576135b6614460565b5b0492506004810190505b606483106135e457606483816135da576135d9614460565b5b0492506002810190505b600a83106135f3576001810190505b80915050919050565b6000805490506000820361363c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6136496000848385612abc565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506136c0836136b16000866000612ac2565b6136ba856137b7565b17612aea565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461376157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613726565b506000820361379c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506137b26000848385612b15565b505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006137f2826137c7565b9050919050565b613802816137e7565b82525050565b6000819050919050565b61381b81613808565b82525050565b600060408201905061383660008301856137f9565b6138436020830184613812565b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6138938161385e565b811461389e57600080fd5b50565b6000813590506138b08161388a565b92915050565b6000602082840312156138cc576138cb613854565b5b60006138da848285016138a1565b91505092915050565b60008115159050919050565b6138f8816138e3565b82525050565b600060208201905061391360008301846138ef565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613953578082015181840152602081019050613938565b60008484015250505050565b6000601f19601f8301169050919050565b600061397b82613919565b6139858185613924565b9350613995818560208601613935565b61399e8161395f565b840191505092915050565b600060208201905081810360008301526139c38184613970565b905092915050565b6139d481613808565b81146139df57600080fd5b50565b6000813590506139f1816139cb565b92915050565b600060208284031215613a0d57613a0c613854565b5b6000613a1b848285016139e2565b91505092915050565b6000602082019050613a3960008301846137f9565b92915050565b613a48816137e7565b8114613a5357600080fd5b50565b600081359050613a6581613a3f565b92915050565b60008060408385031215613a8257613a81613854565b5b6000613a9085828601613a56565b9250506020613aa1858286016139e2565b9150509250929050565b6000602082019050613ac06000830184613812565b92915050565b600080600060608486031215613adf57613ade613854565b5b6000613aed86828701613a56565b9350506020613afe86828701613a56565b9250506040613b0f868287016139e2565b9150509250925092565b600060ff82169050919050565b613b2f81613b19565b82525050565b6000602082019050613b4a6000830184613b26565b92915050565b60008060408385031215613b6757613b66613854565b5b6000613b75858286016139e2565b9250506020613b86858286016139e2565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613bb557613bb4613b90565b5b8235905067ffffffffffffffff811115613bd257613bd1613b95565b5b602083019150836001820283011115613bee57613bed613b9a565b5b9250929050565b60008060008060008060008060008060a08b8d031215613c1857613c17613854565b5b60008b013567ffffffffffffffff811115613c3657613c35613859565b5b613c428d828e01613b9f565b9a509a505060208b013567ffffffffffffffff811115613c6557613c64613859565b5b613c718d828e01613b9f565b985098505060408b013567ffffffffffffffff811115613c9457613c93613859565b5b613ca08d828e01613b9f565b965096505060608b013567ffffffffffffffff811115613cc357613cc2613859565b5b613ccf8d828e01613b9f565b945094505060808b013567ffffffffffffffff811115613cf257613cf1613859565b5b613cfe8d828e01613b9f565b92509250509295989b9194979a5092959850565b60006fffffffffffffffffffffffffffffffff82169050919050565b613d3781613d12565b82525050565b6000602082019050613d526000830184613d2e565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d908261395f565b810181811067ffffffffffffffff82111715613daf57613dae613d58565b5b80604052505050565b6000613dc261384a565b9050613dce8282613d87565b919050565b600067ffffffffffffffff821115613dee57613ded613d58565b5b602082029050602081019050919050565b6000613e12613e0d84613dd3565b613db8565b90508083825260208201905060208402830185811115613e3557613e34613b9a565b5b835b81811015613e5e5780613e4a8882613a56565b845260208401935050602081019050613e37565b5050509392505050565b600082601f830112613e7d57613e7c613b90565b5b8135613e8d848260208601613dff565b91505092915050565b600067ffffffffffffffff821115613eb157613eb0613d58565b5b602082029050602081019050919050565b6000613ed5613ed084613e96565b613db8565b90508083825260208201905060208402830185811115613ef857613ef7613b9a565b5b835b81811015613f215780613f0d88826139e2565b845260208401935050602081019050613efa565b5050509392505050565b600082601f830112613f4057613f3f613b90565b5b8135613f50848260208601613ec2565b91505092915050565b60008060408385031215613f7057613f6f613854565b5b600083013567ffffffffffffffff811115613f8e57613f8d613859565b5b613f9a85828601613e68565b925050602083013567ffffffffffffffff811115613fbb57613fba613859565b5b613fc785828601613f2b565b9150509250929050565b600060208284031215613fe757613fe6613854565b5b6000613ff584828501613a56565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b61401f81613ffe565b811461402a57600080fd5b50565b60008135905061403c81614016565b92915050565b6000806040838503121561405957614058613854565b5b600061406785828601613a56565b92505060206140788582860161402d565b9150509250929050565b61408b816138e3565b811461409657600080fd5b50565b6000813590506140a881614082565b92915050565b600080604083850312156140c5576140c4613854565b5b60006140d385828601613a56565b92505060206140e485828601614099565b9150509250929050565b600080fd5b600067ffffffffffffffff82111561410e5761410d613d58565b5b6141178261395f565b9050602081019050919050565b82818337600083830152505050565b6000614146614141846140f3565b613db8565b905082815260208101848484011115614162576141616140ee565b5b61416d848285614124565b509392505050565b600082601f83011261418a57614189613b90565b5b813561419a848260208601614133565b91505092915050565b600080600080608085870312156141bd576141bc613854565b5b60006141cb87828801613a56565b94505060206141dc87828801613a56565b93505060406141ed878288016139e2565b925050606085013567ffffffffffffffff81111561420e5761420d613859565b5b61421a87828801614175565b91505092959194509250565b61422f81613d12565b811461423a57600080fd5b50565b60008135905061424c81614226565b92915050565b600067ffffffffffffffff82111561426d5761426c613d58565b5b6142768261395f565b9050602081019050919050565b600061429661429184614252565b613db8565b9050828152602081018484840111156142b2576142b16140ee565b5b6142bd848285614124565b509392505050565b600082601f8301126142da576142d9613b90565b5b81356142ea848260208601614283565b91505092915050565b6000806040838503121561430a57614309613854565b5b60006143188582860161423d565b925050602083013567ffffffffffffffff81111561433957614338613859565b5b614345858286016142c5565b9150509250929050565b6000806040838503121561436657614365613854565b5b600061437485828601613a56565b925050602061438585828601613a56565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806143d657607f821691505b6020821081036143e9576143e861438f565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061442982613808565b915061443483613808565b925082820261444281613808565b91508282048414831517614459576144586143ef565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061449a82613808565b91506144a583613808565b9250826144b5576144b4614460565b5b828204905092915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261452d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826144f0565b61453786836144f0565b95508019841693508086168417925050509392505050565b6000819050919050565b600061457461456f61456a84613808565b61454f565b613808565b9050919050565b6000819050919050565b61458e83614559565b6145a261459a8261457b565b8484546144fd565b825550505050565b600090565b6145b76145aa565b6145c2818484614585565b505050565b5b818110156145e6576145db6000826145af565b6001810190506145c8565b5050565b601f82111561462b576145fc816144cb565b614605846144e0565b81016020851015614614578190505b614628614620856144e0565b8301826145c7565b50505b505050565b600082821c905092915050565b600061464e60001984600802614630565b1980831691505092915050565b6000614667838361463d565b9150826002028217905092915050565b61468183836144c0565b67ffffffffffffffff81111561469a57614699613d58565b5b6146a482546143be565b6146af8282856145ea565b6000601f8311600181146146de57600084156146cc578287013590505b6146d6858261465b565b86555061473e565b601f1984166146ec866144cb565b60005b82811015614714578489013582556001820191506020850194506020810190506146ef565b86831015614731578489013561472d601f89168261463d565b8355505b6001600288020188555050505b50505050505050565b600081905092915050565b50565b6000614762600083614747565b915061476d82614752565b600082019050919050565b600061478382614755565b9150819050919050565b7f5472616e73666572206661696c65642100000000000000000000000000000000600082015250565b60006147c3601083613924565b91506147ce8261478d565b602082019050919050565b600060208201905081810360008301526147f2816147b6565b9050919050565b600061480482613808565b915061480f83613808565b9250828203905081811115614827576148266143ef565b5b92915050565b7f37303220466561747572652064697361626c65642f6e6f742061637469766500600082015250565b6000614863601f83613924565b915061486e8261482d565b602082019050919050565b6000602082019050818103600083015261489281614856565b9050919050565b7f37303420517565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b60006148cf601f83613924565b91506148da82614899565b602082019050919050565b600060208201905081810360008301526148fe816148c2565b9050919050565b7f6e6f7420796f757220746f6b656e000000000000000000000000000000000000600082015250565b600061493b600e83613924565b915061494682614905565b602082019050919050565b6000602082019050818103600083015261496a8161492e565b9050919050565b7f546f6b656e206e6f7420696e2070726f70657220706861736500000000000000600082015250565b60006149a7601983613924565b91506149b282614971565b602082019050919050565b600060208201905081810360008301526149d68161499a565b9050919050565b60006149e882613b19565b91506149f383613b19565b9250828201905060ff811115614a0c57614a0b6143ef565b5b92915050565b7f42652070617469656e742e000000000000000000000000000000000000000000600082015250565b6000614a48600b83613924565b9150614a5382614a12565b602082019050919050565b60006020820190508181036000830152614a7781614a3b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614ab882613808565b9150614ac383613808565b9250828201905080821115614adb57614ada6143ef565b5b92915050565b7f373035206e6f206d6f726520746f6b656e20617661696c61626c650000000000600082015250565b6000614b17601b83613924565b9150614b2282614ae1565b602082019050919050565b60006020820190508181036000830152614b4681614b0a565b9050919050565b6000614b5882613808565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614b8a57614b896143ef565b5b600182019050919050565b7f4275726e20737461727465640000000000000000000000000000000000000000600082015250565b6000614bcb600c83613924565b9150614bd682614b95565b602082019050919050565b60006020820190508181036000830152614bfa81614bbe565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b6000614c37600f83613924565b9150614c4282614c01565b602082019050919050565b60006020820190508181036000830152614c6681614c2a565b9050919050565b7f646f6e2774207472792e2e2e0000000000000000000000000000000000000000600082015250565b6000614ca3600c83613924565b9150614cae82614c6d565b602082019050919050565b60006020820190508181036000830152614cd281614c96565b9050919050565b7f436c6f7365206d696e7420666972737421000000000000000000000000000000600082015250565b6000614d0f601183613924565b9150614d1a82614cd9565b602082019050919050565b60006020820190508181036000830152614d3e81614d02565b9050919050565b6000614d5082613d12565b9150614d5b83613d12565b925082820190506fffffffffffffffffffffffffffffffff811115614d8357614d826143ef565b5b92915050565b614d9282613919565b67ffffffffffffffff811115614dab57614daa613d58565b5b614db582546143be565b614dc08282856145ea565b600060209050601f831160018114614df35760008415614de1578287015190505b614deb858261465b565b865550614e53565b601f198416614e01866144cb565b60005b82811015614e2957848901518255600182019150602085019450602081019050614e04565b86831015614e465784890151614e42601f89168261463d565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000614e7182613919565b614e7b8185614e5b565b9350614e8b818560208601613935565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614ecd600583614e5b565b9150614ed882614e97565b600582019050919050565b6000614eef8285614e66565b9150614efb8284614e66565b9150614f0682614ec0565b91508190509392505050565b7f43616e277420696e6372656d656e74207768696c65206275726e20697320616360008201527f7469766521000000000000000000000000000000000000000000000000000000602082015250565b6000614f6e602583613924565b9150614f7982614f12565b604082019050919050565b60006020820190508181036000830152614f9d81614f61565b9050919050565b6000614faf82613b19565b915060ff8203614fc257614fc16143ef565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615029602683613924565b915061503482614fcd565b604082019050919050565b600060208201905081810360008301526150588161501c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615095602083613924565b91506150a08261505f565b602082019050919050565b600060208201905081810360008301526150c481615088565b9050919050565b7f43616e2774206472617720616e796d6f72652e00000000000000000000000000600082015250565b6000615101601383613924565b915061510c826150cb565b602082019050919050565b60006020820190508181036000830152615130816150f4565b9050919050565b600061514282613808565b915061514d83613808565b92508261515d5761515c614460565b5b828206905092915050565b600061517382613d12565b915061517e83613d12565b925082820390506fffffffffffffffffffffffffffffffff8111156151a6576151a56143ef565b5b92915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000615208602a83613924565b9150615213826151ac565b604082019050919050565b60006020820190508181036000830152615237816151fb565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615274601983613924565b915061527f8261523e565b602082019050919050565b600060208201905081810360008301526152a381615267565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006152d1826152aa565b6152db81856152b5565b93506152eb818560208601613935565b6152f48161395f565b840191505092915050565b600060808201905061531460008301876137f9565b61532160208301866137f9565b61532e6040830185613812565b818103606083015261534081846152c6565b905095945050505050565b60008151905061535a8161388a565b92915050565b60006020828403121561537657615375613854565b5b60006153848482850161534b565b91505092915050565b600061539882613d12565b91506fffffffffffffffffffffffffffffffff82036153ba576153b96143ef565b5b60018201905091905056fea264697066735822122012bfc630ec776258eed78795e85257b29bb302fee03d997ca8bcc5c8be8b545764736f6c6343000812003361723a2f2f30534978552d5774485473766a6c79544f37725a6c36677130593944585159595951663469376f754442342f61723a2f2f723755477a527943586b436f623374763233677733516532734159757036614735796b63776b52447072732f61723a2f2f375f33596b67696a6e476e324239732d443761785a56465f704568414c4a33334a793667754a664b6d79732f61723a2f2f68614e3669735558675f4550637a56484c357578655a567469552d586c466b7771613349566f67676679452f000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000005d7d6e4c6293e1c31a588133016827ac5920501e00000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000005417567757200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054155475552000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061024a5760003560e01c806364f101f011610139578063a0db86f9116100b6578063ba7b999b1161007a578063ba7b999b14610822578063c87b56dd1461084b578063d87e684e14610888578063e985e9c51461089f578063f2fde38b146108dc578063f8449b15146109055761028a565b8063a0db86f91461074c578063a22cb46514610775578063b0a6f4c61461079e578063b5cf0ed7146107db578063b88d4fde146108065761028a565b8063864ef3e5116100fd578063864ef3e5146106865780638da5cb5b146106b15780638f2fc60b146106dc57806395d89b4114610705578063a0712d68146107305761028a565b806364f101f0146105c757806367243482146105de57806370a0823114610607578063715018a61461064457806376b580391461065b5761028a565b8063269d9e92116101c75780633ccfd60b1161018b5780633ccfd60b1461051757806342842e0e1461052e57806342966c681461054a57806359c74f29146105735780636352211e1461058a5761028a565b8063269d9e921461042f5780632a55205a1461045a578063311da6781461049857806332cb6b0c146104c15780633a043ef0146104ec5761028a565b80630b7aed831161020e5780630b7aed831461037b57806318160ddd1461039257806319b74247146103bd57806323b872dd146103e857806325fd90f3146104045761028a565b806301ffc9a71461028f57806306fdde03146102cc578063081812fc146102f7578063095ea7b3146103345780630aaf0c2e146103505761028a565b3661028a577f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f885258743334604051610280929190613821565b60405180910390a1005b600080fd5b34801561029b57600080fd5b506102b660048036038101906102b191906138b6565b610930565b6040516102c391906138fe565b60405180910390f35b3480156102d857600080fd5b506102e1610a3a565b6040516102ee91906139a9565b60405180910390f35b34801561030357600080fd5b5061031e600480360381019061031991906139f7565b610acc565b60405161032b9190613a24565b60405180910390f35b61034e60048036038101906103499190613a6b565b610b4b565b005b34801561035c57600080fd5b50610365610c8f565b60405161037291906139a9565b60405180910390f35b34801561038757600080fd5b50610390610d1d565b005b34801561039e57600080fd5b506103a7610d51565b6040516103b49190613aab565b60405180910390f35b3480156103c957600080fd5b506103d2610d68565b6040516103df91906139a9565b60405180910390f35b61040260048036038101906103fd9190613ac6565b610df6565b005b34801561041057600080fd5b50610419611118565b60405161042691906138fe565b60405180910390f35b34801561043b57600080fd5b5061044461112b565b6040516104519190613b35565b60405180910390f35b34801561046657600080fd5b50610481600480360381019061047c9190613b50565b61113e565b60405161048f929190613821565b60405180910390f35b3480156104a457600080fd5b506104bf60048036038101906104ba9190613bf5565b611328565b005b3480156104cd57600080fd5b506104d6611396565b6040516104e39190613d3d565b60405180910390f35b3480156104f857600080fd5b506105016113b8565b60405161050e91906139a9565b60405180910390f35b34801561052357600080fd5b5061052c611446565b005b61054860048036038101906105439190613ac6565b611622565b005b34801561055657600080fd5b50610571600480360381019061056c91906139f7565b611642565b005b34801561057f57600080fd5b50610588611856565b005b34801561059657600080fd5b506105b160048036038101906105ac91906139f7565b61188a565b6040516105be9190613a24565b60405180910390f35b3480156105d357600080fd5b506105dc61189c565b005b3480156105ea57600080fd5b5061060560048036038101906106009190613f59565b611962565b005b34801561061357600080fd5b5061062e60048036038101906106299190613fd1565b611b3a565b60405161063b9190613aab565b60405180910390f35b34801561065057600080fd5b50610659611bf2565b005b34801561066757600080fd5b50610670611c06565b60405161067d91906139a9565b60405180910390f35b34801561069257600080fd5b5061069b611c94565b6040516106a891906138fe565b60405180910390f35b3480156106bd57600080fd5b506106c6611ca7565b6040516106d39190613a24565b60405180910390f35b3480156106e857600080fd5b5061070360048036038101906106fe9190614042565b611cd1565b005b34801561071157600080fd5b5061071a611ce7565b60405161072791906139a9565b60405180910390f35b61074a600480360381019061074591906139f7565b611d79565b005b34801561075857600080fd5b50610773600480360381019061076e9190613fd1565b61202e565b005b34801561078157600080fd5b5061079c600480360381019061079791906140ae565b61207a565b005b3480156107aa57600080fd5b506107c560048036038101906107c091906139f7565b612185565b6040516107d29190613b35565b60405180910390f35b3480156107e757600080fd5b506107f06121a5565b6040516107fd9190613d3d565b60405180910390f35b610820600480360381019061081b91906141a3565b6121c7565b005b34801561082e57600080fd5b50610849600480360381019061084491906142f3565b61223a565b005b34801561085757600080fd5b50610872600480360381019061086d91906139f7565b6123a2565b60405161087f91906139a9565b60405180910390f35b34801561089457600080fd5b5061089d61258d565b005b3480156108ab57600080fd5b506108c660048036038101906108c1919061434f565b61267c565b6040516108d391906138fe565b60405180910390f35b3480156108e857600080fd5b5061090360048036038101906108fe9190613fd1565b612710565b005b34801561091157600080fd5b5061091a612793565b60405161092791906139a9565b60405180910390f35b600061093b82612821565b8061096b57506301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061099b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109cb5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a3357507f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610a49906143be565b80601f0160208091040260200160405190810160405280929190818152602001828054610a75906143be565b8015610ac25780601f10610a9757610100808354040283529160200191610ac2565b820191906000526020600020905b815481529060010190602001808311610aa557829003601f168201915b5050505050905090565b6000610ad78261289b565b610b0d576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b568261188a565b90508073ffffffffffffffffffffffffffffffffffffffff16610b776128fa565b73ffffffffffffffffffffffffffffffffffffffff1614610bda57610ba381610b9e6128fa565b61267c565b610bd9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600c8054610c9c906143be565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc8906143be565b8015610d155780601f10610cea57610100808354040283529160200191610d15565b820191906000526020600020905b815481529060010190602001808311610cf857829003601f168201915b505050505081565b610d25612902565b600b60159054906101000a900460ff1615600b60156101000a81548160ff021916908315150217905550565b6000610d5b612980565b6001546000540303905090565b600d8054610d75906143be565b80601f0160208091040260200160405190810160405280929190818152602001828054610da1906143be565b8015610dee5780601f10610dc357610100808354040283529160200191610dee565b820191906000526020600020905b815481529060010190602001808311610dd157829003601f168201915b505050505081565b6000610e0182612985565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e68576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610e7484612a51565b91509150610e8a8187610e856128fa565b612a78565b610ed657610e9f86610e9a6128fa565b61267c565b610ed5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f3c576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f498686866001612abc565b8015610f5457600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061102285610ffe888887612ac2565b7c020000000000000000000000000000000000000000000000000000000017612aea565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036110a857600060018501905060006004600083815260200190815260200160002054036110a65760005481146110a5578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111108686866001612b15565b505050505050565b600b60169054906101000a900460ff1681565b600b60149054906101000a900460ff1681565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036112d35760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006112dd612b1b565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686611309919061441e565b611313919061448f565b90508160000151819350935050509250929050565b611330612902565b8989600c9182611341929190614677565b508787600d9182611353929190614677565b508585600e9182611365929190614677565b508383600f9182611377929190614677565b50818160109182611389929190614677565b5050505050505050505050565b601160009054906101000a90046fffffffffffffffffffffffffffffffff1681565b601080546113c5906143be565b80601f01602080910402602001604051908101604052809291908181526020018280546113f1906143be565b801561143e5780601f106114135761010080835404028352916020019161143e565b820191906000526020600020905b81548152906001019060200180831161142157829003601f168201915b505050505081565b6001600b60176101000a81548160ff02191690831515021790555060004790506000600282611475919061448f565b90506000735d7d6e4c6293e1c31a588133016827ac5920501e73ffffffffffffffffffffffffffffffffffffffff16826040516114b190614778565b60006040518083038185875af1925050503d80600081146114ee576040519150601f19603f3d011682016040523d82523d6000602084013e6114f3565b606091505b5050905080611537576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152e906147d9565b60405180910390fd5b7375f025606496bf75ddfe94bc912c42b48b0241c073ffffffffffffffffffffffffffffffffffffffff16828461156e91906147f9565b60405161157a90614778565b60006040518083038185875af1925050503d80600081146115b7576040519150601f19603f3d011682016040523d82523d6000602084013e6115bc565b606091505b50508091505080611602576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f9906147d9565b60405180910390fd5b6000600b60176101000a81548160ff021916908315150217905550505050565b61163d838383604051806020016040528060008152506121c7565b505050565b600b60159054906101000a900460ff16801561167057506003600b60149054906101000a900460ff1660ff16105b6116af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a690614879565b60405180910390fd5b6116b88161289b565b6116f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ee906148e5565b60405180910390fd5b6117008161188a565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461176d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176490614951565b60405180910390fd5b6000605e600083815260200190815260200160002060009054906101000a900460ff169050600b60149054906101000a900460ff1660ff168160ff16146117e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e0906149bd565b60405180910390fd5b6001816117f691906149dd565b605e600084815260200190815260200160002060006101000a81548160ff021916908360ff160217905550611829612b25565b6fffffffffffffffffffffffffffffffff16605f6000848152602001908152602001600020819055505050565b61185e612902565b600b60169054906101000a900460ff1615600b60166101000a81548160ff021916908315150217905550565b600061189582612985565b9050919050565b6118a4612902565b6000600b60166101000a81548160ff02191690831515021790555060006118c9610d51565b601160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1661190491906147f9565b90506000600282611915919061448f565b9050611935735d7d6e4c6293e1c31a588133016827ac5920501e82612e26565b61195e7375f025606496bf75ddfe94bc912c42b48b0241c0828461195991906147f9565b612e26565b5050565b61196a612902565b6004600b60149054906101000a900460ff1660ff16146119bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b690614a5e565b60405180910390fd5b60005b8251811015611b3557601160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16828281518110611a0f57611a0e614a7e565b5b6020026020010151611a1f610d51565b611a299190614aad565b1115611a6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6190614b2d565b60405180910390fd5b6000611a74610d51565b9050611ab4848381518110611a8c57611a8b614a7e565b5b6020026020010151848481518110611aa757611aa6614a7e565b5b6020026020010151612e26565b60005b838381518110611aca57611ac9614a7e565b5b6020026020010151811015611b22576004605e60008385611aeb9190614aad565b815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080611b1b90614b4d565b9050611ab7565b505080611b2e90614b4d565b90506119c2565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ba1576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611bfa612902565b611c046000612e44565b565b600f8054611c13906143be565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3f906143be565b8015611c8c5780601f10611c6157610100808354040283529160200191611c8c565b820191906000526020600020905b815481529060010190602001808311611c6f57829003601f168201915b505050505081565b600b60159054906101000a900460ff1681565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611cd9612902565b611ce38282612f0a565b5050565b606060038054611cf6906143be565b80601f0160208091040260200160405190810160405280929190818152602001828054611d22906143be565b8015611d6f5780601f10611d4457610100808354040283529160200191611d6f565b820191906000526020600020905b815481529060010190602001808311611d5257829003601f168201915b5050505050905090565b600b60169054906101000a900460ff16611dc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbf90614879565b60405180910390fd5b6000600b60149054906101000a900460ff1660ff1614611e1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1490614be1565b60405180910390fd5b80605d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e689190614aad565b605d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506002605d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611f2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2590614c4d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611f9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9390614cb9565b60405180910390fd5b601160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681611fd6610d51565b611fe09190614aad565b1115612021576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201890614b2d565b60405180910390fd5b61202b3382612e26565b50565b612036612902565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b80600760006120876128fa565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166121346128fa565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161217991906138fe565b60405180910390a35050565b605e6020528060005260406000206000915054906101000a900460ff1681565b601160109054906101000a90046fffffffffffffffffffffffffffffffff1681565b6121d2848484610df6565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612234576121fd8484848461309f565b612233576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b612242612902565b6003600b60149054906101000a900460ff1660ff1614612297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228e90614a5e565b60405180910390fd5b601160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166122d0610d51565b14612310576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230790614d25565b60405180910390fd5b81601160009054906101000a90046fffffffffffffffffffffffffffffffff1661233a9190614d45565b601160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555080601090816123819190614d89565b506004600b60146101000a81548160ff021916908360ff1602179055505050565b60606123ad8261289b565b6123ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e3906148e5565b60405180910390fd5b6000605e600084815260200190815260200160002060009054906101000a900460ff1690506000808260ff161461243657605f600085815260200190815260200160002054612438565b835b90506000808360ff16146124865760018360ff161461247e5760028360ff16146124765760038360ff161461246e576010612471565b600f5b612479565b600e5b612481565b600d5b612489565b600c5b8054612494906143be565b80601f01602080910402602001604051908101604052809291908181526020018280546124c0906143be565b801561250d5780601f106124e25761010080835404028352916020019161250d565b820191906000526020600020905b8154815290600101906020018083116124f057829003601f168201915b505050505090506000815111612558576040518060400160405280601481526020017f68747470733a2f2f64746563682e766973696f6e000000000000000000000000815250612583565b80612562836131ef565b604051602001612573929190614ee3565b6040516020818303038152906040525b9350505050919050565b612595612902565b600b60159054906101000a900460ff16156125e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125dc90614f84565b60405180910390fd5b6003600b60149054906101000a900460ff1660ff161061263a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263190614a5e565b60405180910390fd5b600b601481819054906101000a900460ff168092919061265990614fa4565b91906101000a81548160ff021916908360ff1602179055505061267a6132bd565b565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612718612902565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277e9061503f565b60405180910390fd5b61279081612e44565b50565b600e80546127a0906143be565b80601f01602080910402602001604051908101604052809291908181526020018280546127cc906143be565b80156128195780601f106127ee57610100808354040283529160200191612819565b820191906000526020600020905b8154815290600101906020018083116127fc57829003601f168201915b505050505081565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612894575061289382613391565b5b9050919050565b6000816128a6612980565b111580156128b5575060005482105b80156128f3575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b61290a6133fb565b73ffffffffffffffffffffffffffffffffffffffff16612928611ca7565b73ffffffffffffffffffffffffffffffffffffffff161461297e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612975906150ab565b60405180910390fd5b565b600090565b60008082905080612994612980565b11612a1a57600054811015612a195760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612a17575b60008103612a0d5760046000836001900393508381526020019081526020016000205490506129e3565b8092505050612a4c565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612ad9868684613403565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000612710905090565b600080601160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1611612b99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9090615117565b60405180910390fd5b6000601160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1644612bd79190615137565b905060006012826fffffffffffffffffffffffffffffffff1660968110612c0157612c00614a7e565b5b600291828204019190066010029054906101000a90046fffffffffffffffffffffffffffffffff16905060126001601160109054906101000a90046fffffffffffffffffffffffffffffffff16612c589190615168565b6fffffffffffffffffffffffffffffffff1660968110612c7b57612c7a614a7e565b5b600291828204019190066010029054906101000a90046fffffffffffffffffffffffffffffffff166012836fffffffffffffffffffffffffffffffff1660968110612cc957612cc8614a7e565b5b600291828204019190066010026101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550601160109054906101000a90046fffffffffffffffffffffffffffffffff1660126001601160109054906101000a90046fffffffffffffffffffffffffffffffff16612d569190615168565b6fffffffffffffffffffffffffffffffff1660968110612d7957612d78614a7e565b5b600291828204019190066010026101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001601160108282829054906101000a90046fffffffffffffffffffffffffffffffff16612de89190615168565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550809250505090565b612e4082826040518060200160405280600081525061340c565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612f12612b1b565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612f70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f679061521e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612fdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fd69061528a565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130c56128fa565b8786866040518563ffffffff1660e01b81526004016130e794939291906152ff565b6020604051808303816000875af192505050801561312357506040513d601f19601f820116820180604052508101906131209190615360565b60015b61319c573d8060008114613153576040519150601f19603f3d011682016040523d82523d6000602084013e613158565b606091505b506000815103613194576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600060016131fe846134a9565b01905060008167ffffffffffffffff81111561321d5761321c613d58565b5b6040519080825280601f01601f19166020018201604052801561324f5781602001600182028036833780820191505090505b509050600082602001820190505b6001156132b2578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816132a6576132a5614460565b5b0494506000850361325d575b819350505050919050565b6096601160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060005b6096816fffffffffffffffffffffffffffffffff16101561338e57806012826fffffffffffffffffffffffffffffffff166096811061333c5761333b614a7e565b5b600291828204019190066010026101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550806133879061538d565b90506132fa565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b60009392505050565b61341683836135fc565b60008373ffffffffffffffffffffffffffffffffffffffff163b146134a457600080549050600083820390505b613456600086838060010194508661309f565b61348c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106134435781600054146134a157600080fd5b50505b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613507577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816134fd576134fc614460565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613544576d04ee2d6d415b85acef8100000000838161353a57613539614460565b5b0492506020810190505b662386f26fc10000831061357357662386f26fc10000838161356957613568614460565b5b0492506010810190505b6305f5e100831061359c576305f5e100838161359257613591614460565b5b0492506008810190505b61271083106135c15761271083816135b7576135b6614460565b5b0492506004810190505b606483106135e457606483816135da576135d9614460565b5b0492506002810190505b600a83106135f3576001810190505b80915050919050565b6000805490506000820361363c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6136496000848385612abc565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506136c0836136b16000866000612ac2565b6136ba856137b7565b17612aea565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461376157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613726565b506000820361379c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506137b26000848385612b15565b505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006137f2826137c7565b9050919050565b613802816137e7565b82525050565b6000819050919050565b61381b81613808565b82525050565b600060408201905061383660008301856137f9565b6138436020830184613812565b9392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6138938161385e565b811461389e57600080fd5b50565b6000813590506138b08161388a565b92915050565b6000602082840312156138cc576138cb613854565b5b60006138da848285016138a1565b91505092915050565b60008115159050919050565b6138f8816138e3565b82525050565b600060208201905061391360008301846138ef565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613953578082015181840152602081019050613938565b60008484015250505050565b6000601f19601f8301169050919050565b600061397b82613919565b6139858185613924565b9350613995818560208601613935565b61399e8161395f565b840191505092915050565b600060208201905081810360008301526139c38184613970565b905092915050565b6139d481613808565b81146139df57600080fd5b50565b6000813590506139f1816139cb565b92915050565b600060208284031215613a0d57613a0c613854565b5b6000613a1b848285016139e2565b91505092915050565b6000602082019050613a3960008301846137f9565b92915050565b613a48816137e7565b8114613a5357600080fd5b50565b600081359050613a6581613a3f565b92915050565b60008060408385031215613a8257613a81613854565b5b6000613a9085828601613a56565b9250506020613aa1858286016139e2565b9150509250929050565b6000602082019050613ac06000830184613812565b92915050565b600080600060608486031215613adf57613ade613854565b5b6000613aed86828701613a56565b9350506020613afe86828701613a56565b9250506040613b0f868287016139e2565b9150509250925092565b600060ff82169050919050565b613b2f81613b19565b82525050565b6000602082019050613b4a6000830184613b26565b92915050565b60008060408385031215613b6757613b66613854565b5b6000613b75858286016139e2565b9250506020613b86858286016139e2565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613bb557613bb4613b90565b5b8235905067ffffffffffffffff811115613bd257613bd1613b95565b5b602083019150836001820283011115613bee57613bed613b9a565b5b9250929050565b60008060008060008060008060008060a08b8d031215613c1857613c17613854565b5b60008b013567ffffffffffffffff811115613c3657613c35613859565b5b613c428d828e01613b9f565b9a509a505060208b013567ffffffffffffffff811115613c6557613c64613859565b5b613c718d828e01613b9f565b985098505060408b013567ffffffffffffffff811115613c9457613c93613859565b5b613ca08d828e01613b9f565b965096505060608b013567ffffffffffffffff811115613cc357613cc2613859565b5b613ccf8d828e01613b9f565b945094505060808b013567ffffffffffffffff811115613cf257613cf1613859565b5b613cfe8d828e01613b9f565b92509250509295989b9194979a5092959850565b60006fffffffffffffffffffffffffffffffff82169050919050565b613d3781613d12565b82525050565b6000602082019050613d526000830184613d2e565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d908261395f565b810181811067ffffffffffffffff82111715613daf57613dae613d58565b5b80604052505050565b6000613dc261384a565b9050613dce8282613d87565b919050565b600067ffffffffffffffff821115613dee57613ded613d58565b5b602082029050602081019050919050565b6000613e12613e0d84613dd3565b613db8565b90508083825260208201905060208402830185811115613e3557613e34613b9a565b5b835b81811015613e5e5780613e4a8882613a56565b845260208401935050602081019050613e37565b5050509392505050565b600082601f830112613e7d57613e7c613b90565b5b8135613e8d848260208601613dff565b91505092915050565b600067ffffffffffffffff821115613eb157613eb0613d58565b5b602082029050602081019050919050565b6000613ed5613ed084613e96565b613db8565b90508083825260208201905060208402830185811115613ef857613ef7613b9a565b5b835b81811015613f215780613f0d88826139e2565b845260208401935050602081019050613efa565b5050509392505050565b600082601f830112613f4057613f3f613b90565b5b8135613f50848260208601613ec2565b91505092915050565b60008060408385031215613f7057613f6f613854565b5b600083013567ffffffffffffffff811115613f8e57613f8d613859565b5b613f9a85828601613e68565b925050602083013567ffffffffffffffff811115613fbb57613fba613859565b5b613fc785828601613f2b565b9150509250929050565b600060208284031215613fe757613fe6613854565b5b6000613ff584828501613a56565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b61401f81613ffe565b811461402a57600080fd5b50565b60008135905061403c81614016565b92915050565b6000806040838503121561405957614058613854565b5b600061406785828601613a56565b92505060206140788582860161402d565b9150509250929050565b61408b816138e3565b811461409657600080fd5b50565b6000813590506140a881614082565b92915050565b600080604083850312156140c5576140c4613854565b5b60006140d385828601613a56565b92505060206140e485828601614099565b9150509250929050565b600080fd5b600067ffffffffffffffff82111561410e5761410d613d58565b5b6141178261395f565b9050602081019050919050565b82818337600083830152505050565b6000614146614141846140f3565b613db8565b905082815260208101848484011115614162576141616140ee565b5b61416d848285614124565b509392505050565b600082601f83011261418a57614189613b90565b5b813561419a848260208601614133565b91505092915050565b600080600080608085870312156141bd576141bc613854565b5b60006141cb87828801613a56565b94505060206141dc87828801613a56565b93505060406141ed878288016139e2565b925050606085013567ffffffffffffffff81111561420e5761420d613859565b5b61421a87828801614175565b91505092959194509250565b61422f81613d12565b811461423a57600080fd5b50565b60008135905061424c81614226565b92915050565b600067ffffffffffffffff82111561426d5761426c613d58565b5b6142768261395f565b9050602081019050919050565b600061429661429184614252565b613db8565b9050828152602081018484840111156142b2576142b16140ee565b5b6142bd848285614124565b509392505050565b600082601f8301126142da576142d9613b90565b5b81356142ea848260208601614283565b91505092915050565b6000806040838503121561430a57614309613854565b5b60006143188582860161423d565b925050602083013567ffffffffffffffff81111561433957614338613859565b5b614345858286016142c5565b9150509250929050565b6000806040838503121561436657614365613854565b5b600061437485828601613a56565b925050602061438585828601613a56565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806143d657607f821691505b6020821081036143e9576143e861438f565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061442982613808565b915061443483613808565b925082820261444281613808565b91508282048414831517614459576144586143ef565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061449a82613808565b91506144a583613808565b9250826144b5576144b4614460565b5b828204905092915050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261452d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826144f0565b61453786836144f0565b95508019841693508086168417925050509392505050565b6000819050919050565b600061457461456f61456a84613808565b61454f565b613808565b9050919050565b6000819050919050565b61458e83614559565b6145a261459a8261457b565b8484546144fd565b825550505050565b600090565b6145b76145aa565b6145c2818484614585565b505050565b5b818110156145e6576145db6000826145af565b6001810190506145c8565b5050565b601f82111561462b576145fc816144cb565b614605846144e0565b81016020851015614614578190505b614628614620856144e0565b8301826145c7565b50505b505050565b600082821c905092915050565b600061464e60001984600802614630565b1980831691505092915050565b6000614667838361463d565b9150826002028217905092915050565b61468183836144c0565b67ffffffffffffffff81111561469a57614699613d58565b5b6146a482546143be565b6146af8282856145ea565b6000601f8311600181146146de57600084156146cc578287013590505b6146d6858261465b565b86555061473e565b601f1984166146ec866144cb565b60005b82811015614714578489013582556001820191506020850194506020810190506146ef565b86831015614731578489013561472d601f89168261463d565b8355505b6001600288020188555050505b50505050505050565b600081905092915050565b50565b6000614762600083614747565b915061476d82614752565b600082019050919050565b600061478382614755565b9150819050919050565b7f5472616e73666572206661696c65642100000000000000000000000000000000600082015250565b60006147c3601083613924565b91506147ce8261478d565b602082019050919050565b600060208201905081810360008301526147f2816147b6565b9050919050565b600061480482613808565b915061480f83613808565b9250828203905081811115614827576148266143ef565b5b92915050565b7f37303220466561747572652064697361626c65642f6e6f742061637469766500600082015250565b6000614863601f83613924565b915061486e8261482d565b602082019050919050565b6000602082019050818103600083015261489281614856565b9050919050565b7f37303420517565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b60006148cf601f83613924565b91506148da82614899565b602082019050919050565b600060208201905081810360008301526148fe816148c2565b9050919050565b7f6e6f7420796f757220746f6b656e000000000000000000000000000000000000600082015250565b600061493b600e83613924565b915061494682614905565b602082019050919050565b6000602082019050818103600083015261496a8161492e565b9050919050565b7f546f6b656e206e6f7420696e2070726f70657220706861736500000000000000600082015250565b60006149a7601983613924565b91506149b282614971565b602082019050919050565b600060208201905081810360008301526149d68161499a565b9050919050565b60006149e882613b19565b91506149f383613b19565b9250828201905060ff811115614a0c57614a0b6143ef565b5b92915050565b7f42652070617469656e742e000000000000000000000000000000000000000000600082015250565b6000614a48600b83613924565b9150614a5382614a12565b602082019050919050565b60006020820190508181036000830152614a7781614a3b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614ab882613808565b9150614ac383613808565b9250828201905080821115614adb57614ada6143ef565b5b92915050565b7f373035206e6f206d6f726520746f6b656e20617661696c61626c650000000000600082015250565b6000614b17601b83613924565b9150614b2282614ae1565b602082019050919050565b60006020820190508181036000830152614b4681614b0a565b9050919050565b6000614b5882613808565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614b8a57614b896143ef565b5b600182019050919050565b7f4275726e20737461727465640000000000000000000000000000000000000000600082015250565b6000614bcb600c83613924565b9150614bd682614b95565b602082019050919050565b60006020820190508181036000830152614bfa81614bbe565b9050919050565b7f416c726561647920636c61696d65640000000000000000000000000000000000600082015250565b6000614c37600f83613924565b9150614c4282614c01565b602082019050919050565b60006020820190508181036000830152614c6681614c2a565b9050919050565b7f646f6e2774207472792e2e2e0000000000000000000000000000000000000000600082015250565b6000614ca3600c83613924565b9150614cae82614c6d565b602082019050919050565b60006020820190508181036000830152614cd281614c96565b9050919050565b7f436c6f7365206d696e7420666972737421000000000000000000000000000000600082015250565b6000614d0f601183613924565b9150614d1a82614cd9565b602082019050919050565b60006020820190508181036000830152614d3e81614d02565b9050919050565b6000614d5082613d12565b9150614d5b83613d12565b925082820190506fffffffffffffffffffffffffffffffff811115614d8357614d826143ef565b5b92915050565b614d9282613919565b67ffffffffffffffff811115614dab57614daa613d58565b5b614db582546143be565b614dc08282856145ea565b600060209050601f831160018114614df35760008415614de1578287015190505b614deb858261465b565b865550614e53565b601f198416614e01866144cb565b60005b82811015614e2957848901518255600182019150602085019450602081019050614e04565b86831015614e465784890151614e42601f89168261463d565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000614e7182613919565b614e7b8185614e5b565b9350614e8b818560208601613935565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614ecd600583614e5b565b9150614ed882614e97565b600582019050919050565b6000614eef8285614e66565b9150614efb8284614e66565b9150614f0682614ec0565b91508190509392505050565b7f43616e277420696e6372656d656e74207768696c65206275726e20697320616360008201527f7469766521000000000000000000000000000000000000000000000000000000602082015250565b6000614f6e602583613924565b9150614f7982614f12565b604082019050919050565b60006020820190508181036000830152614f9d81614f61565b9050919050565b6000614faf82613b19565b915060ff8203614fc257614fc16143ef565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615029602683613924565b915061503482614fcd565b604082019050919050565b600060208201905081810360008301526150588161501c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615095602083613924565b91506150a08261505f565b602082019050919050565b600060208201905081810360008301526150c481615088565b9050919050565b7f43616e2774206472617720616e796d6f72652e00000000000000000000000000600082015250565b6000615101601383613924565b915061510c826150cb565b602082019050919050565b60006020820190508181036000830152615130816150f4565b9050919050565b600061514282613808565b915061514d83613808565b92508261515d5761515c614460565b5b828206905092915050565b600061517382613d12565b915061517e83613d12565b925082820390506fffffffffffffffffffffffffffffffff8111156151a6576151a56143ef565b5b92915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000615208602a83613924565b9150615213826151ac565b604082019050919050565b60006020820190508181036000830152615237816151fb565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615274601983613924565b915061527f8261523e565b602082019050919050565b600060208201905081810360008301526152a381615267565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006152d1826152aa565b6152db81856152b5565b93506152eb818560208601613935565b6152f48161395f565b840191505092915050565b600060808201905061531460008301876137f9565b61532160208301866137f9565b61532e6040830185613812565b818103606083015261534081846152c6565b905095945050505050565b60008151905061535a8161388a565b92915050565b60006020828403121561537657615375613854565b5b60006153848482850161534b565b91505092915050565b600061539882613d12565b91506fffffffffffffffffffffffffffffffff82036153ba576153b96143ef565b5b60018201905091905056fea264697066735822122012bfc630ec776258eed78795e85257b29bb302fee03d997ca8bcc5c8be8b545764736f6c63430008120033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000005d7d6e4c6293e1c31a588133016827ac5920501e00000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000005417567757200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054155475552000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Augur
Arg [1] : symbol (string): AUGUR
Arg [2] : receiver (address): 0x5D7D6e4c6293e1c31A588133016827aC5920501E
Arg [3] : feeNumerator (uint96): 1000

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000005d7d6e4c6293e1c31a588133016827ac5920501e
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [5] : 4175677572000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 4155475552000000000000000000000000000000000000000000000000000000


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

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