ETH Price: $2,752.90 (+4.87%)
Gas: 1.75 Gwei

Token

Sons Of Mars (SOM)
 

Overview

Max Total Supply

698 SOM

Holders

141

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 SOM
0xa5016D2C1A007D1bd18667d788ab2A1f23d2af46
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
SOMFactory

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 26 : Som.sol
// SPDX-License-Identifier: MIT
/*
    SOMFactory / 2022
*/
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts-upgradeable/interfaces/IERC2981Upgradeable.sol";
import "./Coward.sol";

contract SOMFactory is Initializable, ERC721EnumerableUpgradeable, OwnableUpgradeable, IERC2981Upgradeable {
    address public CowardAddress;

    using Counters for Counters.Counter;

    bool private isInitialized;

    Counters.Counter private _tokenIds;

    struct SOM {
        uint256 tokenId;
        uint256 state;
    }
    
    address public adminAddress;
    uint256 public constant DENOMINATOR = 100;
    uint256 public TotalMintCount = 0;

    //Variables for Mint logic
    uint256 public MINT_PRICE = 2500000000000000;
    // uint256 public MINT_PRICE = 0;
    address public BankAddress;
    address public devAddress;

    //Variables for Mint logic 
    uint256[1001] private Randomorder;
    mapping(address => uint256) public NFTcountPerAddress;
    mapping(address => bool) public WhiteList;

    //Token URIs
    string public _baseTokenURI;
    string public _unrevealedURI;

    bool public isRevealed = false;
    bool public PublicSaleStarted = false;

    //Variables for Game
    mapping(uint256 => SOM) public soms;

    event SOMMinted();

    function initialize(
        string memory baseTokenURI_,
        string memory unrevealedURI_,
        address _adminAddress,
        address _BankAddress,
        address _devAddress,
        uint256[] memory randomorder_
    ) public initializer {
        __ERC721_init("Sons Of Mars", "SOM");
        __Ownable_init();
        _baseTokenURI = baseTokenURI_;
        _unrevealedURI = unrevealedURI_;
        isInitialized = true;
        adminAddress = _adminAddress;
        BankAddress = _BankAddress;
        devAddress = _devAddress;
        
        for (uint256 i = 0 ; i < randomorder_.length; i ++) {
            Randomorder[i] = randomorder_[i];
        }
    }

    
    modifier onlySOM() {
        require(
            adminAddress == msg.sender || owner() == msg.sender || CowardAddress == msg.sender, "RNG: Caller is not the SOM address"
        );
        _;
    }

    function isInitialize() external view returns(bool) {
        return isInitialized;
    }

    //Basical settings

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

    // function setBaseURI(string calldata _newURI) external onlySOM {
    //     _baseTokenURI = _newURI;
    // }

    // function setAdminAddress(address _address) external onlySOM {
    //     adminAddress = _address;
    // }

    // function setMintPrice(uint256 _price) external onlySOM {
    //     MINT_PRICE = _price;
    // }

    function setWhiteList(address[] memory _addresses) external onlySOM {
        for(uint256 i = 0; i < _addresses.length; i ++) {
            WhiteList[_addresses[i]] = true;
        }
    }

    function setStartPublicMint() external onlySOM {
        PublicSaleStarted = true;
    }

    function setRevealed() external onlySOM {
        isRevealed = true;
        CowardGambit(CowardAddress).endRound();
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        string memory currentBaseURI;
        if(isRevealed == true) {
            currentBaseURI = _baseURI();
        }
        else {
            currentBaseURI = _unrevealedURI;
            return currentBaseURI;
        }
        
        return bytes(currentBaseURI).length > 0
            ? string(abi.encodePacked(currentBaseURI, Strings.toString((Randomorder[tokenId - 1] - 1) * 19 + soms[tokenId].state), "")) : "";
    }

    //for Coward contract

    function setCowardAddress(address _address) external onlySOM {
        CowardAddress = _address;
    }

    function getSOMarray(uint256 _tokenId) onlySOM public view returns (uint256) {
        return soms[_tokenId].state;
    }

    function setSOMarray(uint256 _tokenId, uint256 _state) onlySOM public {
        soms[_tokenId].state = _state;
    }

    //Mint logic

    function mint(uint256 _mintAmount) external payable {
        require(_mintAmount + totalSupply() < 1001, "Overflow amount!");
        if(PublicSaleStarted == false) {
            require(WhiteList[msg.sender] == true, "You didn't join WhiteList!");
        }

        uint256 restAmount = 0;
        if(msg.sender != adminAddress) {
            require(msg.value >= MINT_PRICE * _mintAmount, "Invalid Amount");
            require(NFTcountPerAddress[msg.sender] + _mintAmount < 4, "Can't mint over 3 NFTs!");
            restAmount = msg.value - MINT_PRICE * _mintAmount;
            payable(BankAddress).transfer(MINT_PRICE * _mintAmount * 95 / DENOMINATOR);
            payable(devAddress).transfer(MINT_PRICE * _mintAmount * 5 / DENOMINATOR);
            payable(msg.sender).transfer(restAmount);
        }

        for (uint256 k = 0; k < _mintAmount; k++) {

            _tokenIds.increment();
            uint256 tokenId = _tokenIds.current();
            _safeMint(msg.sender, tokenId);
            soms[tokenId] = SOM({
                tokenId: tokenId,
                state: 1
            });

            TotalMintCount ++;
            CowardGambit(CowardAddress).setJoinItems(soms[tokenId].tokenId, soms[tokenId].state);
            NFTcountPerAddress[msg.sender] ++;
        }

        emit SOMMinted();
    }

    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override
    returns (address receiver, uint256 royaltyAmount)
    {
        uint256 payout = (_salePrice * 10) / DENOMINATOR;
        // emit RoyaltyInfo_Secondary(_recipient, payout, _tokenId);
        return (BankAddress, payout);
    }

    function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(ERC721EnumerableUpgradeable, IERC165Upgradeable)
    returns (bool)
    {
        return (
        interfaceId == type(IERC2981Upgradeable).interfaceId ||
        super.supportsInterface(interfaceId)
        );
    }

    function Burn(uint256 _tokenId) public {
        _burn(_tokenId);
    }
    
    function fetchSOMs() external view returns (SOM[] memory) {
        uint256 itemCount = _tokenIds.current(); 
        SOM[] memory items = new SOM[](itemCount);

        for (uint256 i = 0; i < itemCount; i++) {
            if(soms[i + 1].state == 20) continue;
            SOM memory currentItem = soms[i + 1];
            items[i] = currentItem;
        }
        return items;
    }
    function fetchMySOMs(address _address) external view returns(SOM[] memory) {

        uint256 itemCount = 0;
        for(uint256 i = 0; i < _tokenIds.current(); i++) {
            if(soms[i + 1].state == 20) continue;
            address owner = ownerOf(i + 1);
            if(owner == _address) itemCount ++;
        }

        SOM[] memory myItems = new SOM[](itemCount);
        
        itemCount = 0;
        for (uint256 i = 0; i < _tokenIds.current(); i++) {
            if(soms[i + 1].state == 20) continue;
            address owner = ownerOf(i + 1);
            if(owner == _address) {
                SOM memory item = soms[i + 1];
                myItems[itemCount ++] = item;
            }
        }
        return myItems;
    }
}

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

pragma solidity ^0.8.4;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./Som.sol";
import "./RandomNumber.sol";

contract CowardGambit is Initializable, OwnableUpgradeable {
    address public adminAddress;
    address public randomNumberAddress;
    address public SomAddress;
    address public ownerAddress;

    bool public isRandomNumber;
    uint256 public randomNumber;
    uint256 public constant DENOMINATOR = 100;

    bool public roundStarted = false;

    struct SOM {
        uint256 tokenId;
        uint256 state;
    }

    struct Round {
        uint256 roundId;
        uint256 deathPercent;
    }

    mapping(uint256 => Round) public rounds;
    
    SOM[] public joinItems;
    SOM[] public Coward;
    SOM[] public Mars;

    uint256 public currentRoundId = 0;
    uint256 public TimeLineID = 0;
    uint256 public ROUND_COUNT = 5;

    uint256 public MainWinner = 0;
    uint256 public CowardIndex = 0;
    // mapping(uint256 => uint256) public CowardTokenIDs;
    uint256[] public CowardTokenIDs;
    bool[1001] public CowardFlg;
    bool[1001] public MarsFlg;
    bool public CowardHasWinner = true;
    uint256 public CowardWinner = 0;
    bool public CowardFinished = false;
    bool public MarsFinished = false;


    event setRandomNumber();

    function setSOMAddress(address _address) external onlySOM {
        SomAddress = _address;        
    }
    
    function numbersDrawn(
        uint256 _randomNumber
    )
        external
    {
        randomNumber = _randomNumber;
        isRandomNumber = true;
        emit setRandomNumber();
    }

    function initialize(
        address _randomNumberAddress,
        address _adminAddress
    ) public initializer {
        __Ownable_init();
        randomNumberAddress = _randomNumberAddress;
        adminAddress = _adminAddress;
        ownerAddress = msg.sender;
        for (uint256 i = 0; i < ROUND_COUNT; i++) {
            rounds[i + 1].roundId = i + 1;
            if(i == 0) rounds[i + 1].deathPercent = 20;
            if(i == 1) rounds[i + 1].deathPercent = 25;
            if(i == 2) rounds[i + 1].deathPercent = 33;
            if(i == 3) rounds[i + 1].deathPercent = 50;
            if(i == 4) rounds[i + 1].deathPercent = 75;
        }
    }

    modifier onlySOM() {
        require(
            adminAddress == msg.sender || ownerAddress == msg.sender || SomAddress == msg.sender, "RNG: Caller is not the SOM address"
        );
        _;
    }

    function setJoinItems(uint256 _tokenId, uint256 _state) external onlySOM {
        joinItems.push(SOM({
            tokenId: _tokenId,
            state: _state
        }));
    }

    function endRound() external onlySOM {
        require(currentRoundId <= ROUND_COUNT + 1, "Game Finished!");
        //require(isRandomNumber, "Did not get random number");
        TimeLineID ++;
        updateCowardList();
        if(currentRoundId == 0) {
            isRandomNumber = false;
            MainWinner = 0;
            currentRoundId++;
            
            RandomGenerator(randomNumberAddress).requestRandomNumber();
        } else if(currentRoundId == 6) {
            uint256 index = randomNumber % joinItems.length;
            MainWinner = joinItems[index].tokenId;
            if(SOMFactory(SomAddress).getSOMarray(MainWinner) == 17) {
                SOMFactory(SomAddress).setSOMarray(MainWinner, 19);
            } else {
                SOMFactory(SomAddress).setSOMarray(MainWinner, 18);
            }
            joinItems[index] = joinItems[joinItems.length - 1];
            joinItems.pop();
            uint256 deathAmount = joinItems.length;
            for(uint256 i = 0; i < deathAmount; i ++) {
                uint256 dead_index = randomNumber % joinItems.length;
                if(SOMFactory(SomAddress).getSOMarray(joinItems[dead_index].tokenId) != 17) {
                    SOMFactory(SomAddress).setSOMarray(joinItems[dead_index].tokenId, 12);
                }
                joinItems[dead_index] = joinItems[joinItems.length - 1];
                joinItems.pop();
            }
            joinItems.push(SOM({
                tokenId: MainWinner,
                state: 1
            }));
        } else {
            uint256 deathAmount = uint256(joinItems.length * rounds[currentRoundId].deathPercent / DENOMINATOR);
            for (uint256 i = 0; i < deathAmount; i ++) {
                uint256 index = randomNumber % joinItems.length;
                if(currentRoundId == 1) SOMFactory(SomAddress).setSOMarray(joinItems[index].tokenId, 6);
                if(currentRoundId == 2) SOMFactory(SomAddress).setSOMarray(joinItems[index].tokenId, 5);
                if(currentRoundId == 3) {
                    if(i < deathAmount / 2) SOMFactory(SomAddress).setSOMarray(joinItems[index].tokenId, 8);
                    else SOMFactory(SomAddress).setSOMarray(joinItems[index].tokenId, 7);
                }
                if(currentRoundId == 4) {
                    if(i < deathAmount / 2) SOMFactory(SomAddress).setSOMarray(joinItems[index].tokenId, 9);
                    else SOMFactory(SomAddress).setSOMarray(joinItems[index].tokenId, 10);
                }
                if(currentRoundId == 5) {
                    if(i < deathAmount / 2) SOMFactory(SomAddress).setSOMarray(joinItems[index].tokenId, 3);
                    else SOMFactory(SomAddress).setSOMarray(joinItems[index].tokenId, 11);
                }
                joinItems[index] = joinItems[joinItems.length - 1];
                joinItems.pop();
            }

            currentRoundId ++;
        }
        roundStarted = false;
    }

    function setCoward(uint256 _tokenId) external {
        require(msg.sender == SOMFactory(SomAddress).ownerOf(_tokenId), "not yours");
        require(currentRoundId != 0, "Can't join Coward!");
        require(SOMFactory(SomAddress).getSOMarray(_tokenId) != 15, "Already Joined!");
        require(CowardFlg[_tokenId] == false, "Already joined!");
        CowardFlg[_tokenId] = true;
        CowardTokenIDs.push(_tokenId);
    }

    function updateCowardList() public {
        for(uint256 i = CowardIndex; i < CowardTokenIDs.length; i ++) {
            Coward.push(SOM({
                tokenId: CowardTokenIDs[i],
                state: 15
            }));
            SOMFactory(SomAddress).setSOMarray(CowardTokenIDs[i], 15);
            for (uint256 j = 0; j < joinItems.length; j ++) {
                if (joinItems[j].tokenId == CowardTokenIDs[i]) {
                    joinItems[j] = joinItems[joinItems.length - 1];
                    joinItems.pop();
                    break;
                }
            }
        }
        CowardIndex = CowardTokenIDs.length;
    }

    function setFinishCoward() external onlySOM {
        CowardFinished = true;
        if(Coward.length > 200) {
            CowardHasWinner = false;
        } else {
            uint256 index = randomNumber % Coward.length;
            CowardWinner = Coward[index].tokenId;
            SOMFactory(SomAddress).setSOMarray(CowardWinner, 16);
        }
    }

    function setMars(uint256 _tokenId) external {
        require(MarsFlg[_tokenId] == false, "Already joined!");
        MarsFlg[_tokenId] = true;
        uint256 state = SOMFactory(SomAddress).getSOMarray(_tokenId);
        require(msg.sender == SOMFactory(SomAddress).ownerOf(_tokenId), "not yours");
        require(state != 1 && state != 15 && currentRoundId == 6, "Can't join Mars' Gambit!");
        Mars.push(SOM({
            tokenId: _tokenId,
            state: state
        }));
    }

    function setFinishMars() external onlySOM {
        uint256 burnAmount = uint256(Mars.length * 90 / DENOMINATOR);
        MarsFinished = true;

        for (uint256 i = 0; i < burnAmount; i ++) {
            uint256 index = randomNumber % Mars.length;
                SOMFactory(SomAddress).Burn(Mars[index].tokenId);
                SOMFactory(SomAddress).setSOMarray(Mars[index].tokenId, 20);
                Mars[index] = Mars[Mars.length - 1];
                Mars.pop();
        }

        for (uint256 i = 0; i < Mars.length; i ++) {
            SOMFactory(SomAddress).setSOMarray(Mars[i].tokenId, 17);
            Mars[i].state = 17;
            joinItems.push(Mars[i]);
        }
    }

    function fetchCowardAmount() external view returns(uint256) {
        return Coward.length;
    }
    
    function fetchMarsAmount() external view returns(uint256) {
        return Mars.length;
    }

    function fetchTotalAliveAmount() external view returns(uint256) {
        return joinItems.length;
    }
}

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

import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./Som.sol";
import "./Coward.sol";

contract RandomGenerator is VRFConsumerBase, Ownable {
    using Address for address;

    bytes32 internal keyHash;
    uint256 internal fee;

    address public SOMAddress;
    address public CowardAddress;

    bytes32 currentRequestID;

    mapping(bytes32 => uint256) public requestToRandom;
    mapping(bytes32 => bool) public hasReturned;

    /// @notice Event emitted when SOM address is changed
    event newSOM(address SOM);

    /// @notice Event emitted when chainlink verified random number arrived.
    event randomNumberArrived(
        bool arrived,
        uint256 randomNumber,
        bytes32 batchID
    );

    modifier onlySOM() {
        require(SOMAddress == msg.sender, "RNG: Caller is not the SOM address");
        _;
    }

    /**
     * Constructor inherits VRFConsumerBase
     *
     * Chainlink VRF Coordinator address:   0x271682DEB8C4E0901D1a1550aD2e64D568E69909
     * LINK token address:                  0x514910771af9ca656af840dff83e8264ecf986ca
     * Key Hash:                          0xff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92
     * Fee : 1000000000000000000 LINK
     */
    constructor(
        address _vrfCoordinator,
        address _link,
        bytes32 _keyHash,
        uint256 _fee
    )
        VRFConsumerBase(
            _vrfCoordinator,
            _link
        )
    {
        keyHash = _keyHash;
        fee = _fee;
    }

    /**
     * @dev Public function to request randomness and returns request Id. This function can be called by only apporved games.
     */
    function requestRandomNumber() public returns (bytes32 requestID) {
        require(
            LINK.balanceOf(address(this)) >= fee,
            "RandomNumberConsumer: Not enough LINK - fill contract with faucet"
        );

        uint256 prevRandomNumber = requestToRandom[currentRequestID];

        emit randomNumberArrived(false, prevRandomNumber, currentRequestID);

        currentRequestID = requestRandomness(keyHash, fee);
        hasReturned[currentRequestID] = false;

        return currentRequestID;
    }

    /**
     * @dev Callback function used by VRF Coordinator. This function sets new random number with unique request Id.
     * @param _randomness Random Number
     */
    function fulfillRandomness(bytes32 requestID, uint256 _randomness)
        internal
        override
    {
        requestToRandom[requestID] = _randomness;
        hasReturned[requestID] = true;
        CowardGambit(CowardAddress).numbersDrawn(
            _randomness
        );
        emit randomNumberArrived(true, _randomness, requestID);
    }

    /**
     * @dev Public function to return verified random number. This function can be called by only SOM.
     * @param _reqeustId Batching Id of random number.
     */
    function getVerifiedRandomNumber(bytes32 _reqeustId)
        public
        view
        onlySOM
        returns (uint256)
    {
        require(
            hasReturned[_reqeustId] == true,
            "RandomGenerator: Random number is not arrived yet"
        );
        return requestToRandom[_reqeustId];
    }

    /**
     * @dev Public function to set SOM address. This function can be called by only owner.
     * @param _SOMAddr Address of SOM
     */
    function setSOMAddress(address _SOMAddr) public onlyOwner {
        require(
            _SOMAddr.isContract() == true,
            "RandomGenerator: This is not a Contract Address"
        );
        SOMAddress = _SOMAddr;
    }

    function setCowardAddress(address _address) public onlyOwner {
        require(
            _address.isContract() == true,
            "RandomGenerator: This is not a Contract Address"
        );
        CowardAddress = _address;
    }
}

File 4 of 26 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 5 of 26 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.1) (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.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    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.
     *
     * 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.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * 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.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    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.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized < type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Internal function that returns the initialized version. Returns `_initialized`
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Internal function that returns the initialized version. Returns `_initializing`
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

File 6 of 26 : 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;
}

File 7 of 26 : 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 8 of 26 : ERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.1) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721Upgradeable.sol";
import "./IERC721EnumerableUpgradeable.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable {
    function __ERC721Enumerable_init() internal onlyInitializing {
    }

    function __ERC721Enumerable_init_unchained() internal onlyInitializing {
    }
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Upgradeable.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721EnumerableUpgradeable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and 'to' cannot be the zero address at the same time.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Hook that is called before any batch token transfer. For now this is limited
     * to batch minting by the {ERC721Consecutive} extension.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeConsecutiveTokenTransfer(
        address,
        address,
        uint256,
        uint96 size
    ) internal virtual override {
        // We revert because enumerability is not supported with consecutive batch minting.
        // This conditional is only needed to silence spurious warnings about unreachable code.
        if (size > 0) {
            revert("ERC721Enumerable: consecutive transfers not supported");
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721Upgradeable.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721Upgradeable.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }

    /**
     * @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[46] private __gap;
}

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

pragma solidity ^0.8.0;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constructor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.)
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {
  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBase expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomness the VRF output
   */
  function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual;

  /**
   * @dev In order to keep backwards compatibility we have kept the user
   * seed field around. We remove the use of it because given that the blockhash
   * enters later, it overrides whatever randomness the used seed provides.
   * Given that it adds no security, and can easily lead to misunderstandings,
   * we have removed it from usage and can now provide a simpler API.
   */
  uint256 private constant USER_SEED_PLACEHOLDER = 0;

  /**
   * @notice requestRandomness initiates a request for VRF output given _seed
   *
   * @dev The fulfillRandomness method receives the output, once it's provided
   * @dev by the Oracle, and verified by the vrfCoordinator.
   *
   * @dev The _keyHash must already be registered with the VRFCoordinator, and
   * @dev the _fee must exceed the fee specified during registration of the
   * @dev _keyHash.
   *
   * @dev The _seed parameter is vestigial, and is kept only for API
   * @dev compatibility with older versions. It can't *hurt* to mix in some of
   * @dev your own randomness, here, but it's not necessary because the VRF
   * @dev oracle will mix the hash of the block containing your request into the
   * @dev VRF seed it ultimately uses.
   *
   * @param _keyHash ID of public key against which randomness is generated
   * @param _fee The amount of LINK to send with the request
   *
   * @return requestId unique ID for this request
   *
   * @dev The returned requestId can be used to distinguish responses to
   * @dev concurrent requests. It is passed as the first argument to
   * @dev fulfillRandomness.
   */
  function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
    // This is the seed passed to VRFCoordinator. The oracle will mix this with
    // the hash of the block containing this request to obtain the seed/input
    // which is finally passed to the VRF cryptographic machinery.
    uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
    // nonces[_keyHash] must stay in sync with
    // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
    // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
    // This provides protection against the user repeating their input seed,
    // which would result in a predictable/duplicate output, if multiple such
    // requests appeared in the same block.
    nonces[_keyHash] = nonces[_keyHash] + 1;
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface internal immutable LINK;
  address private immutable vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 => uint256) /* keyHash */ /* nonce */
    private nonces;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   * @param _link address of LINK token contract
   *
   * @dev https://docs.chain.link/docs/link-token-contracts
   */
  constructor(address _vrfCoordinator, address _link) {
    vrfCoordinator = _vrfCoordinator;
    LINK = LinkTokenInterface(_link);
  }

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external {
    require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
    fulfillRandomness(requestId, randomness);
  }
}

File 13 of 26 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.1) (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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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 14 of 26 : 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 26 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 16 of 26 : 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 17 of 26 : ERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.1) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721Upgradeable.sol";
import "./IERC721ReceiverUpgradeable.sol";
import "./extensions/IERC721MetadataUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/StringsUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
    using AddressUpgradeable for address;
    using StringsUpgradeable for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

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

    function __ERC721_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 ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @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) {
        _requireMinted(tokenId);

        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 overridden 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 = ERC721Upgradeable.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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), "ERC721: caller is not token owner or 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), "ERC721: caller is not token owner or 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, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

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

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721Upgradeable.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721Upgradeable.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), 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 {
        require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721ReceiverUpgradeable.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any (single) token transfer. This includes minting and burning.
     * See {_beforeConsecutiveTokenTransfer}.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any (single) transfer of tokens. This includes minting and burning.
     * See {_afterConsecutiveTokenTransfer}.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called before consecutive token transfers.
     * Calling conditions are similar to {_beforeTokenTransfer}.
     *
     * The default implementation include balances updates that extensions such as {ERC721Consecutive} cannot perform
     * directly.
     */
    function _beforeConsecutiveTokenTransfer(
        address from,
        address to,
        uint256, /*first*/
        uint96 size
    ) internal virtual {
        if (from != address(0)) {
            _balances[from] -= size;
        }
        if (to != address(0)) {
            _balances[to] += size;
        }
    }

    /**
     * @dev Hook that is called after consecutive token transfers.
     * Calling conditions are similar to {_afterTokenTransfer}.
     */
    function _afterConsecutiveTokenTransfer(
        address, /*from*/
        address, /*to*/
        uint256, /*first*/
        uint96 /*size*/
    ) internal virtual {}

    /**
     * @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[44] private __gap;
}

File 18 of 26 : 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 19 of 26 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract VRFRequestIDBase {
  /**
   * @notice returns the seed which is actually input to the VRF coordinator
   *
   * @dev To prevent repetition of VRF output due to repetition of the
   * @dev user-supplied seed, that seed is combined in a hash with the
   * @dev user-specific nonce, and the address of the consuming contract. The
   * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
   * @dev the final seed, but the nonce does protect against repetition in
   * @dev requests which are included in a single block.
   *
   * @param _userSeed VRF seed input provided by user
   * @param _requester Address of the requesting contract
   * @param _nonce User-specific nonce at the time of the request
   */
  function makeVRFInputSeed(
    bytes32 _keyHash,
    uint256 _userSeed,
    address _requester,
    uint256 _nonce
  ) internal pure returns (uint256) {
    return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
  }

  /**
   * @notice Returns the id for this request
   * @param _keyHash The serviceAgreement ID to be used for this request
   * @param _vRFInputSeed The seed to be passed directly to the VRF
   * @return The id for this request
   *
   * @dev Note that _vRFInputSeed is not the seed passed by the consuming
   * @dev contract, but the one generated by makeVRFInputSeed
   */
  function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) {
    return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
  }
}

File 20 of 26 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface LinkTokenInterface {
  function allowance(address owner, address spender) external view returns (uint256 remaining);

  function approve(address spender, uint256 value) external returns (bool success);

  function balanceOf(address owner) external view returns (uint256 balance);

  function decimals() external view returns (uint8 decimalPlaces);

  function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);

  function increaseApproval(address spender, uint256 subtractedValue) external;

  function name() external view returns (string memory tokenName);

  function symbol() external view returns (string memory tokenSymbol);

  function totalSupply() external view returns (uint256 totalTokensIssued);

  function transfer(address to, uint256 value) external returns (bool success);

  function transferAndCall(
    address to,
    uint256 value,
    bytes calldata data
  ) external returns (bool success);

  function transferFrom(
    address from,
    address to,
    uint256 value
  ) external returns (bool success);
}

File 21 of 26 : IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.1) (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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 22 of 26 : 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 23 of 26 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.1) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/MathUpgradeable.sol";

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

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

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

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

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

File 24 of 26 : 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 25 of 26 : IERC721ReceiverUpgradeable.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 IERC721ReceiverUpgradeable {
    /**
     * @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 26 of 26 : MathUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0-rc.1) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "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":[],"name":"SOMMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BankAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"CowardAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"NFTcountPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PublicSaleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TotalMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WhiteList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"fetchMySOMs","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"state","type":"uint256"}],"internalType":"struct SOMFactory.SOM[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fetchSOMs","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"state","type":"uint256"}],"internalType":"struct SOMFactory.SOM[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getSOMarray","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI_","type":"string"},{"internalType":"string","name":"unrevealedURI_","type":"string"},{"internalType":"address","name":"_adminAddress","type":"address"},{"internalType":"address","name":"_BankAddress","type":"address"},{"internalType":"address","name":"_devAddress","type":"address"},{"internalType":"uint256[]","name":"randomorder_","type":"uint256[]"}],"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":"isInitialize","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"_address","type":"address"}],"name":"setCowardAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_state","type":"uint256"}],"name":"setSOMarray","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStartPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"setWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"soms","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"state","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","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":"","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"}]

6080604052600060fe556608e1bc9bf0400060ff5560006104ef60006101000a81548160ff02191690831515021790555060006104ef60016101000a81548160ff02191690831515021790555034801561005857600080fd5b50615f1380620000696000396000f3fe60806040526004361061027d5760003560e01c8063749d1b751161014f578063b118d1ac116100c1578063cfc86f7b1161007a578063cfc86f7b146109c7578063cfde76f3146109f2578063df24805d14610a1d578063e985e9c514610a48578063f2fde38b14610a85578063fc6f946814610aae5761027d565b8063b118d1ac146108b9578063b88d4fde146108d0578063b90306ad146108f9578063c002d23d14610922578063c1b2ced41461094d578063c87b56dd1461098a5761027d565b8063918f867411610113578063918f8674146107ca5780639239e5f9146107f557806395d89b411461081e5780639e1f734714610849578063a0712d6814610874578063a22cb465146108905761027d565b8063749d1b75146106d0578063775b9c131461070d5780637f61feaf1461073657806387f32cce146107615780638da5cb5b1461079f5761027d565b80633ad10ef6116101f357806354214f69116101ac57806354214f69146105ae5780636352211e146105d9578063696b0c77146106165780636bc201571461063f57806370a082311461067c578063715018a6146106b95761027d565b80633ad10ef6146104a05780633bd64968146104cb57806342842e0e146104e25780634b2b15ef1461050b5780634d3139ab146105345780634f6ccce7146105715761027d565b806318160ddd1161024557806318160ddd1461037b578063183d6322146103a6578063232bce6e146103d157806323b872dd146103fc5780632a55205a146104255780632f745c59146104635761027d565b806301ffc9a7146102825780630375d3f0146102bf57806306fdde03146102ea578063081812fc14610315578063095ea7b314610352575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190614875565b610ad9565b6040516102b69190614fd9565b60405180910390f35b3480156102cb57600080fd5b506102d4610b53565b6040516102e19190615311565b60405180910390f35b3480156102f657600080fd5b506102ff610b59565b60405161030c919061500f565b60405180910390f35b34801561032157600080fd5b5061033c600480360381019061033791906149b0565b610beb565b6040516103499190614f27565b60405180910390f35b34801561035e57600080fd5b50610379600480360381019061037491906147ec565b610c31565b005b34801561038757600080fd5b50610390610d49565b60405161039d9190615311565b60405180910390f35b3480156103b257600080fd5b506103bb610d56565b6040516103c89190614f27565b60405180910390f35b3480156103dd57600080fd5b506103e6610d7d565b6040516103f39190614fb7565b60405180910390f35b34801561040857600080fd5b50610423600480360381019061041e91906146d6565b610ea1565b005b34801561043157600080fd5b5061044c600480360381019061044791906149dd565b610f01565b60405161045a929190614f8e565b60405180910390f35b34801561046f57600080fd5b5061048a600480360381019061048591906147ec565b610f52565b6040516104979190615311565b60405180910390f35b3480156104ac57600080fd5b506104b5610ff7565b6040516104c29190614f27565b60405180910390f35b3480156104d757600080fd5b506104e061101e565b005b3480156104ee57600080fd5b50610509600480360381019061050491906146d6565b6111e3565b005b34801561051757600080fd5b50610532600480360381019061052d91906149dd565b611203565b005b34801561054057600080fd5b5061055b60048036038101906105569190614669565b611348565b6040516105689190615311565b60405180910390f35b34801561057d57600080fd5b50610598600480360381019061059391906149b0565b611361565b6040516105a59190615311565b60405180910390f35b3480156105ba57600080fd5b506105c36113d2565b6040516105d09190614fd9565b60405180910390f35b3480156105e557600080fd5b5061060060048036038101906105fb91906149b0565b6113e6565b60405161060d9190614f27565b60405180910390f35b34801561062257600080fd5b5061063d60048036038101906106389190614669565b61146d565b005b34801561064b57600080fd5b5061066660048036038101906106619190614669565b6115d6565b6040516106739190614fd9565b60405180910390f35b34801561068857600080fd5b506106a3600480360381019061069e9190614669565b6115f7565b6040516106b09190615311565b60405180910390f35b3480156106c557600080fd5b506106ce6116af565b005b3480156106dc57600080fd5b506106f760048036038101906106f291906149b0565b6116c3565b6040516107049190615311565b60405180910390f35b34801561071957600080fd5b50610734600480360381019061072f919061482c565b611809565b005b34801561074257600080fd5b5061074b6119c4565b6040516107589190614fd9565b60405180910390f35b34801561076d57600080fd5b50610788600480360381019061078391906149b0565b6119d8565b60405161079692919061532c565b60405180910390f35b3480156107ab57600080fd5b506107b46119fd565b6040516107c19190614f27565b60405180910390f35b3480156107d657600080fd5b506107df611a27565b6040516107ec9190615311565b60405180910390f35b34801561080157600080fd5b5061081c600480360381019061081791906148cf565b611a2c565b005b34801561082a57600080fd5b50610833611d4a565b604051610840919061500f565b60405180910390f35b34801561085557600080fd5b5061085e611ddc565b60405161086b9190614f27565b60405180910390f35b61088e600480360381019061088991906149b0565b611e02565b005b34801561089c57600080fd5b506108b760048036038101906108b291906147ac565b61239e565b005b3480156108c557600080fd5b506108ce6123b4565b005b3480156108dc57600080fd5b506108f760048036038101906108f29190614729565b6124f7565b005b34801561090557600080fd5b50610920600480360381019061091b91906149b0565b612559565b005b34801561092e57600080fd5b50610937612565565b6040516109449190615311565b60405180910390f35b34801561095957600080fd5b50610974600480360381019061096f9190614669565b61256b565b6040516109819190614fb7565b60405180910390f35b34801561099657600080fd5b506109b160048036038101906109ac91906149b0565b6127a3565b6040516109be919061500f565b60405180910390f35b3480156109d357600080fd5b506109dc612961565b6040516109e9919061500f565b60405180910390f35b3480156109fe57600080fd5b50610a076129f0565b604051610a14919061500f565b60405180910390f35b348015610a2957600080fd5b50610a32612a7f565b604051610a3f9190614fd9565b60405180910390f35b348015610a5457600080fd5b50610a6f6004803603810190610a6a9190614696565b612a96565b604051610a7c9190614fd9565b60405180910390f35b348015610a9157600080fd5b50610aac6004803603810190610aa79190614669565b612b2a565b005b348015610aba57600080fd5b50610ac3612bae565b604051610ad09190614f27565b60405180910390f35b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b4c5750610b4b82612bd4565b5b9050919050565b60fe5481565b606060658054610b689061569a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b949061569a565b8015610be15780601f10610bb657610100808354040283529160200191610be1565b820191906000526020600020905b815481529060010190602001808311610bc457829003601f168201915b5050505050905090565b6000610bf682612c4e565b6069600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c3c826113e6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca490615291565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ccc612c99565b73ffffffffffffffffffffffffffffffffffffffff161480610cfb5750610cfa81610cf5612c99565b612a96565b5b610d3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d31906152b1565b60405180910390fd5b610d448383612ca1565b505050565b6000609980549050905090565b61010060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606000610d8b60fc612d5a565b905060008167ffffffffffffffff811115610da957610da8615862565b5b604051908082528060200260200182016040528015610de257816020015b610dcf614327565b815260200190600190039081610dc75790505b50905060005b82811015610e985760146104f06000600184610e0491906154b0565b8152602001908152602001600020600101541415610e2157610e85565b60006104f06000600184610e3591906154b0565b815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905080838381518110610e7857610e77615833565b5b6020026020010181905250505b8080610e90906156fd565b915050610de8565b50809250505090565b610eb2610eac612c99565b82612d68565b610ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee890615051565b60405180910390fd5b610efc838383612dfd565b505050565b60008060006064600a85610f159190615537565b610f1f9190615506565b905061010060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b6000610f5d836115f7565b8210610f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9590615071565b60405180910390fd5b609760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff1660fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806110ac57503373ffffffffffffffffffffffffffffffffffffffff166110946119fd565b73ffffffffffffffffffffffffffffffffffffffff16145b8061110457503373ffffffffffffffffffffffffffffffffffffffff1660fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b611143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113a906151d1565b60405180910390fd5b60016104ef60006101000a81548160ff02191690831515021790555060fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663749aa2d96040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156111c957600080fd5b505af11580156111dd573d6000803e3d6000fd5b50505050565b6111fe838383604051806020016040528060008152506124f7565b505050565b3373ffffffffffffffffffffffffffffffffffffffff1660fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061129157503373ffffffffffffffffffffffffffffffffffffffff166112796119fd565b73ffffffffffffffffffffffffffffffffffffffff16145b806112e957503373ffffffffffffffffffffffffffffffffffffffff1660fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b611328576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131f906151d1565b60405180910390fd5b806104f06000848152602001908152602001600020600101819055505050565b6104eb6020528060005260406000206000915090505481565b600061136b610d49565b82106113ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a3906152d1565b60405180910390fd5b609982815481106113c0576113bf615833565b5b90600052602060002001549050919050565b6104ef60009054906101000a900460ff1681565b6000806113f2836130f3565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611464576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145b90615271565b60405180910390fd5b80915050919050565b3373ffffffffffffffffffffffffffffffffffffffff1660fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806114fb57503373ffffffffffffffffffffffffffffffffffffffff166114e36119fd565b73ffffffffffffffffffffffffffffffffffffffff16145b8061155357503373ffffffffffffffffffffffffffffffffffffffff1660fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b611592576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611589906151d1565b60405180910390fd5b8060fb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6104ec6020528060005260406000206000915054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165f90615191565b60405180910390fd5b606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6116b7613130565b6116c160006131ae565b565b60003373ffffffffffffffffffffffffffffffffffffffff1660fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061175357503373ffffffffffffffffffffffffffffffffffffffff1661173b6119fd565b73ffffffffffffffffffffffffffffffffffffffff16145b806117ab57503373ffffffffffffffffffffffffffffffffffffffff1660fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b6117ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e1906151d1565b60405180910390fd5b6104f06000838152602001908152602001600020600101549050919050565b3373ffffffffffffffffffffffffffffffffffffffff1660fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061189757503373ffffffffffffffffffffffffffffffffffffffff1661187f6119fd565b73ffffffffffffffffffffffffffffffffffffffff16145b806118ef57503373ffffffffffffffffffffffffffffffffffffffff1660fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b61192e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611925906151d1565b60405180910390fd5b60005b81518110156119c05760016104ec600084848151811061195457611953615833565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080806119b8906156fd565b915050611931565b5050565b6104ef60019054906101000a900460ff1681565b6104f06020528060005260406000206000915090508060000154908060010154905082565b600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606481565b60008060019054906101000a900460ff16159050808015611a5d5750600160008054906101000a900460ff1660ff16105b80611a8a5750611a6c30613274565b158015611a895750600160008054906101000a900460ff1660ff16145b5b611ac9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac0906151b1565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015611b06576001600060016101000a81548160ff0219169083151502179055505b611b7a6040518060400160405280600c81526020017f536f6e73204f66204d61727300000000000000000000000000000000000000008152506040518060400160405280600381526020017f534f4d0000000000000000000000000000000000000000000000000000000000815250613297565b611b826132f4565b866104ed9080519060200190611b99929190614341565b50856104ee9080519060200190611bb1929190614341565b50600160fb60146101000a81548160ff0219169083151502179055508460fd60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508361010060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508261010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060005b8251811015611ce757828181518110611cb157611cb0615833565b5b6020026020010151610102826103e98110611ccf57611cce615833565b5b01819055508080611cdf906156fd565b915050611c95565b508015611d415760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051611d389190614ff4565b60405180910390a15b50505050505050565b606060668054611d599061569a565b80601f0160208091040260200160405190810160405280929190818152602001828054611d859061569a565b8015611dd25780601f10611da757610100808354040283529160200191611dd2565b820191906000526020600020905b815481529060010190602001808311611db557829003601f168201915b5050505050905090565b60fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6103e9611e0d610d49565b82611e1891906154b0565b10611e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4f90615251565b60405180910390fd5b600015156104ef60019054906101000a900460ff1615151415611f0a57600115156104ec60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611f09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f00906150d1565b60405180910390fd5b5b600060fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146121c0578160ff54611f6f9190615537565b341015611fb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa890615131565b60405180910390fd5b6004826104eb60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fff91906154b0565b1061203f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203690615031565b60405180910390fd5b8160ff5461204d9190615537565b346120589190615591565b905061010060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6064605f8560ff546120a99190615537565b6120b39190615537565b6120bd9190615506565b9081150290604051600060405180830381858888f193505050501580156120e8573d6000803e3d6000fd5b5061010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc606460058560ff546121389190615537565b6121429190615537565b61214c9190615506565b9081150290604051600060405180830381858888f19350505050158015612177573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156121be573d6000803e3d6000fd5b505b60005b8281101561236d576121d560fc61334d565b60006121e160fc612d5a565b90506121ed3382613363565b604051806040016040528082815260200160018152506104f06000838152602001908152602001600020600082015181600001556020820151816001015590505060fe6000815480929190612241906156fd565b919050555060fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637311a2fe6104f06000848152602001908152602001600020600001546104f06000858152602001908152602001600020600101546040518363ffffffff1660e01b81526004016122d192919061532c565b600060405180830381600087803b1580156122eb57600080fd5b505af11580156122ff573d6000803e3d6000fd5b505050506104eb60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190612354906156fd565b9190505550508080612365906156fd565b9150506121c3565b507f6e6a092e3ba0515ff690b237bea415e907993f64f9dbd92104214574548d25d660405160405180910390a15050565b6123b06123a9612c99565b8383613381565b5050565b3373ffffffffffffffffffffffffffffffffffffffff1660fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061244257503373ffffffffffffffffffffffffffffffffffffffff1661242a6119fd565b73ffffffffffffffffffffffffffffffffffffffff16145b8061249a57503373ffffffffffffffffffffffffffffffffffffffff1660fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b6124d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d0906151d1565b60405180910390fd5b60016104ef60016101000a81548160ff021916908315150217905550565b612508612502612c99565b83612d68565b612547576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253e90615051565b60405180910390fd5b612553848484846134ee565b50505050565b6125628161354a565b50565b60ff5481565b60606000805b61257b60fc612d5a565b8110156126245760146104f0600060018461259691906154b0565b81526020019081526020016000206001015414156125b357612611565b60006125ca6001836125c591906154b0565b6113e6565b90508473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561260f57828061260b906156fd565b9350505b505b808061261c906156fd565b915050612571565b5060008167ffffffffffffffff81111561264157612640615862565b5b60405190808252806020026020018201604052801561267a57816020015b612667614327565b81526020019060019003908161265f5790505b5090506000915060005b61268e60fc612d5a565b8110156127985760146104f060006001846126a991906154b0565b81526020019081526020016000206001015414156126c657612785565b60006126dd6001836126d891906154b0565b6113e6565b90508573ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156127835760006104f0600060018561272791906154b0565b815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905080848680612763906156fd565b97508151811061277657612775615833565b5b6020026020010181905250505b505b8080612790906156fd565b915050612684565b508092505050919050565b60606127ae82613694565b6127ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e490615231565b60405180910390fd5b6060600115156104ef60009054906101000a900460ff161515141561281b576128146136d5565b90506128b2565b6104ee80546128299061569a565b80601f01602080910402602001604051908101604052809291908181526020018280546128559061569a565b80156128a25780601f10612877576101008083540402835291602001916128a2565b820191906000526020600020905b81548152906001019060200180831161288557829003601f168201915b505050505090508091505061295c565b60008151116128d05760405180602001604052806000815250612958565b806129376104f0600086815260200190815260200160002060010154601360016101026001896129009190615591565b6103e9811061291257612911615833565b5b015461291e9190615591565b6129289190615537565b61293291906154b0565b613768565b604051602001612948929190614ef8565b6040516020818303038152906040525b9150505b919050565b6104ed805461296f9061569a565b80601f016020809104026020016040519081016040528092919081815260200182805461299b9061569a565b80156129e85780601f106129bd576101008083540402835291602001916129e8565b820191906000526020600020905b8154815290600101906020018083116129cb57829003601f168201915b505050505081565b6104ee80546129fe9061569a565b80601f0160208091040260200160405190810160405280929190818152602001828054612a2a9061569a565b8015612a775780601f10612a4c57610100808354040283529160200191612a77565b820191906000526020600020905b815481529060010190602001808311612a5a57829003601f168201915b505050505081565b600060fb60149054906101000a900460ff16905090565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612b32613130565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612ba2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b99906150b1565b60405180910390fd5b612bab816131ae565b50565b60fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612c475750612c46826138c9565b5b9050919050565b612c5781613694565b612c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8d90615271565b60405180910390fd5b50565b600033905090565b816069600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612d14836113e6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b600080612d74836113e6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612db65750612db58185612a96565b5b80612df457508373ffffffffffffffffffffffffffffffffffffffff16612ddc84610beb565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612e1d826113e6565b73ffffffffffffffffffffffffffffffffffffffff1614612e73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6a906150f1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ee3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eda90615151565b60405180910390fd5b612eee8383836139ab565b8273ffffffffffffffffffffffffffffffffffffffff16612f0e826113e6565b73ffffffffffffffffffffffffffffffffffffffff1614612f64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5b906150f1565b60405180910390fd5b6069600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001606860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46130ee838383613abf565b505050565b60006067600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b613138612c99565b73ffffffffffffffffffffffffffffffffffffffff166131566119fd565b73ffffffffffffffffffffffffffffffffffffffff16146131ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131a390615211565b60405180910390fd5b565b600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff166132e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132dd906152f1565b60405180910390fd5b6132f08282613ac4565b5050565b600060019054906101000a900460ff16613343576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333a906152f1565b60405180910390fd5b61334b613b45565b565b6001816000016000828254019250508190555050565b61337d828260405180602001604052806000815250613ba6565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156133f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133e790615171565b60405180910390fd5b80606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516134e19190614fd9565b60405180910390a3505050565b6134f9848484612dfd565b61350584848484613c01565b613544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161353b90615091565b60405180910390fd5b50505050565b6000613555826113e6565b9050613563816000846139ab565b61356c826113e6565b90506069600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506067600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461369081600084613abf565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166136b6836130f3565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60606104ed80546136e59061569a565b80601f01602080910402602001604051908101604052809291908181526020018280546137119061569a565b801561375e5780601f106137335761010080835404028352916020019161375e565b820191906000526020600020905b81548152906001019060200180831161374157829003601f168201915b5050505050905090565b606060008214156137b0576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506138c4565b600082905060005b600082146137e25780806137cb906156fd565b915050600a826137db9190615506565b91506137b8565b60008167ffffffffffffffff8111156137fe576137fd615862565b5b6040519080825280601f01601f1916602001820160405280156138305781602001600182028036833780820191505090505b5090505b600085146138bd576001826138499190615591565b9150600a856138589190615746565b603061386491906154b0565b60f81b81838151811061387a57613879615833565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856138b69190615506565b9450613834565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061399457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806139a457506139a382613d98565b5b9050919050565b6139b6838383613e02565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156139f9576139f481613e07565b613a38565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613a3757613a368382613e50565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613a7b57613a7681613fbd565b613aba565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613ab957613ab8828261408e565b5b5b505050565b505050565b600060019054906101000a900460ff16613b13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b0a906152f1565b60405180910390fd5b8160659080519060200190613b29929190614341565b508060669080519060200190613b40929190614341565b505050565b600060019054906101000a900460ff16613b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b8b906152f1565b60405180910390fd5b613ba4613b9f612c99565b6131ae565b565b613bb0838361410d565b613bbd6000848484613c01565b613bfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bf390615091565b60405180910390fd5b505050565b6000613c228473ffffffffffffffffffffffffffffffffffffffff16613274565b15613d8b578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613c4b612c99565b8786866040518563ffffffff1660e01b8152600401613c6d9493929190614f42565b602060405180830381600087803b158015613c8757600080fd5b505af1925050508015613cb857506040513d601f19601f82011682018060405250810190613cb591906148a2565b60015b613d3b573d8060008114613ce8576040519150601f19603f3d011682016040523d82523d6000602084013e613ced565b606091505b50600081511415613d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d2a90615091565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613d90565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b609980549050609a600083815260200190815260200160002081905550609981908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613e5d846115f7565b613e679190615591565b9050600060986000848152602001908152602001600020549050818114613f4c576000609760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080609760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816098600083815260200190815260200160002081905550505b6098600084815260200190815260200160002060009055609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001609980549050613fd19190615591565b90506000609a600084815260200190815260200160002054905060006099838154811061400157614000615833565b5b90600052602060002001549050806099838154811061402357614022615833565b5b906000526020600020018190555081609a600083815260200190815260200160002081905550609a600085815260200190815260200160002060009055609980548061407257614071615804565b5b6001900381819060005260206000200160009055905550505050565b6000614099836115f7565b905081609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806098600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561417d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614174906151f1565b60405180910390fd5b61418681613694565b156141c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016141bd90615111565b60405180910390fd5b6141d2600083836139ab565b6141db81613694565b1561421b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161421290615111565b60405180910390fd5b6001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461432360008383613abf565b5050565b604051806040016040528060008152602001600081525090565b82805461434d9061569a565b90600052602060002090601f01602090048101928261436f57600085556143b6565b82601f1061438857805160ff19168380011785556143b6565b828001600101855582156143b6579182015b828111156143b557825182559160200191906001019061439a565b5b5090506143c391906143c7565b5090565b5b808211156143e05760008160009055506001016143c8565b5090565b60006143f76143f28461537a565b615355565b9050808382526020820190508285602086028201111561441a57614419615896565b5b60005b8581101561444a57816144308882614548565b84526020840193506020830192505060018101905061441d565b5050509392505050565b6000614467614462846153a6565b615355565b9050808382526020820190508285602086028201111561448a57614489615896565b5b60005b858110156144ba57816144a08882614654565b84526020840193506020830192505060018101905061448d565b5050509392505050565b60006144d76144d2846153d2565b615355565b9050828152602081018484840111156144f3576144f261589b565b5b6144fe848285615658565b509392505050565b600061451961451484615403565b615355565b9050828152602081018484840111156145355761453461589b565b5b614540848285615658565b509392505050565b60008135905061455781615e81565b92915050565b600082601f83011261457257614571615891565b5b81356145828482602086016143e4565b91505092915050565b600082601f8301126145a05761459f615891565b5b81356145b0848260208601614454565b91505092915050565b6000813590506145c881615e98565b92915050565b6000813590506145dd81615eaf565b92915050565b6000815190506145f281615eaf565b92915050565b600082601f83011261460d5761460c615891565b5b813561461d8482602086016144c4565b91505092915050565b600082601f83011261463b5761463a615891565b5b813561464b848260208601614506565b91505092915050565b60008135905061466381615ec6565b92915050565b60006020828403121561467f5761467e6158a5565b5b600061468d84828501614548565b91505092915050565b600080604083850312156146ad576146ac6158a5565b5b60006146bb85828601614548565b92505060206146cc85828601614548565b9150509250929050565b6000806000606084860312156146ef576146ee6158a5565b5b60006146fd86828701614548565b935050602061470e86828701614548565b925050604061471f86828701614654565b9150509250925092565b60008060008060808587031215614743576147426158a5565b5b600061475187828801614548565b945050602061476287828801614548565b935050604061477387828801614654565b925050606085013567ffffffffffffffff811115614794576147936158a0565b5b6147a0878288016145f8565b91505092959194509250565b600080604083850312156147c3576147c26158a5565b5b60006147d185828601614548565b92505060206147e2858286016145b9565b9150509250929050565b60008060408385031215614803576148026158a5565b5b600061481185828601614548565b925050602061482285828601614654565b9150509250929050565b600060208284031215614842576148416158a5565b5b600082013567ffffffffffffffff8111156148605761485f6158a0565b5b61486c8482850161455d565b91505092915050565b60006020828403121561488b5761488a6158a5565b5b6000614899848285016145ce565b91505092915050565b6000602082840312156148b8576148b76158a5565b5b60006148c6848285016145e3565b91505092915050565b60008060008060008060c087890312156148ec576148eb6158a5565b5b600087013567ffffffffffffffff81111561490a576149096158a0565b5b61491689828a01614626565b965050602087013567ffffffffffffffff811115614937576149366158a0565b5b61494389828a01614626565b955050604061495489828a01614548565b945050606061496589828a01614548565b935050608061497689828a01614548565b92505060a087013567ffffffffffffffff811115614997576149966158a0565b5b6149a389828a0161458b565b9150509295509295509295565b6000602082840312156149c6576149c56158a5565b5b60006149d484828501614654565b91505092915050565b600080604083850312156149f4576149f36158a5565b5b6000614a0285828601614654565b9250506020614a1385828601614654565b9150509250929050565b6000614a298383614eab565b60408301905092915050565b614a3e816155c5565b82525050565b6000614a4f82615444565b614a598185615472565b9350614a6483615434565b8060005b83811015614a95578151614a7c8882614a1d565b9750614a8783615465565b925050600181019050614a68565b5085935050505092915050565b614aab816155d7565b82525050565b6000614abc8261544f565b614ac68185615483565b9350614ad6818560208601615667565b614adf816158aa565b840191505092915050565b614af381615646565b82525050565b6000614b048261545a565b614b0e8185615494565b9350614b1e818560208601615667565b614b27816158aa565b840191505092915050565b6000614b3d8261545a565b614b4781856154a5565b9350614b57818560208601615667565b80840191505092915050565b6000614b70601783615494565b9150614b7b826158bb565b602082019050919050565b6000614b93602d83615494565b9150614b9e826158e4565b604082019050919050565b6000614bb6602b83615494565b9150614bc182615933565b604082019050919050565b6000614bd9603283615494565b9150614be482615982565b604082019050919050565b6000614bfc602683615494565b9150614c07826159d1565b604082019050919050565b6000614c1f601a83615494565b9150614c2a82615a20565b602082019050919050565b6000614c42602583615494565b9150614c4d82615a49565b604082019050919050565b6000614c65601c83615494565b9150614c7082615a98565b602082019050919050565b6000614c88600e83615494565b9150614c9382615ac1565b602082019050919050565b6000614cab602483615494565b9150614cb682615aea565b604082019050919050565b6000614cce601983615494565b9150614cd982615b39565b602082019050919050565b6000614cf1602983615494565b9150614cfc82615b62565b604082019050919050565b6000614d14602e83615494565b9150614d1f82615bb1565b604082019050919050565b6000614d37602283615494565b9150614d4282615c00565b604082019050919050565b6000614d5a602083615494565b9150614d6582615c4f565b602082019050919050565b6000614d7d602083615494565b9150614d8882615c78565b602082019050919050565b6000614da0602f83615494565b9150614dab82615ca1565b604082019050919050565b6000614dc3601083615494565b9150614dce82615cf0565b602082019050919050565b6000614de6601883615494565b9150614df182615d19565b602082019050919050565b6000614e09602183615494565b9150614e1482615d42565b604082019050919050565b6000614e2c6000836154a5565b9150614e3782615d91565b600082019050919050565b6000614e4f603d83615494565b9150614e5a82615d94565b604082019050919050565b6000614e72602c83615494565b9150614e7d82615de3565b604082019050919050565b6000614e95602b83615494565b9150614ea082615e32565b604082019050919050565b604082016000820151614ec16000850182614eda565b506020820151614ed46020850182614eda565b50505050565b614ee38161562f565b82525050565b614ef28161562f565b82525050565b6000614f048285614b32565b9150614f108284614b32565b9150614f1b82614e1f565b91508190509392505050565b6000602082019050614f3c6000830184614a35565b92915050565b6000608082019050614f576000830187614a35565b614f646020830186614a35565b614f716040830185614ee9565b8181036060830152614f838184614ab1565b905095945050505050565b6000604082019050614fa36000830185614a35565b614fb06020830184614ee9565b9392505050565b60006020820190508181036000830152614fd18184614a44565b905092915050565b6000602082019050614fee6000830184614aa2565b92915050565b60006020820190506150096000830184614aea565b92915050565b600060208201905081810360008301526150298184614af9565b905092915050565b6000602082019050818103600083015261504a81614b63565b9050919050565b6000602082019050818103600083015261506a81614b86565b9050919050565b6000602082019050818103600083015261508a81614ba9565b9050919050565b600060208201905081810360008301526150aa81614bcc565b9050919050565b600060208201905081810360008301526150ca81614bef565b9050919050565b600060208201905081810360008301526150ea81614c12565b9050919050565b6000602082019050818103600083015261510a81614c35565b9050919050565b6000602082019050818103600083015261512a81614c58565b9050919050565b6000602082019050818103600083015261514a81614c7b565b9050919050565b6000602082019050818103600083015261516a81614c9e565b9050919050565b6000602082019050818103600083015261518a81614cc1565b9050919050565b600060208201905081810360008301526151aa81614ce4565b9050919050565b600060208201905081810360008301526151ca81614d07565b9050919050565b600060208201905081810360008301526151ea81614d2a565b9050919050565b6000602082019050818103600083015261520a81614d4d565b9050919050565b6000602082019050818103600083015261522a81614d70565b9050919050565b6000602082019050818103600083015261524a81614d93565b9050919050565b6000602082019050818103600083015261526a81614db6565b9050919050565b6000602082019050818103600083015261528a81614dd9565b9050919050565b600060208201905081810360008301526152aa81614dfc565b9050919050565b600060208201905081810360008301526152ca81614e42565b9050919050565b600060208201905081810360008301526152ea81614e65565b9050919050565b6000602082019050818103600083015261530a81614e88565b9050919050565b60006020820190506153266000830184614ee9565b92915050565b60006040820190506153416000830185614ee9565b61534e6020830184614ee9565b9392505050565b600061535f615370565b905061536b82826156cc565b919050565b6000604051905090565b600067ffffffffffffffff82111561539557615394615862565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156153c1576153c0615862565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156153ed576153ec615862565b5b6153f6826158aa565b9050602081019050919050565b600067ffffffffffffffff82111561541e5761541d615862565b5b615427826158aa565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006154bb8261562f565b91506154c68361562f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156154fb576154fa615777565b5b828201905092915050565b60006155118261562f565b915061551c8361562f565b92508261552c5761552b6157a6565b5b828204905092915050565b60006155428261562f565b915061554d8361562f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561558657615585615777565b5b828202905092915050565b600061559c8261562f565b91506155a78361562f565b9250828210156155ba576155b9615777565b5b828203905092915050565b60006155d08261560f565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061565182615639565b9050919050565b82818337600083830152505050565b60005b8381101561568557808201518184015260208101905061566a565b83811115615694576000848401525b50505050565b600060028204905060018216806156b257607f821691505b602082108114156156c6576156c56157d5565b5b50919050565b6156d5826158aa565b810181811067ffffffffffffffff821117156156f4576156f3615862565b5b80604052505050565b60006157088261562f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561573b5761573a615777565b5b600182019050919050565b60006157518261562f565b915061575c8361562f565b92508261576c5761576b6157a6565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f43616e2774206d696e74206f7665722033204e46547321000000000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f596f75206469646e2774206a6f696e2057686974654c69737421000000000000600082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f496e76616c696420416d6f756e74000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f524e473a2043616c6c6572206973206e6f742074686520534f4d20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4f766572666c6f7720616d6f756e742100000000000000000000000000000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b615e8a816155c5565b8114615e9557600080fd5b50565b615ea1816155d7565b8114615eac57600080fd5b50565b615eb8816155e3565b8114615ec357600080fd5b50565b615ecf8161562f565b8114615eda57600080fd5b5056fea2646970667358221220cf707b9ae03d2f1d50310b8850b28d04f9b0a922f293ba40b0d36d87d0829a9d64736f6c63430008070033

Deployed Bytecode

0x60806040526004361061027d5760003560e01c8063749d1b751161014f578063b118d1ac116100c1578063cfc86f7b1161007a578063cfc86f7b146109c7578063cfde76f3146109f2578063df24805d14610a1d578063e985e9c514610a48578063f2fde38b14610a85578063fc6f946814610aae5761027d565b8063b118d1ac146108b9578063b88d4fde146108d0578063b90306ad146108f9578063c002d23d14610922578063c1b2ced41461094d578063c87b56dd1461098a5761027d565b8063918f867411610113578063918f8674146107ca5780639239e5f9146107f557806395d89b411461081e5780639e1f734714610849578063a0712d6814610874578063a22cb465146108905761027d565b8063749d1b75146106d0578063775b9c131461070d5780637f61feaf1461073657806387f32cce146107615780638da5cb5b1461079f5761027d565b80633ad10ef6116101f357806354214f69116101ac57806354214f69146105ae5780636352211e146105d9578063696b0c77146106165780636bc201571461063f57806370a082311461067c578063715018a6146106b95761027d565b80633ad10ef6146104a05780633bd64968146104cb57806342842e0e146104e25780634b2b15ef1461050b5780634d3139ab146105345780634f6ccce7146105715761027d565b806318160ddd1161024557806318160ddd1461037b578063183d6322146103a6578063232bce6e146103d157806323b872dd146103fc5780632a55205a146104255780632f745c59146104635761027d565b806301ffc9a7146102825780630375d3f0146102bf57806306fdde03146102ea578063081812fc14610315578063095ea7b314610352575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190614875565b610ad9565b6040516102b69190614fd9565b60405180910390f35b3480156102cb57600080fd5b506102d4610b53565b6040516102e19190615311565b60405180910390f35b3480156102f657600080fd5b506102ff610b59565b60405161030c919061500f565b60405180910390f35b34801561032157600080fd5b5061033c600480360381019061033791906149b0565b610beb565b6040516103499190614f27565b60405180910390f35b34801561035e57600080fd5b50610379600480360381019061037491906147ec565b610c31565b005b34801561038757600080fd5b50610390610d49565b60405161039d9190615311565b60405180910390f35b3480156103b257600080fd5b506103bb610d56565b6040516103c89190614f27565b60405180910390f35b3480156103dd57600080fd5b506103e6610d7d565b6040516103f39190614fb7565b60405180910390f35b34801561040857600080fd5b50610423600480360381019061041e91906146d6565b610ea1565b005b34801561043157600080fd5b5061044c600480360381019061044791906149dd565b610f01565b60405161045a929190614f8e565b60405180910390f35b34801561046f57600080fd5b5061048a600480360381019061048591906147ec565b610f52565b6040516104979190615311565b60405180910390f35b3480156104ac57600080fd5b506104b5610ff7565b6040516104c29190614f27565b60405180910390f35b3480156104d757600080fd5b506104e061101e565b005b3480156104ee57600080fd5b50610509600480360381019061050491906146d6565b6111e3565b005b34801561051757600080fd5b50610532600480360381019061052d91906149dd565b611203565b005b34801561054057600080fd5b5061055b60048036038101906105569190614669565b611348565b6040516105689190615311565b60405180910390f35b34801561057d57600080fd5b50610598600480360381019061059391906149b0565b611361565b6040516105a59190615311565b60405180910390f35b3480156105ba57600080fd5b506105c36113d2565b6040516105d09190614fd9565b60405180910390f35b3480156105e557600080fd5b5061060060048036038101906105fb91906149b0565b6113e6565b60405161060d9190614f27565b60405180910390f35b34801561062257600080fd5b5061063d60048036038101906106389190614669565b61146d565b005b34801561064b57600080fd5b5061066660048036038101906106619190614669565b6115d6565b6040516106739190614fd9565b60405180910390f35b34801561068857600080fd5b506106a3600480360381019061069e9190614669565b6115f7565b6040516106b09190615311565b60405180910390f35b3480156106c557600080fd5b506106ce6116af565b005b3480156106dc57600080fd5b506106f760048036038101906106f291906149b0565b6116c3565b6040516107049190615311565b60405180910390f35b34801561071957600080fd5b50610734600480360381019061072f919061482c565b611809565b005b34801561074257600080fd5b5061074b6119c4565b6040516107589190614fd9565b60405180910390f35b34801561076d57600080fd5b50610788600480360381019061078391906149b0565b6119d8565b60405161079692919061532c565b60405180910390f35b3480156107ab57600080fd5b506107b46119fd565b6040516107c19190614f27565b60405180910390f35b3480156107d657600080fd5b506107df611a27565b6040516107ec9190615311565b60405180910390f35b34801561080157600080fd5b5061081c600480360381019061081791906148cf565b611a2c565b005b34801561082a57600080fd5b50610833611d4a565b604051610840919061500f565b60405180910390f35b34801561085557600080fd5b5061085e611ddc565b60405161086b9190614f27565b60405180910390f35b61088e600480360381019061088991906149b0565b611e02565b005b34801561089c57600080fd5b506108b760048036038101906108b291906147ac565b61239e565b005b3480156108c557600080fd5b506108ce6123b4565b005b3480156108dc57600080fd5b506108f760048036038101906108f29190614729565b6124f7565b005b34801561090557600080fd5b50610920600480360381019061091b91906149b0565b612559565b005b34801561092e57600080fd5b50610937612565565b6040516109449190615311565b60405180910390f35b34801561095957600080fd5b50610974600480360381019061096f9190614669565b61256b565b6040516109819190614fb7565b60405180910390f35b34801561099657600080fd5b506109b160048036038101906109ac91906149b0565b6127a3565b6040516109be919061500f565b60405180910390f35b3480156109d357600080fd5b506109dc612961565b6040516109e9919061500f565b60405180910390f35b3480156109fe57600080fd5b50610a076129f0565b604051610a14919061500f565b60405180910390f35b348015610a2957600080fd5b50610a32612a7f565b604051610a3f9190614fd9565b60405180910390f35b348015610a5457600080fd5b50610a6f6004803603810190610a6a9190614696565b612a96565b604051610a7c9190614fd9565b60405180910390f35b348015610a9157600080fd5b50610aac6004803603810190610aa79190614669565b612b2a565b005b348015610aba57600080fd5b50610ac3612bae565b604051610ad09190614f27565b60405180910390f35b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b4c5750610b4b82612bd4565b5b9050919050565b60fe5481565b606060658054610b689061569a565b80601f0160208091040260200160405190810160405280929190818152602001828054610b949061569a565b8015610be15780601f10610bb657610100808354040283529160200191610be1565b820191906000526020600020905b815481529060010190602001808311610bc457829003601f168201915b5050505050905090565b6000610bf682612c4e565b6069600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c3c826113e6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca490615291565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ccc612c99565b73ffffffffffffffffffffffffffffffffffffffff161480610cfb5750610cfa81610cf5612c99565b612a96565b5b610d3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d31906152b1565b60405180910390fd5b610d448383612ca1565b505050565b6000609980549050905090565b61010060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606000610d8b60fc612d5a565b905060008167ffffffffffffffff811115610da957610da8615862565b5b604051908082528060200260200182016040528015610de257816020015b610dcf614327565b815260200190600190039081610dc75790505b50905060005b82811015610e985760146104f06000600184610e0491906154b0565b8152602001908152602001600020600101541415610e2157610e85565b60006104f06000600184610e3591906154b0565b815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905080838381518110610e7857610e77615833565b5b6020026020010181905250505b8080610e90906156fd565b915050610de8565b50809250505090565b610eb2610eac612c99565b82612d68565b610ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee890615051565b60405180910390fd5b610efc838383612dfd565b505050565b60008060006064600a85610f159190615537565b610f1f9190615506565b905061010060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168192509250509250929050565b6000610f5d836115f7565b8210610f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9590615071565b60405180910390fd5b609760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b3373ffffffffffffffffffffffffffffffffffffffff1660fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806110ac57503373ffffffffffffffffffffffffffffffffffffffff166110946119fd565b73ffffffffffffffffffffffffffffffffffffffff16145b8061110457503373ffffffffffffffffffffffffffffffffffffffff1660fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b611143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113a906151d1565b60405180910390fd5b60016104ef60006101000a81548160ff02191690831515021790555060fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663749aa2d96040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156111c957600080fd5b505af11580156111dd573d6000803e3d6000fd5b50505050565b6111fe838383604051806020016040528060008152506124f7565b505050565b3373ffffffffffffffffffffffffffffffffffffffff1660fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061129157503373ffffffffffffffffffffffffffffffffffffffff166112796119fd565b73ffffffffffffffffffffffffffffffffffffffff16145b806112e957503373ffffffffffffffffffffffffffffffffffffffff1660fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b611328576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131f906151d1565b60405180910390fd5b806104f06000848152602001908152602001600020600101819055505050565b6104eb6020528060005260406000206000915090505481565b600061136b610d49565b82106113ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a3906152d1565b60405180910390fd5b609982815481106113c0576113bf615833565b5b90600052602060002001549050919050565b6104ef60009054906101000a900460ff1681565b6000806113f2836130f3565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611464576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145b90615271565b60405180910390fd5b80915050919050565b3373ffffffffffffffffffffffffffffffffffffffff1660fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806114fb57503373ffffffffffffffffffffffffffffffffffffffff166114e36119fd565b73ffffffffffffffffffffffffffffffffffffffff16145b8061155357503373ffffffffffffffffffffffffffffffffffffffff1660fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b611592576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611589906151d1565b60405180910390fd5b8060fb60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6104ec6020528060005260406000206000915054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165f90615191565b60405180910390fd5b606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6116b7613130565b6116c160006131ae565b565b60003373ffffffffffffffffffffffffffffffffffffffff1660fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061175357503373ffffffffffffffffffffffffffffffffffffffff1661173b6119fd565b73ffffffffffffffffffffffffffffffffffffffff16145b806117ab57503373ffffffffffffffffffffffffffffffffffffffff1660fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b6117ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e1906151d1565b60405180910390fd5b6104f06000838152602001908152602001600020600101549050919050565b3373ffffffffffffffffffffffffffffffffffffffff1660fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061189757503373ffffffffffffffffffffffffffffffffffffffff1661187f6119fd565b73ffffffffffffffffffffffffffffffffffffffff16145b806118ef57503373ffffffffffffffffffffffffffffffffffffffff1660fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b61192e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611925906151d1565b60405180910390fd5b60005b81518110156119c05760016104ec600084848151811061195457611953615833565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080806119b8906156fd565b915050611931565b5050565b6104ef60019054906101000a900460ff1681565b6104f06020528060005260406000206000915090508060000154908060010154905082565b600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606481565b60008060019054906101000a900460ff16159050808015611a5d5750600160008054906101000a900460ff1660ff16105b80611a8a5750611a6c30613274565b158015611a895750600160008054906101000a900460ff1660ff16145b5b611ac9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac0906151b1565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015611b06576001600060016101000a81548160ff0219169083151502179055505b611b7a6040518060400160405280600c81526020017f536f6e73204f66204d61727300000000000000000000000000000000000000008152506040518060400160405280600381526020017f534f4d0000000000000000000000000000000000000000000000000000000000815250613297565b611b826132f4565b866104ed9080519060200190611b99929190614341565b50856104ee9080519060200190611bb1929190614341565b50600160fb60146101000a81548160ff0219169083151502179055508460fd60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508361010060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508261010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060005b8251811015611ce757828181518110611cb157611cb0615833565b5b6020026020010151610102826103e98110611ccf57611cce615833565b5b01819055508080611cdf906156fd565b915050611c95565b508015611d415760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051611d389190614ff4565b60405180910390a15b50505050505050565b606060668054611d599061569a565b80601f0160208091040260200160405190810160405280929190818152602001828054611d859061569a565b8015611dd25780601f10611da757610100808354040283529160200191611dd2565b820191906000526020600020905b815481529060010190602001808311611db557829003601f168201915b5050505050905090565b60fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6103e9611e0d610d49565b82611e1891906154b0565b10611e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4f90615251565b60405180910390fd5b600015156104ef60019054906101000a900460ff1615151415611f0a57600115156104ec60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611f09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f00906150d1565b60405180910390fd5b5b600060fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146121c0578160ff54611f6f9190615537565b341015611fb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa890615131565b60405180910390fd5b6004826104eb60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611fff91906154b0565b1061203f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203690615031565b60405180910390fd5b8160ff5461204d9190615537565b346120589190615591565b905061010060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6064605f8560ff546120a99190615537565b6120b39190615537565b6120bd9190615506565b9081150290604051600060405180830381858888f193505050501580156120e8573d6000803e3d6000fd5b5061010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc606460058560ff546121389190615537565b6121429190615537565b61214c9190615506565b9081150290604051600060405180830381858888f19350505050158015612177573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156121be573d6000803e3d6000fd5b505b60005b8281101561236d576121d560fc61334d565b60006121e160fc612d5a565b90506121ed3382613363565b604051806040016040528082815260200160018152506104f06000838152602001908152602001600020600082015181600001556020820151816001015590505060fe6000815480929190612241906156fd565b919050555060fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637311a2fe6104f06000848152602001908152602001600020600001546104f06000858152602001908152602001600020600101546040518363ffffffff1660e01b81526004016122d192919061532c565b600060405180830381600087803b1580156122eb57600080fd5b505af11580156122ff573d6000803e3d6000fd5b505050506104eb60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190612354906156fd565b9190505550508080612365906156fd565b9150506121c3565b507f6e6a092e3ba0515ff690b237bea415e907993f64f9dbd92104214574548d25d660405160405180910390a15050565b6123b06123a9612c99565b8383613381565b5050565b3373ffffffffffffffffffffffffffffffffffffffff1660fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061244257503373ffffffffffffffffffffffffffffffffffffffff1661242a6119fd565b73ffffffffffffffffffffffffffffffffffffffff16145b8061249a57503373ffffffffffffffffffffffffffffffffffffffff1660fb60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b6124d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d0906151d1565b60405180910390fd5b60016104ef60016101000a81548160ff021916908315150217905550565b612508612502612c99565b83612d68565b612547576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253e90615051565b60405180910390fd5b612553848484846134ee565b50505050565b6125628161354a565b50565b60ff5481565b60606000805b61257b60fc612d5a565b8110156126245760146104f0600060018461259691906154b0565b81526020019081526020016000206001015414156125b357612611565b60006125ca6001836125c591906154b0565b6113e6565b90508473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561260f57828061260b906156fd565b9350505b505b808061261c906156fd565b915050612571565b5060008167ffffffffffffffff81111561264157612640615862565b5b60405190808252806020026020018201604052801561267a57816020015b612667614327565b81526020019060019003908161265f5790505b5090506000915060005b61268e60fc612d5a565b8110156127985760146104f060006001846126a991906154b0565b81526020019081526020016000206001015414156126c657612785565b60006126dd6001836126d891906154b0565b6113e6565b90508573ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156127835760006104f0600060018561272791906154b0565b815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905080848680612763906156fd565b97508151811061277657612775615833565b5b6020026020010181905250505b505b8080612790906156fd565b915050612684565b508092505050919050565b60606127ae82613694565b6127ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e490615231565b60405180910390fd5b6060600115156104ef60009054906101000a900460ff161515141561281b576128146136d5565b90506128b2565b6104ee80546128299061569a565b80601f01602080910402602001604051908101604052809291908181526020018280546128559061569a565b80156128a25780601f10612877576101008083540402835291602001916128a2565b820191906000526020600020905b81548152906001019060200180831161288557829003601f168201915b505050505090508091505061295c565b60008151116128d05760405180602001604052806000815250612958565b806129376104f0600086815260200190815260200160002060010154601360016101026001896129009190615591565b6103e9811061291257612911615833565b5b015461291e9190615591565b6129289190615537565b61293291906154b0565b613768565b604051602001612948929190614ef8565b6040516020818303038152906040525b9150505b919050565b6104ed805461296f9061569a565b80601f016020809104026020016040519081016040528092919081815260200182805461299b9061569a565b80156129e85780601f106129bd576101008083540402835291602001916129e8565b820191906000526020600020905b8154815290600101906020018083116129cb57829003601f168201915b505050505081565b6104ee80546129fe9061569a565b80601f0160208091040260200160405190810160405280929190818152602001828054612a2a9061569a565b8015612a775780601f10612a4c57610100808354040283529160200191612a77565b820191906000526020600020905b815481529060010190602001808311612a5a57829003601f168201915b505050505081565b600060fb60149054906101000a900460ff16905090565b6000606a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612b32613130565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612ba2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b99906150b1565b60405180910390fd5b612bab816131ae565b50565b60fd60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612c475750612c46826138c9565b5b9050919050565b612c5781613694565b612c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8d90615271565b60405180910390fd5b50565b600033905090565b816069600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612d14836113e6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b600080612d74836113e6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612db65750612db58185612a96565b5b80612df457508373ffffffffffffffffffffffffffffffffffffffff16612ddc84610beb565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612e1d826113e6565b73ffffffffffffffffffffffffffffffffffffffff1614612e73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6a906150f1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ee3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eda90615151565b60405180910390fd5b612eee8383836139ab565b8273ffffffffffffffffffffffffffffffffffffffff16612f0e826113e6565b73ffffffffffffffffffffffffffffffffffffffff1614612f64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f5b906150f1565b60405180910390fd5b6069600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001606860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46130ee838383613abf565b505050565b60006067600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b613138612c99565b73ffffffffffffffffffffffffffffffffffffffff166131566119fd565b73ffffffffffffffffffffffffffffffffffffffff16146131ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131a390615211565b60405180910390fd5b565b600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff166132e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132dd906152f1565b60405180910390fd5b6132f08282613ac4565b5050565b600060019054906101000a900460ff16613343576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333a906152f1565b60405180910390fd5b61334b613b45565b565b6001816000016000828254019250508190555050565b61337d828260405180602001604052806000815250613ba6565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156133f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133e790615171565b60405180910390fd5b80606a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516134e19190614fd9565b60405180910390a3505050565b6134f9848484612dfd565b61350584848484613c01565b613544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161353b90615091565b60405180910390fd5b50505050565b6000613555826113e6565b9050613563816000846139ab565b61356c826113e6565b90506069600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001606860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506067600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461369081600084613abf565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166136b6836130f3565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60606104ed80546136e59061569a565b80601f01602080910402602001604051908101604052809291908181526020018280546137119061569a565b801561375e5780601f106137335761010080835404028352916020019161375e565b820191906000526020600020905b81548152906001019060200180831161374157829003601f168201915b5050505050905090565b606060008214156137b0576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506138c4565b600082905060005b600082146137e25780806137cb906156fd565b915050600a826137db9190615506565b91506137b8565b60008167ffffffffffffffff8111156137fe576137fd615862565b5b6040519080825280601f01601f1916602001820160405280156138305781602001600182028036833780820191505090505b5090505b600085146138bd576001826138499190615591565b9150600a856138589190615746565b603061386491906154b0565b60f81b81838151811061387a57613879615833565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856138b69190615506565b9450613834565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061399457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806139a457506139a382613d98565b5b9050919050565b6139b6838383613e02565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156139f9576139f481613e07565b613a38565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613a3757613a368382613e50565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613a7b57613a7681613fbd565b613aba565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613ab957613ab8828261408e565b5b5b505050565b505050565b600060019054906101000a900460ff16613b13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b0a906152f1565b60405180910390fd5b8160659080519060200190613b29929190614341565b508060669080519060200190613b40929190614341565b505050565b600060019054906101000a900460ff16613b94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b8b906152f1565b60405180910390fd5b613ba4613b9f612c99565b6131ae565b565b613bb0838361410d565b613bbd6000848484613c01565b613bfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bf390615091565b60405180910390fd5b505050565b6000613c228473ffffffffffffffffffffffffffffffffffffffff16613274565b15613d8b578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613c4b612c99565b8786866040518563ffffffff1660e01b8152600401613c6d9493929190614f42565b602060405180830381600087803b158015613c8757600080fd5b505af1925050508015613cb857506040513d601f19601f82011682018060405250810190613cb591906148a2565b60015b613d3b573d8060008114613ce8576040519150601f19603f3d011682016040523d82523d6000602084013e613ced565b606091505b50600081511415613d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d2a90615091565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613d90565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b609980549050609a600083815260200190815260200160002081905550609981908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613e5d846115f7565b613e679190615591565b9050600060986000848152602001908152602001600020549050818114613f4c576000609760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080609760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816098600083815260200190815260200160002081905550505b6098600084815260200190815260200160002060009055609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001609980549050613fd19190615591565b90506000609a600084815260200190815260200160002054905060006099838154811061400157614000615833565b5b90600052602060002001549050806099838154811061402357614022615833565b5b906000526020600020018190555081609a600083815260200190815260200160002081905550609a600085815260200190815260200160002060009055609980548061407257614071615804565b5b6001900381819060005260206000200160009055905550505050565b6000614099836115f7565b905081609760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806098600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561417d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614174906151f1565b60405180910390fd5b61418681613694565b156141c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016141bd90615111565b60405180910390fd5b6141d2600083836139ab565b6141db81613694565b1561421b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161421290615111565b60405180910390fd5b6001606860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816067600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461432360008383613abf565b5050565b604051806040016040528060008152602001600081525090565b82805461434d9061569a565b90600052602060002090601f01602090048101928261436f57600085556143b6565b82601f1061438857805160ff19168380011785556143b6565b828001600101855582156143b6579182015b828111156143b557825182559160200191906001019061439a565b5b5090506143c391906143c7565b5090565b5b808211156143e05760008160009055506001016143c8565b5090565b60006143f76143f28461537a565b615355565b9050808382526020820190508285602086028201111561441a57614419615896565b5b60005b8581101561444a57816144308882614548565b84526020840193506020830192505060018101905061441d565b5050509392505050565b6000614467614462846153a6565b615355565b9050808382526020820190508285602086028201111561448a57614489615896565b5b60005b858110156144ba57816144a08882614654565b84526020840193506020830192505060018101905061448d565b5050509392505050565b60006144d76144d2846153d2565b615355565b9050828152602081018484840111156144f3576144f261589b565b5b6144fe848285615658565b509392505050565b600061451961451484615403565b615355565b9050828152602081018484840111156145355761453461589b565b5b614540848285615658565b509392505050565b60008135905061455781615e81565b92915050565b600082601f83011261457257614571615891565b5b81356145828482602086016143e4565b91505092915050565b600082601f8301126145a05761459f615891565b5b81356145b0848260208601614454565b91505092915050565b6000813590506145c881615e98565b92915050565b6000813590506145dd81615eaf565b92915050565b6000815190506145f281615eaf565b92915050565b600082601f83011261460d5761460c615891565b5b813561461d8482602086016144c4565b91505092915050565b600082601f83011261463b5761463a615891565b5b813561464b848260208601614506565b91505092915050565b60008135905061466381615ec6565b92915050565b60006020828403121561467f5761467e6158a5565b5b600061468d84828501614548565b91505092915050565b600080604083850312156146ad576146ac6158a5565b5b60006146bb85828601614548565b92505060206146cc85828601614548565b9150509250929050565b6000806000606084860312156146ef576146ee6158a5565b5b60006146fd86828701614548565b935050602061470e86828701614548565b925050604061471f86828701614654565b9150509250925092565b60008060008060808587031215614743576147426158a5565b5b600061475187828801614548565b945050602061476287828801614548565b935050604061477387828801614654565b925050606085013567ffffffffffffffff811115614794576147936158a0565b5b6147a0878288016145f8565b91505092959194509250565b600080604083850312156147c3576147c26158a5565b5b60006147d185828601614548565b92505060206147e2858286016145b9565b9150509250929050565b60008060408385031215614803576148026158a5565b5b600061481185828601614548565b925050602061482285828601614654565b9150509250929050565b600060208284031215614842576148416158a5565b5b600082013567ffffffffffffffff8111156148605761485f6158a0565b5b61486c8482850161455d565b91505092915050565b60006020828403121561488b5761488a6158a5565b5b6000614899848285016145ce565b91505092915050565b6000602082840312156148b8576148b76158a5565b5b60006148c6848285016145e3565b91505092915050565b60008060008060008060c087890312156148ec576148eb6158a5565b5b600087013567ffffffffffffffff81111561490a576149096158a0565b5b61491689828a01614626565b965050602087013567ffffffffffffffff811115614937576149366158a0565b5b61494389828a01614626565b955050604061495489828a01614548565b945050606061496589828a01614548565b935050608061497689828a01614548565b92505060a087013567ffffffffffffffff811115614997576149966158a0565b5b6149a389828a0161458b565b9150509295509295509295565b6000602082840312156149c6576149c56158a5565b5b60006149d484828501614654565b91505092915050565b600080604083850312156149f4576149f36158a5565b5b6000614a0285828601614654565b9250506020614a1385828601614654565b9150509250929050565b6000614a298383614eab565b60408301905092915050565b614a3e816155c5565b82525050565b6000614a4f82615444565b614a598185615472565b9350614a6483615434565b8060005b83811015614a95578151614a7c8882614a1d565b9750614a8783615465565b925050600181019050614a68565b5085935050505092915050565b614aab816155d7565b82525050565b6000614abc8261544f565b614ac68185615483565b9350614ad6818560208601615667565b614adf816158aa565b840191505092915050565b614af381615646565b82525050565b6000614b048261545a565b614b0e8185615494565b9350614b1e818560208601615667565b614b27816158aa565b840191505092915050565b6000614b3d8261545a565b614b4781856154a5565b9350614b57818560208601615667565b80840191505092915050565b6000614b70601783615494565b9150614b7b826158bb565b602082019050919050565b6000614b93602d83615494565b9150614b9e826158e4565b604082019050919050565b6000614bb6602b83615494565b9150614bc182615933565b604082019050919050565b6000614bd9603283615494565b9150614be482615982565b604082019050919050565b6000614bfc602683615494565b9150614c07826159d1565b604082019050919050565b6000614c1f601a83615494565b9150614c2a82615a20565b602082019050919050565b6000614c42602583615494565b9150614c4d82615a49565b604082019050919050565b6000614c65601c83615494565b9150614c7082615a98565b602082019050919050565b6000614c88600e83615494565b9150614c9382615ac1565b602082019050919050565b6000614cab602483615494565b9150614cb682615aea565b604082019050919050565b6000614cce601983615494565b9150614cd982615b39565b602082019050919050565b6000614cf1602983615494565b9150614cfc82615b62565b604082019050919050565b6000614d14602e83615494565b9150614d1f82615bb1565b604082019050919050565b6000614d37602283615494565b9150614d4282615c00565b604082019050919050565b6000614d5a602083615494565b9150614d6582615c4f565b602082019050919050565b6000614d7d602083615494565b9150614d8882615c78565b602082019050919050565b6000614da0602f83615494565b9150614dab82615ca1565b604082019050919050565b6000614dc3601083615494565b9150614dce82615cf0565b602082019050919050565b6000614de6601883615494565b9150614df182615d19565b602082019050919050565b6000614e09602183615494565b9150614e1482615d42565b604082019050919050565b6000614e2c6000836154a5565b9150614e3782615d91565b600082019050919050565b6000614e4f603d83615494565b9150614e5a82615d94565b604082019050919050565b6000614e72602c83615494565b9150614e7d82615de3565b604082019050919050565b6000614e95602b83615494565b9150614ea082615e32565b604082019050919050565b604082016000820151614ec16000850182614eda565b506020820151614ed46020850182614eda565b50505050565b614ee38161562f565b82525050565b614ef28161562f565b82525050565b6000614f048285614b32565b9150614f108284614b32565b9150614f1b82614e1f565b91508190509392505050565b6000602082019050614f3c6000830184614a35565b92915050565b6000608082019050614f576000830187614a35565b614f646020830186614a35565b614f716040830185614ee9565b8181036060830152614f838184614ab1565b905095945050505050565b6000604082019050614fa36000830185614a35565b614fb06020830184614ee9565b9392505050565b60006020820190508181036000830152614fd18184614a44565b905092915050565b6000602082019050614fee6000830184614aa2565b92915050565b60006020820190506150096000830184614aea565b92915050565b600060208201905081810360008301526150298184614af9565b905092915050565b6000602082019050818103600083015261504a81614b63565b9050919050565b6000602082019050818103600083015261506a81614b86565b9050919050565b6000602082019050818103600083015261508a81614ba9565b9050919050565b600060208201905081810360008301526150aa81614bcc565b9050919050565b600060208201905081810360008301526150ca81614bef565b9050919050565b600060208201905081810360008301526150ea81614c12565b9050919050565b6000602082019050818103600083015261510a81614c35565b9050919050565b6000602082019050818103600083015261512a81614c58565b9050919050565b6000602082019050818103600083015261514a81614c7b565b9050919050565b6000602082019050818103600083015261516a81614c9e565b9050919050565b6000602082019050818103600083015261518a81614cc1565b9050919050565b600060208201905081810360008301526151aa81614ce4565b9050919050565b600060208201905081810360008301526151ca81614d07565b9050919050565b600060208201905081810360008301526151ea81614d2a565b9050919050565b6000602082019050818103600083015261520a81614d4d565b9050919050565b6000602082019050818103600083015261522a81614d70565b9050919050565b6000602082019050818103600083015261524a81614d93565b9050919050565b6000602082019050818103600083015261526a81614db6565b9050919050565b6000602082019050818103600083015261528a81614dd9565b9050919050565b600060208201905081810360008301526152aa81614dfc565b9050919050565b600060208201905081810360008301526152ca81614e42565b9050919050565b600060208201905081810360008301526152ea81614e65565b9050919050565b6000602082019050818103600083015261530a81614e88565b9050919050565b60006020820190506153266000830184614ee9565b92915050565b60006040820190506153416000830185614ee9565b61534e6020830184614ee9565b9392505050565b600061535f615370565b905061536b82826156cc565b919050565b6000604051905090565b600067ffffffffffffffff82111561539557615394615862565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156153c1576153c0615862565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156153ed576153ec615862565b5b6153f6826158aa565b9050602081019050919050565b600067ffffffffffffffff82111561541e5761541d615862565b5b615427826158aa565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006154bb8261562f565b91506154c68361562f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156154fb576154fa615777565b5b828201905092915050565b60006155118261562f565b915061551c8361562f565b92508261552c5761552b6157a6565b5b828204905092915050565b60006155428261562f565b915061554d8361562f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561558657615585615777565b5b828202905092915050565b600061559c8261562f565b91506155a78361562f565b9250828210156155ba576155b9615777565b5b828203905092915050565b60006155d08261560f565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061565182615639565b9050919050565b82818337600083830152505050565b60005b8381101561568557808201518184015260208101905061566a565b83811115615694576000848401525b50505050565b600060028204905060018216806156b257607f821691505b602082108114156156c6576156c56157d5565b5b50919050565b6156d5826158aa565b810181811067ffffffffffffffff821117156156f4576156f3615862565b5b80604052505050565b60006157088261562f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561573b5761573a615777565b5b600182019050919050565b60006157518261562f565b915061575c8361562f565b92508261576c5761576b6157a6565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f43616e2774206d696e74206f7665722033204e46547321000000000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f596f75206469646e2774206a6f696e2057686974654c69737421000000000000600082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f496e76616c696420416d6f756e74000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f524e473a2043616c6c6572206973206e6f742074686520534f4d20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4f766572666c6f7720616d6f756e742100000000000000000000000000000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b615e8a816155c5565b8114615e9557600080fd5b50565b615ea1816155d7565b8114615eac57600080fd5b50565b615eb8816155e3565b8114615ec357600080fd5b50565b615ecf8161562f565b8114615eda57600080fd5b5056fea2646970667358221220cf707b9ae03d2f1d50310b8850b28d04f9b0a922f293ba40b0d36d87d0829a9d64736f6c63430008070033

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

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