ETH Price: $3,285.04 (-0.44%)

Contract

0x1B4Cd6Da82BC82034b25131b0c7EC6dFD427b2c3
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Advanced mode:
Parent Transaction Hash Block
From
To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CanisterTSC

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 23 : CanisterTSC.sol
// SPDX-License-Identifier: MIT
/**
 * N.T.P. Canisters by Toxic Skulls Club.
 * WEB3NC, Pagzi Tech Inc.
 * Modules: Ownable, ERC721PsiBurnableUpgradeable, RoyaltyInfo, OperatorFilterer.
 */
pragma solidity 0.8.16;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "erc721psi/contracts/extension/ERC721PsiBurnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/common/ERC2981Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/structs/BitMapsUpgradeable.sol";
import "./ITSCProject.sol";
import {OperatorFilterer} from "closedsea/src/OperatorFilterer.sol";

contract CanisterTSC is
    ERC2981Upgradeable,
    OwnableUpgradeable,
    ERC721PsiBurnableUpgradeable, 
    OperatorFilterer
{
    using BitMapsUpgradeable for BitMapsUpgradeable.BitMap;

    BitMapsUpgradeable.BitMap upgraded;

    bool consume;
    bool upgrade;

    ITSCProject public iTSCProject;

    function initialize() public initializer {
        __ERC721Psi_init("N.T.P. Canisters", "CANISTERS");
        __ERC2981_init();
        __Ownable_init();
        _setDefaultRoyalty(address(0xF04ee8223974F933184DA78532837B62fC089384), 750);
        _registerForOperatorFiltering();
        upgrade = true;
        consume = false;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return "https://ntpcanisters.nftapi.art/meta/";
    }

    // airdrop for sending assets.
    function airdrop(address[] calldata recipient,uint[] calldata quantity) external onlyOwner {
        uint256 qty = recipient.length;
        unchecked {
            for (uint256 i = 0; i < qty; ++i) {
                _mint(recipient[i], quantity[i]);
            }
        }
    }

    function setDefaultRoyalty(address receiver, uint96 feeNumerator)
        external
        onlyOwner
    {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    function tokenLevel(uint256 tokenId) public view returns (uint256 level) {
        require(_exists(tokenId), "Nonexistant tokenId!");
        if (upgraded.get(tokenId)) {
            level = 2;
        } else {
            level = 1;
        }
    }

    /// Burn 3 canisters and get a new hazardous canister.
    /// @param tokenId | base canister to upgrade, canisters | IDs of the canisters used as source.
    /// The canisters in the canisters list will be burned.
    function upgradeToHazardous(uint256 tokenId, uint256[2] calldata canisters)
        external
    {
        require(upgrade, "Not enabled yet!");

        require(ownerOf(tokenId) == msg.sender, "Not NFT Owner for the base!");
        require(
            ownerOf(canisters[0]) == msg.sender,
            "Not NFT Owner for the canisters!"
        );
        require(
            ownerOf(canisters[1]) == msg.sender,
            "Not NFT Owner for the canisters!"
        );

        require(canisters[0] != tokenId);
        require(canisters[1] != tokenId);

        require(!upgraded.get(tokenId), "Already upgraded");
        require(!upgraded.get(canisters[0]), "Using upgraded");
        require(!upgraded.get(canisters[1]), "Using upgraded");

        // This prevents canisters[0] == canisters[1] automatically. As the same token cannot be burned twice.
        _burn(canisters[0]);
        _burn(canisters[1]);

        upgraded.set(tokenId);
    }

    /// TODO : Burn a hazardous canister to mint a new NFT TSC collection.
    /// @param canister | ID of the canister used as the source.
    /// The canister needs to be hazardous and it will be burned.
    function consumeHazardous(uint256 canister) public {
        require(consume, "Not enabled yet!");

        require(ownerOf(canister) == msg.sender, "Not the owner!");
        require(tokenLevel(canister) == 2, "Not a super!");
        // Burn the hazardous canister.
        _burn(canister);
        iTSCProject.mintProject(msg.sender, 1);
    }

    /* Administrative Functions */

    function toggleUpgrade() external onlyOwner {
        upgrade = !upgrade;
    }

    function toggleConsume() external onlyOwner {
        consume = !consume;
    }

    function setTSCProject(ITSCProject _tscProject) external onlyOwner {
        iTSCProject = _tscProject;
    }

    function setRoyalty(address royaltyWallet, uint96 multiplier) external onlyOwner {
        _setDefaultRoyalty(royaltyWallet, multiplier);
    }

    function withdraw() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    // Operator Filters Override for approval and transfer functions

    function setApprovalForAll(address operator, bool approved)
        public
        override
        onlyAllowedOperatorApproval(operator)
    {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId)
        public
        override 
        onlyAllowedOperatorApproval(operator)
    {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId)
        public
        override 
        onlyAllowedOperator(from)
    {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId)
        public
        override 
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        override
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721PsiUpgradeable, ERC2981Upgradeable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 23 : Popcount.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */

pragma solidity ^0.8.0;

library Popcount {
    uint256 private constant m1 = 0x5555555555555555555555555555555555555555555555555555555555555555;
    uint256 private constant m2 = 0x3333333333333333333333333333333333333333333333333333333333333333;
    uint256 private constant m4 = 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f;
    uint256 private constant h01 = 0x0101010101010101010101010101010101010101010101010101010101010101;

    function popcount256A(uint256 x) internal pure returns (uint256 count) {
        unchecked{
            for (count=0; x!=0; count++)
                x &= x - 1;
        }
    }

    function popcount256B(uint256 x) internal pure returns (uint256) {
        if (x == type(uint256).max) {
            return 256;
        }
        unchecked {
            x -= (x >> 1) & m1;             //put count of each 2 bits into those 2 bits
            x = (x & m2) + ((x >> 2) & m2); //put count of each 4 bits into those 4 bits 
            x = (x + (x >> 4)) & m4;        //put count of each 8 bits into those 8 bits 
            x = (x * h01) >> 248;  //returns left 8 bits of x + (x<<8) + (x<<16) + (x<<24) + ... 
        }
        return x;
    }
}

File 3 of 23 : BitScan.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */

pragma solidity ^0.8.0;


library BitScan {
    uint256 constant private DEBRUIJN_256 = 0x818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff;
    bytes constant private LOOKUP_TABLE_256 = hex"0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8";

    /**
        @dev Isolate the least significant set bit.
     */ 
    function isolateLS1B256(uint256 bb) pure internal returns (uint256) {
        require(bb > 0);
        unchecked {
            return bb & (0 - bb);
        }
    } 

    /**
        @dev Isolate the most significant set bit.
     */ 
    function isolateMS1B256(uint256 bb) pure internal returns (uint256) {
        require(bb > 0);
        unchecked {
            bb |= bb >> 128;
            bb |= bb >> 64;
            bb |= bb >> 32;
            bb |= bb >> 16;
            bb |= bb >> 8;
            bb |= bb >> 4;
            bb |= bb >> 2;
            bb |= bb >> 1;
            
            return (bb >> 1) + 1;
        }
    } 

    /**
        @dev Find the index of the lest significant set bit. (trailing zero count)
     */ 
    function bitScanForward256(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return uint8(LOOKUP_TABLE_256[(isolateLS1B256(bb) * DEBRUIJN_256) >> 248]);
        }   
    }

    /**
        @dev Find the index of the most significant set bit.
     */ 
    function bitScanReverse256(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return 255 - uint8(LOOKUP_TABLE_256[((isolateMS1B256(bb) * DEBRUIJN_256) >> 248)]);
        }   
    }

    function log2(uint256 bb) pure internal returns (uint8) {
        unchecked {
            return uint8(LOOKUP_TABLE_256[(isolateMS1B256(bb) * DEBRUIJN_256) >> 248]);
        } 
    }
}

File 4 of 23 : BitMaps.sol
// SPDX-License-Identifier: MIT
/**
   _____       ___     ___ __           ____  _ __      
  / ___/____  / (_)___/ (_) /___  __   / __ )(_) /______
  \__ \/ __ \/ / / __  / / __/ / / /  / __  / / __/ ___/
 ___/ / /_/ / / / /_/ / / /_/ /_/ /  / /_/ / / /_(__  ) 
/____/\____/_/_/\__,_/_/\__/\__, /  /_____/_/\__/____/  
                           /____/                        

- npm: https://www.npmjs.com/package/solidity-bits
- github: https://github.com/estarriolvetch/solidity-bits

 */
pragma solidity ^0.8.0;

import "./BitScan.sol";
import "./Popcount.sol";

/**
 * @dev This Library is a modified version of Openzeppelin's BitMaps library with extra features.
 *
 * 1. Functions of finding the index of the closest set bit from a given index are added.
 *    The indexing of each bucket is modifed to count from the MSB to the LSB instead of from the LSB to the MSB.
 *    The modification of indexing makes finding the closest previous set bit more efficient in gas usage.
 * 2. Setting and unsetting the bitmap consecutively.
 * 3. Accounting number of set bits within a given range.   
 *
*/

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */

library BitMaps {
    using BitScan for uint256;
    uint256 private constant MASK_INDEX_ZERO = (1 << 255);
    uint256 private constant MASK_FULL = type(uint256).max;

    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(
        BitMap storage bitmap,
        uint256 index,
        bool value
    ) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = MASK_INDEX_ZERO >> (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }


    /**
     * @dev Consecutively sets `amount` of bits starting from the bit at `startIndex`.
     */    
    function setBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal {
        uint256 bucket = startIndex >> 8;

        uint256 bucketStartIndex = (startIndex & 0xff);

        unchecked {
            if(bucketStartIndex + amount < 256) {
                bitmap._data[bucket] |= MASK_FULL << (256 - amount) >> bucketStartIndex;
            } else {
                bitmap._data[bucket] |= MASK_FULL >> bucketStartIndex;
                amount -= (256 - bucketStartIndex);
                bucket++;

                while(amount > 256) {
                    bitmap._data[bucket] = MASK_FULL;
                    amount -= 256;
                    bucket++;
                }

                bitmap._data[bucket] |= MASK_FULL << (256 - amount);
            }
        }
    }


    /**
     * @dev Consecutively unsets `amount` of bits starting from the bit at `startIndex`.
     */    
    function unsetBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal {
        uint256 bucket = startIndex >> 8;

        uint256 bucketStartIndex = (startIndex & 0xff);

        unchecked {
            if(bucketStartIndex + amount < 256) {
                bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount) >> bucketStartIndex);
            } else {
                bitmap._data[bucket] &= ~(MASK_FULL >> bucketStartIndex);
                amount -= (256 - bucketStartIndex);
                bucket++;

                while(amount > 256) {
                    bitmap._data[bucket] = 0;
                    amount -= 256;
                    bucket++;
                }

                bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount));
            }
        }
    }

    /**
     * @dev Returns number of set bits within a range.
     */
    function popcountA(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal view returns(uint256 count) {
        uint256 bucket = startIndex >> 8;

        uint256 bucketStartIndex = (startIndex & 0xff);

        unchecked {
            if(bucketStartIndex + amount < 256) {
                count +=  Popcount.popcount256A(
                    bitmap._data[bucket] & (MASK_FULL << (256 - amount) >> bucketStartIndex)
                );
            } else {
                count += Popcount.popcount256A(
                    bitmap._data[bucket] & (MASK_FULL >> bucketStartIndex)
                );
                amount -= (256 - bucketStartIndex);
                bucket++;

                while(amount > 256) {
                    count += Popcount.popcount256A(bitmap._data[bucket]);
                    amount -= 256;
                    bucket++;
                }
                count += Popcount.popcount256A(
                    bitmap._data[bucket] & (MASK_FULL << (256 - amount))
                );
            }
        }
    }

    /**
     * @dev Returns number of set bits within a range.
     */
    function popcountB(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal view returns(uint256 count) {
        uint256 bucket = startIndex >> 8;

        uint256 bucketStartIndex = (startIndex & 0xff);

        unchecked {
            if(bucketStartIndex + amount < 256) {
                count +=  Popcount.popcount256B(
                    bitmap._data[bucket] & (MASK_FULL << (256 - amount) >> bucketStartIndex)
                );
            } else {
                count += Popcount.popcount256B(
                    bitmap._data[bucket] & (MASK_FULL >> bucketStartIndex)
                );
                amount -= (256 - bucketStartIndex);
                bucket++;

                while(amount > 256) {
                    count += Popcount.popcount256B(bitmap._data[bucket]);
                    amount -= 256;
                    bucket++;
                }
                count += Popcount.popcount256B(
                    bitmap._data[bucket] & (MASK_FULL << (256 - amount))
                );
            }
        }
    }


    /**
     * @dev Find the closest index of the set bit before `index`.
     */
    function scanForward(BitMap storage bitmap, uint256 index) internal view returns (uint256 setBitIndex) {
        uint256 bucket = index >> 8;

        // index within the bucket
        uint256 bucketIndex = (index & 0xff);

        // load a bitboard from the bitmap.
        uint256 bb = bitmap._data[bucket];

        // offset the bitboard to scan from `bucketIndex`.
        bb = bb >> (0xff ^ bucketIndex); // bb >> (255 - bucketIndex)
        
        if(bb > 0) {
            unchecked {
                setBitIndex = (bucket << 8) | (bucketIndex -  bb.bitScanForward256());    
            }
        } else {
            while(true) {
                require(bucket > 0, "BitMaps: The set bit before the index doesn't exist.");
                unchecked {
                    bucket--;
                }
                // No offset. Always scan from the least significiant bit now.
                bb = bitmap._data[bucket];
                
                if(bb > 0) {
                    unchecked {
                        setBitIndex = (bucket << 8) | (255 -  bb.bitScanForward256());
                        break;
                    }
                } 
            }
        }
    }

    function getBucket(BitMap storage bitmap, uint256 bucket) internal view returns (uint256) {
        return bitmap._data[bucket];
    }
}

File 5 of 23 : ITSCProject.sol
// SPDX-License-Identifier: MIT
/**
* @N.T.P. Canisters 
* @modules Ownable, ERC721Psi, RoyaltyInfo.
*/
pragma solidity ^0.8.15;

// Inherit this interface for the TSCProject
interface ITSCProject {
    // Should only be called by CanisterTSC
    function mintProject(address to, uint256 quantity) external returns(uint256);
}

File 6 of 23 : ERC721PsiBurnableUpgradeable.sol
// SPDX-License-Identifier: MIT
/**
  ______ _____   _____ ______ ___  __ _  _  _ 
 |  ____|  __ \ / ____|____  |__ \/_ | || || |
 | |__  | |__) | |        / /   ) || | \| |/ |
 |  __| |  _  /| |       / /   / / | |\_   _/ 
 | |____| | \ \| |____  / /   / /_ | |  | |   
 |______|_|  \_\\_____|/_/   |____||_|  |_|   
                                              
                                            
 */
pragma solidity ^0.8.0;

import "solidity-bits/contracts/BitMaps.sol";
import "../ERC721PsiUpgradeable.sol";


abstract contract ERC721PsiBurnableUpgradeable is ERC721PsiUpgradeable {
    using BitMaps for BitMaps.BitMap;
    BitMaps.BitMap private _burnedToken;

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address from = ownerOf(tokenId);
        _beforeTokenTransfers(from, address(0), tokenId, 1);
        _burnedToken.set(tokenId);
        
        emit Transfer(from, address(0), tokenId);

        _afterTokenTransfers(from, address(0), tokenId, 1);
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view override virtual returns (bool){
        if(_burnedToken.get(tokenId)) {
            return false;
        } 
        return super._exists(tokenId);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _minted - _burned();
    }

    /**
     * @dev Returns number of token burned.
     */
    function _burned() internal view returns (uint256 burned){
        uint256 totalBucket = (_minted >> 8) + 1;

        for(uint256 i=0; i < totalBucket; i++) {
            uint256 bucket = _burnedToken.getBucket(i);
            burned += _popcount(bucket);
        }
    }

    /**
     * @dev Returns number of set bits.
     */
    function _popcount(uint256 x) private pure returns (uint256 count) {
        unchecked{
            for (count=0; x!=0; count++)
                x &= x - 1;
        }
    }
}

File 7 of 23 : ERC721PsiUpgradeable.sol
// SPDX-License-Identifier: MIT
/**
  ______ _____   _____ ______ ___  __ _  _  _ 
 |  ____|  __ \ / ____|____  |__ \/_ | || || |
 | |__  | |__) | |        / /   ) || | \| |/ |
 |  __| |  _  /| |       / /   / / | |\_   _/ 
 | |____| | \ \| |____  / /   / /_ | |  | |   
 |______|_|  \_\\_____|/_/   |____||_|  |_|   
                                              
                                            
 */

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "solidity-bits/contracts/BitMaps.sol";


contract ERC721PsiUpgradeable is Initializable, ContextUpgradeable, 
    ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable, IERC721EnumerableUpgradeable {
    
    using AddressUpgradeable for address;
    using StringsUpgradeable for uint256;
    using BitMaps for BitMaps.BitMap;

    BitMaps.BitMap private _batchHead;

    string private _name;
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) internal _owners;
    uint256 internal _minted;

    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    function __ERC721Psi_init(string memory name_, string memory symbol_) internal onlyInitializing {
        __ERC721Psi_init_unchained(name_, symbol_);
    }

    function __ERC721Psi_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) 
        public 
        view 
        virtual 
        override 
        returns (uint) 
    {
        require(owner != address(0), "ERC721Psi: balance query for the zero address");

        uint count;
        for( uint i; i < _minted; ++i ){
            if(_exists(i)){
                if( owner == ownerOf(i)){
                    ++count;
                }
            }
        }
        return count;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        (address owner, ) = _ownerAndBatchHeadOf(tokenId);
        return owner;
    }

    function _ownerAndBatchHeadOf(uint256 tokenId) internal view returns (address owner, uint256 tokenIdBatchHead){
        require(_exists(tokenId), "ERC721Psi: owner query for nonexistent token");
        tokenIdBatchHead = _getBatchHead(tokenId);
        owner = _owners[tokenIdBatchHead];
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Psi: URI query for nonexistent token");

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

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


    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ownerOf(tokenId);
        require(to != owner, "ERC721Psi: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721Psi: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        require(
            _exists(tokenId),
            "ERC721Psi: approved query for nonexistent token"
        );

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(operator != _msgSender(), "ERC721Psi: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721Psi: transfer caller is not owner nor approved"
        );

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721Psi: transfer caller is not owner nor approved"
        );
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, 1,_data),
            "ERC721Psi: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _minted;
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId)
        internal
        view
        virtual
        returns (bool)
    {
        require(
            _exists(tokenId),
            "ERC721Psi: operator query for nonexistent token"
        );
        address owner = ownerOf(tokenId);
        return (spender == owner ||
            getApproved(tokenId) == spender ||
            isApprovedForAll(owner, spender));
    }

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

    
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        uint256 startTokenId = _minted;
        _mint(to, quantity);
        require(
            _checkOnERC721Received(address(0), to, startTokenId, quantity, _data),
            "ERC721Psi: transfer to non ERC721Receiver implementer"
        );
    }


    function _mint(
        address to,
        uint256 quantity
    ) internal virtual {
        uint256 tokenIdBatchHead = _minted;
        
        require(quantity > 0, "ERC721Psi: quantity must be greater 0");
        require(to != address(0), "ERC721Psi: mint to the zero address");
        
        _beforeTokenTransfers(address(0), to, tokenIdBatchHead, quantity);
        _minted += quantity;
        _owners[tokenIdBatchHead] = to;
        _batchHead.set(tokenIdBatchHead);
        _afterTokenTransfers(address(0), to, tokenIdBatchHead, quantity);
        
        // Emit events
        for(uint256 tokenId=tokenIdBatchHead;tokenId < tokenIdBatchHead + quantity; tokenId++){
            emit Transfer(address(0), to, tokenId);
        } 
    }


    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        (address owner, uint256 tokenIdBatchHead) = _ownerAndBatchHeadOf(tokenId);

        require(
            owner == from,
            "ERC721Psi: transfer of token that is not own"
        );
        require(to != address(0), "ERC721Psi: transfer to the zero address");

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        uint256 nextTokenId = tokenId + 1;

        if(!_batchHead.get(nextTokenId) &&  
            nextTokenId < _minted
        ) {
            _owners[nextTokenId] = from;
            _batchHead.set(nextTokenId);
        }

        _owners[tokenId] = to;
        if(tokenId != tokenIdBatchHead) {
            _batchHead.set(tokenId);
        }

        emit Transfer(from, to, tokenId);

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param startTokenId uint256 the first ID of the tokens to be transferred
     * @param quantity uint256 amount of the tokens to be transfered.
     * @param _data bytes optional data to send along with the call
     * @return r bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity,
        bytes memory _data
    ) private returns (bool r) {
        if (to.isContract()) {
            r = true;
            for(uint256 tokenId = startTokenId; tokenId < startTokenId + quantity; tokenId++){
                try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                    r = r && retval == IERC721Receiver.onERC721Received.selector;
                } catch (bytes memory reason) {
                    if (reason.length == 0) {
                        revert("ERC721Psi: transfer to non ERC721Receiver implementer");
                    } else {
                        assembly {
                            revert(add(32, reason), mload(reason))
                        }
                    }
                }
            }
            return r;
        } else {
            return true;
        }
    }

    function _getBatchHead(uint256 tokenId) internal view returns (uint256 tokenIdBatchHead) {
        tokenIdBatchHead = _batchHead.scanForward(tokenId); 
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _minted;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256 tokenId) {
        require(index < totalSupply(), "ERC721Psi: global index out of bounds");
        
        uint count;
        for(uint i; i < _minted; i++){
            if(_exists(i)){
                if(count == index) return i;
                else count++;
            }
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) {
        uint count;
        for(uint i; i < _minted; i++){
            if(_exists(i) && owner == ownerOf(i)){
                if(count == index) return i;
                else count++;
            }
        }

        revert("ERC721Psi: owner index out of bounds");
    }


    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     *
     * 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`.
     */
    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.
     *
     * 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` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

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

/// @notice Optimized and flexible operator filterer to abide to OpenSea's
/// mandatory on-chain royalty enforcement in order for new collections to
/// receive royalties.
/// For more information, see:
/// See: https://github.com/ProjectOpenSea/operator-filter-registry
abstract contract OperatorFilterer {
    /// @dev The default OpenSea operator blocklist subscription.
    address internal constant _DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

    /// @dev The OpenSea operator filter registry.
    address internal constant _OPERATOR_FILTER_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E;

    /// @dev Registers the current contract to OpenSea's operator filter,
    /// and subscribe to the default OpenSea operator blocklist.
    /// Note: Will not revert nor update existing settings for repeated registration.
    function _registerForOperatorFiltering() internal virtual {
        _registerForOperatorFiltering(_DEFAULT_SUBSCRIPTION, true);
    }

    /// @dev Registers the current contract to OpenSea's operator filter.
    /// Note: Will not revert nor update existing settings for repeated registration.
    function _registerForOperatorFiltering(address subscriptionOrRegistrantToCopy, bool subscribe)
        internal
        virtual
    {
        /// @solidity memory-safe-assembly
        assembly {
            let functionSelector := 0x7d3e3dbe // `registerAndSubscribe(address,address)`.

            // Clean the upper 96 bits of `subscriptionOrRegistrantToCopy` in case they are dirty.
            subscriptionOrRegistrantToCopy := shr(96, shl(96, subscriptionOrRegistrantToCopy))

            for {} iszero(subscribe) {} {
                if iszero(subscriptionOrRegistrantToCopy) {
                    functionSelector := 0x4420e486 // `register(address)`.
                    break
                }
                functionSelector := 0xa0af2903 // `registerAndCopyEntries(address,address)`.
                break
            }
            // Store the function selector.
            mstore(0x00, shl(224, functionSelector))
            // Store the `address(this)`.
            mstore(0x04, address())
            // Store the `subscriptionOrRegistrantToCopy`.
            mstore(0x24, subscriptionOrRegistrantToCopy)
            // Register into the registry.
            if iszero(call(gas(), _OPERATOR_FILTER_REGISTRY, 0, 0x00, 0x44, 0x00, 0x04)) {
                // If the function selector has not been overwritten,
                // it is an out-of-gas error.
                if eq(shr(224, mload(0x00)), functionSelector) {
                    // To prevent gas under-estimation.
                    revert(0, 0)
                }
            }
            // Restore the part of the free memory pointer that was overwritten,
            // which is guaranteed to be zero, because of Solidity's memory size limits.
            mstore(0x24, 0)
        }
    }

    /// @dev Modifier to guard a function and revert if the caller is a blocked operator.
    modifier onlyAllowedOperator(address from) virtual {
        if (from != msg.sender) {
            if (!_isPriorityOperator(msg.sender)) {
                if (_operatorFilteringEnabled()) _revertIfBlocked(msg.sender);
            }
        }
        _;
    }

    /// @dev Modifier to guard a function from approving a blocked operator..
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        if (!_isPriorityOperator(operator)) {
            if (_operatorFilteringEnabled()) _revertIfBlocked(operator);
        }
        _;
    }

    /// @dev Helper function that reverts if the `operator` is blocked by the registry.
    function _revertIfBlocked(address operator) private view {
        /// @solidity memory-safe-assembly
        assembly {
            // Store the function selector of `isOperatorAllowed(address,address)`,
            // shifted left by 6 bytes, which is enough for 8tb of memory.
            // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL).
            mstore(0x00, 0xc6171134001122334455)
            // Store the `address(this)`.
            mstore(0x1a, address())
            // Store the `operator`.
            mstore(0x3a, operator)

            // `isOperatorAllowed` always returns true if it does not revert.
            if iszero(staticcall(gas(), _OPERATOR_FILTER_REGISTRY, 0x16, 0x44, 0x00, 0x00)) {
                // Bubble up the revert if the staticcall reverts.
                returndatacopy(0x00, 0x00, returndatasize())
                revert(0x00, returndatasize())
            }

            // We'll skip checking if `from` is inside the blacklist.
            // Even though that can block transferring out of wrapper contracts,
            // we don't want tokens to be stuck.

            // Restore the part of the free memory pointer that was overwritten,
            // which is guaranteed to be zero, if less than 8tb of memory is used.
            mstore(0x3a, 0)
        }
    }

    /// @dev For deriving contracts to override, so that operator filtering
    /// can be turned on / off.
    /// Returns true by default.
    function _operatorFilteringEnabled() internal view virtual returns (bool) {
        return true;
    }

    /// @dev For deriving contracts to override, so that preferred marketplaces can
    /// skip operator filtering, helping users save gas.
    /// Returns false for all inputs by default.
    function _isPriorityOperator(address) internal view virtual returns (bool) {
        return false;
    }
}

File 9 of 23 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 10 of 23 : BitMapsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/BitMaps.sol)
pragma solidity ^0.8.0;

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */
library BitMapsUpgradeable {
    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(
        BitMap storage bitmap,
        uint256 index,
        bool value
    ) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }
}

File 11 of 23 : IERC165Upgradeable.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 IERC165Upgradeable {
    /**
     * @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 12 of 23 : ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 13 of 23 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    bytes16 private constant _HEX_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) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

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

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

    /**
     * @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 14 of 23 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 15 of 23 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

File 16 of 23 : ERC2981Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981Upgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC2981Upgradeable is Initializable, IERC2981Upgradeable, ERC165Upgradeable {
    function __ERC2981_init() internal onlyInitializing {
    }

    function __ERC2981_init_unchained() internal onlyInitializing {
    }
    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(IERC165Upgradeable, ERC165Upgradeable) returns (bool) {
        return interfaceId == type(IERC2981Upgradeable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @inheritdoc IERC2981Upgradeable
     */
    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];
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[48] private __gap;
}

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

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

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

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

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

File 18 of 23 : IERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721Upgradeable.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721EnumerableUpgradeable is IERC721Upgradeable {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 19 of 23 : IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721Upgradeable is IERC165Upgradeable {
    /**
     * @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`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @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 have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

File 20 of 23 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

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

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

    uint256 private _status;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 21 of 23 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized < type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }
}

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

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165Upgradeable.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 IERC2981Upgradeable is IERC165Upgradeable {
    /**
     * @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 23 of 23 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _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);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"recipient","type":"address[]"},{"internalType":"uint256[]","name":"quantity","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"canister","type":"uint256"}],"name":"consumeHazardous","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":"iTSCProject","outputs":[{"internalType":"contract ITSCProject","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","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":[],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyWallet","type":"address"},{"internalType":"uint96","name":"multiplier","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ITSCProject","name":"_tscProject","type":"address"}],"name":"setTSCProject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleConsume","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleUpgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenLevel","outputs":[{"internalType":"uint256","name":"level","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256[2]","name":"canisters","type":"uint256[2]"}],"name":"upgradeToHazardous","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061554d806100206000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80638129fc1c1161010f578063ae3c3d8e116100a2578063d234b91a11610071578063d234b91a1461057c578063de8e7ae014610586578063e985e9c5146105a2578063f2fde38b146105d2576101f0565b8063ae3c3d8e1461050a578063b88d4fde14610514578063bf2ebb9614610530578063c87b56dd1461054c576101f0565b806396fdf523116100de57806396fdf523146104845780639c8afbb6146104a0578063a22cb465146104be578063ab8ece8b146104da576101f0565b80638129fc1c146104225780638da5cb5b1461042c5780638f2fc60b1461044a57806395d89b4114610466576101f0565b80632f745c59116101875780636352211e116101565780636352211e1461039c57806367243482146103cc57806370a08231146103e8578063715018a614610418576101f0565b80632f745c59146103165780633ccfd60b1461034657806342842e0e146103505780634f6ccce71461036c576101f0565b8063095ea7b3116101c3578063095ea7b31461028f57806318160ddd146102ab57806323b872dd146102c95780632a55205a146102e5576101f0565b806301ffc9a7146101f557806304634d8d1461022557806306fdde0314610241578063081812fc1461025f575b600080fd5b61020f600480360381019061020a919061341e565b6105ee565b60405161021c9190613466565b60405180910390f35b61023f600480360381019061023a9190613523565b610600565b005b610249610616565b60405161025691906135f3565b60405180910390f35b6102796004803603810190610274919061364b565b6106a8565b6040516102869190613687565b60405180910390f35b6102a960048036038101906102a491906136a2565b61072d565b005b6102b3610762565b6040516102c091906136f1565b60405180910390f35b6102e360048036038101906102de919061370c565b61077e565b005b6102ff60048036038101906102fa919061375f565b6107e9565b60405161030d92919061379f565b60405180910390f35b610330600480360381019061032b91906136a2565b6109d3565b60405161033d91906136f1565b60405180910390f35b61034e610aa5565b005b61036a6004803603810190610365919061370c565b610af6565b005b6103866004803603810190610381919061364b565b610b61565b60405161039391906136f1565b60405180910390f35b6103b660048036038101906103b1919061364b565b610c03565b6040516103c39190613687565b60405180910390f35b6103e660048036038101906103e19190613883565b610c1b565b005b61040260048036038101906103fd9190613904565b610c93565b60405161040f91906136f1565b60405180910390f35b610420610d83565b005b61042a610d97565b005b610434610faf565b6040516104419190613687565b60405180910390f35b610464600480360381019061045f9190613523565b610fd9565b005b61046e610fef565b60405161047b91906135f3565b60405180910390f35b61049e6004803603810190610499919061396f565b611081565b005b6104a86110cd565b6040516104b591906139fb565b60405180910390f35b6104d860048036038101906104d39190613a42565b6110f3565b005b6104f460048036038101906104ef919061364b565b611128565b60405161050191906136f1565b60405180910390f35b61051261119e565b005b61052e60048036038101906105299190613bb2565b6111d2565b005b61054a6004803603810190610545919061364b565b61123f565b005b6105666004803603810190610561919061364b565b6113fd565b60405161057391906135f3565b60405180910390f35b6105846114a4565b005b6105a0600480360381019061059b9190613c57565b6114d8565b005b6105bc60048036038101906105b79190613c97565b611887565b6040516105c99190613466565b60405180910390f35b6105ec60048036038101906105e79190613904565b61191b565b005b60006105f98261199e565b9050919050565b610608611ae8565b6106128282611b66565b5050565b606060ca805461062590613d06565b80601f016020809104026020016040519081016040528092919081815260200182805461065190613d06565b801561069e5780601f106106735761010080835404028352916020019161069e565b820191906000526020600020905b81548152906001019060200180831161068157829003601f168201915b5050505050905090565b60006106b382611cfb565b6106f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e990613da9565b60405180910390fd5b60ce600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8161073781611d30565b61075357610743611d37565b156107525761075181611d40565b5b5b61075d8383611d84565b505050565b600061076c611e9b565b60cd546107799190613df8565b905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146107d8576107bb33611d30565b6107d7576107c7611d37565b156107d6576107d533611d40565b5b5b5b6107e3848484611f05565b50505050565b6000806000606660008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff160361097e5760656040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610988611f65565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866109b49190613e2c565b6109be9190613eb5565b90508160000151819350935050509250929050565b60008060005b60cd54811015610a63576109ec81611cfb565b8015610a2b57506109fc81610c03565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b15610a5057838203610a41578092505050610a9f565b8180610a4c90613ee6565b9250505b8080610a5b90613ee6565b9150506109d9565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9690613fa0565b60405180910390fd5b92915050565b610aad611ae8565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610af3573d6000803e3d6000fd5b50565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b5057610b3333611d30565b610b4f57610b3f611d37565b15610b4e57610b4d33611d40565b5b5b5b610b5b848484611f6f565b50505050565b6000610b6b610762565b8210610bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba390614032565b60405180910390fd5b6000805b60cd54811015610bfb57610bc381611cfb565b15610be857838203610bd9578092505050610bfe565b8180610be490613ee6565b9250505b8080610bf390613ee6565b915050610bb0565b50505b919050565b600080610c0f83611f8f565b50905080915050919050565b610c23611ae8565b600084849050905060005b81811015610c8b57610c80868683818110610c4c57610c4b614052565b5b9050602002016020810190610c619190613904565b858584818110610c7457610c73614052565b5b90506020020135612020565b806001019050610c2e565b505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfa906140f3565b60405180910390fd5b6000805b60cd54811015610d7957610d1a81611cfb565b15610d6857610d2881610c03565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610d675781610d6490613ee6565b91505b5b80610d7290613ee6565b9050610d07565b5080915050919050565b610d8b611ae8565b610d956000612200565b565b60008060019054906101000a900460ff16159050808015610dc85750600160008054906101000a900460ff1660ff16105b80610df55750610dd7306122c6565b158015610df45750600160008054906101000a900460ff1660ff16145b5b610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b90614185565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015610e71576001600060016101000a81548160ff0219169083151502179055505b610ee56040518060400160405280601081526020017f4e2e542e502e2043616e697374657273000000000000000000000000000000008152506040518060400160405280600981526020017f43414e49535445525300000000000000000000000000000000000000000000008152506122e9565b610eed612346565b610ef5612397565b610f1573f04ee8223974f933184da78532837b62fc0893846102ee611b66565b610f1d6123f0565b600160d260016101000a81548160ff021916908315150217905550600060d260006101000a81548160ff0219169083151502179055508015610fac5760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051610fa391906141ed565b60405180910390a15b50565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610fe1611ae8565b610feb8282611b66565b5050565b606060cb8054610ffe90613d06565b80601f016020809104026020016040519081016040528092919081815260200182805461102a90613d06565b80156110775780601f1061104c57610100808354040283529160200191611077565b820191906000526020600020905b81548152906001019060200180831161105a57829003601f168201915b5050505050905090565b611089611ae8565b8060d260026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60d260029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b816110fd81611d30565b61111957611109611d37565b156111185761111781611d40565b5b5b6111238383612411565b505050565b600061113382611cfb565b611172576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116990614254565b60405180910390fd5b6111868260d161259190919063ffffffff16565b156111945760029050611199565b600190505b919050565b6111a6611ae8565b60d260019054906101000a900460ff161560d260016101000a81548160ff021916908315150217905550565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461122c5761120f33611d30565b61122b5761121b611d37565b1561122a5761122933611d40565b5b5b5b611238858585856125cd565b5050505050565b60d260009054906101000a900460ff1661128e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611285906142c0565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166112ae82610c03565b73ffffffffffffffffffffffffffffffffffffffff1614611304576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fb9061432c565b60405180910390fd5b600261130f82611128565b1461134f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134690614398565b60405180910390fd5b6113588161262f565b60d260029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f1c385e93360016040518363ffffffff1660e01b81526004016113b69291906143e9565b6020604051808303816000875af11580156113d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f99190614427565b5050565b606061140882611cfb565b611447576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143e906144c6565b60405180910390fd5b60006114516126cc565b90506000815111611471576040518060200160405280600081525061149c565b8061147b846126ec565b60405160200161148c929190614522565b6040516020818303038152906040525b915050919050565b6114ac611ae8565b60d260009054906101000a900460ff161560d260006101000a81548160ff021916908315150217905550565b60d260019054906101000a900460ff16611527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151e906142c0565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1661154783610c03565b73ffffffffffffffffffffffffffffffffffffffff161461159d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159490614592565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166115d5826000600281106115cb576115ca614052565b5b6020020135610c03565b73ffffffffffffffffffffffffffffffffffffffff161461162b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611622906145fe565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166116638260016002811061165957611658614052565b5b6020020135610c03565b73ffffffffffffffffffffffffffffffffffffffff16146116b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b0906145fe565b60405180910390fd5b81816000600281106116ce576116cd614052565b5b6020020135036116dd57600080fd5b81816001600281106116f2576116f1614052565b5b60200201350361170157600080fd5b6117158260d161259190919063ffffffff16565b15611755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174c9061466a565b60405180910390fd5b6117818160006002811061176c5761176b614052565b5b602002013560d161259190919063ffffffff16565b156117c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b8906146d6565b60405180910390fd5b6117ed816001600281106117d8576117d7614052565b5b602002013560d161259190919063ffffffff16565b1561182d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611824906146d6565b60405180910390fd5b61184e8160006002811061184457611843614052565b5b602002013561262f565b61186f8160016002811061186557611864614052565b5b602002013561262f565b6118838260d161284c90919063ffffffff16565b5050565b600060cf60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611923611ae8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611992576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198990614768565b60405180910390fd5b61199b81612200565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a6957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611ad157507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611ae15750611ae08261288a565b5b9050919050565b611af0612904565b73ffffffffffffffffffffffffffffffffffffffff16611b0e610faf565b73ffffffffffffffffffffffffffffffffffffffff1614611b64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5b906147d4565b60405180910390fd5b565b611b6e611f65565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc390614866565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c32906148d2565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250606560008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000611d118260d061290c90919063ffffffff16565b15611d1f5760009050611d2b565b611d2882612967565b90505b919050565b6000919050565b60006001905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa611d7c573d6000803e3d6000fd5b6000603a5250565b6000611d8f82610c03565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df690614964565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611e1e612904565b73ffffffffffffffffffffffffffffffffffffffff161480611e4d5750611e4c81611e47612904565b611887565b5b611e8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e83906149f6565b60405180910390fd5b611e968383612975565b505050565b6000806001600860cd54901c611eb19190614a16565b905060005b81811015611f00576000611ed48260d0612a2e90919063ffffffff16565b9050611edf81612a4e565b84611eea9190614a16565b9350508080611ef890613ee6565b915050611eb6565b505090565b611f16611f10612904565b82612a73565b611f55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4c90614abc565b60405180910390fd5b611f60838383612b51565b505050565b6000612710905090565b611f8a838383604051806020016040528060008152506111d2565b505050565b600080611f9b83611cfb565b611fda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd190614b4e565b60405180910390fd5b611fe383612dd3565b905060cc600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b600060cd5490506000821161206a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206190614be0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d090614c72565b60405180910390fd5b6120e66000848385612df0565b8160cd60008282546120f89190614a16565b925050819055508260cc600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506121658160c9612df690919063ffffffff16565b6121726000848385612e53565b60008190505b82826121849190614a16565b8110156121fa57808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480806121f290613ee6565b915050612178565b50505050565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16612338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232f90614d04565b60405180910390fd5b6123428282612e59565b5050565b600060019054906101000a900460ff16612395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238c90614d04565b60405180910390fd5b565b600060019054906101000a900460ff166123e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123dd90614d04565b60405180910390fd5b6123ee612ecc565b565b61240f733cc6cdda760b79bafa08df41ecfa224f810dceb66001612f2d565b565b612419612904565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612486576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247d90614d70565b60405180910390fd5b8060cf6000612493612904565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612540612904565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125859190613466565b60405180910390a35050565b600080600883901c9050600060ff84166001901b9050600081866000016000858152602001908152602001600020541614159250505092915050565b6125de6125d8612904565b83612a73565b61261d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261490614abc565b60405180910390fd5b61262984848484612fa2565b50505050565b600061263a82610c03565b905061264a816000846001612df0565b61265e8260d0612df690919063ffffffff16565b81600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126c8816000846001612e53565b5050565b60606040518060600160405280602581526020016153f360259139905090565b606060008203612733576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612847565b600082905060005b6000821461276557808061274e90613ee6565b915050600a8261275e9190613eb5565b915061273b565b60008167ffffffffffffffff81111561278157612780613a87565b5b6040519080825280601f01601f1916602001820160405280156127b35781602001600182028036833780820191505090505b5090505b60008514612840576001826127cc9190613df8565b9150600a856127db9190614d90565b60306127e79190614a16565b60f81b8183815181106127fd576127fc614052565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856128399190613eb5565b94506127b7565b8093505050505b919050565b6000600882901c9050600060ff83166001901b9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128fd57506128fc82613000565b5b9050919050565b600033905090565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b600060cd5482109050919050565b8160ce600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166129e883610c03565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600082600001600083815260200190815260200160002054905092915050565b60005b60008214612a6e5760018203821691508080600101915050612a51565b919050565b6000612a7e82611cfb565b612abd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab490614e33565b60405180910390fd5b6000612ac883610c03565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b3757508373ffffffffffffffffffffffffffffffffffffffff16612b1f846106a8565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b485750612b478185611887565b5b91505092915050565b600080612b5d83611f8f565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612bcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc690614ec5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3590614f57565b60405180910390fd5b612c4b8585856001612df0565b612c56600084612975565b6000600184612c659190614a16565b9050612c7b8160c961290c90919063ffffffff16565b158015612c89575060cd5481105b15612cf5578560cc600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612cf48160c9612df690919063ffffffff16565b5b8460cc600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818414612d6357612d628460c9612df690919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612dcb8686866001612e53565b505050505050565b6000612de98260c961306a90919063ffffffff16565b9050919050565b50505050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b50505050565b600060019054906101000a900460ff16612ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e9f90614d04565b60405180910390fd5b8160ca9081612eb79190615119565b508060cb9081612ec79190615119565b505050565b600060019054906101000a900460ff16612f1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1290614d04565b60405180910390fd5b612f2b612f26612904565b612200565b565b637d3e3dbe8260601b60601c925081612f595782612f5157634420e4869050612f59565b63a0af290390505b8060e01b60005230600452826024526004600060446000806daaeb6d7670e522a718067333cd4e5af1612f98578060005160e01c03612f9757600080fd5b5b6000602452505050565b612fad848484612b51565b612fbb848484600185613163565b612ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff19061525d565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c905060008111156130c3576130b181613325565b60ff168203600884901b17935061315a565b5b600115613159576000831161310e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613105906152ef565b60405180910390fd5b82806001900393505085600001600084815260200190815260200160002054905060008111156131545761314181613325565b60ff0360ff16600884901b179350613159565b6130c4565b5b50505092915050565b60006131848573ffffffffffffffffffffffffffffffffffffffff166122c6565b15613317576001905060008490505b838561319f9190614a16565b811015613311578573ffffffffffffffffffffffffffffffffffffffff1663150b7a026131ca612904565b8984876040518563ffffffff1660e01b81526004016131ec9493929190615364565b6020604051808303816000875af192505050801561322857506040513d601f19601f8201168201806040525081019061322591906153c5565b60015b6132aa573d8060008114613258576040519150601f19603f3d011682016040523d82523d6000602084013e61325d565b606091505b5060008151036132a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132999061525d565b60405180910390fd5b805181602001fd5b8280156132fb575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b925050808061330990613ee6565b915050613193565b5061331c565b600190505b95945050505050565b60006040518061012001604052806101008152602001615418610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff61336e85613397565b02901c8151811061338257613381614052565b5b602001015160f81c60f81b60f81c9050919050565b60008082116133a557600080fd5b8160000382169050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133fb816133c6565b811461340657600080fd5b50565b600081359050613418816133f2565b92915050565b600060208284031215613434576134336133bc565b5b600061344284828501613409565b91505092915050565b60008115159050919050565b6134608161344b565b82525050565b600060208201905061347b6000830184613457565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006134ac82613481565b9050919050565b6134bc816134a1565b81146134c757600080fd5b50565b6000813590506134d9816134b3565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613500816134df565b811461350b57600080fd5b50565b60008135905061351d816134f7565b92915050565b6000806040838503121561353a576135396133bc565b5b6000613548858286016134ca565b92505060206135598582860161350e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561359d578082015181840152602081019050613582565b60008484015250505050565b6000601f19601f8301169050919050565b60006135c582613563565b6135cf818561356e565b93506135df81856020860161357f565b6135e8816135a9565b840191505092915050565b6000602082019050818103600083015261360d81846135ba565b905092915050565b6000819050919050565b61362881613615565b811461363357600080fd5b50565b6000813590506136458161361f565b92915050565b600060208284031215613661576136606133bc565b5b600061366f84828501613636565b91505092915050565b613681816134a1565b82525050565b600060208201905061369c6000830184613678565b92915050565b600080604083850312156136b9576136b86133bc565b5b60006136c7858286016134ca565b92505060206136d885828601613636565b9150509250929050565b6136eb81613615565b82525050565b600060208201905061370660008301846136e2565b92915050565b600080600060608486031215613725576137246133bc565b5b6000613733868287016134ca565b9350506020613744868287016134ca565b925050604061375586828701613636565b9150509250925092565b60008060408385031215613776576137756133bc565b5b600061378485828601613636565b925050602061379585828601613636565b9150509250929050565b60006040820190506137b46000830185613678565b6137c160208301846136e2565b9392505050565b600080fd5b600080fd5b600080fd5b60008083601f8401126137ed576137ec6137c8565b5b8235905067ffffffffffffffff81111561380a576138096137cd565b5b602083019150836020820283011115613826576138256137d2565b5b9250929050565b60008083601f840112613843576138426137c8565b5b8235905067ffffffffffffffff8111156138605761385f6137cd565b5b60208301915083602082028301111561387c5761387b6137d2565b5b9250929050565b6000806000806040858703121561389d5761389c6133bc565b5b600085013567ffffffffffffffff8111156138bb576138ba6133c1565b5b6138c7878288016137d7565b9450945050602085013567ffffffffffffffff8111156138ea576138e96133c1565b5b6138f68782880161382d565b925092505092959194509250565b60006020828403121561391a576139196133bc565b5b6000613928848285016134ca565b91505092915050565b600061393c826134a1565b9050919050565b61394c81613931565b811461395757600080fd5b50565b60008135905061396981613943565b92915050565b600060208284031215613985576139846133bc565b5b60006139938482850161395a565b91505092915050565b6000819050919050565b60006139c16139bc6139b784613481565b61399c565b613481565b9050919050565b60006139d3826139a6565b9050919050565b60006139e5826139c8565b9050919050565b6139f5816139da565b82525050565b6000602082019050613a1060008301846139ec565b92915050565b613a1f8161344b565b8114613a2a57600080fd5b50565b600081359050613a3c81613a16565b92915050565b60008060408385031215613a5957613a586133bc565b5b6000613a67858286016134ca565b9250506020613a7885828601613a2d565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613abf826135a9565b810181811067ffffffffffffffff82111715613ade57613add613a87565b5b80604052505050565b6000613af16133b2565b9050613afd8282613ab6565b919050565b600067ffffffffffffffff821115613b1d57613b1c613a87565b5b613b26826135a9565b9050602081019050919050565b82818337600083830152505050565b6000613b55613b5084613b02565b613ae7565b905082815260208101848484011115613b7157613b70613a82565b5b613b7c848285613b33565b509392505050565b600082601f830112613b9957613b986137c8565b5b8135613ba9848260208601613b42565b91505092915050565b60008060008060808587031215613bcc57613bcb6133bc565b5b6000613bda878288016134ca565b9450506020613beb878288016134ca565b9350506040613bfc87828801613636565b925050606085013567ffffffffffffffff811115613c1d57613c1c6133c1565b5b613c2987828801613b84565b91505092959194509250565b600081905082602060020282011115613c5157613c506137d2565b5b92915050565b60008060608385031215613c6e57613c6d6133bc565b5b6000613c7c85828601613636565b9250506020613c8d85828601613c35565b9150509250929050565b60008060408385031215613cae57613cad6133bc565b5b6000613cbc858286016134ca565b9250506020613ccd858286016134ca565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613d1e57607f821691505b602082108103613d3157613d30613cd7565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613d93602f8361356e565b9150613d9e82613d37565b604082019050919050565b60006020820190508181036000830152613dc281613d86565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e0382613615565b9150613e0e83613615565b9250828203905081811115613e2657613e25613dc9565b5b92915050565b6000613e3782613615565b9150613e4283613615565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613e7b57613e7a613dc9565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613ec082613615565b9150613ecb83613615565b925082613edb57613eda613e86565b5b828204905092915050565b6000613ef182613615565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f2357613f22613dc9565b5b600182019050919050565b7f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60008201527f756e647300000000000000000000000000000000000000000000000000000000602082015250565b6000613f8a60248361356e565b9150613f9582613f2e565b604082019050919050565b60006020820190508181036000830152613fb981613f7d565b9050919050565b7f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260008201527f6f756e6473000000000000000000000000000000000000000000000000000000602082015250565b600061401c60258361356e565b915061402782613fc0565b604082019050919050565b6000602082019050818103600083015261404b8161400f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b60006140dd602d8361356e565b91506140e882614081565b604082019050919050565b6000602082019050818103600083015261410c816140d0565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b600061416f602e8361356e565b915061417a82614113565b604082019050919050565b6000602082019050818103600083015261419e81614162565b9050919050565b6000819050919050565b600060ff82169050919050565b60006141d76141d26141cd846141a5565b61399c565b6141af565b9050919050565b6141e7816141bc565b82525050565b600060208201905061420260008301846141de565b92915050565b7f4e6f6e6578697374616e7420746f6b656e496421000000000000000000000000600082015250565b600061423e60148361356e565b915061424982614208565b602082019050919050565b6000602082019050818103600083015261426d81614231565b9050919050565b7f4e6f7420656e61626c6564207965742100000000000000000000000000000000600082015250565b60006142aa60108361356e565b91506142b582614274565b602082019050919050565b600060208201905081810360008301526142d98161429d565b9050919050565b7f4e6f7420746865206f776e657221000000000000000000000000000000000000600082015250565b6000614316600e8361356e565b9150614321826142e0565b602082019050919050565b6000602082019050818103600083015261434581614309565b9050919050565b7f4e6f742061207375706572210000000000000000000000000000000000000000600082015250565b6000614382600c8361356e565b915061438d8261434c565b602082019050919050565b600060208201905081810360008301526143b181614375565b9050919050565b60006143d36143ce6143c9846141a5565b61399c565b613615565b9050919050565b6143e3816143b8565b82525050565b60006040820190506143fe6000830185613678565b61440b60208301846143da565b9392505050565b6000815190506144218161361f565b92915050565b60006020828403121561443d5761443c6133bc565b5b600061444b84828501614412565b91505092915050565b7f4552433732315073693a2055524920717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006144b0602a8361356e565b91506144bb82614454565b604082019050919050565b600060208201905081810360008301526144df816144a3565b9050919050565b600081905092915050565b60006144fc82613563565b61450681856144e6565b935061451681856020860161357f565b80840191505092915050565b600061452e82856144f1565b915061453a82846144f1565b91508190509392505050565b7f4e6f74204e4654204f776e657220666f72207468652062617365210000000000600082015250565b600061457c601b8361356e565b915061458782614546565b602082019050919050565b600060208201905081810360008301526145ab8161456f565b9050919050565b7f4e6f74204e4654204f776e657220666f72207468652063616e69737465727321600082015250565b60006145e860208361356e565b91506145f3826145b2565b602082019050919050565b60006020820190508181036000830152614617816145db565b9050919050565b7f416c726561647920757067726164656400000000000000000000000000000000600082015250565b600061465460108361356e565b915061465f8261461e565b602082019050919050565b6000602082019050818103600083015261468381614647565b9050919050565b7f5573696e67207570677261646564000000000000000000000000000000000000600082015250565b60006146c0600e8361356e565b91506146cb8261468a565b602082019050919050565b600060208201905081810360008301526146ef816146b3565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061475260268361356e565b915061475d826146f6565b604082019050919050565b6000602082019050818103600083015261478181614745565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006147be60208361356e565b91506147c982614788565b602082019050919050565b600060208201905081810360008301526147ed816147b1565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614850602a8361356e565b915061485b826147f4565b604082019050919050565b6000602082019050818103600083015261487f81614843565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006148bc60198361356e565b91506148c782614886565b602082019050919050565b600060208201905081810360008301526148eb816148af565b9050919050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b600061494e60248361356e565b9150614959826148f2565b604082019050919050565b6000602082019050818103600083015261497d81614941565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b60006149e0603b8361356e565b91506149eb82614984565b604082019050919050565b60006020820190508181036000830152614a0f816149d3565b9050919050565b6000614a2182613615565b9150614a2c83613615565b9250828201905080821115614a4457614a43613dc9565b5b92915050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b6000614aa660348361356e565b9150614ab182614a4a565b604082019050919050565b60006020820190508181036000830152614ad581614a99565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614b38602c8361356e565b9150614b4382614adc565b604082019050919050565b60006020820190508181036000830152614b6781614b2b565b9050919050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b6000614bca60258361356e565b9150614bd582614b6e565b604082019050919050565b60006020820190508181036000830152614bf981614bbd565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614c5c60238361356e565b9150614c6782614c00565b604082019050919050565b60006020820190508181036000830152614c8b81614c4f565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b6000614cee602b8361356e565b9150614cf982614c92565b604082019050919050565b60006020820190508181036000830152614d1d81614ce1565b9050919050565b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b6000614d5a601c8361356e565b9150614d6582614d24565b602082019050919050565b60006020820190508181036000830152614d8981614d4d565b9050919050565b6000614d9b82613615565b9150614da683613615565b925082614db657614db5613e86565b5b828206905092915050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614e1d602f8361356e565b9150614e2882614dc1565b604082019050919050565b60006020820190508181036000830152614e4c81614e10565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b6000614eaf602c8361356e565b9150614eba82614e53565b604082019050919050565b60006020820190508181036000830152614ede81614ea2565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b6000614f4160278361356e565b9150614f4c82614ee5565b604082019050919050565b60006020820190508181036000830152614f7081614f34565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614fd97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614f9c565b614fe38683614f9c565b95508019841693508086168417925050509392505050565b600061501661501161500c84613615565b61399c565b613615565b9050919050565b6000819050919050565b61503083614ffb565b61504461503c8261501d565b848454614fa9565b825550505050565b600090565b61505961504c565b615064818484615027565b505050565b5b818110156150885761507d600082615051565b60018101905061506a565b5050565b601f8211156150cd5761509e81614f77565b6150a784614f8c565b810160208510156150b6578190505b6150ca6150c285614f8c565b830182615069565b50505b505050565b600082821c905092915050565b60006150f0600019846008026150d2565b1980831691505092915050565b600061510983836150df565b9150826002028217905092915050565b61512282613563565b67ffffffffffffffff81111561513b5761513a613a87565b5b6151458254613d06565b61515082828561508c565b600060209050601f8311600181146151835760008415615171578287015190505b61517b85826150fd565b8655506151e3565b601f19841661519186614f77565b60005b828110156151b957848901518255600182019150602085019450602081019050615194565b868310156151d657848901516151d2601f8916826150df565b8355505b6001600288020188555050505b505050505050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b600061524760358361356e565b9150615252826151eb565b604082019050919050565b600060208201905081810360008301526152768161523a565b9050919050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b60006152d960348361356e565b91506152e48261527d565b604082019050919050565b60006020820190508181036000830152615308816152cc565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006153368261530f565b615340818561531a565b935061535081856020860161357f565b615359816135a9565b840191505092915050565b60006080820190506153796000830187613678565b6153866020830186613678565b61539360408301856136e2565b81810360608301526153a5818461532b565b905095945050505050565b6000815190506153bf816133f2565b92915050565b6000602082840312156153db576153da6133bc565b5b60006153e9848285016153b0565b9150509291505056fe68747470733a2f2f6e747063616e6973746572732e6e66746170692e6172742f6d6574612f0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a26469706673582212203bb2e1316a3098df49e16130a3af661a680c2c7261b96da8e74ad236c4f1f4b164736f6c63430008100033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101f05760003560e01c80638129fc1c1161010f578063ae3c3d8e116100a2578063d234b91a11610071578063d234b91a1461057c578063de8e7ae014610586578063e985e9c5146105a2578063f2fde38b146105d2576101f0565b8063ae3c3d8e1461050a578063b88d4fde14610514578063bf2ebb9614610530578063c87b56dd1461054c576101f0565b806396fdf523116100de57806396fdf523146104845780639c8afbb6146104a0578063a22cb465146104be578063ab8ece8b146104da576101f0565b80638129fc1c146104225780638da5cb5b1461042c5780638f2fc60b1461044a57806395d89b4114610466576101f0565b80632f745c59116101875780636352211e116101565780636352211e1461039c57806367243482146103cc57806370a08231146103e8578063715018a614610418576101f0565b80632f745c59146103165780633ccfd60b1461034657806342842e0e146103505780634f6ccce71461036c576101f0565b8063095ea7b3116101c3578063095ea7b31461028f57806318160ddd146102ab57806323b872dd146102c95780632a55205a146102e5576101f0565b806301ffc9a7146101f557806304634d8d1461022557806306fdde0314610241578063081812fc1461025f575b600080fd5b61020f600480360381019061020a919061341e565b6105ee565b60405161021c9190613466565b60405180910390f35b61023f600480360381019061023a9190613523565b610600565b005b610249610616565b60405161025691906135f3565b60405180910390f35b6102796004803603810190610274919061364b565b6106a8565b6040516102869190613687565b60405180910390f35b6102a960048036038101906102a491906136a2565b61072d565b005b6102b3610762565b6040516102c091906136f1565b60405180910390f35b6102e360048036038101906102de919061370c565b61077e565b005b6102ff60048036038101906102fa919061375f565b6107e9565b60405161030d92919061379f565b60405180910390f35b610330600480360381019061032b91906136a2565b6109d3565b60405161033d91906136f1565b60405180910390f35b61034e610aa5565b005b61036a6004803603810190610365919061370c565b610af6565b005b6103866004803603810190610381919061364b565b610b61565b60405161039391906136f1565b60405180910390f35b6103b660048036038101906103b1919061364b565b610c03565b6040516103c39190613687565b60405180910390f35b6103e660048036038101906103e19190613883565b610c1b565b005b61040260048036038101906103fd9190613904565b610c93565b60405161040f91906136f1565b60405180910390f35b610420610d83565b005b61042a610d97565b005b610434610faf565b6040516104419190613687565b60405180910390f35b610464600480360381019061045f9190613523565b610fd9565b005b61046e610fef565b60405161047b91906135f3565b60405180910390f35b61049e6004803603810190610499919061396f565b611081565b005b6104a86110cd565b6040516104b591906139fb565b60405180910390f35b6104d860048036038101906104d39190613a42565b6110f3565b005b6104f460048036038101906104ef919061364b565b611128565b60405161050191906136f1565b60405180910390f35b61051261119e565b005b61052e60048036038101906105299190613bb2565b6111d2565b005b61054a6004803603810190610545919061364b565b61123f565b005b6105666004803603810190610561919061364b565b6113fd565b60405161057391906135f3565b60405180910390f35b6105846114a4565b005b6105a0600480360381019061059b9190613c57565b6114d8565b005b6105bc60048036038101906105b79190613c97565b611887565b6040516105c99190613466565b60405180910390f35b6105ec60048036038101906105e79190613904565b61191b565b005b60006105f98261199e565b9050919050565b610608611ae8565b6106128282611b66565b5050565b606060ca805461062590613d06565b80601f016020809104026020016040519081016040528092919081815260200182805461065190613d06565b801561069e5780601f106106735761010080835404028352916020019161069e565b820191906000526020600020905b81548152906001019060200180831161068157829003601f168201915b5050505050905090565b60006106b382611cfb565b6106f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e990613da9565b60405180910390fd5b60ce600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8161073781611d30565b61075357610743611d37565b156107525761075181611d40565b5b5b61075d8383611d84565b505050565b600061076c611e9b565b60cd546107799190613df8565b905090565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146107d8576107bb33611d30565b6107d7576107c7611d37565b156107d6576107d533611d40565b5b5b5b6107e3848484611f05565b50505050565b6000806000606660008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff160361097e5760656040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610988611f65565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866109b49190613e2c565b6109be9190613eb5565b90508160000151819350935050509250929050565b60008060005b60cd54811015610a63576109ec81611cfb565b8015610a2b57506109fc81610c03565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b15610a5057838203610a41578092505050610a9f565b8180610a4c90613ee6565b9250505b8080610a5b90613ee6565b9150506109d9565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9690613fa0565b60405180910390fd5b92915050565b610aad611ae8565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610af3573d6000803e3d6000fd5b50565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b5057610b3333611d30565b610b4f57610b3f611d37565b15610b4e57610b4d33611d40565b5b5b5b610b5b848484611f6f565b50505050565b6000610b6b610762565b8210610bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba390614032565b60405180910390fd5b6000805b60cd54811015610bfb57610bc381611cfb565b15610be857838203610bd9578092505050610bfe565b8180610be490613ee6565b9250505b8080610bf390613ee6565b915050610bb0565b50505b919050565b600080610c0f83611f8f565b50905080915050919050565b610c23611ae8565b600084849050905060005b81811015610c8b57610c80868683818110610c4c57610c4b614052565b5b9050602002016020810190610c619190613904565b858584818110610c7457610c73614052565b5b90506020020135612020565b806001019050610c2e565b505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfa906140f3565b60405180910390fd5b6000805b60cd54811015610d7957610d1a81611cfb565b15610d6857610d2881610c03565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610d675781610d6490613ee6565b91505b5b80610d7290613ee6565b9050610d07565b5080915050919050565b610d8b611ae8565b610d956000612200565b565b60008060019054906101000a900460ff16159050808015610dc85750600160008054906101000a900460ff1660ff16105b80610df55750610dd7306122c6565b158015610df45750600160008054906101000a900460ff1660ff16145b5b610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b90614185565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015610e71576001600060016101000a81548160ff0219169083151502179055505b610ee56040518060400160405280601081526020017f4e2e542e502e2043616e697374657273000000000000000000000000000000008152506040518060400160405280600981526020017f43414e49535445525300000000000000000000000000000000000000000000008152506122e9565b610eed612346565b610ef5612397565b610f1573f04ee8223974f933184da78532837b62fc0893846102ee611b66565b610f1d6123f0565b600160d260016101000a81548160ff021916908315150217905550600060d260006101000a81548160ff0219169083151502179055508015610fac5760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051610fa391906141ed565b60405180910390a15b50565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610fe1611ae8565b610feb8282611b66565b5050565b606060cb8054610ffe90613d06565b80601f016020809104026020016040519081016040528092919081815260200182805461102a90613d06565b80156110775780601f1061104c57610100808354040283529160200191611077565b820191906000526020600020905b81548152906001019060200180831161105a57829003601f168201915b5050505050905090565b611089611ae8565b8060d260026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60d260029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b816110fd81611d30565b61111957611109611d37565b156111185761111781611d40565b5b5b6111238383612411565b505050565b600061113382611cfb565b611172576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116990614254565b60405180910390fd5b6111868260d161259190919063ffffffff16565b156111945760029050611199565b600190505b919050565b6111a6611ae8565b60d260019054906101000a900460ff161560d260016101000a81548160ff021916908315150217905550565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461122c5761120f33611d30565b61122b5761121b611d37565b1561122a5761122933611d40565b5b5b5b611238858585856125cd565b5050505050565b60d260009054906101000a900460ff1661128e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611285906142c0565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166112ae82610c03565b73ffffffffffffffffffffffffffffffffffffffff1614611304576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fb9061432c565b60405180910390fd5b600261130f82611128565b1461134f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134690614398565b60405180910390fd5b6113588161262f565b60d260029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f1c385e93360016040518363ffffffff1660e01b81526004016113b69291906143e9565b6020604051808303816000875af11580156113d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f99190614427565b5050565b606061140882611cfb565b611447576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143e906144c6565b60405180910390fd5b60006114516126cc565b90506000815111611471576040518060200160405280600081525061149c565b8061147b846126ec565b60405160200161148c929190614522565b6040516020818303038152906040525b915050919050565b6114ac611ae8565b60d260009054906101000a900460ff161560d260006101000a81548160ff021916908315150217905550565b60d260019054906101000a900460ff16611527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151e906142c0565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1661154783610c03565b73ffffffffffffffffffffffffffffffffffffffff161461159d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159490614592565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166115d5826000600281106115cb576115ca614052565b5b6020020135610c03565b73ffffffffffffffffffffffffffffffffffffffff161461162b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611622906145fe565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166116638260016002811061165957611658614052565b5b6020020135610c03565b73ffffffffffffffffffffffffffffffffffffffff16146116b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b0906145fe565b60405180910390fd5b81816000600281106116ce576116cd614052565b5b6020020135036116dd57600080fd5b81816001600281106116f2576116f1614052565b5b60200201350361170157600080fd5b6117158260d161259190919063ffffffff16565b15611755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174c9061466a565b60405180910390fd5b6117818160006002811061176c5761176b614052565b5b602002013560d161259190919063ffffffff16565b156117c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b8906146d6565b60405180910390fd5b6117ed816001600281106117d8576117d7614052565b5b602002013560d161259190919063ffffffff16565b1561182d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611824906146d6565b60405180910390fd5b61184e8160006002811061184457611843614052565b5b602002013561262f565b61186f8160016002811061186557611864614052565b5b602002013561262f565b6118838260d161284c90919063ffffffff16565b5050565b600060cf60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611923611ae8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611992576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198990614768565b60405180910390fd5b61199b81612200565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a6957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611ad157507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611ae15750611ae08261288a565b5b9050919050565b611af0612904565b73ffffffffffffffffffffffffffffffffffffffff16611b0e610faf565b73ffffffffffffffffffffffffffffffffffffffff1614611b64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5b906147d4565b60405180910390fd5b565b611b6e611f65565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc390614866565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c32906148d2565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250606560008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000611d118260d061290c90919063ffffffff16565b15611d1f5760009050611d2b565b611d2882612967565b90505b919050565b6000919050565b60006001905090565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa611d7c573d6000803e3d6000fd5b6000603a5250565b6000611d8f82610c03565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df690614964565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611e1e612904565b73ffffffffffffffffffffffffffffffffffffffff161480611e4d5750611e4c81611e47612904565b611887565b5b611e8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e83906149f6565b60405180910390fd5b611e968383612975565b505050565b6000806001600860cd54901c611eb19190614a16565b905060005b81811015611f00576000611ed48260d0612a2e90919063ffffffff16565b9050611edf81612a4e565b84611eea9190614a16565b9350508080611ef890613ee6565b915050611eb6565b505090565b611f16611f10612904565b82612a73565b611f55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4c90614abc565b60405180910390fd5b611f60838383612b51565b505050565b6000612710905090565b611f8a838383604051806020016040528060008152506111d2565b505050565b600080611f9b83611cfb565b611fda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd190614b4e565b60405180910390fd5b611fe383612dd3565b905060cc600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b600060cd5490506000821161206a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206190614be0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036120d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d090614c72565b60405180910390fd5b6120e66000848385612df0565b8160cd60008282546120f89190614a16565b925050819055508260cc600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506121658160c9612df690919063ffffffff16565b6121726000848385612e53565b60008190505b82826121849190614a16565b8110156121fa57808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480806121f290613ee6565b915050612178565b50505050565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16612338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232f90614d04565b60405180910390fd5b6123428282612e59565b5050565b600060019054906101000a900460ff16612395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238c90614d04565b60405180910390fd5b565b600060019054906101000a900460ff166123e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123dd90614d04565b60405180910390fd5b6123ee612ecc565b565b61240f733cc6cdda760b79bafa08df41ecfa224f810dceb66001612f2d565b565b612419612904565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612486576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247d90614d70565b60405180910390fd5b8060cf6000612493612904565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612540612904565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125859190613466565b60405180910390a35050565b600080600883901c9050600060ff84166001901b9050600081866000016000858152602001908152602001600020541614159250505092915050565b6125de6125d8612904565b83612a73565b61261d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261490614abc565b60405180910390fd5b61262984848484612fa2565b50505050565b600061263a82610c03565b905061264a816000846001612df0565b61265e8260d0612df690919063ffffffff16565b81600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126c8816000846001612e53565b5050565b60606040518060600160405280602581526020016153f360259139905090565b606060008203612733576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612847565b600082905060005b6000821461276557808061274e90613ee6565b915050600a8261275e9190613eb5565b915061273b565b60008167ffffffffffffffff81111561278157612780613a87565b5b6040519080825280601f01601f1916602001820160405280156127b35781602001600182028036833780820191505090505b5090505b60008514612840576001826127cc9190613df8565b9150600a856127db9190614d90565b60306127e79190614a16565b60f81b8183815181106127fd576127fc614052565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856128399190613eb5565b94506127b7565b8093505050505b919050565b6000600882901c9050600060ff83166001901b9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128fd57506128fc82613000565b5b9050919050565b600033905090565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b600060cd5482109050919050565b8160ce600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166129e883610c03565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600082600001600083815260200190815260200160002054905092915050565b60005b60008214612a6e5760018203821691508080600101915050612a51565b919050565b6000612a7e82611cfb565b612abd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab490614e33565b60405180910390fd5b6000612ac883610c03565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b3757508373ffffffffffffffffffffffffffffffffffffffff16612b1f846106a8565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b485750612b478185611887565b5b91505092915050565b600080612b5d83611f8f565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612bcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc690614ec5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3590614f57565b60405180910390fd5b612c4b8585856001612df0565b612c56600084612975565b6000600184612c659190614a16565b9050612c7b8160c961290c90919063ffffffff16565b158015612c89575060cd5481105b15612cf5578560cc600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612cf48160c9612df690919063ffffffff16565b5b8460cc600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818414612d6357612d628460c9612df690919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612dcb8686866001612e53565b505050505050565b6000612de98260c961306a90919063ffffffff16565b9050919050565b50505050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b50505050565b600060019054906101000a900460ff16612ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e9f90614d04565b60405180910390fd5b8160ca9081612eb79190615119565b508060cb9081612ec79190615119565b505050565b600060019054906101000a900460ff16612f1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1290614d04565b60405180910390fd5b612f2b612f26612904565b612200565b565b637d3e3dbe8260601b60601c925081612f595782612f5157634420e4869050612f59565b63a0af290390505b8060e01b60005230600452826024526004600060446000806daaeb6d7670e522a718067333cd4e5af1612f98578060005160e01c03612f9757600080fd5b5b6000602452505050565b612fad848484612b51565b612fbb848484600185613163565b612ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff19061525d565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c905060008111156130c3576130b181613325565b60ff168203600884901b17935061315a565b5b600115613159576000831161310e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613105906152ef565b60405180910390fd5b82806001900393505085600001600084815260200190815260200160002054905060008111156131545761314181613325565b60ff0360ff16600884901b179350613159565b6130c4565b5b50505092915050565b60006131848573ffffffffffffffffffffffffffffffffffffffff166122c6565b15613317576001905060008490505b838561319f9190614a16565b811015613311578573ffffffffffffffffffffffffffffffffffffffff1663150b7a026131ca612904565b8984876040518563ffffffff1660e01b81526004016131ec9493929190615364565b6020604051808303816000875af192505050801561322857506040513d601f19601f8201168201806040525081019061322591906153c5565b60015b6132aa573d8060008114613258576040519150601f19603f3d011682016040523d82523d6000602084013e61325d565b606091505b5060008151036132a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132999061525d565b60405180910390fd5b805181602001fd5b8280156132fb575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b925050808061330990613ee6565b915050613193565b5061331c565b600190505b95945050505050565b60006040518061012001604052806101008152602001615418610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff61336e85613397565b02901c8151811061338257613381614052565b5b602001015160f81c60f81b60f81c9050919050565b60008082116133a557600080fd5b8160000382169050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133fb816133c6565b811461340657600080fd5b50565b600081359050613418816133f2565b92915050565b600060208284031215613434576134336133bc565b5b600061344284828501613409565b91505092915050565b60008115159050919050565b6134608161344b565b82525050565b600060208201905061347b6000830184613457565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006134ac82613481565b9050919050565b6134bc816134a1565b81146134c757600080fd5b50565b6000813590506134d9816134b3565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613500816134df565b811461350b57600080fd5b50565b60008135905061351d816134f7565b92915050565b6000806040838503121561353a576135396133bc565b5b6000613548858286016134ca565b92505060206135598582860161350e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561359d578082015181840152602081019050613582565b60008484015250505050565b6000601f19601f8301169050919050565b60006135c582613563565b6135cf818561356e565b93506135df81856020860161357f565b6135e8816135a9565b840191505092915050565b6000602082019050818103600083015261360d81846135ba565b905092915050565b6000819050919050565b61362881613615565b811461363357600080fd5b50565b6000813590506136458161361f565b92915050565b600060208284031215613661576136606133bc565b5b600061366f84828501613636565b91505092915050565b613681816134a1565b82525050565b600060208201905061369c6000830184613678565b92915050565b600080604083850312156136b9576136b86133bc565b5b60006136c7858286016134ca565b92505060206136d885828601613636565b9150509250929050565b6136eb81613615565b82525050565b600060208201905061370660008301846136e2565b92915050565b600080600060608486031215613725576137246133bc565b5b6000613733868287016134ca565b9350506020613744868287016134ca565b925050604061375586828701613636565b9150509250925092565b60008060408385031215613776576137756133bc565b5b600061378485828601613636565b925050602061379585828601613636565b9150509250929050565b60006040820190506137b46000830185613678565b6137c160208301846136e2565b9392505050565b600080fd5b600080fd5b600080fd5b60008083601f8401126137ed576137ec6137c8565b5b8235905067ffffffffffffffff81111561380a576138096137cd565b5b602083019150836020820283011115613826576138256137d2565b5b9250929050565b60008083601f840112613843576138426137c8565b5b8235905067ffffffffffffffff8111156138605761385f6137cd565b5b60208301915083602082028301111561387c5761387b6137d2565b5b9250929050565b6000806000806040858703121561389d5761389c6133bc565b5b600085013567ffffffffffffffff8111156138bb576138ba6133c1565b5b6138c7878288016137d7565b9450945050602085013567ffffffffffffffff8111156138ea576138e96133c1565b5b6138f68782880161382d565b925092505092959194509250565b60006020828403121561391a576139196133bc565b5b6000613928848285016134ca565b91505092915050565b600061393c826134a1565b9050919050565b61394c81613931565b811461395757600080fd5b50565b60008135905061396981613943565b92915050565b600060208284031215613985576139846133bc565b5b60006139938482850161395a565b91505092915050565b6000819050919050565b60006139c16139bc6139b784613481565b61399c565b613481565b9050919050565b60006139d3826139a6565b9050919050565b60006139e5826139c8565b9050919050565b6139f5816139da565b82525050565b6000602082019050613a1060008301846139ec565b92915050565b613a1f8161344b565b8114613a2a57600080fd5b50565b600081359050613a3c81613a16565b92915050565b60008060408385031215613a5957613a586133bc565b5b6000613a67858286016134ca565b9250506020613a7885828601613a2d565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613abf826135a9565b810181811067ffffffffffffffff82111715613ade57613add613a87565b5b80604052505050565b6000613af16133b2565b9050613afd8282613ab6565b919050565b600067ffffffffffffffff821115613b1d57613b1c613a87565b5b613b26826135a9565b9050602081019050919050565b82818337600083830152505050565b6000613b55613b5084613b02565b613ae7565b905082815260208101848484011115613b7157613b70613a82565b5b613b7c848285613b33565b509392505050565b600082601f830112613b9957613b986137c8565b5b8135613ba9848260208601613b42565b91505092915050565b60008060008060808587031215613bcc57613bcb6133bc565b5b6000613bda878288016134ca565b9450506020613beb878288016134ca565b9350506040613bfc87828801613636565b925050606085013567ffffffffffffffff811115613c1d57613c1c6133c1565b5b613c2987828801613b84565b91505092959194509250565b600081905082602060020282011115613c5157613c506137d2565b5b92915050565b60008060608385031215613c6e57613c6d6133bc565b5b6000613c7c85828601613636565b9250506020613c8d85828601613c35565b9150509250929050565b60008060408385031215613cae57613cad6133bc565b5b6000613cbc858286016134ca565b9250506020613ccd858286016134ca565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613d1e57607f821691505b602082108103613d3157613d30613cd7565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613d93602f8361356e565b9150613d9e82613d37565b604082019050919050565b60006020820190508181036000830152613dc281613d86565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e0382613615565b9150613e0e83613615565b9250828203905081811115613e2657613e25613dc9565b5b92915050565b6000613e3782613615565b9150613e4283613615565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613e7b57613e7a613dc9565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613ec082613615565b9150613ecb83613615565b925082613edb57613eda613e86565b5b828204905092915050565b6000613ef182613615565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f2357613f22613dc9565b5b600182019050919050565b7f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60008201527f756e647300000000000000000000000000000000000000000000000000000000602082015250565b6000613f8a60248361356e565b9150613f9582613f2e565b604082019050919050565b60006020820190508181036000830152613fb981613f7d565b9050919050565b7f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260008201527f6f756e6473000000000000000000000000000000000000000000000000000000602082015250565b600061401c60258361356e565b915061402782613fc0565b604082019050919050565b6000602082019050818103600083015261404b8161400f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b60006140dd602d8361356e565b91506140e882614081565b604082019050919050565b6000602082019050818103600083015261410c816140d0565b9050919050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b600061416f602e8361356e565b915061417a82614113565b604082019050919050565b6000602082019050818103600083015261419e81614162565b9050919050565b6000819050919050565b600060ff82169050919050565b60006141d76141d26141cd846141a5565b61399c565b6141af565b9050919050565b6141e7816141bc565b82525050565b600060208201905061420260008301846141de565b92915050565b7f4e6f6e6578697374616e7420746f6b656e496421000000000000000000000000600082015250565b600061423e60148361356e565b915061424982614208565b602082019050919050565b6000602082019050818103600083015261426d81614231565b9050919050565b7f4e6f7420656e61626c6564207965742100000000000000000000000000000000600082015250565b60006142aa60108361356e565b91506142b582614274565b602082019050919050565b600060208201905081810360008301526142d98161429d565b9050919050565b7f4e6f7420746865206f776e657221000000000000000000000000000000000000600082015250565b6000614316600e8361356e565b9150614321826142e0565b602082019050919050565b6000602082019050818103600083015261434581614309565b9050919050565b7f4e6f742061207375706572210000000000000000000000000000000000000000600082015250565b6000614382600c8361356e565b915061438d8261434c565b602082019050919050565b600060208201905081810360008301526143b181614375565b9050919050565b60006143d36143ce6143c9846141a5565b61399c565b613615565b9050919050565b6143e3816143b8565b82525050565b60006040820190506143fe6000830185613678565b61440b60208301846143da565b9392505050565b6000815190506144218161361f565b92915050565b60006020828403121561443d5761443c6133bc565b5b600061444b84828501614412565b91505092915050565b7f4552433732315073693a2055524920717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006144b0602a8361356e565b91506144bb82614454565b604082019050919050565b600060208201905081810360008301526144df816144a3565b9050919050565b600081905092915050565b60006144fc82613563565b61450681856144e6565b935061451681856020860161357f565b80840191505092915050565b600061452e82856144f1565b915061453a82846144f1565b91508190509392505050565b7f4e6f74204e4654204f776e657220666f72207468652062617365210000000000600082015250565b600061457c601b8361356e565b915061458782614546565b602082019050919050565b600060208201905081810360008301526145ab8161456f565b9050919050565b7f4e6f74204e4654204f776e657220666f72207468652063616e69737465727321600082015250565b60006145e860208361356e565b91506145f3826145b2565b602082019050919050565b60006020820190508181036000830152614617816145db565b9050919050565b7f416c726561647920757067726164656400000000000000000000000000000000600082015250565b600061465460108361356e565b915061465f8261461e565b602082019050919050565b6000602082019050818103600083015261468381614647565b9050919050565b7f5573696e67207570677261646564000000000000000000000000000000000000600082015250565b60006146c0600e8361356e565b91506146cb8261468a565b602082019050919050565b600060208201905081810360008301526146ef816146b3565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061475260268361356e565b915061475d826146f6565b604082019050919050565b6000602082019050818103600083015261478181614745565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006147be60208361356e565b91506147c982614788565b602082019050919050565b600060208201905081810360008301526147ed816147b1565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614850602a8361356e565b915061485b826147f4565b604082019050919050565b6000602082019050818103600083015261487f81614843565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006148bc60198361356e565b91506148c782614886565b602082019050919050565b600060208201905081810360008301526148eb816148af565b9050919050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b600061494e60248361356e565b9150614959826148f2565b604082019050919050565b6000602082019050818103600083015261497d81614941565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b60006149e0603b8361356e565b91506149eb82614984565b604082019050919050565b60006020820190508181036000830152614a0f816149d3565b9050919050565b6000614a2182613615565b9150614a2c83613615565b9250828201905080821115614a4457614a43613dc9565b5b92915050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b6000614aa660348361356e565b9150614ab182614a4a565b604082019050919050565b60006020820190508181036000830152614ad581614a99565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614b38602c8361356e565b9150614b4382614adc565b604082019050919050565b60006020820190508181036000830152614b6781614b2b565b9050919050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b6000614bca60258361356e565b9150614bd582614b6e565b604082019050919050565b60006020820190508181036000830152614bf981614bbd565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614c5c60238361356e565b9150614c6782614c00565b604082019050919050565b60006020820190508181036000830152614c8b81614c4f565b9050919050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b6000614cee602b8361356e565b9150614cf982614c92565b604082019050919050565b60006020820190508181036000830152614d1d81614ce1565b9050919050565b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b6000614d5a601c8361356e565b9150614d6582614d24565b602082019050919050565b60006020820190508181036000830152614d8981614d4d565b9050919050565b6000614d9b82613615565b9150614da683613615565b925082614db657614db5613e86565b5b828206905092915050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614e1d602f8361356e565b9150614e2882614dc1565b604082019050919050565b60006020820190508181036000830152614e4c81614e10565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b6000614eaf602c8361356e565b9150614eba82614e53565b604082019050919050565b60006020820190508181036000830152614ede81614ea2565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b6000614f4160278361356e565b9150614f4c82614ee5565b604082019050919050565b60006020820190508181036000830152614f7081614f34565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614fd97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614f9c565b614fe38683614f9c565b95508019841693508086168417925050509392505050565b600061501661501161500c84613615565b61399c565b613615565b9050919050565b6000819050919050565b61503083614ffb565b61504461503c8261501d565b848454614fa9565b825550505050565b600090565b61505961504c565b615064818484615027565b505050565b5b818110156150885761507d600082615051565b60018101905061506a565b5050565b601f8211156150cd5761509e81614f77565b6150a784614f8c565b810160208510156150b6578190505b6150ca6150c285614f8c565b830182615069565b50505b505050565b600082821c905092915050565b60006150f0600019846008026150d2565b1980831691505092915050565b600061510983836150df565b9150826002028217905092915050565b61512282613563565b67ffffffffffffffff81111561513b5761513a613a87565b5b6151458254613d06565b61515082828561508c565b600060209050601f8311600181146151835760008415615171578287015190505b61517b85826150fd565b8655506151e3565b601f19841661519186614f77565b60005b828110156151b957848901518255600182019150602085019450602081019050615194565b868310156151d657848901516151d2601f8916826150df565b8355505b6001600288020188555050505b505050505050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b600061524760358361356e565b9150615252826151eb565b604082019050919050565b600060208201905081810360008301526152768161523a565b9050919050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b60006152d960348361356e565b91506152e48261527d565b604082019050919050565b60006020820190508181036000830152615308816152cc565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006153368261530f565b615340818561531a565b935061535081856020860161357f565b615359816135a9565b840191505092915050565b60006080820190506153796000830187613678565b6153866020830186613678565b61539360408301856136e2565b81810360608301526153a5818461532b565b905095945050505050565b6000815190506153bf816133f2565b92915050565b6000602082840312156153db576153da6133bc565b5b60006153e9848285016153b0565b9150509291505056fe68747470733a2f2f6e747063616e6973746572732e6e66746170692e6172742f6d6574612f0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a26469706673582212203bb2e1316a3098df49e16130a3af661a680c2c7261b96da8e74ad236c4f1f4b164736f6c63430008100033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.