ETH Price: $3,279.66 (-0.00%)
Gas: 4 Gwei

Token

The Raffle II (RAFFLE)
 

Overview

Max Total Supply

3,300 RAFFLE

Holders

228

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 RAFFLE
0xE696B53798bA62D98451893dbe908DdA0a78BD16
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:
TheRaffle

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : TheRaffle.sol
//SPDX-License-Identifier: Unlicense

pragma solidity 0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./lib/ERC721Enumerable.sol";
import "base64-sol/base64.sol";
import "./interfaces/ISudoPair.sol";
import "./interfaces/ISudoSwap.sol"; //factory

import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";

import {SafeTransferLib} from "solmate/src/utils/SafeTransferLib.sol";

interface IRenderer {
    function render(uint256 id) external view returns (string calldata);
}

contract TheRaffle is Ownable, ERC721iEnumerable, VRFConsumerBaseV2 {
    enum GAME_STATE {
        NOT_INITIALIZED,
        OPEN,
        WAITING_NUMBER,
        GOT_NUMBER,
        FINISHED
    }

    using SafeTransferLib for address payable;

    IRenderer private renderer;

    ISudoPair public sudoPool;
    //address public emergencyPool;

    ISudoSwap public sudoFactory;

    address public dev;

    uint256 public multiplier;

    uint256 public maxMint;

    // if chainlink logic fails for some reason we allow to keep trading into the pool
    bool public chainlinkFail;

    GAME_STATE public currentState;

    uint128 public burned;

    // CHAINLINK STUFF
    VRFCoordinatorV2Interface COORDINATOR;

    // Your subscription ID.
    uint64 s_subscriptionId;

    // Goerli coordinator. For other networks,
    // see https://docs.chain.link/docs/vrf-contracts/#configurations
    address vrfCoordinator = 0x271682DEB8C4E0901D1a1550aD2e64D568E69909; // mainnet= 0x271682DEB8C4E0901D1a1550aD2e64D568E69909;

    // 200 gwei Key Hash
    bytes32 keyHash =
        0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef; //mainnet= 0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef;

    uint256 public winningTicket;

    uint256 public s_requestId;

    address private dead = 0x000000000000000000000000000000000000dEaD;

    event ConsecutiveTransfer(
        uint256 indexed fromTokenId,
        uint256 toTokenId,
        address indexed fromAddress,
        address indexed toAddress
    );

    constructor(
        string memory name,
        string memory symbol,
        uint64 subscriptionId
    ) ERC721(name, symbol) VRFConsumerBaseV2(vrfCoordinator) {
        dev = 0xD95A9A47b3772a262262a5A14Fd9B0DA5cE5F0f7;
        sudoFactory = ISudoSwap(0xb16c1342E617A5B6E4b631EB114483FDB289c0A4); //mainet = 0xb16c1342E617A5B6E4b631EB114483FDB289c0A4
        multiplier = 100;
        COORDINATOR = VRFCoordinatorV2Interface(vrfCoordinator);
        s_subscriptionId = subscriptionId;
        maxMint = 5000;
    }

    function setup(address _renderer, bool isFailed) external onlyOwner {
        renderer = IRenderer(_renderer);
        chainlinkFail = isFailed;
    }

    function mint() internal {
        if (_maxSupply == 0) {
            _preMintReceiver = address(sudoPool);
        }
        _balances[_preMintReceiver] += multiplier;
        _maxSupply = _maxSupply + multiplier;

        // Emit the Consecutive Transfer Event
        emit ConsecutiveTransfer(
            totalSupply() == multiplier ? 1 : _maxSupply - (multiplier - 1),
            _maxSupply,
            address(0),
            _preMintReceiver
        );
    }

    // set _preminter to sudo pool
    function initialize() external payable onlyOwner {
        require(currentState == GAME_STATE.NOT_INITIALIZED, "st");
        createPool();
        mint();
        currentState = GAME_STATE.OPEN;
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(to != address(0x0), "b4");
    }

    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        // if a user sells an nft we burn it and send him the eth
        if (to == address(sudoPool)) {
            // here we do chainlink stuff for winner
            if (
                _maxSupply - burned >= maxMint &&
                currentState == GAME_STATE.OPEN
            ) {
                currentState = GAME_STATE.WAITING_NUMBER;
                // sudoPool.withdrawAllETH(); //todo check this
                requestRandomWords();
            } else if (
                currentState == GAME_STATE.GOT_NUMBER && !chainlinkFail
            ) {
                // here we distribute prize if we got number
                distributePrize(40);
            }

            burn(tokenId);
        }
        // if a user buys
        else if (from == address(sudoPool)) {
            if (
                balanceOfClassic(address(sudoPool)) == 0 &&
                currentState == GAME_STATE.OPEN
            ) {
                //we mint more
                mint();
            }
        }
    }

    function burn(uint256 tokenId) internal {
        address owner = ownerOf(tokenId);

        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        // Prevent re-assigning the token back to the Pre-Mint Receiver
        _owners[tokenId] = 0x000000000000000000000000000000000000dEaD;

        burned += 1;
        emit Transfer(owner, dead, tokenId);
    }

    receive() external payable {}

    // pool for user to buy nfts
    function createPool() internal {
        address _sudoPair = sudoFactory.createPairETH(
            IERC721(address(this)),
            ICurve(0x432f962D8209781da23fB37b6B59ee15dE7d9841), // exponential curve mainnt = 0x432f962D8209781da23fB37b6B59ee15dE7d9841
            payable(0x0), //   _assetRecipient .
            LSSVMPair.PoolType.TRADE, // pool type 2
            1001100000000000000, //delta  0.11%
            0, //fee
            0.002 ether, //starting price in eth 0.002
            new uint256[](0)
        );

        sudoPool = ISudoPair(_sudoPair);
    }

    function tokenURI(uint256 _tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        string
            memory descr = "The Raffle is an on chain Sudoswap game, a lucky user can take home 400+ eth.";

        string memory image = renderer.render(_tokenId);

        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    (
                        Base64.encode(
                            bytes(
                                (
                                    abi.encodePacked(
                                        '{"name":"The Raffle Ticket',
                                        '","image": ',
                                        '"',
                                        "data:image/svg+xml;base64,",
                                        Base64.encode(bytes(image)),
                                        '",',
                                        '"description":"',
                                        descr,
                                        '",',
                                        '"attributes":[]}'
                                    )
                                )
                            )
                        )
                    )
                )
            );
    }

    // this is an emergency function in the case of chainlink not working on the first call
    function emergencyRandomness() external onlyOwner {
        require(
            currentState != GAME_STATE.GOT_NUMBER &&
                _maxSupply - burned >= maxMint,
            "s3"
        );
        currentState = GAME_STATE.WAITING_NUMBER;
        requestRandomWords();
    }

    // Assumes the subscription is funded sufficiently.
    function requestRandomWords() internal {
        // Will revert if subscription is not set and funded.
        s_requestId = COORDINATOR.requestRandomWords(
            keyHash,
            s_subscriptionId,
            3,
            100000,
            1
        );
    }

    function fulfillRandomWords(
        uint256, /* requestId */
        uint256[] memory randomWords
    ) internal override {
        require(currentState == GAME_STATE.WAITING_NUMBER, "s1");
        winningTicket = randomWords[0];
        currentState = GAME_STATE.GOT_NUMBER;
    }

    // if the exact winner from chainlink vrf is a token that was burned (because it was sold), we start adding +1 to the number until we find a valid winner
    function distributePrize(uint256 rounds) public {
        require(currentState == GAME_STATE.GOT_NUMBER, "s2");

        uint256 supply = totalSupply();
        uint256 i;
        unchecked {
            while (i < rounds) {
                address potentialWinner = _owners[(winningTicket + i) % supply];
                if (
                    potentialWinner != address(0) &&
                    potentialWinner !=
                    0x000000000000000000000000000000000000dEaD &&
                    potentialWinner != address(sudoPool)
                ) {
                    // we withdraw all eth into this contract
                    sudoPool.withdrawAllETH();

                    // send 10% to dave wallet
                    payable(dev).safeTransferETH(address(this).balance / 10);

                    // send rest to winner
                    payable(potentialWinner).safeTransferETH(
                        address(this).balance
                    );
                    // add state of game
                    currentState = GAME_STATE.FINISHED;
                    return;
                }
                i++;
            }
            winningTicket = winningTicket + i;
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        virtual
        override
        returns (uint256)
    {
        require(index < ERC721.balanceOf(owner), "OoB");
        if (owner == address(_preMintReceiver)) {
            uint256 i = totalSupply() - multiplier;

            uint256 supply = totalSupply();

            uint256 matched = 0;
            while (i < supply) {
                if (ownerOfclassic(i) == address(_preMintReceiver)) {
                    matched += 1;
                    if (matched - 1 == index) {
                        return i;
                    }
                }
                i = i + 1;
            }
        } else {
            uint256 tokenId = _ownedTokens[owner][index];

            return tokenId;
        }
    }

    function ownerOfclassic(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        address owner_ = _owners[tokenId];

        // Anything beyond the Pre-Minted supply will use the standard "ownerOf"
        if (tokenId > _maxSupply) {
            return super.ownerOf(tokenId);
        }

        // Since we have Pre-Minted the Max-Supply to the "Pre-Mint Receiver" account, we know:
        //  - if the "_owners" mapping has not been assigned, then the owner is the Pre-Mint Receiver.
        //  - after the NFT is transferred, the "_owners" mapping will be updated with the new owner.
        if (owner_ == address(0)) {
            owner_ = _preMintReceiver;
        }

        return owner_;
    }

    /**
     * @dev Override the ERC721 "ownerOf" function to account for the Pre-Mint Receiver.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        address owner_ = _owners[tokenId];

        if (msg.sender == _preMintReceiver && owner_ == dead) {
            return _preMintReceiver;
        }

        // Anything beyond the Pre-Minted supply will use the standard "ownerOf"
        if (tokenId > _maxSupply) {
            return super.ownerOf(tokenId);
        }

        // Since we have Pre-Minted the Max-Supply to the "Pre-Mint Receiver" account, we know:
        //  - if the "_owners" mapping has not been assigned, then the owner is the Pre-Mint Receiver.
        //  - after the NFT is transferred, the "_owners" mapping will be updated with the new owner.
        if (owner_ == address(0)) {
            owner_ = _preMintReceiver;
        }

        return owner_;
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner)
        public
        view
        virtual
        override
        returns (uint256)
    {
        require(owner != address(0), "NvU");
        if (msg.sender == _preMintReceiver && owner == _preMintReceiver) {
            return _balances[owner] + burned;
        }
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-balanceOfClassic}.
     */
    function balanceOfClassic(address owner)
        public
        view
        virtual
        returns (uint256)
    {
        require(owner != address(0), "NvU");
        return _balances[owner];
    }

    function airdrop(address[] memory receipients, uint256[] memory qty)
        external
        payable
        onlyOwner
    {
        for (uint256 i; i < receipients.length; i++) {
            (, , , uint256 inputAmount, ) = sudoPool.getBuyNFTQuote(qty[i]);

            sudoPool.swapTokenForAnyNFTs{value: inputAmount}(
                qty[i],
                inputAmount,
                receipients[i],
                false,
                address(0x0)
            );
        }
    }
}

File 2 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

File 3 of 21 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// Modified from: OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)
// Modified by: Rob Secord (https://twitter.com/robsecord)
// Co-founder @ Charged Particles - Visit: https://charged.fi
// Co-founder @ Taggr             - Visit: https://taggr.io

pragma solidity ^0.8.0;

import "./ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.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.
 *
 * @dev This implementation also includes support for pre-minting a max-supply of tokens up-front.
 *
 * Note on pre-mint:
 *  Assumes a Max-Supply which is entirely pre-minted to initial address with sequential Token IDs.
 *  For this reason, the "allTokens" state vars are unneccesary and have been removed.
 *  Also defines 2 light-weight state vars: "_preMintReceiver" & "_maxSupply"
 *  Overrides "ownerOf" & "_exists"
 */
abstract contract ERC721iEnumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) internal _ownedTokens;

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

    // Tracking for the Pre-Mint Receiver
    address internal _preMintReceiver;

    // Max-Supply for Pre-Mint
    uint256 internal _maxSupply;

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Note on Pre-Mint: this implementation maintains the exact same interface for IERC721Enumerable
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(IERC165, ERC721)
        returns (bool)
    {
        return
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // The Total Supply is simply the Max Supply
        return _maxSupply;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index)
        public
        view
        virtual
        override
        returns (uint256)
    {
        require(
            index < _maxSupply,
            "ERC721Enumerable: global index out of bounds"
        );
        // Array index is 0-based, whereas Token ID is 1-based (sequential).
        return index + 1;
    }

    // /**
    //  * @dev Override the ERC721 "ownerOf" function to account for the Pre-Mint Receiver.
    //  */
    // function ownerOf(uint256 tokenId)
    //     public
    //     view
    //     virtual
    //     override(IERC721, ERC721)
    //     returns (address)
    // {
    //     // Anything beyond the Pre-Minted supply will use the standard "ownerOf"
    //     if (tokenId > _maxSupply) {
    //         return super.ownerOf(tokenId);
    //     }

    //     // Since we have Pre-Minted the Max-Supply to the "Pre-Mint Receiver" account, we know:
    //     //  - if the "_owners" mapping has not been assigned, then the owner is the Pre-Mint Receiver.
    //     //  - after the NFT is transferred, the "_owners" mapping will be updated with the new owner.
    //     address owner_ = _owners[tokenId];
    //     if (owner_ == address(0)) {
    //         owner_ = _preMintReceiver;
    //     }
    //     return owner_;
    // }

    /**
     * @dev Override the ERC721 "_exists" function to account for the Pre-Minted Max-Supply.
     */
    function _exists(uint256 tokenId)
        internal
        view
        virtual
        override(ERC721)
        returns (bool)
    {
        // Anything beyond the Pre-Minted supply will use the standard "_exists"
        if (tokenId > _maxSupply) {
            return super._exists(tokenId);
        }

        // We know the Max-Supply has been Pre-Minted with Sequential Token IDs
        return (tokenId >= 0 && tokenId <= _maxSupply);
    }

    /**
     * @dev See {IERC721Enumerable-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev See {IERC721Enumerable-_addTokenToOwnerEnumeration}.
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev See {IERC721Enumerable-_removeTokenFromOwnerEnumeration}.
     */
    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 = ERC721.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];
    }
}

File 4 of 21 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

File 5 of 21 : ISudoPair.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

interface ISudoPair {
    enum CurveErrorCodes {
        OK, // No error
        INVALID_NUMITEMS, // The numItem value is 0
        SPOT_PRICE_OVERFLOW // The updated spot price doesn't fit into 128 bits
    }

    function withdrawAllETH() external;

    function withdrawETH(uint256 amount) external;

    function swapTokenForAnyNFTs(
        uint256 numNFTs,
        uint256 maxExpectedTokenInput,
        address nftRecipient,
        bool isRouter,
        address routerCaller
    ) external payable;

    function getAllHeldIds() external view returns (uint256[] memory);

    function swapNFTsForToken(
        uint256[] calldata nftIds,
        uint256 minExpectedTokenOutput,
        address payable tokenRecipient,
        bool isRouter,
        address routerCaller
    ) external;

    function getBuyNFTQuote(uint256 numNFTs)
        external
        view
        returns (
            CurveErrorCodes error,
            uint256 newSpotPrice,
            uint256 newDelta,
            uint256 inputAmount,
            uint256 protocolFee
        );

    function getSellNFTQuote(uint256 numNFTs)
        external
        view
        returns (
            CurveErrorCodes error,
            uint256 newSpotPrice,
            uint256 newDelta,
            uint256 outputAmount,
            uint256 protocolFee
        );

    function changeSpotPrice(uint128 newSpotPrice) external;

    function transferOwnership(address newOwner) external;
}

File 6 of 21 : ISudoSwap.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

import "./ICurve.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface LSSVMPair {
    enum PoolType {
        TOKEN,
        NFT,
        TRADE
    }
}

interface ISudoSwap {
    /**
        @notice Creates a pair contract using EIP-1167.
        @param _nft The NFT contract of the collection the pair trades
        @param _bondingCurve The bonding curve for the pair to price NFTs, must be whitelisted
        @param _assetRecipient The address that will receive the assets traders give during trades.
                              If set to address(0), assets will be sent to the pool address.
                              Not available to TRADE pools. 
        @param _poolType TOKEN, NFT, or TRADE
        @param _delta The delta value used by the bonding curve. The meaning of delta depends
        on the specific curve.
        @param _fee The fee taken by the LP in each trade. Can only be non-zero if _poolType is Trade.
        @param _spotPrice The initial selling spot price
        @param _initialNFTIDs The list of IDs of NFTs to transfer from the sender to the pair
        @return pair The new pair
     */
    function createPairETH(
        IERC721 _nft,
        ICurve _bondingCurve,
        address payable _assetRecipient,
        LSSVMPair.PoolType _poolType,
        uint128 _delta,
        uint96 _fee,
        uint128 _spotPrice,
        uint256[] calldata _initialNFTIDs
    ) external payable returns (address pair);
}

File 7 of 21 : VRFCoordinatorV2Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface VRFCoordinatorV2Interface {
  /**
   * @notice Get configuration relevant for making requests
   * @return minimumRequestConfirmations global min for request confirmations
   * @return maxGasLimit global max for request gas limit
   * @return s_provingKeyHashes list of registered key hashes
   */
  function getRequestConfig()
    external
    view
    returns (
      uint16,
      uint32,
      bytes32[] memory
    );

  /**
   * @notice Request a set of random words.
   * @param keyHash - Corresponds to a particular oracle job which uses
   * that key for generating the VRF proof. Different keyHash's have different gas price
   * ceilings, so you can select a specific one to bound your maximum per request cost.
   * @param subId  - The ID of the VRF subscription. Must be funded
   * with the minimum subscription balance required for the selected keyHash.
   * @param minimumRequestConfirmations - How many blocks you'd like the
   * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS
   * for why you may want to request more. The acceptable range is
   * [minimumRequestBlockConfirmations, 200].
   * @param callbackGasLimit - How much gas you'd like to receive in your
   * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords
   * may be slightly less than this amount because of gas used calling the function
   * (argument decoding etc.), so you may need to request slightly more than you expect
   * to have inside fulfillRandomWords. The acceptable range is
   * [0, maxGasLimit]
   * @param numWords - The number of uint256 random values you'd like to receive
   * in your fulfillRandomWords callback. Note these numbers are expanded in a
   * secure way by the VRFCoordinator from a single random value supplied by the oracle.
   * @return requestId - A unique identifier of the request. Can be used to match
   * a request to a response in fulfillRandomWords.
   */
  function requestRandomWords(
    bytes32 keyHash,
    uint64 subId,
    uint16 minimumRequestConfirmations,
    uint32 callbackGasLimit,
    uint32 numWords
  ) external returns (uint256 requestId);

  /**
   * @notice Create a VRF subscription.
   * @return subId - A unique subscription id.
   * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer.
   * @dev Note to fund the subscription, use transferAndCall. For example
   * @dev  LINKTOKEN.transferAndCall(
   * @dev    address(COORDINATOR),
   * @dev    amount,
   * @dev    abi.encode(subId));
   */
  function createSubscription() external returns (uint64 subId);

  /**
   * @notice Get a VRF subscription.
   * @param subId - ID of the subscription
   * @return balance - LINK balance of the subscription in juels.
   * @return reqCount - number of requests for this subscription, determines fee tier.
   * @return owner - owner of the subscription.
   * @return consumers - list of consumer address which are able to use this subscription.
   */
  function getSubscription(uint64 subId)
    external
    view
    returns (
      uint96 balance,
      uint64 reqCount,
      address owner,
      address[] memory consumers
    );

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @param newOwner - proposed new owner of the subscription
   */
  function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external;

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @dev will revert if original owner of subId has
   * not requested that msg.sender become the new owner.
   */
  function acceptSubscriptionOwnerTransfer(uint64 subId) external;

  /**
   * @notice Add a consumer to a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - New consumer which can use the subscription
   */
  function addConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Remove a consumer from a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - Consumer to remove from the subscription
   */
  function removeConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Cancel a subscription
   * @param subId - ID of the subscription
   * @param to - Where to send the remaining LINK to
   */
  function cancelSubscription(uint64 subId, address to) external;

  /*
   * @notice Check to see if there exists a request commitment consumers
   * for all consumers and keyhashes for a given sub.
   * @param subId - ID of the subscription
   * @return true if there exists at least one unfulfilled request for the subscription, false
   * otherwise.
   */
  function pendingRequestExists(uint64 subId) external view returns (bool);
}

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

/** ****************************************************************************
 * @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. It ensures 2 things:
 * @dev 1. The fulfillment came from the VRFCoordinator
 * @dev 2. The consumer contract implements fulfillRandomWords.
 * *****************************************************************************
 * @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) 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). Create subscription, fund it
 * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface
 * @dev subscription management functions).
 * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations,
 * @dev callbackGasLimit, numWords),
 * @dev see (VRFCoordinatorInterface for a description of the arguments).
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomWords method.
 *
 * @dev The randomness argument to fulfillRandomWords is a set of random words
 * @dev generated from your requestId and the blockHash of the request.
 *
 * @dev If your contract could have concurrent requests open, you can use the
 * @dev requestId returned from requestRandomWords to track which response is associated
 * @dev with which randomness request.
 * @dev 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.
 *
 * *****************************************************************************
 * @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 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. It is for this reason that
 * @dev that you can signal to an oracle you'd like them to wait longer before
 * @dev responding to the request (however this is not enforced in the contract
 * @dev and so remains effective only in the case of unmodified oracle software).
 */
abstract contract VRFConsumerBaseV2 {
  error OnlyCoordinatorCanFulfill(address have, address want);
  address private immutable vrfCoordinator;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   */
  constructor(address _vrfCoordinator) {
    vrfCoordinator = _vrfCoordinator;
  }

  /**
   * @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 VRFConsumerBaseV2 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 randomWords the VRF output expanded to the requested number of words
   */
  function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual;

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external {
    if (msg.sender != vrfCoordinator) {
      revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator);
    }
    fulfillRandomWords(requestId, randomWords);
  }
}

File 9 of 21 : SafeTransferLib.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

import {ERC20} from "../tokens/ERC20.sol";

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
/// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
library SafeTransferLib {
    /*//////////////////////////////////////////////////////////////
                             ETH OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferETH(address to, uint256 amount) internal {
        bool success;

        assembly {
            // Transfer the ETH and store if it succeeded or not.
            success := call(gas(), to, amount, 0, 0, 0, 0)
        }

        require(success, "ETH_TRANSFER_FAILED");
    }

    /*//////////////////////////////////////////////////////////////
                            ERC20 OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferFrom(
        ERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument.
            mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 100, 0, 32)
            )
        }

        require(success, "TRANSFER_FROM_FAILED");
    }

    function safeTransfer(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "TRANSFER_FAILED");
    }

    function safeApprove(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "APPROVE_FAILED");
    }
}

File 10 of 21 : 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 11 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT
// Modifed from: OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)
// Modified by: Rob Secord (https://twitter.com/robsecord)
// Co-founder @ Charged Particles - Visit: https://charged.fi
// Co-founder @ Taggr             - Visit: https://taggr.io

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.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}.
 *
 * NOTE: Pre-Mint:
 *  The only changes made here are:
 *    - change scope of "_owners" from private to internal
 *    - change scope of "_balances" from private to internal
 *    - remove "ERC721" scope-resolution from "ownerOf" calls in order to override "ownerOf"
 *    - modify the _burn function to burn to an alternate Null Address (prevents reassignment back to Pre-Mint Receiver)
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Mapping owner address to token count
    mapping(address => uint256) internal _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.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).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 = _owners[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 = ownerOfclassic(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner nor 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 nor approved"
        );

        _transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[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 = ownerOfclassic(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);

        _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.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ownerOfclassic(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        // Prevent re-assigning the token back to the Pre-Mint Receiver
        _owners[tokenId] = 0x000000000000000000000000000000000000dEaD;

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _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(ownerOfclassic(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
                IERC721Receiver(to).onERC721Received(
                    _msgSender(),
                    from,
                    tokenId,
                    data
                )
            returns (bytes4 retval) {
                return retval == IERC721Receiver.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 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` 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 transfer of tokens. This includes
     * minting and burning.
     *
     * 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 {}

    function ownerOfclassic(uint256 tokenId)
        public
        view
        virtual
        returns (address)
    {}
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @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 13 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @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 16 of 21 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 17 of 21 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 20 of 21 : ICurve.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

interface CurveErrorCodes {
    enum Error {
        OK, // No error
        INVALID_NUMITEMS, // The numItem value is 0
        SPOT_PRICE_OVERFLOW // The updated spot price doesn't fit into 128 bits
    }
}

interface ICurve {
    function validateDelta(uint128 delta) external pure returns (bool valid);

    function validateSpotPrice(uint128 newSpotPrice)
        external
        view
        returns (bool valid);

    function getBuyInfo(
        uint128 spotPrice,
        uint128 delta,
        uint256 numItems,
        uint256 feeMultiplier,
        uint256 protocolFeeMultiplier
    )
        external
        view
        returns (
            CurveErrorCodes.Error error,
            uint128 newSpotPrice,
            uint128 newDelta,
            uint256 inputValue,
            uint256 protocolFee
        );

    function getSellInfo(
        uint128 spotPrice,
        uint128 delta,
        uint256 numItems,
        uint256 feeMultiplier,
        uint256 protocolFeeMultiplier
    )
        external
        view
        returns (
            CurveErrorCodes.Error error,
            uint128 newSpotPrice,
            uint128 newDelta,
            uint256 outputValue,
            uint256 protocolFee
        );
}

File 21 of 21 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                            METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*//////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*//////////////////////////////////////////////////////////////
                            EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*//////////////////////////////////////////////////////////////
                               ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*//////////////////////////////////////////////////////////////
                             EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint64","name":"subscriptionId","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"receipients","type":"address[]"},{"internalType":"uint256[]","name":"qty","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"payable","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOfClassic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burned","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chainlinkFail","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentState","outputs":[{"internalType":"enum TheRaffle.GAME_STATE","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dev","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rounds","type":"uint256"}],"name":"distributePrize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"payable","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":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOfclassic","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"s_requestId","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":"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":"_renderer","type":"address"},{"internalType":"bool","name":"isFailed","type":"bool"}],"name":"setup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sudoFactory","outputs":[{"internalType":"contract ISudoSwap","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sudoPool","outputs":[{"internalType":"contract ISudoPair","name":"","type":"address"}],"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"},{"inputs":[],"name":"winningTicket","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405273271682deb8c4e0901d1a1550ad2e64d568e69909601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef60001b60145561dead601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000d057600080fd5b5060405162006627380380620066278339818101604052810190620000f69190620004fc565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683836200013b6200012f620002f760201b60201c565b620002ff60201b60201c565b816001908051906020019062000153929190620003c3565b5080600290805190602001906200016c929190620003c3565b5050508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505073d95a9a47b3772a262262a5a14fd9b0da5ce5f0f7600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073b16c1342e617a5b6e4b631eb114483fdb289c0a4600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506064600f81905550601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601260146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555061138860108190555050505062000722565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003d1906200062d565b90600052602060002090601f016020900481019282620003f5576000855562000441565b82601f106200041057805160ff191683800117855562000441565b8280016001018555821562000441579182015b828111156200044057825182559160200191906001019062000423565b5b50905062000450919062000454565b5090565b5b808211156200046f57600081600090555060010162000455565b5090565b60006200048a6200048484620005ad565b62000584565b905082815260208101848484011115620004a357600080fd5b620004b0848285620005f7565b509392505050565b600082601f830112620004ca57600080fd5b8151620004dc84826020860162000473565b91505092915050565b600081519050620004f68162000708565b92915050565b6000806000606084860312156200051257600080fd5b600084015167ffffffffffffffff8111156200052d57600080fd5b6200053b86828701620004b8565b935050602084015167ffffffffffffffff8111156200055957600080fd5b6200056786828701620004b8565b92505060406200057a86828701620004e5565b9150509250925092565b600062000590620005a3565b90506200059e828262000663565b919050565b6000604051905090565b600067ffffffffffffffff821115620005cb57620005ca620006c8565b5b620005d682620006f7565b9050602081019050919050565b600067ffffffffffffffff82169050919050565b60005b8381101562000617578082015181840152602081019050620005fa565b8381111562000627576000848401525b50505050565b600060028204905060018216806200064657607f821691505b602082108114156200065d576200065c62000699565b5b50919050565b6200066e82620006f7565b810181811067ffffffffffffffff8211171562000690576200068f620006c8565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6200071381620005e3565b81146200071f57600080fd5b50565b60805160601c615edf6200074860003960008181610c3b0152610c8f0152615edf6000f3fe60806040526004361061021e5760003560e01c806370a0823111610123578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd146107c6578063d523f07414610803578063e89e106a1461081a578063e985e9c514610845578063f2fde38b1461088257610225565b8063a22cb465146106e1578063b4c3db261461070a578063b66fdf3a14610747578063b88d4fde14610772578063c26eea541461079b57610225565b80638129fc1c116100f25780638129fc1c1461062d5780638da5cb5b1461063757806391cca3db1461066257806395d89b411461068d57806399351742146106b857610225565b806370a0823114610583578063715018a6146105c057806373f42561146105d75780637501f7411461060257610225565b80631fe543e3116101a65780634f6ccce7116101755780634f6ccce7146104855780636352211e146104c25780636653c057146104ff578063672434821461052a57806367d108631461054657610225565b80631fe543e3146103cd57806323b872dd146103f65780632f745c591461041f57806342842e0e1461045c57610225565b80630c3f6acf116101ed5780630c3f6acf146102f85780631503cb8014610323578063178ddeda1461034c57806318160ddd146103775780631b3ed722146103a257610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf57610225565b3661022557005b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190614374565b6108ab565b60405161025e9190614c6b565b60405180910390f35b34801561027357600080fd5b5061027c610925565b6040516102899190614daf565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b4919061447e565b6109b7565b6040516102c69190614bdb565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f191906142cc565b6109fd565b005b34801561030457600080fd5b5061030d610b15565b60405161031a9190614d94565b60405180910390f35b34801561032f57600080fd5b5061034a60048036038101906103459190614290565b610b28565b005b34801561035857600080fd5b50610361610c03565b60405161036e9190614d5e565b60405180910390f35b34801561038357600080fd5b5061038c610c29565b604051610399919061506c565b60405180910390f35b3480156103ae57600080fd5b506103b7610c33565b6040516103c4919061506c565b60405180910390f35b3480156103d957600080fd5b506103f460048036038101906103ef91906144d0565b610c39565b005b34801561040257600080fd5b5061041d600480360381019061041891906141c6565b610cf9565b005b34801561042b57600080fd5b50610446600480360381019061044191906142cc565b610d59565b604051610453919061506c565b60405180910390f35b34801561046857600080fd5b50610483600480360381019061047e91906141c6565b610f39565b005b34801561049157600080fd5b506104ac60048036038101906104a7919061447e565b610f59565b6040516104b9919061506c565b60405180910390f35b3480156104ce57600080fd5b506104e960048036038101906104e4919061447e565b610fb3565b6040516104f69190614bdb565b60405180910390f35b34801561050b57600080fd5b50610514611146565b6040516105219190614c6b565b60405180910390f35b610544600480360381019061053f9190614308565b611159565b005b34801561055257600080fd5b5061056d60048036038101906105689190614138565b611404565b60405161057a919061506c565b60405180910390f35b34801561058f57600080fd5b506105aa60048036038101906105a59190614138565b6114bc565b6040516105b7919061506c565b60405180910390f35b3480156105cc57600080fd5b506105d56116a6565b005b3480156105e357600080fd5b506105ec61172e565b6040516105f99190615051565b60405180910390f35b34801561060e57600080fd5b50610617611750565b604051610624919061506c565b60405180910390f35b610635611756565b005b34801561064357600080fd5b5061064c6118f7565b6040516106599190614bdb565b60405180910390f35b34801561066e57600080fd5b50610677611920565b6040516106849190614bdb565b60405180910390f35b34801561069957600080fd5b506106a2611946565b6040516106af9190614daf565b60405180910390f35b3480156106c457600080fd5b506106df60048036038101906106da919061447e565b6119d8565b005b3480156106ed57600080fd5b5061070860048036038101906107039190614290565b611d92565b005b34801561071657600080fd5b50610731600480360381019061072c919061447e565b611da8565b60405161073e9190614bdb565b60405180910390f35b34801561075357600080fd5b5061075c611e61565b6040516107699190614d79565b60405180910390f35b34801561077e57600080fd5b5061079960048036038101906107949190614215565b611e87565b005b3480156107a757600080fd5b506107b0611ee9565b6040516107bd919061506c565b60405180910390f35b3480156107d257600080fd5b506107ed60048036038101906107e8919061447e565b611eef565b6040516107fa9190614daf565b60405180910390f35b34801561080f57600080fd5b5061081861201c565b005b34801561082657600080fd5b5061082f612201565b60405161083c919061506c565b60405180910390f35b34801561085157600080fd5b5061086c6004803603810190610867919061418a565b612207565b6040516108799190614c6b565b60405180910390f35b34801561088e57600080fd5b506108a960048036038101906108a49190614138565b61229b565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061091e575061091d82612393565b5b9050919050565b6060600180546109349061560e565b80601f01602080910402602001604051908101604052809291908181526020018280546109609061560e565b80156109ad5780601f10610982576101008083540402835291602001916109ad565b820191906000526020600020905b81548152906001019060200180831161099057829003601f168201915b5050505050905090565b60006109c282612475565b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a0882611da8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7090614fb1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a986124c0565b73ffffffffffffffffffffffffffffffffffffffff161480610ac75750610ac681610ac16124c0565b612207565b5b610b06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afd90614f51565b60405180910390fd5b610b1083836124c8565b505050565b601160019054906101000a900460ff1681565b610b306124c0565b73ffffffffffffffffffffffffffffffffffffffff16610b4e6118f7565b73ffffffffffffffffffffffffffffffffffffffff1614610ba4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9b90614f71565b60405180910390fd5b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601160006101000a81548160ff0219169083151502179055505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600a54905090565b600f5481565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ceb57337f00000000000000000000000000000000000000000000000000000000000000006040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610ce2929190614bf6565b60405180910390fd5b610cf58282612581565b5050565b610d0a610d046124c0565b826126e0565b610d49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4090615031565b60405180910390fd5b610d54838383612775565b505050565b6000610d64836129dc565b8210610da5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9c90614f31565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ed4576000600f54610e08610c29565b610e12919061535c565b90506000610e1e610c29565b905060005b81831015610ecc57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610e6d84611da8565b73ffffffffffffffffffffffffffffffffffffffff161415610eb857600181610e96919061527b565b905084600182610ea6919061535c565b1415610eb757829350505050610f33565b5b600183610ec5919061527b565b9250610e23565b505050610f32565b6000600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080915050610f33565b5b92915050565b610f5483838360405180602001604052806000815250611e87565b505050565b6000600a548210610f9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9690614fd1565b60405180910390fd5b600182610fac919061527b565b9050919050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480156110965750601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b156110c657600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050611141565b600a548311156110e1576110d983612a94565b915050611141565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561113c57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b809150505b919050565b601160009054906101000a900460ff1681565b6111616124c0565b73ffffffffffffffffffffffffffffffffffffffff1661117f6118f7565b73ffffffffffffffffffffffffffffffffffffffff16146111d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cc90614f71565b60405180910390fd5b60005b82518110156113ff576000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a5cb2b9184848151811061125a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161127e919061506c565b60a06040518083038186803b15801561129657600080fd5b505afa1580156112aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ce91906143c6565b509350505050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166328b8aee18285858151811061134c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518488878151811061138e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516000806040518763ffffffff1660e01b81526004016113b9959493929190615087565b6000604051808303818588803b1580156113d257600080fd5b505af11580156113e6573d6000803e3d6000fd5b50505050505080806113f790615671565b9150506111d8565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611475576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146c90614df1565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561152d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152490614df1565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480156115d75750600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b1561165e57601160029054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611657919061527b565b90506116a1565b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b919050565b6116ae6124c0565b73ffffffffffffffffffffffffffffffffffffffff166116cc6118f7565b73ffffffffffffffffffffffffffffffffffffffff1614611722576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171990614f71565b60405180910390fd5b61172c6000612b46565b565b601160029054906101000a90046fffffffffffffffffffffffffffffffff1681565b60105481565b61175e6124c0565b73ffffffffffffffffffffffffffffffffffffffff1661177c6118f7565b73ffffffffffffffffffffffffffffffffffffffff16146117d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c990614f71565b60405180910390fd5b6000600481111561180c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff166004811115611854577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188b90614dd1565b60405180910390fd5b61189c612c0a565b6118a4612da2565b6001601160016101000a81548160ff021916908360048111156118f0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600280546119559061560e565b80601f01602080910402602001604051908101604052809291908181526020018280546119819061560e565b80156119ce5780601f106119a3576101008083540402835291602001916119ce565b820191906000526020600020905b8154815290600101906020018083116119b157829003601f168201915b5050505050905090565b60036004811115611a12577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff166004811115611a5a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9190614ef1565b60405180910390fd5b6000611aa4610c29565b905060005b82811015611d815760006003600084846015540181611af1577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b06815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015611b8e575061dead73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015611be85750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b15611d7357600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166390386bbf6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611c5757600080fd5b505af1158015611c6b573d6000803e3d6000fd5b50505050611cf1600a4781611ca9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612f6190919063ffffffff16565b611d1a478273ffffffffffffffffffffffffffffffffffffffff16612f6190919063ffffffff16565b6004601160016101000a81548160ff02191690836004811115611d66577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550505050611d8f565b818060010192505050611aa9565b806015540160158190555050505b50565b611da4611d9d6124c0565b8383612fb4565b5050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600a54831115611dfc57611df483612a94565b915050611e5c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e5757600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b809150505b919050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611e98611e926124c0565b836126e0565b611ed7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ece90615031565b60405180910390fd5b611ee384848484613121565b50505050565b60155481565b606060006040518060800160405280604d8152602001615e5d604d913990506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c321118c856040518263ffffffff1660e01b8152600401611f6b919061506c565b60006040518083038186803b158015611f8357600080fd5b505afa158015611f97573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611fc0919061443d565b9050611ff4611fce8261317d565b83604051602001611fe0929190614b3d565b60405160208183030381529060405261317d565b6040516020016120049190614bb9565b60405160208183030381529060405292505050919050565b6120246124c0565b73ffffffffffffffffffffffffffffffffffffffff166120426118f7565b73ffffffffffffffffffffffffffffffffffffffff1614612098576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208f90614f71565b60405180910390fd5b600360048111156120d2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff16600481111561211a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141580156121675750601054601160029054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16600a54612164919061535c565b10155b6121a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219d90615011565b60405180910390fd5b6002601160016101000a81548160ff021916908360048111156121f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b02179055506121ff61331c565b565b60165481565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6122a36124c0565b73ffffffffffffffffffffffffffffffffffffffff166122c16118f7565b73ffffffffffffffffffffffffffffffffffffffff1614612317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230e90614f71565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612387576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237e90614e51565b60405180910390fd5b61239081612b46565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061245e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061246e575061246d826133f6565b5b9050919050565b61247e81613460565b6124bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b490614f91565b60405180910390fd5b50565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661253b83611da8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600260048111156125bb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff166004811115612603577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14612643576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263a90614e31565b60405180910390fd5b8060008151811061267d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516015819055506003601160016101000a81548160ff021916908360048111156126d7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b02179055505050565b6000806126ec83611da8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061272e575061272d8185612207565b5b8061276c57508373ffffffffffffffffffffffffffffffffffffffff16612754846109b7565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661279582611da8565b73ffffffffffffffffffffffffffffffffffffffff16146127eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e290614e71565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561285b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285290614e91565b60405180910390fd5b612866838383613497565b6128716000826124c8565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128c1919061535c565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612918919061527b565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129d7838383613517565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4490614ed1565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612b3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3490614f91565b60405180910390fd5b80915050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ce9c095d3073432f962d8209781da23fb37b6b59ee15de7d984160006002670de49f255ca4c000600066071afd498d0000600067ffffffffffffffff811115612cb8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015612ce65781602001602082028036833780820191505090505b506040518963ffffffff1660e01b8152600401612d0a989796959493929190614cd9565b602060405180830381600087803b158015612d2457600080fd5b505af1158015612d38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d5c9190614161565b905080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a541415612e1157600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600f5460046000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e84919061527b565b92505081905550600f54600a54612e9b919061527b565b600a81905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff16600f54612efd610c29565b14612f23576001600f54612f11919061535c565b600a54612f1e919061535c565b612f26565b60015b7fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d600a54604051612f57919061506c565b60405180910390a4565b600080600080600085875af1905080612faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa690614ff1565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613023576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301a90614eb1565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131149190614c6b565b60405180910390a3505050565b61312c848484612775565b6131388484848461387d565b613177576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316e90614e11565b60405180910390fd5b50505050565b60606000825114156131a057604051806020016040528060008152509050613317565b6000604051806060016040528060408152602001615e1d60409139905060006003600285516131cf919061527b565b6131d991906152d1565b60046131e59190615302565b905060006020826131f6919061527b565b67ffffffffffffffff811115613235577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132675781602001600182028036833780820191505090505b509050818152600183018586518101602084015b818310156132d6576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f811685015182536001820191505061327b565b6003895106600181146132f057600281146133005761330b565b613d3d60f01b600283035261330b565b603d60f81b60018303525b50505050508093505050505b919050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30601454601260149054906101000a900467ffffffffffffffff166003620186a060016040518663ffffffff1660e01b815260040161339c959493929190614c86565b602060405180830381600087803b1580156133b657600080fd5b505af11580156133ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133ee91906144a7565b601681905550565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000600a5482111561347c5761347582613a14565b9050613492565b6000821015801561348f5750600a548211155b90505b919050565b6134a2838383613a80565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613512576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161350990614f11565b60405180910390fd5b505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561375957601054601160029054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16600a546135ae919061535c565b1015801561363b5750600160048111156135f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff166004811115613639577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b145b1561369e576002601160016101000a81548160ff0219169083600481111561368c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b021790555061369961331c565b61374b565b600360048111156136d8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff166004811115613720577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14801561373a5750601160009054906101000a900460ff16155b1561374a5761374960286119d8565b5b5b61375481613ad8565b613878565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156138775760006137dc600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611404565b14801561386857506001600481111561381e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff166004811115613866577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b145b1561387657613875612da2565b5b5b5b505050565b600061389e8473ffffffffffffffffffffffffffffffffffffffff16613c80565b15613a07578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026138c76124c0565b8786866040518563ffffffff1660e01b81526004016138e99493929190614c1f565b602060405180830381600087803b15801561390357600080fd5b505af192505050801561393457506040513d601f19601f82011682018060405250810190613931919061439d565b60015b6139b7573d8060008114613964576040519150601f19603f3d011682016040523d82523d6000602084013e613969565b606091505b506000815114156139af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139a690614e11565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613a0c565b600190505b949350505050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b613a8b838383613ca3565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613ad357613ac88382613ca8565b613ad28282613e15565b5b505050565b6000613ae382610fb3565b9050613af06000836124c8565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613b40919061535c565b9250508190555061dead6003600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001601160028282829054906101000a90046fffffffffffffffffffffffffffffffff16613bc99190615235565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555081601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b60006001613cb5846129dc565b613cbf919061535c565b9050600060086000848152602001908152602001600020549050818114613da4576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000613e20836129dc565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b6000613ea7613ea2846150ff565b6150da565b90508083825260208201905082856020860282011115613ec657600080fd5b60005b85811015613ef65781613edc8882613fe8565b845260208401935060208301925050600181019050613ec9565b5050509392505050565b6000613f13613f0e8461512b565b6150da565b90508083825260208201905082856020860282011115613f3257600080fd5b60005b85811015613f625781613f48888261410e565b845260208401935060208301925050600181019050613f35565b5050509392505050565b6000613f7f613f7a84615157565b6150da565b905082815260208101848484011115613f9757600080fd5b613fa28482856155cc565b509392505050565b6000613fbd613fb884615188565b6150da565b905082815260208101848484011115613fd557600080fd5b613fe08482856155db565b509392505050565b600081359050613ff781615db0565b92915050565b60008151905061400c81615db0565b92915050565b600082601f83011261402357600080fd5b8135614033848260208601613e94565b91505092915050565b600082601f83011261404d57600080fd5b813561405d848260208601613f00565b91505092915050565b60008135905061407581615dc7565b92915050565b60008135905061408a81615dde565b92915050565b60008151905061409f81615dde565b92915050565b600082601f8301126140b657600080fd5b81356140c6848260208601613f6c565b91505092915050565b6000815190506140de81615df5565b92915050565b600082601f8301126140f557600080fd5b8151614105848260208601613faa565b91505092915050565b60008135905061411d81615e05565b92915050565b60008151905061413281615e05565b92915050565b60006020828403121561414a57600080fd5b600061415884828501613fe8565b91505092915050565b60006020828403121561417357600080fd5b600061418184828501613ffd565b91505092915050565b6000806040838503121561419d57600080fd5b60006141ab85828601613fe8565b92505060206141bc85828601613fe8565b9150509250929050565b6000806000606084860312156141db57600080fd5b60006141e986828701613fe8565b93505060206141fa86828701613fe8565b925050604061420b8682870161410e565b9150509250925092565b6000806000806080858703121561422b57600080fd5b600061423987828801613fe8565b945050602061424a87828801613fe8565b935050604061425b8782880161410e565b925050606085013567ffffffffffffffff81111561427857600080fd5b614284878288016140a5565b91505092959194509250565b600080604083850312156142a357600080fd5b60006142b185828601613fe8565b92505060206142c285828601614066565b9150509250929050565b600080604083850312156142df57600080fd5b60006142ed85828601613fe8565b92505060206142fe8582860161410e565b9150509250929050565b6000806040838503121561431b57600080fd5b600083013567ffffffffffffffff81111561433557600080fd5b61434185828601614012565b925050602083013567ffffffffffffffff81111561435e57600080fd5b61436a8582860161403c565b9150509250929050565b60006020828403121561438657600080fd5b60006143948482850161407b565b91505092915050565b6000602082840312156143af57600080fd5b60006143bd84828501614090565b91505092915050565b600080600080600060a086880312156143de57600080fd5b60006143ec888289016140cf565b95505060206143fd88828901614123565b945050604061440e88828901614123565b935050606061441f88828901614123565b925050608061443088828901614123565b9150509295509295909350565b60006020828403121561444f57600080fd5b600082015167ffffffffffffffff81111561446957600080fd5b614475848285016140e4565b91505092915050565b60006020828403121561449057600080fd5b600061449e8482850161410e565b91505092915050565b6000602082840312156144b957600080fd5b60006144c784828501614123565b91505092915050565b600080604083850312156144e357600080fd5b60006144f18582860161410e565b925050602083013567ffffffffffffffff81111561450e57600080fd5b61451a8582860161403c565b9150509250929050565b60006145308383614b10565b60208301905092915050565b614545816153a2565b82525050565b61455481615390565b82525050565b6000614565826151c9565b61456f81856151f7565b935061457a836151b9565b8060005b838110156145ab5781516145928882614524565b975061459d836151ea565b92505060018101905061457e565b5085935050505092915050565b6145c1816153b4565b82525050565b6145d0816153c0565b82525050565b60006145e1826151d4565b6145eb8185615208565b93506145fb8185602086016155db565b614604816157a5565b840191505092915050565b614618816154ac565b82525050565b614627816154d0565b82525050565b614636816154f4565b82525050565b61464581615518565b82525050565b6146548161553c565b82525050565b6146638161554e565b82525050565b61467281615560565b82525050565b61468181615572565b82525050565b61469081615584565b82525050565b61469f81615596565b82525050565b6146ae816155a8565b82525050565b6146bd816155ba565b82525050565b60006146ce826151df565b6146d88185615219565b93506146e88185602086016155db565b6146f1816157a5565b840191505092915050565b6000614707826151df565b614711818561522a565b93506147218185602086016155db565b80840191505092915050565b600061473a600283615219565b9150614745826157b6565b602082019050919050565b600061475d600383615219565b9150614768826157df565b602082019050919050565b6000614780603283615219565b915061478b82615808565b604082019050919050565b60006147a3600f8361522a565b91506147ae82615857565b600f82019050919050565b60006147c6600283615219565b91506147d182615880565b602082019050919050565b60006147e9602683615219565b91506147f4826158a9565b604082019050919050565b600061480c60028361522a565b9150614817826158f8565b600282019050919050565b600061482f602583615219565b915061483a82615921565b604082019050919050565b6000614852602483615219565b915061485d82615970565b604082019050919050565b6000614875601983615219565b9150614880826159bf565b602082019050919050565b6000614898602983615219565b91506148a3826159e8565b604082019050919050565b60006148bb60018361522a565b91506148c682615a37565b600182019050919050565b60006148de600283615219565b91506148e982615a60565b602082019050919050565b6000614901600283615219565b915061490c82615a89565b602082019050919050565b6000614924600383615219565b915061492f82615ab2565b602082019050919050565b6000614947603e83615219565b915061495282615adb565b604082019050919050565b600061496a601a8361522a565b915061497582615b2a565b601a82019050919050565b600061498d602083615219565b915061499882615b53565b602082019050919050565b60006149b0600b8361522a565b91506149bb82615b7c565b600b82019050919050565b60006149d3601883615219565b91506149de82615ba5565b602082019050919050565b60006149f6602183615219565b9150614a0182615bce565b604082019050919050565b6000614a19601d8361522a565b9150614a2482615c1d565b601d82019050919050565b6000614a3c60108361522a565b9150614a4782615c46565b601082019050919050565b6000614a5f602c83615219565b9150614a6a82615c6f565b604082019050919050565b6000614a82601383615219565b9150614a8d82615cbe565b602082019050919050565b6000614aa5600283615219565b9150614ab082615ce7565b602082019050919050565b6000614ac8602e83615219565b9150614ad382615d10565b604082019050919050565b6000614aeb601a8361522a565b9150614af682615d5f565b601a82019050919050565b614b0a8161541c565b82525050565b614b1981615466565b82525050565b614b2881615466565b82525050565b614b3781615480565b82525050565b6000614b488261495d565b9150614b53826149a3565b9150614b5e826148ae565b9150614b6982614ade565b9150614b7582856146fc565b9150614b80826147ff565b9150614b8b82614796565b9150614b9782846146fc565b9150614ba2826147ff565b9150614bad82614a2f565b91508190509392505050565b6000614bc482614a0c565b9150614bd082846146fc565b915081905092915050565b6000602082019050614bf0600083018461454b565b92915050565b6000604082019050614c0b600083018561454b565b614c18602083018461454b565b9392505050565b6000608082019050614c34600083018761454b565b614c41602083018661454b565b614c4e6040830185614b1f565b8181036060830152614c6081846145d6565b905095945050505050565b6000602082019050614c8060008301846145b8565b92915050565b600060a082019050614c9b60008301886145c7565b614ca86020830187614b2e565b614cb560408301866146b4565b614cc26060830185614678565b614ccf6080830184614696565b9695505050505050565b600061010082019050614cef600083018b61461e565b614cfc602083018a61460f565b614d09604083018961453c565b614d16606083018861465a565b614d236080830187614687565b614d3060a0830186614669565b614d3d60c08301856146a5565b81810360e0830152614d4f818461455a565b90509998505050505050505050565b6000602082019050614d73600083018461462d565b92915050565b6000602082019050614d8e600083018461463c565b92915050565b6000602082019050614da9600083018461464b565b92915050565b60006020820190508181036000830152614dc981846146c3565b905092915050565b60006020820190508181036000830152614dea8161472d565b9050919050565b60006020820190508181036000830152614e0a81614750565b9050919050565b60006020820190508181036000830152614e2a81614773565b9050919050565b60006020820190508181036000830152614e4a816147b9565b9050919050565b60006020820190508181036000830152614e6a816147dc565b9050919050565b60006020820190508181036000830152614e8a81614822565b9050919050565b60006020820190508181036000830152614eaa81614845565b9050919050565b60006020820190508181036000830152614eca81614868565b9050919050565b60006020820190508181036000830152614eea8161488b565b9050919050565b60006020820190508181036000830152614f0a816148d1565b9050919050565b60006020820190508181036000830152614f2a816148f4565b9050919050565b60006020820190508181036000830152614f4a81614917565b9050919050565b60006020820190508181036000830152614f6a8161493a565b9050919050565b60006020820190508181036000830152614f8a81614980565b9050919050565b60006020820190508181036000830152614faa816149c6565b9050919050565b60006020820190508181036000830152614fca816149e9565b9050919050565b60006020820190508181036000830152614fea81614a52565b9050919050565b6000602082019050818103600083015261500a81614a75565b9050919050565b6000602082019050818103600083015261502a81614a98565b9050919050565b6000602082019050818103600083015261504a81614abb565b9050919050565b60006020820190506150666000830184614b01565b92915050565b60006020820190506150816000830184614b1f565b92915050565b600060a08201905061509c6000830188614b1f565b6150a96020830187614b1f565b6150b6604083018661454b565b6150c360608301856145b8565b6150d0608083018461454b565b9695505050505050565b60006150e46150f5565b90506150f08282615640565b919050565b6000604051905090565b600067ffffffffffffffff82111561511a57615119615776565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561514657615145615776565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561517257615171615776565b5b61517b826157a5565b9050602081019050919050565b600067ffffffffffffffff8211156151a3576151a2615776565b5b6151ac826157a5565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006152408261541c565b915061524b8361541c565b9250826fffffffffffffffffffffffffffffffff038211156152705761526f6156ba565b5b828201905092915050565b600061528682615466565b915061529183615466565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156152c6576152c56156ba565b5b828201905092915050565b60006152dc82615466565b91506152e783615466565b9250826152f7576152f66156e9565b5b828204905092915050565b600061530d82615466565b915061531883615466565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615351576153506156ba565b5b828202905092915050565b600061536782615466565b915061537283615466565b925082821015615385576153846156ba565b5b828203905092915050565b600061539b82615446565b9050919050565b60006153ad82615446565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600081905061540482615d88565b919050565b600081905061541782615d9c565b919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b60006154b7826154be565b9050919050565b60006154c982615446565b9050919050565b60006154db826154e2565b9050919050565b60006154ed82615446565b9050919050565b60006154ff82615506565b9050919050565b600061551182615446565b9050919050565b60006155238261552a565b9050919050565b600061553582615446565b9050919050565b6000615547826153f6565b9050919050565b600061555982615409565b9050919050565b600061556b82615494565b9050919050565b600061557d82615470565b9050919050565b600061558f8261541c565b9050919050565b60006155a182615470565b9050919050565b60006155b38261541c565b9050919050565b60006155c582615438565b9050919050565b82818337600083830152505050565b60005b838110156155f95780820151818401526020810190506155de565b83811115615608576000848401525b50505050565b6000600282049050600182168061562657607f821691505b6020821081141561563a57615639615747565b5b50919050565b615649826157a5565b810181811067ffffffffffffffff8211171561566857615667615776565b5b80604052505050565b600061567c82615466565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156156af576156ae6156ba565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f7374000000000000000000000000000000000000000000000000000000000000600082015250565b7f4e76550000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f226465736372697074696f6e223a220000000000000000000000000000000000600082015250565b7f7331000000000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f222c000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f2200000000000000000000000000000000000000000000000000000000000000600082015250565b7f7332000000000000000000000000000000000000000000000000000000000000600082015250565b7f6234000000000000000000000000000000000000000000000000000000000000600082015250565b7f4f6f420000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f7b226e616d65223a2254686520526166666c65205469636b6574000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f222c22696d616765223a20000000000000000000000000000000000000000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b7f2261747472696275746573223a5b5d7d00000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4554485f5452414e534645525f4641494c454400000000000000000000000000600082015250565b7f7333000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600082015250565b60058110615d9957615d98615718565b5b50565b60038110615dad57615dac615718565b5b50565b615db981615390565b8114615dc457600080fd5b50565b615dd0816153b4565b8114615ddb57600080fd5b50565b615de7816153ca565b8114615df257600080fd5b50565b60038110615e0257600080fd5b50565b615e0e81615466565b8114615e1957600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f54686520526166666c6520697320616e206f6e20636861696e205375646f737761702067616d652c2061206c75636b7920757365722063616e2074616b6520686f6d65203430302b206574682ea26469706673582212209d44f1d21cf3e7679d7c286d981d49d6c09dc35c3d444447e589d2e3b6488b5264736f6c63430008040033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000124000000000000000000000000000000000000000000000000000000000000000d54686520526166666c65204949000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006524146464c450000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061021e5760003560e01c806370a0823111610123578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd146107c6578063d523f07414610803578063e89e106a1461081a578063e985e9c514610845578063f2fde38b1461088257610225565b8063a22cb465146106e1578063b4c3db261461070a578063b66fdf3a14610747578063b88d4fde14610772578063c26eea541461079b57610225565b80638129fc1c116100f25780638129fc1c1461062d5780638da5cb5b1461063757806391cca3db1461066257806395d89b411461068d57806399351742146106b857610225565b806370a0823114610583578063715018a6146105c057806373f42561146105d75780637501f7411461060257610225565b80631fe543e3116101a65780634f6ccce7116101755780634f6ccce7146104855780636352211e146104c25780636653c057146104ff578063672434821461052a57806367d108631461054657610225565b80631fe543e3146103cd57806323b872dd146103f65780632f745c591461041f57806342842e0e1461045c57610225565b80630c3f6acf116101ed5780630c3f6acf146102f85780631503cb8014610323578063178ddeda1461034c57806318160ddd146103775780631b3ed722146103a257610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf57610225565b3661022557005b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190614374565b6108ab565b60405161025e9190614c6b565b60405180910390f35b34801561027357600080fd5b5061027c610925565b6040516102899190614daf565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b4919061447e565b6109b7565b6040516102c69190614bdb565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f191906142cc565b6109fd565b005b34801561030457600080fd5b5061030d610b15565b60405161031a9190614d94565b60405180910390f35b34801561032f57600080fd5b5061034a60048036038101906103459190614290565b610b28565b005b34801561035857600080fd5b50610361610c03565b60405161036e9190614d5e565b60405180910390f35b34801561038357600080fd5b5061038c610c29565b604051610399919061506c565b60405180910390f35b3480156103ae57600080fd5b506103b7610c33565b6040516103c4919061506c565b60405180910390f35b3480156103d957600080fd5b506103f460048036038101906103ef91906144d0565b610c39565b005b34801561040257600080fd5b5061041d600480360381019061041891906141c6565b610cf9565b005b34801561042b57600080fd5b50610446600480360381019061044191906142cc565b610d59565b604051610453919061506c565b60405180910390f35b34801561046857600080fd5b50610483600480360381019061047e91906141c6565b610f39565b005b34801561049157600080fd5b506104ac60048036038101906104a7919061447e565b610f59565b6040516104b9919061506c565b60405180910390f35b3480156104ce57600080fd5b506104e960048036038101906104e4919061447e565b610fb3565b6040516104f69190614bdb565b60405180910390f35b34801561050b57600080fd5b50610514611146565b6040516105219190614c6b565b60405180910390f35b610544600480360381019061053f9190614308565b611159565b005b34801561055257600080fd5b5061056d60048036038101906105689190614138565b611404565b60405161057a919061506c565b60405180910390f35b34801561058f57600080fd5b506105aa60048036038101906105a59190614138565b6114bc565b6040516105b7919061506c565b60405180910390f35b3480156105cc57600080fd5b506105d56116a6565b005b3480156105e357600080fd5b506105ec61172e565b6040516105f99190615051565b60405180910390f35b34801561060e57600080fd5b50610617611750565b604051610624919061506c565b60405180910390f35b610635611756565b005b34801561064357600080fd5b5061064c6118f7565b6040516106599190614bdb565b60405180910390f35b34801561066e57600080fd5b50610677611920565b6040516106849190614bdb565b60405180910390f35b34801561069957600080fd5b506106a2611946565b6040516106af9190614daf565b60405180910390f35b3480156106c457600080fd5b506106df60048036038101906106da919061447e565b6119d8565b005b3480156106ed57600080fd5b5061070860048036038101906107039190614290565b611d92565b005b34801561071657600080fd5b50610731600480360381019061072c919061447e565b611da8565b60405161073e9190614bdb565b60405180910390f35b34801561075357600080fd5b5061075c611e61565b6040516107699190614d79565b60405180910390f35b34801561077e57600080fd5b5061079960048036038101906107949190614215565b611e87565b005b3480156107a757600080fd5b506107b0611ee9565b6040516107bd919061506c565b60405180910390f35b3480156107d257600080fd5b506107ed60048036038101906107e8919061447e565b611eef565b6040516107fa9190614daf565b60405180910390f35b34801561080f57600080fd5b5061081861201c565b005b34801561082657600080fd5b5061082f612201565b60405161083c919061506c565b60405180910390f35b34801561085157600080fd5b5061086c6004803603810190610867919061418a565b612207565b6040516108799190614c6b565b60405180910390f35b34801561088e57600080fd5b506108a960048036038101906108a49190614138565b61229b565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061091e575061091d82612393565b5b9050919050565b6060600180546109349061560e565b80601f01602080910402602001604051908101604052809291908181526020018280546109609061560e565b80156109ad5780601f10610982576101008083540402835291602001916109ad565b820191906000526020600020905b81548152906001019060200180831161099057829003601f168201915b5050505050905090565b60006109c282612475565b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a0882611da8565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7090614fb1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a986124c0565b73ffffffffffffffffffffffffffffffffffffffff161480610ac75750610ac681610ac16124c0565b612207565b5b610b06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afd90614f51565b60405180910390fd5b610b1083836124c8565b505050565b601160019054906101000a900460ff1681565b610b306124c0565b73ffffffffffffffffffffffffffffffffffffffff16610b4e6118f7565b73ffffffffffffffffffffffffffffffffffffffff1614610ba4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9b90614f71565b60405180910390fd5b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601160006101000a81548160ff0219169083151502179055505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600a54905090565b600f5481565b7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990973ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ceb57337f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699096040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610ce2929190614bf6565b60405180910390fd5b610cf58282612581565b5050565b610d0a610d046124c0565b826126e0565b610d49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4090615031565b60405180910390fd5b610d54838383612775565b505050565b6000610d64836129dc565b8210610da5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9c90614f31565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ed4576000600f54610e08610c29565b610e12919061535c565b90506000610e1e610c29565b905060005b81831015610ecc57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610e6d84611da8565b73ffffffffffffffffffffffffffffffffffffffff161415610eb857600181610e96919061527b565b905084600182610ea6919061535c565b1415610eb757829350505050610f33565b5b600183610ec5919061527b565b9250610e23565b505050610f32565b6000600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080915050610f33565b5b92915050565b610f5483838360405180602001604052806000815250611e87565b505050565b6000600a548210610f9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9690614fd1565b60405180910390fd5b600182610fac919061527b565b9050919050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480156110965750601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b156110c657600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050611141565b600a548311156110e1576110d983612a94565b915050611141565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561113c57600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b809150505b919050565b601160009054906101000a900460ff1681565b6111616124c0565b73ffffffffffffffffffffffffffffffffffffffff1661117f6118f7565b73ffffffffffffffffffffffffffffffffffffffff16146111d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cc90614f71565b60405180910390fd5b60005b82518110156113ff576000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a5cb2b9184848151811061125a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161127e919061506c565b60a06040518083038186803b15801561129657600080fd5b505afa1580156112aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ce91906143c6565b509350505050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166328b8aee18285858151811061134c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518488878151811061138e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516000806040518763ffffffff1660e01b81526004016113b9959493929190615087565b6000604051808303818588803b1580156113d257600080fd5b505af11580156113e6573d6000803e3d6000fd5b50505050505080806113f790615671565b9150506111d8565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611475576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146c90614df1565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561152d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152490614df1565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480156115d75750600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b1561165e57601160029054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611657919061527b565b90506116a1565b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b919050565b6116ae6124c0565b73ffffffffffffffffffffffffffffffffffffffff166116cc6118f7565b73ffffffffffffffffffffffffffffffffffffffff1614611722576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171990614f71565b60405180910390fd5b61172c6000612b46565b565b601160029054906101000a90046fffffffffffffffffffffffffffffffff1681565b60105481565b61175e6124c0565b73ffffffffffffffffffffffffffffffffffffffff1661177c6118f7565b73ffffffffffffffffffffffffffffffffffffffff16146117d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c990614f71565b60405180910390fd5b6000600481111561180c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff166004811115611854577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188b90614dd1565b60405180910390fd5b61189c612c0a565b6118a4612da2565b6001601160016101000a81548160ff021916908360048111156118f0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600280546119559061560e565b80601f01602080910402602001604051908101604052809291908181526020018280546119819061560e565b80156119ce5780601f106119a3576101008083540402835291602001916119ce565b820191906000526020600020905b8154815290600101906020018083116119b157829003601f168201915b5050505050905090565b60036004811115611a12577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff166004811115611a5a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14611a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9190614ef1565b60405180910390fd5b6000611aa4610c29565b905060005b82811015611d815760006003600084846015540181611af1577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b06815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015611b8e575061dead73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015611be85750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b15611d7357600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166390386bbf6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611c5757600080fd5b505af1158015611c6b573d6000803e3d6000fd5b50505050611cf1600a4781611ca9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612f6190919063ffffffff16565b611d1a478273ffffffffffffffffffffffffffffffffffffffff16612f6190919063ffffffff16565b6004601160016101000a81548160ff02191690836004811115611d66577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b0217905550505050611d8f565b818060010192505050611aa9565b806015540160158190555050505b50565b611da4611d9d6124c0565b8383612fb4565b5050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600a54831115611dfc57611df483612a94565b915050611e5c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e5757600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b809150505b919050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611e98611e926124c0565b836126e0565b611ed7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ece90615031565b60405180910390fd5b611ee384848484613121565b50505050565b60155481565b606060006040518060800160405280604d8152602001615e5d604d913990506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c321118c856040518263ffffffff1660e01b8152600401611f6b919061506c565b60006040518083038186803b158015611f8357600080fd5b505afa158015611f97573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611fc0919061443d565b9050611ff4611fce8261317d565b83604051602001611fe0929190614b3d565b60405160208183030381529060405261317d565b6040516020016120049190614bb9565b60405160208183030381529060405292505050919050565b6120246124c0565b73ffffffffffffffffffffffffffffffffffffffff166120426118f7565b73ffffffffffffffffffffffffffffffffffffffff1614612098576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208f90614f71565b60405180910390fd5b600360048111156120d2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff16600481111561211a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141580156121675750601054601160029054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16600a54612164919061535c565b10155b6121a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219d90615011565b60405180910390fd5b6002601160016101000a81548160ff021916908360048111156121f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b02179055506121ff61331c565b565b60165481565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6122a36124c0565b73ffffffffffffffffffffffffffffffffffffffff166122c16118f7565b73ffffffffffffffffffffffffffffffffffffffff1614612317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230e90614f71565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612387576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237e90614e51565b60405180910390fd5b61239081612b46565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061245e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061246e575061246d826133f6565b5b9050919050565b61247e81613460565b6124bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b490614f91565b60405180910390fd5b50565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661253b83611da8565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600260048111156125bb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff166004811115612603577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14612643576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263a90614e31565b60405180910390fd5b8060008151811061267d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516015819055506003601160016101000a81548160ff021916908360048111156126d7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b02179055505050565b6000806126ec83611da8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061272e575061272d8185612207565b5b8061276c57508373ffffffffffffffffffffffffffffffffffffffff16612754846109b7565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661279582611da8565b73ffffffffffffffffffffffffffffffffffffffff16146127eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e290614e71565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561285b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285290614e91565b60405180910390fd5b612866838383613497565b6128716000826124c8565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128c1919061535c565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612918919061527b565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129d7838383613517565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4490614ed1565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612b3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3490614f91565b60405180910390fd5b80915050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ce9c095d3073432f962d8209781da23fb37b6b59ee15de7d984160006002670de49f255ca4c000600066071afd498d0000600067ffffffffffffffff811115612cb8577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015612ce65781602001602082028036833780820191505090505b506040518963ffffffff1660e01b8152600401612d0a989796959493929190614cd9565b602060405180830381600087803b158015612d2457600080fd5b505af1158015612d38573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d5c9190614161565b905080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600a541415612e1157600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600f5460046000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e84919061527b565b92505081905550600f54600a54612e9b919061527b565b600a81905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff16600f54612efd610c29565b14612f23576001600f54612f11919061535c565b600a54612f1e919061535c565b612f26565b60015b7fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d600a54604051612f57919061506c565b60405180910390a4565b600080600080600085875af1905080612faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa690614ff1565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613023576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301a90614eb1565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516131149190614c6b565b60405180910390a3505050565b61312c848484612775565b6131388484848461387d565b613177576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161316e90614e11565b60405180910390fd5b50505050565b60606000825114156131a057604051806020016040528060008152509050613317565b6000604051806060016040528060408152602001615e1d60409139905060006003600285516131cf919061527b565b6131d991906152d1565b60046131e59190615302565b905060006020826131f6919061527b565b67ffffffffffffffff811115613235577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132675781602001600182028036833780820191505090505b509050818152600183018586518101602084015b818310156132d6576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f811685015182536001820191505061327b565b6003895106600181146132f057600281146133005761330b565b613d3d60f01b600283035261330b565b603d60f81b60018303525b50505050508093505050505b919050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635d3b1d30601454601260149054906101000a900467ffffffffffffffff166003620186a060016040518663ffffffff1660e01b815260040161339c959493929190614c86565b602060405180830381600087803b1580156133b657600080fd5b505af11580156133ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133ee91906144a7565b601681905550565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000600a5482111561347c5761347582613a14565b9050613492565b6000821015801561348f5750600a548211155b90505b919050565b6134a2838383613a80565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613512576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161350990614f11565b60405180910390fd5b505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561375957601054601160029054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16600a546135ae919061535c565b1015801561363b5750600160048111156135f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff166004811115613639577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b145b1561369e576002601160016101000a81548160ff0219169083600481111561368c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b021790555061369961331c565b61374b565b600360048111156136d8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff166004811115613720577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14801561373a5750601160009054906101000a900460ff16155b1561374a5761374960286119d8565b5b5b61375481613ad8565b613878565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156138775760006137dc600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611404565b14801561386857506001600481111561381e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601160019054906101000a900460ff166004811115613866577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b145b1561387657613875612da2565b5b5b5b505050565b600061389e8473ffffffffffffffffffffffffffffffffffffffff16613c80565b15613a07578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026138c76124c0565b8786866040518563ffffffff1660e01b81526004016138e99493929190614c1f565b602060405180830381600087803b15801561390357600080fd5b505af192505050801561393457506040513d601f19601f82011682018060405250810190613931919061439d565b60015b6139b7573d8060008114613964576040519150601f19603f3d011682016040523d82523d6000602084013e613969565b606091505b506000815114156139af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139a690614e11565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613a0c565b600190505b949350505050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b613a8b838383613ca3565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613ad357613ac88382613ca8565b613ad28282613e15565b5b505050565b6000613ae382610fb3565b9050613af06000836124c8565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613b40919061535c565b9250508190555061dead6003600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001601160028282829054906101000a90046fffffffffffffffffffffffffffffffff16613bc99190615235565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555081601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b60006001613cb5846129dc565b613cbf919061535c565b9050600060086000848152602001908152602001600020549050818114613da4576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000613e20836129dc565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b6000613ea7613ea2846150ff565b6150da565b90508083825260208201905082856020860282011115613ec657600080fd5b60005b85811015613ef65781613edc8882613fe8565b845260208401935060208301925050600181019050613ec9565b5050509392505050565b6000613f13613f0e8461512b565b6150da565b90508083825260208201905082856020860282011115613f3257600080fd5b60005b85811015613f625781613f48888261410e565b845260208401935060208301925050600181019050613f35565b5050509392505050565b6000613f7f613f7a84615157565b6150da565b905082815260208101848484011115613f9757600080fd5b613fa28482856155cc565b509392505050565b6000613fbd613fb884615188565b6150da565b905082815260208101848484011115613fd557600080fd5b613fe08482856155db565b509392505050565b600081359050613ff781615db0565b92915050565b60008151905061400c81615db0565b92915050565b600082601f83011261402357600080fd5b8135614033848260208601613e94565b91505092915050565b600082601f83011261404d57600080fd5b813561405d848260208601613f00565b91505092915050565b60008135905061407581615dc7565b92915050565b60008135905061408a81615dde565b92915050565b60008151905061409f81615dde565b92915050565b600082601f8301126140b657600080fd5b81356140c6848260208601613f6c565b91505092915050565b6000815190506140de81615df5565b92915050565b600082601f8301126140f557600080fd5b8151614105848260208601613faa565b91505092915050565b60008135905061411d81615e05565b92915050565b60008151905061413281615e05565b92915050565b60006020828403121561414a57600080fd5b600061415884828501613fe8565b91505092915050565b60006020828403121561417357600080fd5b600061418184828501613ffd565b91505092915050565b6000806040838503121561419d57600080fd5b60006141ab85828601613fe8565b92505060206141bc85828601613fe8565b9150509250929050565b6000806000606084860312156141db57600080fd5b60006141e986828701613fe8565b93505060206141fa86828701613fe8565b925050604061420b8682870161410e565b9150509250925092565b6000806000806080858703121561422b57600080fd5b600061423987828801613fe8565b945050602061424a87828801613fe8565b935050604061425b8782880161410e565b925050606085013567ffffffffffffffff81111561427857600080fd5b614284878288016140a5565b91505092959194509250565b600080604083850312156142a357600080fd5b60006142b185828601613fe8565b92505060206142c285828601614066565b9150509250929050565b600080604083850312156142df57600080fd5b60006142ed85828601613fe8565b92505060206142fe8582860161410e565b9150509250929050565b6000806040838503121561431b57600080fd5b600083013567ffffffffffffffff81111561433557600080fd5b61434185828601614012565b925050602083013567ffffffffffffffff81111561435e57600080fd5b61436a8582860161403c565b9150509250929050565b60006020828403121561438657600080fd5b60006143948482850161407b565b91505092915050565b6000602082840312156143af57600080fd5b60006143bd84828501614090565b91505092915050565b600080600080600060a086880312156143de57600080fd5b60006143ec888289016140cf565b95505060206143fd88828901614123565b945050604061440e88828901614123565b935050606061441f88828901614123565b925050608061443088828901614123565b9150509295509295909350565b60006020828403121561444f57600080fd5b600082015167ffffffffffffffff81111561446957600080fd5b614475848285016140e4565b91505092915050565b60006020828403121561449057600080fd5b600061449e8482850161410e565b91505092915050565b6000602082840312156144b957600080fd5b60006144c784828501614123565b91505092915050565b600080604083850312156144e357600080fd5b60006144f18582860161410e565b925050602083013567ffffffffffffffff81111561450e57600080fd5b61451a8582860161403c565b9150509250929050565b60006145308383614b10565b60208301905092915050565b614545816153a2565b82525050565b61455481615390565b82525050565b6000614565826151c9565b61456f81856151f7565b935061457a836151b9565b8060005b838110156145ab5781516145928882614524565b975061459d836151ea565b92505060018101905061457e565b5085935050505092915050565b6145c1816153b4565b82525050565b6145d0816153c0565b82525050565b60006145e1826151d4565b6145eb8185615208565b93506145fb8185602086016155db565b614604816157a5565b840191505092915050565b614618816154ac565b82525050565b614627816154d0565b82525050565b614636816154f4565b82525050565b61464581615518565b82525050565b6146548161553c565b82525050565b6146638161554e565b82525050565b61467281615560565b82525050565b61468181615572565b82525050565b61469081615584565b82525050565b61469f81615596565b82525050565b6146ae816155a8565b82525050565b6146bd816155ba565b82525050565b60006146ce826151df565b6146d88185615219565b93506146e88185602086016155db565b6146f1816157a5565b840191505092915050565b6000614707826151df565b614711818561522a565b93506147218185602086016155db565b80840191505092915050565b600061473a600283615219565b9150614745826157b6565b602082019050919050565b600061475d600383615219565b9150614768826157df565b602082019050919050565b6000614780603283615219565b915061478b82615808565b604082019050919050565b60006147a3600f8361522a565b91506147ae82615857565b600f82019050919050565b60006147c6600283615219565b91506147d182615880565b602082019050919050565b60006147e9602683615219565b91506147f4826158a9565b604082019050919050565b600061480c60028361522a565b9150614817826158f8565b600282019050919050565b600061482f602583615219565b915061483a82615921565b604082019050919050565b6000614852602483615219565b915061485d82615970565b604082019050919050565b6000614875601983615219565b9150614880826159bf565b602082019050919050565b6000614898602983615219565b91506148a3826159e8565b604082019050919050565b60006148bb60018361522a565b91506148c682615a37565b600182019050919050565b60006148de600283615219565b91506148e982615a60565b602082019050919050565b6000614901600283615219565b915061490c82615a89565b602082019050919050565b6000614924600383615219565b915061492f82615ab2565b602082019050919050565b6000614947603e83615219565b915061495282615adb565b604082019050919050565b600061496a601a8361522a565b915061497582615b2a565b601a82019050919050565b600061498d602083615219565b915061499882615b53565b602082019050919050565b60006149b0600b8361522a565b91506149bb82615b7c565b600b82019050919050565b60006149d3601883615219565b91506149de82615ba5565b602082019050919050565b60006149f6602183615219565b9150614a0182615bce565b604082019050919050565b6000614a19601d8361522a565b9150614a2482615c1d565b601d82019050919050565b6000614a3c60108361522a565b9150614a4782615c46565b601082019050919050565b6000614a5f602c83615219565b9150614a6a82615c6f565b604082019050919050565b6000614a82601383615219565b9150614a8d82615cbe565b602082019050919050565b6000614aa5600283615219565b9150614ab082615ce7565b602082019050919050565b6000614ac8602e83615219565b9150614ad382615d10565b604082019050919050565b6000614aeb601a8361522a565b9150614af682615d5f565b601a82019050919050565b614b0a8161541c565b82525050565b614b1981615466565b82525050565b614b2881615466565b82525050565b614b3781615480565b82525050565b6000614b488261495d565b9150614b53826149a3565b9150614b5e826148ae565b9150614b6982614ade565b9150614b7582856146fc565b9150614b80826147ff565b9150614b8b82614796565b9150614b9782846146fc565b9150614ba2826147ff565b9150614bad82614a2f565b91508190509392505050565b6000614bc482614a0c565b9150614bd082846146fc565b915081905092915050565b6000602082019050614bf0600083018461454b565b92915050565b6000604082019050614c0b600083018561454b565b614c18602083018461454b565b9392505050565b6000608082019050614c34600083018761454b565b614c41602083018661454b565b614c4e6040830185614b1f565b8181036060830152614c6081846145d6565b905095945050505050565b6000602082019050614c8060008301846145b8565b92915050565b600060a082019050614c9b60008301886145c7565b614ca86020830187614b2e565b614cb560408301866146b4565b614cc26060830185614678565b614ccf6080830184614696565b9695505050505050565b600061010082019050614cef600083018b61461e565b614cfc602083018a61460f565b614d09604083018961453c565b614d16606083018861465a565b614d236080830187614687565b614d3060a0830186614669565b614d3d60c08301856146a5565b81810360e0830152614d4f818461455a565b90509998505050505050505050565b6000602082019050614d73600083018461462d565b92915050565b6000602082019050614d8e600083018461463c565b92915050565b6000602082019050614da9600083018461464b565b92915050565b60006020820190508181036000830152614dc981846146c3565b905092915050565b60006020820190508181036000830152614dea8161472d565b9050919050565b60006020820190508181036000830152614e0a81614750565b9050919050565b60006020820190508181036000830152614e2a81614773565b9050919050565b60006020820190508181036000830152614e4a816147b9565b9050919050565b60006020820190508181036000830152614e6a816147dc565b9050919050565b60006020820190508181036000830152614e8a81614822565b9050919050565b60006020820190508181036000830152614eaa81614845565b9050919050565b60006020820190508181036000830152614eca81614868565b9050919050565b60006020820190508181036000830152614eea8161488b565b9050919050565b60006020820190508181036000830152614f0a816148d1565b9050919050565b60006020820190508181036000830152614f2a816148f4565b9050919050565b60006020820190508181036000830152614f4a81614917565b9050919050565b60006020820190508181036000830152614f6a8161493a565b9050919050565b60006020820190508181036000830152614f8a81614980565b9050919050565b60006020820190508181036000830152614faa816149c6565b9050919050565b60006020820190508181036000830152614fca816149e9565b9050919050565b60006020820190508181036000830152614fea81614a52565b9050919050565b6000602082019050818103600083015261500a81614a75565b9050919050565b6000602082019050818103600083015261502a81614a98565b9050919050565b6000602082019050818103600083015261504a81614abb565b9050919050565b60006020820190506150666000830184614b01565b92915050565b60006020820190506150816000830184614b1f565b92915050565b600060a08201905061509c6000830188614b1f565b6150a96020830187614b1f565b6150b6604083018661454b565b6150c360608301856145b8565b6150d0608083018461454b565b9695505050505050565b60006150e46150f5565b90506150f08282615640565b919050565b6000604051905090565b600067ffffffffffffffff82111561511a57615119615776565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561514657615145615776565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561517257615171615776565b5b61517b826157a5565b9050602081019050919050565b600067ffffffffffffffff8211156151a3576151a2615776565b5b6151ac826157a5565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006152408261541c565b915061524b8361541c565b9250826fffffffffffffffffffffffffffffffff038211156152705761526f6156ba565b5b828201905092915050565b600061528682615466565b915061529183615466565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156152c6576152c56156ba565b5b828201905092915050565b60006152dc82615466565b91506152e783615466565b9250826152f7576152f66156e9565b5b828204905092915050565b600061530d82615466565b915061531883615466565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615351576153506156ba565b5b828202905092915050565b600061536782615466565b915061537283615466565b925082821015615385576153846156ba565b5b828203905092915050565b600061539b82615446565b9050919050565b60006153ad82615446565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600081905061540482615d88565b919050565b600081905061541782615d9c565b919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600067ffffffffffffffff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b60006154b7826154be565b9050919050565b60006154c982615446565b9050919050565b60006154db826154e2565b9050919050565b60006154ed82615446565b9050919050565b60006154ff82615506565b9050919050565b600061551182615446565b9050919050565b60006155238261552a565b9050919050565b600061553582615446565b9050919050565b6000615547826153f6565b9050919050565b600061555982615409565b9050919050565b600061556b82615494565b9050919050565b600061557d82615470565b9050919050565b600061558f8261541c565b9050919050565b60006155a182615470565b9050919050565b60006155b38261541c565b9050919050565b60006155c582615438565b9050919050565b82818337600083830152505050565b60005b838110156155f95780820151818401526020810190506155de565b83811115615608576000848401525b50505050565b6000600282049050600182168061562657607f821691505b6020821081141561563a57615639615747565b5b50919050565b615649826157a5565b810181811067ffffffffffffffff8211171561566857615667615776565b5b80604052505050565b600061567c82615466565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156156af576156ae6156ba565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f7374000000000000000000000000000000000000000000000000000000000000600082015250565b7f4e76550000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f226465736372697074696f6e223a220000000000000000000000000000000000600082015250565b7f7331000000000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f222c000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f2200000000000000000000000000000000000000000000000000000000000000600082015250565b7f7332000000000000000000000000000000000000000000000000000000000000600082015250565b7f6234000000000000000000000000000000000000000000000000000000000000600082015250565b7f4f6f420000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f7b226e616d65223a2254686520526166666c65205469636b6574000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f222c22696d616765223a20000000000000000000000000000000000000000000600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b7f2261747472696275746573223a5b5d7d00000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4554485f5452414e534645525f4641494c454400000000000000000000000000600082015250565b7f7333000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600082015250565b60058110615d9957615d98615718565b5b50565b60038110615dad57615dac615718565b5b50565b615db981615390565b8114615dc457600080fd5b50565b615dd0816153b4565b8114615ddb57600080fd5b50565b615de7816153ca565b8114615df257600080fd5b50565b60038110615e0257600080fd5b50565b615e0e81615466565b8114615e1957600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f54686520526166666c6520697320616e206f6e20636861696e205375646f737761702067616d652c2061206c75636b7920757365722063616e2074616b6520686f6d65203430302b206574682ea26469706673582212209d44f1d21cf3e7679d7c286d981d49d6c09dc35c3d444447e589d2e3b6488b5264736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000124000000000000000000000000000000000000000000000000000000000000000d54686520526166666c65204949000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006524146464c450000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): The Raffle II
Arg [1] : symbol (string): RAFFLE
Arg [2] : subscriptionId (uint64): 292

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000124
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [4] : 54686520526166666c6520494900000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 524146464c450000000000000000000000000000000000000000000000000000


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.