Address Details
contract
token

0xb70b639f29C45882b4c39e7611d2BA8E171dc561

Token
Kolor Land NFT (KLand)
Creator
0xf600c2–fea2f2 at 0xa0056a–2b89a1
Balance
0 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
18 Transactions
Transfers
0 Transfers
Gas Used
7,382,598
Last Balance Update
11245989
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
KolorLandNFT




Optimization enabled
true
Compiler version
v0.8.0+commit.c7dfd78e




Optimization runs
50
EVM Version
istanbul




Verified at
2022-04-30T17:37:04.106187Z

project:/contracts/KolorLandNFT.sol

// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./IKolorLandNFT.sol";

struct GeoSpatialPoint {
    int256 latitude;
    int256 longitude;
    uint256 decimals;
    uint256 creationDate;
    uint256 updateDate;
}

struct Species {
    string speciesAlias;
    string scientificName;
    uint256 density;
    uint256 size;
    uint256 decimals;
    uint256 TCO2perSecond;
    uint256 TCO2perYear;
    uint256 landId;
    uint256 creationDate;
    uint256 updateDate;
}

struct NFTInfo {
    string name;
    string identifier;
    address landOwner;
    string landOwnerAlias;
    uint256 decimals;
    uint256 size;
    string country;
    string stateOrRegion;
    string city;
    State state;
    uint256 initialTCO2perYear;
    uint256 soldTCO2;
    uint256 creationDate;
}

contract KolorLandNFT is
    ERC721,
    ERC721Enumerable,
    ERC721Burnable,
    Ownable,
    IKolorLandNFT
{
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdCounter;
    address public marketplace;

    constructor() ERC721("Kolor Land NFT", "KLand") {
        isAuthorized[msg.sender] = true;
    }

    string public baseURI;

    // NFT info
    mapping(uint256 => NFTInfo) private mintedNFTSInfo;

    // Owned lands to use in enumeration
    mapping(address => mapping(uint256 => uint256)) private ownedLands;
    mapping(uint256 => uint256) private landIndex;
    mapping(address => uint256) private _totalLandOwned;

    // mapping to get buyers of a land
    mapping(uint256 => mapping(address => bool)) public buyers;
    mapping(uint256 => uint256) public totalBuyers;

    // mappings of conflictive data such as species and location
    mapping(uint256 => mapping(uint256 => Species)) public species;
    mapping(uint256 => uint256) public totalSpecies;

    mapping(uint256 => mapping(uint256 => GeoSpatialPoint)) public points;
    mapping(uint256 => uint256) public totalPoints;

    mapping(address => bool) public isAuthorized;

    function safeMint(
        address to,
        string memory name,
        string memory identifier,
        address landOwner,
        string memory landOwnerAlias,
        uint256 decimals,
        uint256 size,
        string memory country,
        string memory stateOrRegion,
        string memory city,
        uint256 initialTCO2
    ) public onlyAuthorized {
        uint256 currentTokenId = _tokenIdCounter.current();
        _tokenIdCounter.increment();
        _safeMint(to, currentTokenId);

        // Set all NFT information
        mintedNFTSInfo[currentTokenId].name = name;
        mintedNFTSInfo[currentTokenId].identifier = identifier;
        mintedNFTSInfo[currentTokenId].landOwner = landOwner;
        mintedNFTSInfo[currentTokenId].landOwnerAlias = landOwnerAlias;
        mintedNFTSInfo[currentTokenId].decimals = decimals;
        mintedNFTSInfo[currentTokenId].size = size;
        mintedNFTSInfo[currentTokenId].country = country;
        mintedNFTSInfo[currentTokenId].stateOrRegion = stateOrRegion;
        mintedNFTSInfo[currentTokenId].city = city;
        mintedNFTSInfo[currentTokenId].initialTCO2perYear = initialTCO2;
        mintedNFTSInfo[currentTokenId].creationDate = block.timestamp;
        mintedNFTSInfo[currentTokenId].state = State.Created;

        uint256 _landsOwned = _totalLandOwned[landOwner];
        // set the tokenId to current landowner collection index
        ownedLands[to][_landsOwned] = currentTokenId;

        // update the tokenId index in landowner collection
        landIndex[currentTokenId] = _landsOwned;

        // increase total lands owned by address
        _totalLandOwned[to]++;
    }

    function authorize(address manager) public onlyOwner {
        isAuthorized[manager] = !isAuthorized[manager];
    }

    function setMarketplace(address _marketplace) public onlyAuthorized {
        marketplace = _marketplace;
        isAuthorized[marketplace] = true;
    }

    modifier onlyMarketplace() {
        require(
            marketplace == msg.sender,
            "Kolor Land NFT: You're not allowed to do that!"
        );
        _;
    }

    modifier onlyAuthorized() {
        require(
            isAuthorized[msg.sender],
            "Kolor Land NFT: You're not allowed to do that!"
        );
        _;
    }

    modifier notBurned(uint256 tokenId) {
        require(_exists(tokenId), "ERC721Metadata: operation on burned token!");
        _;
    }

    modifier notPublishedNorRemoved(uint256 tokenId) {
        require(
            !isRemoved(tokenId) && !isPublished(tokenId),
            "Kolor Land NFT:  This land can't be transfered to Marketplace"
        );
        _;
    }

    function isLandOwner(address landOwner, uint256 tokenId)
        internal
        view
        returns (bool)
    {
        return mintedNFTSInfo[tokenId].landOwner == landOwner;
    }

    function isRemoved(uint256 tokenId) public view returns (bool) {
        return mintedNFTSInfo[tokenId].state == State.Removed;
    }

    function isPublished(uint256 tokenId) public view returns (bool) {
        return mintedNFTSInfo[tokenId].state == State.Published;
    }

    /**
        @dev Override of functions defined on interface ILandNFT
    
     */
    function updateLandState(uint256 tokenId, State _state)
        public
        override
        notBurned(tokenId)
        onlyAuthorized
    {
        require(_state != State.Created, "Kolor Land NFT: Invalid State");
        mintedNFTSInfo[tokenId].state = _state;
    }

    function updateLandOwner(
        uint256 tokenId,
        address newLandOwner,
        string memory name
    ) public override onlyAuthorized notBurned(tokenId) {
        mintedNFTSInfo[tokenId].landOwner = newLandOwner;
        mintedNFTSInfo[tokenId].landOwnerAlias = name;
    }

    /**  
        @dev adds a new buyer to this land 
    */
    function addBuyer(uint256 tokenId, address newBuyer)
        public
        override
        onlyMarketplace
        notBurned(tokenId)
    {
        buyers[tokenId][newBuyer] = true;
        totalBuyers[tokenId]++;
    }

    function updateName(uint256 tokenId, string memory newName)
        public
        override
        onlyAuthorized
        notBurned(tokenId)
    {
        mintedNFTSInfo[tokenId].name = newName;
    }

    function landOwnerOf(uint256 tokenId)
        public
        view
        override
        returns (address)
    {
        address landOwner = mintedNFTSInfo[tokenId].landOwner;

        return landOwner;
    }

    function isBuyerOf(uint256 tokenId, address buyer)
        public
        view
        override
        returns (bool)
    {
        return buyers[tokenId][buyer];
    }

    function initialTCO2Of(uint256 tokenId)
        public
        view
        override
        returns (uint256)
    {
        return mintedNFTSInfo[tokenId].initialTCO2perYear;
    }

    function stateOf(uint256 tokenId) public view override returns (State) {
        return mintedNFTSInfo[tokenId].state;
    }

    /**
        @dev transfers the token to the marketplace and marks it
        as published for buyers to invest

     */
    function safeTransferToMarketplace(address from, uint256 tokenId)
        public
        override
        notBurned(tokenId)
        onlyAuthorized
        notPublishedNorRemoved(tokenId)
    {
        // Transfer to the marketplace
        updateLandState(tokenId, State.Published);
        safeTransferFrom(from, marketplace, tokenId);
    }

    function getNFTInfo(uint256 tokenId) public view returns (NFTInfo memory) {
        return mintedNFTSInfo[tokenId];
    }

    function landOfOwnerByIndex(address landOwner, uint256 index)
        public
        view
        returns (uint256)
    {
        require(
            index < balanceOf(landOwner) + 1,
            "landowner index out of bounds"
        );

        return ownedLands[landOwner][index];
    }

    function totalLandOwnedOf(address landOwner) public view returns (uint256) {
        return _totalLandOwned[landOwner];
    }

    function totalSpeciesOf(uint256 tokenId) public view returns (uint256) {
        return totalSpecies[tokenId];
    }

    function totalPointsOf(uint256 tokenId) public view returns (uint256) {
        return totalPoints[tokenId];
    }

    /** @dev set all species of a certain land */
    function setSpecies(uint256 tokenId, Species[] memory _species)
        public
        onlyAuthorized
        notBurned(tokenId)
    {
        require(
            totalSpeciesOf(tokenId) == 0,
            "Kolor Land NFT: Species of this land already been set"
        );
        uint256 _totalSpecies = _species.length;
        for (uint256 i = 0; i < _totalSpecies; i++) {
            species[tokenId][i].speciesAlias = _species[i].speciesAlias;
            species[tokenId][i].scientificName = _species[i].scientificName;
            species[tokenId][i].density = _species[i].density;
            species[tokenId][i].size = _species[i].size;
            species[tokenId][i].decimals = _species[i].decimals;
            species[tokenId][i].TCO2perSecond = _species[i].TCO2perSecond;
            species[tokenId][i].TCO2perYear = _species[i].TCO2perYear;
            species[tokenId][i].landId = tokenId;
            species[tokenId][i].creationDate = block.timestamp;
        }

        totalSpecies[tokenId] = _totalSpecies;
    }

    function addSpecies(uint256 tokenId, Species memory _species)
        public
        onlyAuthorized
        notBurned(tokenId)
    {
        uint256 _totalSpecies = totalSpeciesOf(tokenId);
        species[tokenId][_totalSpecies].speciesAlias = _species.speciesAlias;
        species[tokenId][_totalSpecies].scientificName = _species
            .scientificName;
        species[tokenId][_totalSpecies].density = _species.density;
        species[tokenId][_totalSpecies].size = _species.size;
        species[tokenId][_totalSpecies].decimals = _species.decimals;
        species[tokenId][_totalSpecies].TCO2perYear = _species.TCO2perYear;
        species[tokenId][_totalSpecies].landId = tokenId;
        species[tokenId][_totalSpecies].creationDate = block.timestamp;
        species[tokenId][_totalSpecies].TCO2perSecond = _species.TCO2perSecond;

        totalSpecies[tokenId]++;
    }

    function updateSpecies(
        uint256 tokenId,
        uint256 speciesIndex,
        Species memory _species
    ) public onlyAuthorized notBurned(tokenId) {
        require(
            validSpecie(speciesIndex, tokenId),
            "Kolor Land NFT: Invalid specie to update"
        );

        species[tokenId][speciesIndex].speciesAlias = _species.speciesAlias;
        species[tokenId][speciesIndex].scientificName = _species.scientificName;
        species[tokenId][speciesIndex].density = _species.density;
        species[tokenId][speciesIndex].size = _species.size;
        species[tokenId][speciesIndex].TCO2perYear = _species.TCO2perYear;
        species[tokenId][speciesIndex].landId = tokenId;
        species[tokenId][speciesIndex].updateDate = block.timestamp;
        species[tokenId][speciesIndex].TCO2perSecond = _species.TCO2perSecond;
    }

    function setPoints(uint256 tokenId, GeoSpatialPoint[] memory _points)
        public
        onlyAuthorized
        notBurned(tokenId)
    {
        require(
            totalPointsOf(tokenId) == 0,
            "Kolor Land NFT: Geospatial points of this land already been set"
        );
        uint256 _totalPoints = _points.length;

        for (uint256 i = 0; i < _totalPoints; i++) {
            points[tokenId][i].latitude = _points[i].latitude;
            points[tokenId][i].longitude = _points[i].longitude;
            points[tokenId][i].decimals = _points[i].decimals;
            points[tokenId][i].creationDate = block.timestamp;

            totalPoints[tokenId]++;
        }
    }

    function addPoint(uint256 tokenId, GeoSpatialPoint memory point)
        public
        onlyAuthorized
        notBurned(tokenId)
    {
        uint256 _totalPoints = totalPoints[tokenId];

        points[tokenId][_totalPoints].latitude = point.latitude;
        points[tokenId][_totalPoints].longitude = point.longitude;
        points[tokenId][_totalPoints].decimals = point.decimals;

        totalPoints[tokenId]++;
    }

    function updatePoint(
        uint256 tokenId,
        uint256 pointIndex,
        GeoSpatialPoint memory point
    ) public onlyAuthorized notBurned(tokenId) {
        require(
            validPoint(pointIndex, tokenId),
            "Kolor Land NFT: Invalid point to update"
        );

        points[tokenId][pointIndex].latitude = point.latitude;
        points[tokenId][pointIndex].longitude = point.longitude;
        points[tokenId][pointIndex].decimals = point.decimals;
    }

    function validSpecie(uint256 specieIndex, uint256 tokenId)
        internal
        view
        returns (bool)
    {
        if (specieIndex >= 0 && specieIndex < totalSpeciesOf(tokenId)) {
            return true;
        }

        return false;
    }

    function validPoint(uint256 pointIndex, uint256 tokenId)
        internal
        view
        returns (bool)
    {
        if (pointIndex >= 0 && pointIndex < totalPointsOf(tokenId)) {
            return true;
        }

        return false;
    }

    function offsetEmissions(uint256 tokenId, uint256 amount)
        public
        onlyMarketplace
        notBurned(tokenId)
    {
        mintedNFTSInfo[tokenId].soldTCO2 += amount;
    }

    function totalVCUBySpecies(uint256 tokenId, uint256 index)
        public
        view
        returns (uint256)
    {
        // Get the seconds elapsed until now
        uint256 speciesCreationDate = species[tokenId][index].creationDate;

        uint256 secondsElapsed = timestampDifference(
            speciesCreationDate,
            block.timestamp
        );

        // now we get the total vcus emitted until now
        return secondsElapsed * species[tokenId][index].TCO2perSecond;
    }

    function totalVCUSEmitedBy(uint256 tokenId) public view returns (uint256) {
        // Get total species of a land
        uint256 _totalSpecies = totalSpeciesOf(tokenId);

        uint256 totalVCUSEmitted = 0;
        // Iterate over all species and calculate its total vcu
        for (uint256 i = 0; i < _totalSpecies; i++) {
            uint256 currentVCUSEmitted = totalVCUBySpecies(tokenId, i);
            totalVCUSEmitted += currentVCUSEmitted;
        }

        return totalVCUSEmitted;
    }

    /**
        @dev returns vcus emitted from this land that are available
        for sale
    
     */
    function getVCUSLeft(uint256 tokenId)
        public
        view
        override
        returns (uint256)
    {
        // Get the ideal vcutokens from creation date until now
        uint256 totalVCUSEmited = totalVCUSEmitedBy(tokenId);

        // get the difference between the ideal minus the sold TCO2
        return totalVCUSEmited - mintedNFTSInfo[tokenId].soldTCO2;
    }

    function timestampDifference(uint256 timestamp1, uint256 timestamp2)
        public
        pure
        returns (uint256)
    {
        return timestamp2 - timestamp1;
    }

    function setBaseURI(string memory _baseURI) public onlyOwner {
        baseURI = _baseURI;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        return
            string(
                abi.encodePacked(baseURI, mintedNFTSInfo[tokenId].identifier)
            );
    }

    // The following functions are overrides required by Solidity.
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}
        

/_openzeppelin/contracts/access/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);
    }
}
          

/_openzeppelin/contracts/token/ERC721/ERC721.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../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}.
 */
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) private _owners;

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

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    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: balance query for the zero address");
        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: owner query for nonexistent token");
        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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

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

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

        _approve(to, tokenId);
    }

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

        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: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @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 = ERC721.ownerOf(tokenId);

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

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

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(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(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        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);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {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 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 {
                    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 {}
}
          

/_openzeppelin/contracts/token/ERC721/IERC721.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

/_openzeppelin/contracts/token/ERC721/IERC721Receiver.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}
          

/_openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}
          

/_openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./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.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

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

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

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

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

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

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

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

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

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

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

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

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

        uint256 lastTokenIndex = 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];
    }

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

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

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

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

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

/_openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 tokenId);

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

/_openzeppelin/contracts/token/ERC721/extensions/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);
}
          

/_openzeppelin/contracts/utils/Address.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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);
            }
        }
    }
}
          

/_openzeppelin/contracts/utils/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;
    }
}
          

/_openzeppelin/contracts/utils/Counters.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

/_openzeppelin/contracts/utils/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);
    }
}
          

/_openzeppelin/contracts/utils/introspection/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;
    }
}
          

/_openzeppelin/contracts/utils/introspection/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);
}
          

/project_/contracts/IKolorLandNFT.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

enum State {
    Created,
    Paused,
    Removed,
    Published
}

interface IKolorLandNFT {
    /**
        @dev Updates the availibility of tokenized land to be
        purchased in a marketplace
    
     */
    function updateLandState(uint256 tokenId, State state) external;

    function updateLandOwner(
        uint256 tokenId,
        address newLandOwner,
        string memory name
    ) external;

    function addBuyer(uint256 tokenId, address newBuyer) external;

    function updateName(uint256 tokenId, string memory name) external;

    function landOwnerOf(uint256 tokenId)
        external
        view
        returns (address landOwner);

    function isBuyerOf(uint256 tokenId, address buyer)
        external
        view
        returns (bool);

    function initialTCO2Of(uint256 tokenId)
        external
        view
        returns (uint256 initialTCO2);

    function stateOf(uint256 tokenId) external view returns (State state);

    function safeTransferToMarketplace(address from, uint256 tokenId) external;

    function getVCUSLeft(uint256 tokenId) external view returns (uint256 vcus);
}
          

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"approved","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addBuyer","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"newBuyer","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addPoint","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"tuple","name":"point","internalType":"struct GeoSpatialPoint","components":[{"type":"int256","name":"latitude","internalType":"int256"},{"type":"int256","name":"longitude","internalType":"int256"},{"type":"uint256","name":"decimals","internalType":"uint256"},{"type":"uint256","name":"creationDate","internalType":"uint256"},{"type":"uint256","name":"updateDate","internalType":"uint256"}]}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addSpecies","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"tuple","name":"_species","internalType":"struct Species","components":[{"type":"string","name":"speciesAlias","internalType":"string"},{"type":"string","name":"scientificName","internalType":"string"},{"type":"uint256","name":"density","internalType":"uint256"},{"type":"uint256","name":"size","internalType":"uint256"},{"type":"uint256","name":"decimals","internalType":"uint256"},{"type":"uint256","name":"TCO2perSecond","internalType":"uint256"},{"type":"uint256","name":"TCO2perYear","internalType":"uint256"},{"type":"uint256","name":"landId","internalType":"uint256"},{"type":"uint256","name":"creationDate","internalType":"uint256"},{"type":"uint256","name":"updateDate","internalType":"uint256"}]}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"authorize","inputs":[{"type":"address","name":"manager","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"baseURI","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"buyers","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple","name":"","internalType":"struct NFTInfo","components":[{"type":"string","name":"name","internalType":"string"},{"type":"string","name":"identifier","internalType":"string"},{"type":"address","name":"landOwner","internalType":"address"},{"type":"string","name":"landOwnerAlias","internalType":"string"},{"type":"uint256","name":"decimals","internalType":"uint256"},{"type":"uint256","name":"size","internalType":"uint256"},{"type":"string","name":"country","internalType":"string"},{"type":"string","name":"stateOrRegion","internalType":"string"},{"type":"string","name":"city","internalType":"string"},{"type":"uint8","name":"state","internalType":"enum State"},{"type":"uint256","name":"initialTCO2perYear","internalType":"uint256"},{"type":"uint256","name":"soldTCO2","internalType":"uint256"},{"type":"uint256","name":"creationDate","internalType":"uint256"}]}],"name":"getNFTInfo","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getVCUSLeft","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"initialTCO2Of","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isAuthorized","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isBuyerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"buyer","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isPublished","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isRemoved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"landOfOwnerByIndex","inputs":[{"type":"address","name":"landOwner","internalType":"address"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"landOwnerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"marketplace","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"offsetEmissions","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"int256","name":"latitude","internalType":"int256"},{"type":"int256","name":"longitude","internalType":"int256"},{"type":"uint256","name":"decimals","internalType":"uint256"},{"type":"uint256","name":"creationDate","internalType":"uint256"},{"type":"uint256","name":"updateDate","internalType":"uint256"}],"name":"points","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeMint","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"string","name":"name","internalType":"string"},{"type":"string","name":"identifier","internalType":"string"},{"type":"address","name":"landOwner","internalType":"address"},{"type":"string","name":"landOwnerAlias","internalType":"string"},{"type":"uint256","name":"decimals","internalType":"uint256"},{"type":"uint256","name":"size","internalType":"uint256"},{"type":"string","name":"country","internalType":"string"},{"type":"string","name":"stateOrRegion","internalType":"string"},{"type":"string","name":"city","internalType":"string"},{"type":"uint256","name":"initialTCO2","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"_data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferToMarketplace","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBaseURI","inputs":[{"type":"string","name":"_baseURI","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMarketplace","inputs":[{"type":"address","name":"_marketplace","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPoints","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"tuple[]","name":"_points","internalType":"struct GeoSpatialPoint[]","components":[{"type":"int256","name":"latitude","internalType":"int256"},{"type":"int256","name":"longitude","internalType":"int256"},{"type":"uint256","name":"decimals","internalType":"uint256"},{"type":"uint256","name":"creationDate","internalType":"uint256"},{"type":"uint256","name":"updateDate","internalType":"uint256"}]}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSpecies","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"tuple[]","name":"_species","internalType":"struct Species[]","components":[{"type":"string","name":"speciesAlias","internalType":"string"},{"type":"string","name":"scientificName","internalType":"string"},{"type":"uint256","name":"density","internalType":"uint256"},{"type":"uint256","name":"size","internalType":"uint256"},{"type":"uint256","name":"decimals","internalType":"uint256"},{"type":"uint256","name":"TCO2perSecond","internalType":"uint256"},{"type":"uint256","name":"TCO2perYear","internalType":"uint256"},{"type":"uint256","name":"landId","internalType":"uint256"},{"type":"uint256","name":"creationDate","internalType":"uint256"},{"type":"uint256","name":"updateDate","internalType":"uint256"}]}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"speciesAlias","internalType":"string"},{"type":"string","name":"scientificName","internalType":"string"},{"type":"uint256","name":"density","internalType":"uint256"},{"type":"uint256","name":"size","internalType":"uint256"},{"type":"uint256","name":"decimals","internalType":"uint256"},{"type":"uint256","name":"TCO2perSecond","internalType":"uint256"},{"type":"uint256","name":"TCO2perYear","internalType":"uint256"},{"type":"uint256","name":"landId","internalType":"uint256"},{"type":"uint256","name":"creationDate","internalType":"uint256"},{"type":"uint256","name":"updateDate","internalType":"uint256"}],"name":"species","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"enum State"}],"name":"stateOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"timestampDifference","inputs":[{"type":"uint256","name":"timestamp1","internalType":"uint256"},{"type":"uint256","name":"timestamp2","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenByIndex","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenOfOwnerByIndex","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalBuyers","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalLandOwnedOf","inputs":[{"type":"address","name":"landOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalPoints","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalPointsOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSpecies","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSpeciesOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalVCUBySpecies","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalVCUSEmitedBy","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateLandOwner","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"newLandOwner","internalType":"address"},{"type":"string","name":"name","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateLandState","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint8","name":"_state","internalType":"enum State"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateName","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"string","name":"newName","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updatePoint","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"pointIndex","internalType":"uint256"},{"type":"tuple","name":"point","internalType":"struct GeoSpatialPoint","components":[{"type":"int256","name":"latitude","internalType":"int256"},{"type":"int256","name":"longitude","internalType":"int256"},{"type":"uint256","name":"decimals","internalType":"uint256"},{"type":"uint256","name":"creationDate","internalType":"uint256"},{"type":"uint256","name":"updateDate","internalType":"uint256"}]}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateSpecies","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"speciesIndex","internalType":"uint256"},{"type":"tuple","name":"_species","internalType":"struct Species","components":[{"type":"string","name":"speciesAlias","internalType":"string"},{"type":"string","name":"scientificName","internalType":"string"},{"type":"uint256","name":"density","internalType":"uint256"},{"type":"uint256","name":"size","internalType":"uint256"},{"type":"uint256","name":"decimals","internalType":"uint256"},{"type":"uint256","name":"TCO2perSecond","internalType":"uint256"},{"type":"uint256","name":"TCO2perYear","internalType":"uint256"},{"type":"uint256","name":"landId","internalType":"uint256"},{"type":"uint256","name":"creationDate","internalType":"uint256"},{"type":"uint256","name":"updateDate","internalType":"uint256"}]}]}]
              

Contract Creation Code

0x60806040523480156200001157600080fd5b50604080518082018252600e81526d12dbdb1bdc8813185b990813919560921b60208083019182528351808501909452600584526412d3185b9960da1b90840152815191929162000065916000916200010e565b5080516200007b9060019060208401906200010e565b5050506200009862000092620000b860201b60201c565b620000bc565b336000908152601860205260409020805460ff19166001179055620001f1565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011c90620001b4565b90600052602060002090601f0160209004810192826200014057600085556200018b565b82601f106200015b57805160ff19168380011785556200018b565b828001600101855582156200018b579182015b828111156200018b5782518255916020019190600101906200016e565b50620001999291506200019d565b5090565b5b808211156200019957600081556001016200019e565b600281046001821680620001c957607f821691505b60208210811415620001eb57634e487b7160e01b600052602260045260246000fd5b50919050565b61448080620002016000396000f3fe608060405234801561001057600080fd5b50600436106102e45760003560e01c80636c0360eb11610189578063b14745e4116100df578063b14745e414610655578063b6a5d7de14610668578063b88d4fde1461067b578063c42625a01461068e578063c87b56dd146106a1578063d188929f146106b4578063d72448ed146106d4578063d7b359d5146106e7578063d8d31fc1146106fa578063e3cdda391461070d578063e985e9c514610731578063ef2a174714610744578063f2fde38b14610757578063fba2f1b91461076a578063fe9fbb801461077d576102e4565b80636c0360eb146105595780636ed03162146105615780636f4ffd211461057457806370624aff1461058757806370a082311461059a578063715018a6146105ad57806373ad6c2d146105b5578063746d1a6e146105c85780637b156fb5146105f15780638048fc0e146106045780638da5cb5b1461061757806395d89b411461061f578063a0a8318914610627578063a22cb4651461063a578063abc8c7af1461064d576102e4565b80632fc3deff1161023e5780632fc3deff1461043c578063313a249b1461044f57806338345d9514610462578063388fc40c146104755780634032e7131461048857806342842e0e1461049b57806342966c68146104ae57806348743400146104c15780634f69ab8c146104d45780634f6ccce7146104e757806353e76f2c146104fa57806355f804b31461050d5780635c94c545146105205780636352211e146105335780636481514e14610546576102e4565b806301ffc9a7146102e957806306fdde031461031257806307f0ea5814610327578063081812fc14610347578063095ea7b314610367578063128e5e581461037c578063131a7e241461038f57806317ff4c94146103af57806318160ddd146103c257806323b872dd146103ca57806323e0547f146103dd57806324c05772146103f0578063278e3aad146104035780632f745c59146104165780632fa5073714610429575b600080fd5b6102fc6102f7366004613423565b610790565b6040516103099190613922565b60405180910390f35b61031a6107a3565b604051610309919061395e565b61033a61033536600461348d565b610835565b60405161030991906142e3565b61035a61035536600461348d565b610847565b60405161030991906138d1565b61037a6103753660046133fa565b610893565b005b61033a61038a36600461348d565b61092b565b6103a261039d36600461348d565b610940565b604051610309919061392d565b61037a6103bd3660046136b4565b610958565b61033a610a0c565b61037a6103d83660046131d4565b610a12565b61037a6103eb3660046136d7565b610a4a565b61037a6103fe366004613732565b610b81565b61037a610411366004613767565b610c30565b61033a6104243660046133fa565b610d60565b61037a6104373660046132c1565b610db5565b61033a61044a36600461348d565b611002565b61033a61045d36600461348d565b611014565b61033a610470366004613188565b611026565b6102fc6104833660046134a5565b611041565b61037a6104963660046134c7565b611061565b61037a6104a93660046131d4565b6110ff565b61037a6104bc36600461348d565b61111a565b61035a6104cf36600461348d565b61114d565b61037a6104e2366004613649565b61116b565b61033a6104f536600461348d565b611246565b61037a610508366004613670565b6112a1565b61037a61051b36600461345b565b61131b565b61033a61052e366004613711565b611371565b61035a61054136600461348d565b611384565b61033a6105543660046133fa565b6113b9565b61031a611416565b6102fc61056f3660046134a5565b6114a4565b61033a61058236600461348d565b6114cf565b61033a610595366004613711565b61151f565b61033a6105a8366004613188565b61157a565b61037a6115be565b61037a6105c3366004613188565b611609565b6105db6105d6366004613711565b611672565b6040516103099a99989796959493929190613971565b6102fc6105ff36600461348d565b6117d9565b61033a61061236600461348d565b611819565b61035a611844565b61031a611853565b6102fc61063536600461348d565b611862565b61037a610648366004613287565b61186b565b61035a61187d565b61037a61066336600461351b565b61188c565b61037a610676366004613188565b611a2f565b61037a61068936600461320f565b611a97565b61033a61069c36600461348d565b611ad0565b61031a6106af36600461348d565b611ae2565b6106c76106c236600461348d565b611b48565b60405161030991906141c3565b61037a6106e23660046133fa565b611f73565b61037a6106f53660046135c7565b612024565b61037a610708366004613711565b612318565b61072061071b366004613711565b612393565b60405161030995949392919061393b565b6102fc61073f3660046131a2565b6123cd565b61037a6107523660046134a5565b6123fb565b61037a610765366004613188565b612498565b61033a61077836600461348d565b612506565b6102fc61078b366004613188565b612518565b600061079b8261252d565b90505b919050565b6060600080546107b290614392565b80601f01602080910402602001604051908101604052809291908181526020018280546107de90614392565b801561082b5780601f106108005761010080835404028352916020019161082b565b820191906000526020600020905b81548152906001019060200180831161080e57829003601f168201915b5050505050905090565b60009081526017602052604090205490565b600061085282612552565b6108775760405162461bcd60e51b815260040161086e90613e9e565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061089e82611384565b9050806001600160a01b0316836001600160a01b031614156108d25760405162461bcd60e51b815260040161086e9061404b565b806001600160a01b03166108e461256f565b6001600160a01b0316148061090057506109008161073f61256f565b61091c5760405162461bcd60e51b815260040161086e90613d7e565b6109268383612573565b505050565b6000908152600e60205260409020600a015490565b6000908152600e602052604090206009015460ff1690565b3360009081526018602052604090205460ff166109875760405162461bcd60e51b815260040161086e90613a6a565b8161099181612552565b6109ad5760405162461bcd60e51b815260040161086e90614129565b600083815260176020818152604080842080548751601685528387208288528552838720908155888501516001820155928801516002909301929092558785529290915281549092909190610a01836143cd565b919050555050505050565b60085490565b610a23610a1d61256f565b826125e1565b610a3f5760405162461bcd60e51b815260040161086e9061408c565b610926838383612666565b3360009081526018602052604090205460ff16610a795760405162461bcd60e51b815260040161086e90613a6a565b81610a8381612552565b610a9f5760405162461bcd60e51b815260040161086e90614129565b6000610aaa84611ad0565b8351600086815260146020908152604080832085845282529091208251939450610ada9390929190910190612e9f565b506020808401516000868152601483526040808220858352845290208151610b0b9360019092019290910190612e9f565b5060408381015160008681526014602090815283822085835281528382206002810193909355606087015160038401556080870151600484015560c087015160068401556007830188905542600884015560a08701516005909301929092558681526015909152908120805491610a01836143cd565b3360009081526018602052604090205460ff16610bb05760405162461bcd60e51b815260040161086e90613a6a565b82610bba81612552565b610bd65760405162461bcd60e51b815260040161086e90614129565b610be08385612781565b610bfc5760405162461bcd60e51b815260040161086e906139db565b5080516000938452601660209081526040808620948652938152938390209081559281015160018401550151600290910155565b3360009081526018602052604090205460ff16610c5f5760405162461bcd60e51b815260040161086e90613a6a565b82610c6981612552565b610c855760405162461bcd60e51b815260040161086e90614129565b610c8f83856127a4565b610cab5760405162461bcd60e51b815260040161086e90613a22565b8151600085815260146020908152604080832087845282529091208251610cd793919290910190612e9f565b506020808301516000868152601483526040808220878352845290208151610d089360019092019290910190612e9f565b505060408181015160008581526014602090815283822095825294909452922060028101929092556060810151600383015560c08101516006830155600782019290925542600982015560a090910151600590910155565b6000610d6b8361157a565b8210610d895760405162461bcd60e51b815260040161086e90613b44565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b3360009081526018602052604090205460ff16610de45760405162461bcd60e51b815260040161086e90613a6a565b6000610df0600b6127af565b9050610dfc600b6127b3565b610e068c826127bc565b6000818152600e602090815260409091208c51610e25928e0190612e9f565b506000818152600e602090815260409091208b51610e4b926001909201918d0190612e9f565b506000818152600e602090815260409091206002810180546001600160a01b0319166001600160a01b038d161790558951610e8e926003909201918b0190612e9f565b506000818152600e6020908152604090912060048101899055600581018890558651610ec292600690920191880190612e9f565b506000818152600e602090815260409091208551610ee892600790920191870190612e9f565b506000818152600e602090815260409091208451610f0e92600890920191860190612e9f565b506000818152600e60205260408120600a810184905542600c820155600901805460ff191660018302179055506000601160008b6001600160a01b03166001600160a01b0316815260200190815260200160002054905081600f60008f6001600160a01b03166001600160a01b03168152602001908152602001600020600083815260200190815260200160002081905550806010600084815260200190815260200160002081905550601160008e6001600160a01b03166001600160a01b031681526020019081526020016000206000815480929190610fee906143cd565b919050555050505050505050505050505050565b60156020526000908152604090205481565b60176020526000908152604090205481565b6001600160a01b031660009081526011602052604090205490565b601260209081526000928352604080842090915290825290205460ff1681565b3360009081526018602052604090205460ff166110905760405162461bcd60e51b815260040161086e90613a6a565b8261109a81612552565b6110b65760405162461bcd60e51b815260040161086e90614129565b6000848152600e602090815260409091206002810180546001600160a01b0319166001600160a01b03871617905583516110f892600390920191850190612e9f565b5050505050565b61092683838360405180602001604052806000815250611a97565b611125610a1d61256f565b6111415760405162461bcd60e51b815260040161086e90614173565b61114a816127d6565b50565b6000908152600e60205260409020600201546001600160a01b031690565b8161117581612552565b6111915760405162461bcd60e51b815260040161086e90614129565b3360009081526018602052604090205460ff166111c05760405162461bcd60e51b815260040161086e90613a6a565b60008260038111156111e257634e487b7160e01b600052602160045260246000fd5b14156112005760405162461bcd60e51b815260040161086e90613f1f565b6000838152600e60205260409020600901805483919060ff1916600183600381111561123c57634e487b7160e01b600052602160045260246000fd5b0217905550505050565b6000611250610a0c565b821061126e5760405162461bcd60e51b815260040161086e906140dd565b6008828154811061128f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b3360009081526018602052604090205460ff166112d05760405162461bcd60e51b815260040161086e90613a6a565b816112da81612552565b6112f65760405162461bcd60e51b815260040161086e90614129565b6000838152600e60209081526040909120835161131592850190612e9f565b50505050565b61132361256f565b6001600160a01b0316611334611844565b6001600160a01b03161461135a5760405162461bcd60e51b815260040161086e90613eea565b805161136d90600d906020840190612e9f565b5050565b600061137d838361437b565b9392505050565b6000818152600260205260408120546001600160a01b03168061079b5760405162461bcd60e51b815260040161086e90613e20565b60006113c48361157a565b6113cf906001614344565b82106113ed5760405162461bcd60e51b815260040161086e90613b0d565b506001600160a01b03919091166000908152600f60209081526040808320938352929052205490565b600d805461142390614392565b80601f016020809104026020016040519081016040528092919081815260200182805461144f90614392565b801561149c5780601f106114715761010080835404028352916020019161149c565b820191906000526020600020905b81548152906001019060200180831161147f57829003601f168201915b505050505081565b60009182526012602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000806114db83611ad0565b90506000805b828110156115175760006114f5868361151f565b90506115018184614344565b925050808061150f906143cd565b9150506114e1565b509392505050565b6000828152601460209081526040808320848452909152812060080154816115478242611371565b6000868152601460209081526040808320888452909152902060050154909150611571908261435c565b95945050505050565b60006001600160a01b0382166115a25760405162461bcd60e51b815260040161086e90613dd6565b506001600160a01b031660009081526003602052604090205490565b6115c661256f565b6001600160a01b03166115d7611844565b6001600160a01b0316146115fd5760405162461bcd60e51b815260040161086e90613eea565b611607600061286b565b565b3360009081526018602052604090205460ff166116385760405162461bcd60e51b815260040161086e90613a6a565b600c80546001600160a01b0319166001600160a01b039283161790819055166000908152601860205260409020805460ff19166001179055565b601460209081526000928352604080842090915290825290208054819061169890614392565b80601f01602080910402602001604051908101604052809291908181526020018280546116c490614392565b80156117115780601f106116e657610100808354040283529160200191611711565b820191906000526020600020905b8154815290600101906020018083116116f457829003601f168201915b50505050509080600101805461172690614392565b80601f016020809104026020016040519081016040528092919081815260200182805461175290614392565b801561179f5780601f106117745761010080835404028352916020019161179f565b820191906000526020600020905b81548152906001019060200180831161178257829003601f168201915b505050505090806002015490806003015490806004015490806005015490806006015490806007015490806008015490806009015490508a565b600060035b6000838152600e602052604090206009015460ff16600381111561181257634e487b7160e01b600052602160045260246000fd5b1492915050565b600080611825836114cf565b6000848152600e60205260409020600b015490915061137d908261437b565b600a546001600160a01b031690565b6060600180546107b290614392565b600060026117de565b61136d61187661256f565b83836128bd565b600c546001600160a01b031681565b3360009081526018602052604090205460ff166118bb5760405162461bcd60e51b815260040161086e90613a6a565b816118c581612552565b6118e15760405162461bcd60e51b815260040161086e90614129565b6118ea83610835565b156119075760405162461bcd60e51b815260040161086e90613fee565b815160005b818110156110f85783818151811061193457634e487b7160e01b600052603260045260246000fd5b6020908102919091018101515160008781526016835260408082208583529093529190912055835184908290811061197c57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518101516000878152601683526040808220858352909352919091206001015583518490829081106119c957634e487b7160e01b600052603260045260246000fd5b602090810291909101810151604090810151600088815260168452828120858252845282812060028101929092554260039092019190915587815260179092528120805491611a17836143cd565b91905055508080611a27906143cd565b91505061190c565b611a3761256f565b6001600160a01b0316611a48611844565b6001600160a01b031614611a6e5760405162461bcd60e51b815260040161086e90613eea565b6001600160a01b03166000908152601860205260409020805460ff19811660ff90911615179055565b611aa8611aa261256f565b836125e1565b611ac45760405162461bcd60e51b815260040161086e9061408c565b61131584848484612960565b60009081526015602052604090205490565b6060611aed82612552565b611b095760405162461bcd60e51b815260040161086e90613f9f565b600d600e6000848152602001908152602001600020600101604051602001611b329291906138bc565b6040516020818303038152906040529050919050565b611b50612f23565b6000828152600e60205260409081902081516101a08101909252805482908290611b7990614392565b80601f0160208091040260200160405190810160405280929190818152602001828054611ba590614392565b8015611bf25780601f10611bc757610100808354040283529160200191611bf2565b820191906000526020600020905b815481529060010190602001808311611bd557829003601f168201915b50505050508152602001600182018054611c0b90614392565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3790614392565b8015611c845780601f10611c5957610100808354040283529160200191611c84565b820191906000526020600020905b815481529060010190602001808311611c6757829003601f168201915b505050918352505060028201546001600160a01b03166020820152600382018054604090920191611cb490614392565b80601f0160208091040260200160405190810160405280929190818152602001828054611ce090614392565b8015611d2d5780601f10611d0257610100808354040283529160200191611d2d565b820191906000526020600020905b815481529060010190602001808311611d1057829003601f168201915b505050505081526020016004820154815260200160058201548152602001600682018054611d5a90614392565b80601f0160208091040260200160405190810160405280929190818152602001828054611d8690614392565b8015611dd35780601f10611da857610100808354040283529160200191611dd3565b820191906000526020600020905b815481529060010190602001808311611db657829003601f168201915b50505050508152602001600782018054611dec90614392565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1890614392565b8015611e655780601f10611e3a57610100808354040283529160200191611e65565b820191906000526020600020905b815481529060010190602001808311611e4857829003601f168201915b50505050508152602001600882018054611e7e90614392565b80601f0160208091040260200160405190810160405280929190818152602001828054611eaa90614392565b8015611ef75780601f10611ecc57610100808354040283529160200191611ef7565b820191906000526020600020905b815481529060010190602001808311611eda57829003601f168201915b5050509183525050600982015460209091019060ff166003811115611f2c57634e487b7160e01b600052602160045260246000fd5b6003811115611f4b57634e487b7160e01b600052602160045260246000fd5b8152600a8201546020820152600b8201546040820152600c9091015460609091015292915050565b80611f7d81612552565b611f995760405162461bcd60e51b815260040161086e90614129565b3360009081526018602052604090205460ff16611fc85760405162461bcd60e51b815260040161086e90613a6a565b81611fd281611862565b158015611fe55750611fe3816117d9565b155b6120015760405162461bcd60e51b815260040161086e90613d21565b61200c83600361116b565b600c546113159085906001600160a01b0316856110ff565b3360009081526018602052604090205460ff166120535760405162461bcd60e51b815260040161086e90613a6a565b8161205d81612552565b6120795760405162461bcd60e51b815260040161086e90614129565b61208283611ad0565b1561209f5760405162461bcd60e51b815260040161086e90613ab8565b815160005b81811015612300578381815181106120cc57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101515160008781526014835260408082208583528452902081516120ff93919290910190612e9f565b5083818151811061212057634e487b7160e01b600052603260045260246000fd5b60209081029190910181015181015160008781526014835260408082208583528452902081516121599360019092019290910190612e9f565b5083818151811061217a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160409081015160008881526014845282812085825290935291206002015583518490829081106121c657634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516060015160008781526014835260408082208583529093529190912060030155835184908290811061221457634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516080015160008781526014835260408082208583529093529190912060040155835184908290811061226257634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160a001516000878152601483526040808220858352909352919091206005015583518490829081106122b057634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160c0015160008781526014835260408082208583529093529190912060068101919091556007810186905542600890910155806122f8816143cd565b9150506120a4565b50600093845260156020526040909320929092555050565b600c546001600160a01b031633146123425760405162461bcd60e51b815260040161086e90613a6a565b8161234c81612552565b6123685760405162461bcd60e51b815260040161086e90614129565b6000838152600e60205260408120600b018054849290612389908490614344565b9091555050505050565b6016602090815260009283526040808420909152908252902080546001820154600283015460038401546004909401549293919290919085565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600c546001600160a01b031633146124255760405162461bcd60e51b815260040161086e90613a6a565b8161242f81612552565b61244b5760405162461bcd60e51b815260040161086e90614129565b60008381526012602090815260408083206001600160a01b03861684528252808320805460ff191660011790558583526013909152812080549161248e836143cd565b9190505550505050565b6124a061256f565b6001600160a01b03166124b1611844565b6001600160a01b0316146124d75760405162461bcd60e51b815260040161086e90613eea565b6001600160a01b0381166124fd5760405162461bcd60e51b815260040161086e90613be1565b61114a8161286b565b60136020526000908152604090205481565b60186020526000908152604090205460ff1681565b60006001600160e01b0319821663780e9d6360e01b148061079b575061079b82612993565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125a882611384565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006125ec82612552565b6126085760405162461bcd60e51b815260040161086e90613cd5565b600061261383611384565b9050806001600160a01b0316846001600160a01b0316148061264e5750836001600160a01b031661264384610847565b6001600160a01b0316145b8061265e575061265e81856123cd565b949350505050565b826001600160a01b031661267982611384565b6001600160a01b03161461269f5760405162461bcd60e51b815260040161086e90613f56565b6001600160a01b0382166126c55760405162461bcd60e51b815260040161086e90613c5e565b6126d08383836129d3565b6126db600082612573565b6001600160a01b038316600090815260036020526040812080546001929061270490849061437b565b90915550506001600160a01b0382166000908152600360205260408120805460019290612732908490614344565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061442b83398151915291a4505050565b600061278c82610835565b83101561279b57506001610daf565b50600092915050565b600061278c82611ad0565b5490565b80546001019055565b61136d8282604051806020016040528060008152506129de565b60006127e182611384565b90506127ef816000846129d3565b6127fa600083612573565b6001600160a01b038116600090815260036020526040812080546001929061282390849061437b565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b0384169060008051602061442b833981519152908390a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156128ef5760405162461bcd60e51b815260040161086e90613ca2565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612953908590613922565b60405180910390a3505050565b61296b848484612666565b61297784848484612a11565b6113155760405162461bcd60e51b815260040161086e90613b8f565b60006001600160e01b031982166380ac58cd60e01b14806129c457506001600160e01b03198216635b5e139f60e01b145b8061079b575061079b82612b2c565b610926838383612b45565b6129e88383612bce565b6129f56000848484612a11565b6109265760405162461bcd60e51b815260040161086e90613b8f565b6000612a25846001600160a01b0316612c9b565b15612b2157836001600160a01b031663150b7a02612a4161256f565b8786866040518563ffffffff1660e01b8152600401612a6394939291906138e5565b602060405180830381600087803b158015612a7d57600080fd5b505af1925050508015612aad575060408051601f3d908101601f19168201909252612aaa9181019061343f565b60015b612b07573d808015612adb576040519150601f19603f3d011682016040523d82523d6000602084013e612ae0565b606091505b508051612aff5760405162461bcd60e51b815260040161086e90613b8f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061265e565b506001949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b612b50838383610926565b6001600160a01b038316612b6c57612b6781612ca1565b612b8f565b816001600160a01b0316836001600160a01b031614612b8f57612b8f8382612ce5565b6001600160a01b038216612bab57612ba681612d82565b610926565b826001600160a01b0316826001600160a01b031614610926576109268282612e5b565b6001600160a01b038216612bf45760405162461bcd60e51b815260040161086e90613e69565b612bfd81612552565b15612c1a5760405162461bcd60e51b815260040161086e90613c27565b612c26600083836129d3565b6001600160a01b0382166000908152600360205260408120805460019290612c4f908490614344565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b038616908117909155905183929060008051602061442b833981519152908290a45050565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001612cf28461157a565b612cfc919061437b565b600083815260076020526040902054909150808214612d4f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612d949060019061437b565b60008381526009602052604081205460088054939450909284908110612dca57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612df957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612e3f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612e668361157a565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612eab90614392565b90600052602060002090601f016020900481019282612ecd5760008555612f13565b82601f10612ee657805160ff1916838001178555612f13565b82800160010185558215612f13579182015b82811115612f13578251825591602001919060010190612ef8565b50612f1f929150612fb3565b5090565b604051806101a00160405280606081526020016060815260200160006001600160a01b0316815260200160608152602001600081526020016000815260200160608152602001606081526020016060815260200160006003811115612f9857634e487b7160e01b600052602160045260246000fd5b81526020016000815260200160008152602001600081525090565b5b80821115612f1f5760008155600101612fb4565b60006001600160401b03831115612fe157612fe16143fe565b612ff4601f8401601f19166020016142ec565b905082815283838301111561300857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461079e57600080fd5b600082601f830112613046578081fd5b61137d83833560208501612fc8565b600060a08284031215613066578081fd5b60405160a081018181106001600160401b0382111715613088576130886143fe565b806040525080915082358152602083013560208201526040830135604082015260608301356060820152608083013560808201525092915050565b60006101408083850312156130d6578182fd5b6130df816142ec565b91505081356001600160401b03808211156130f957600080fd5b61310585838601613036565b8352602084013591508082111561311b57600080fd5b5061312884828501613036565b60208301525060408201356040820152606082013560608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e082015261010080830135818301525061012080830135818301525092915050565b600060208284031215613199578081fd5b61137d8261301f565b600080604083850312156131b4578081fd5b6131bd8361301f565b91506131cb6020840161301f565b90509250929050565b6000806000606084860312156131e8578081fd5b6131f18461301f565b92506131ff6020850161301f565b9150604084013590509250925092565b60008060008060808587031215613224578081fd5b61322d8561301f565b935061323b6020860161301f565b92506040850135915060608501356001600160401b0381111561325c578182fd5b8501601f8101871361326c578182fd5b61327b87823560208401612fc8565b91505092959194509250565b60008060408385031215613299578182fd5b6132a28361301f565b9150602083013580151581146132b6578182fd5b809150509250929050565b60008060008060008060008060008060006101608c8e0312156132e2578889fd5b6132eb8c61301f565b9a506001600160401b038060208e0135111561330557898afd5b6133158e60208f01358f01613036565b9a508060408e0135111561332757898afd5b6133378e60408f01358f01613036565b995061334560608e0161301f565b98508060808e01351115613357578788fd5b6133678e60808f01358f01613036565b975060a08d0135965060c08d013595508060e08e01351115613387578485fd5b6133978e60e08f01358f01613036565b9450806101008e013511156133aa578384fd5b6133bb8e6101008f01358f01613036565b9350806101208e013511156133ce578283fd5b506133e08d6101208e01358e01613036565b91506101408c013590509295989b509295989b9093969950565b6000806040838503121561340c578182fd5b6134158361301f565b946020939093013593505050565b600060208284031215613434578081fd5b813561137d81614414565b600060208284031215613450578081fd5b815161137d81614414565b60006020828403121561346c578081fd5b81356001600160401b03811115613481578182fd5b61265e84828501613036565b60006020828403121561349e578081fd5b5035919050565b600080604083850312156134b7578182fd5b823591506131cb6020840161301f565b6000806000606084860312156134db578081fd5b833592506134eb6020850161301f565b915060408401356001600160401b03811115613505578182fd5b61351186828701613036565b9150509250925092565b6000806040838503121561352d578182fd5b823591506020808401356001600160401b0381111561354a578283fd5b8401601f8101861361355a578283fd5b803561356d61356882614315565b6142ec565b8181528381019083850160a0808502860187018b101561358b578788fd5b8795505b848610156135b7576135a18b83613055565b845260019590950194928601929081019061358f565b5096999098509650505050505050565b600080604083850312156135d9578182fd5b823591506020808401356001600160401b038111156135f6578283fd5b8401601f81018613613606578283fd5b803561361461356882614315565b81815283810190838501865b848110156135b7576136378b8884358901016130c3565b84529286019290860190600101613620565b6000806040838503121561365b578182fd5b823591506020830135600481106132b6578182fd5b60008060408385031215613682578182fd5b8235915060208301356001600160401b0381111561369e578182fd5b6136aa85828601613036565b9150509250929050565b60008060c083850312156136c6578182fd5b823591506131cb8460208501613055565b600080604083850312156136e9578182fd5b8235915060208301356001600160401b03811115613705578182fd5b6136aa858286016130c3565b60008060408385031215613723578182fd5b50508035926020909101359150565b600080600060e08486031215613746578081fd5b833592506020840135915061375e8560408601613055565b90509250925092565b60008060006060848603121561377b578081fd5b833592506020840135915060408401356001600160401b0381111561379e578182fd5b613511868287016130c3565b6001600160a01b03169052565b60008151808452815b818110156137dc576020818501810151868301820152016137c0565b818111156137ed5782602083870101525b50601f01601f19169290920160200192915050565b6004811061382057634e487b7160e01b600052602160045260246000fd5b9052565b80546000906002810460018083168061383e57607f831692505b602080841082141561385e57634e487b7160e01b86526022600452602486fd5b8180156138725760018114613883576138b0565b60ff198616895284890196506138b0565b61388c88614338565b60005b868110156138a85781548b82015290850190830161388f565b505084890196505b50505050505092915050565b600061265e6138cb8386613824565b84613824565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613918908301846137b7565b9695505050505050565b901515815260200190565b60208101610daf8284613802565b948552602085019390935260408401919091526060830152608082015260a00190565b60006020825261137d60208301846137b7565b60006101408083526139858184018e6137b7565b90508281036020840152613999818d6137b7565b604084019b909b5250506060810197909752608087019590955260a086019390935260c085019190915260e08401526101008301526101209091015292915050565b60208082526027908201527f4b6f6c6f72204c616e64204e46543a20496e76616c696420706f696e7420746f6040820152662075706461746560c81b606082015260800190565b60208082526028908201527f4b6f6c6f72204c616e64204e46543a20496e76616c69642073706563696520746040820152676f2075706461746560c01b606082015260800190565b6020808252602e908201527f4b6f6c6f72204c616e64204e46543a20596f75277265206e6f7420616c6c6f7760408201526d656420746f20646f20746861742160901b606082015260800190565b60208082526035908201527f4b6f6c6f72204c616e64204e46543a2053706563696573206f662074686973206040820152741b185b9908185b1c9958591e481899595b881cd95d605a1b606082015260800190565b6020808252601d908201527f6c616e646f776e657220696e646578206f7574206f6620626f756e6473000000604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252603d908201527f4b6f6c6f72204c616e64204e46543a202054686973206c616e642063616e277460408201527f206265207472616e73666572656420746f204d61726b6574706c616365000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776040820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f4b6f6c6f72204c616e64204e46543a20496e76616c6964205374617465000000604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252603f908201527f4b6f6c6f72204c616e64204e46543a2047656f7370617469616c20706f696e7460408201527f73206f662074686973206c616e6420616c7265616479206265656e2073657400606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252602a908201527f4552433732314d657461646174613a206f7065726174696f6e206f6e206275726040820152696e656420746f6b656e2160b01b606082015260800190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b60006020825282516101a08060208501526141e26101c08501836137b7565b91506020850151601f198086850301604087015261420084836137b7565b93506040870151915061421660608701836137aa565b606087015191508086850301608087015261423184836137b7565b9350608087015160a087015260a087015160c087015260c08701519150808685030160e087015261426284836137b7565b935060e0870151915061010081878603018188015261428185846137b7565b9450808801519250506101208187860301818801526142a085846137b7565b945080880151925050506101406142b981870183613802565b86015161016086810191909152860151610180808701919091529095015193019290925250919050565b90815260200190565b6040518181016001600160401b038111828210171561430d5761430d6143fe565b604052919050565b60006001600160401b0382111561432e5761432e6143fe565b5060209081020190565b60009081526020902090565b60008219821115614357576143576143e8565b500190565b6000816000190483118215151615614376576143766143e8565b500290565b60008282101561438d5761438d6143e8565b500390565b6002810460018216806143a657607f821691505b602082108114156143c757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156143e1576143e16143e8565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461114a57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220be59e2e75533d750ff4ed1e0e01751042a12c27d7451e948c9ef9da79d029e5c64736f6c63430008000033

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106102e45760003560e01c80636c0360eb11610189578063b14745e4116100df578063b14745e414610655578063b6a5d7de14610668578063b88d4fde1461067b578063c42625a01461068e578063c87b56dd146106a1578063d188929f146106b4578063d72448ed146106d4578063d7b359d5146106e7578063d8d31fc1146106fa578063e3cdda391461070d578063e985e9c514610731578063ef2a174714610744578063f2fde38b14610757578063fba2f1b91461076a578063fe9fbb801461077d576102e4565b80636c0360eb146105595780636ed03162146105615780636f4ffd211461057457806370624aff1461058757806370a082311461059a578063715018a6146105ad57806373ad6c2d146105b5578063746d1a6e146105c85780637b156fb5146105f15780638048fc0e146106045780638da5cb5b1461061757806395d89b411461061f578063a0a8318914610627578063a22cb4651461063a578063abc8c7af1461064d576102e4565b80632fc3deff1161023e5780632fc3deff1461043c578063313a249b1461044f57806338345d9514610462578063388fc40c146104755780634032e7131461048857806342842e0e1461049b57806342966c68146104ae57806348743400146104c15780634f69ab8c146104d45780634f6ccce7146104e757806353e76f2c146104fa57806355f804b31461050d5780635c94c545146105205780636352211e146105335780636481514e14610546576102e4565b806301ffc9a7146102e957806306fdde031461031257806307f0ea5814610327578063081812fc14610347578063095ea7b314610367578063128e5e581461037c578063131a7e241461038f57806317ff4c94146103af57806318160ddd146103c257806323b872dd146103ca57806323e0547f146103dd57806324c05772146103f0578063278e3aad146104035780632f745c59146104165780632fa5073714610429575b600080fd5b6102fc6102f7366004613423565b610790565b6040516103099190613922565b60405180910390f35b61031a6107a3565b604051610309919061395e565b61033a61033536600461348d565b610835565b60405161030991906142e3565b61035a61035536600461348d565b610847565b60405161030991906138d1565b61037a6103753660046133fa565b610893565b005b61033a61038a36600461348d565b61092b565b6103a261039d36600461348d565b610940565b604051610309919061392d565b61037a6103bd3660046136b4565b610958565b61033a610a0c565b61037a6103d83660046131d4565b610a12565b61037a6103eb3660046136d7565b610a4a565b61037a6103fe366004613732565b610b81565b61037a610411366004613767565b610c30565b61033a6104243660046133fa565b610d60565b61037a6104373660046132c1565b610db5565b61033a61044a36600461348d565b611002565b61033a61045d36600461348d565b611014565b61033a610470366004613188565b611026565b6102fc6104833660046134a5565b611041565b61037a6104963660046134c7565b611061565b61037a6104a93660046131d4565b6110ff565b61037a6104bc36600461348d565b61111a565b61035a6104cf36600461348d565b61114d565b61037a6104e2366004613649565b61116b565b61033a6104f536600461348d565b611246565b61037a610508366004613670565b6112a1565b61037a61051b36600461345b565b61131b565b61033a61052e366004613711565b611371565b61035a61054136600461348d565b611384565b61033a6105543660046133fa565b6113b9565b61031a611416565b6102fc61056f3660046134a5565b6114a4565b61033a61058236600461348d565b6114cf565b61033a610595366004613711565b61151f565b61033a6105a8366004613188565b61157a565b61037a6115be565b61037a6105c3366004613188565b611609565b6105db6105d6366004613711565b611672565b6040516103099a99989796959493929190613971565b6102fc6105ff36600461348d565b6117d9565b61033a61061236600461348d565b611819565b61035a611844565b61031a611853565b6102fc61063536600461348d565b611862565b61037a610648366004613287565b61186b565b61035a61187d565b61037a61066336600461351b565b61188c565b61037a610676366004613188565b611a2f565b61037a61068936600461320f565b611a97565b61033a61069c36600461348d565b611ad0565b61031a6106af36600461348d565b611ae2565b6106c76106c236600461348d565b611b48565b60405161030991906141c3565b61037a6106e23660046133fa565b611f73565b61037a6106f53660046135c7565b612024565b61037a610708366004613711565b612318565b61072061071b366004613711565b612393565b60405161030995949392919061393b565b6102fc61073f3660046131a2565b6123cd565b61037a6107523660046134a5565b6123fb565b61037a610765366004613188565b612498565b61033a61077836600461348d565b612506565b6102fc61078b366004613188565b612518565b600061079b8261252d565b90505b919050565b6060600080546107b290614392565b80601f01602080910402602001604051908101604052809291908181526020018280546107de90614392565b801561082b5780601f106108005761010080835404028352916020019161082b565b820191906000526020600020905b81548152906001019060200180831161080e57829003601f168201915b5050505050905090565b60009081526017602052604090205490565b600061085282612552565b6108775760405162461bcd60e51b815260040161086e90613e9e565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061089e82611384565b9050806001600160a01b0316836001600160a01b031614156108d25760405162461bcd60e51b815260040161086e9061404b565b806001600160a01b03166108e461256f565b6001600160a01b0316148061090057506109008161073f61256f565b61091c5760405162461bcd60e51b815260040161086e90613d7e565b6109268383612573565b505050565b6000908152600e60205260409020600a015490565b6000908152600e602052604090206009015460ff1690565b3360009081526018602052604090205460ff166109875760405162461bcd60e51b815260040161086e90613a6a565b8161099181612552565b6109ad5760405162461bcd60e51b815260040161086e90614129565b600083815260176020818152604080842080548751601685528387208288528552838720908155888501516001820155928801516002909301929092558785529290915281549092909190610a01836143cd565b919050555050505050565b60085490565b610a23610a1d61256f565b826125e1565b610a3f5760405162461bcd60e51b815260040161086e9061408c565b610926838383612666565b3360009081526018602052604090205460ff16610a795760405162461bcd60e51b815260040161086e90613a6a565b81610a8381612552565b610a9f5760405162461bcd60e51b815260040161086e90614129565b6000610aaa84611ad0565b8351600086815260146020908152604080832085845282529091208251939450610ada9390929190910190612e9f565b506020808401516000868152601483526040808220858352845290208151610b0b9360019092019290910190612e9f565b5060408381015160008681526014602090815283822085835281528382206002810193909355606087015160038401556080870151600484015560c087015160068401556007830188905542600884015560a08701516005909301929092558681526015909152908120805491610a01836143cd565b3360009081526018602052604090205460ff16610bb05760405162461bcd60e51b815260040161086e90613a6a565b82610bba81612552565b610bd65760405162461bcd60e51b815260040161086e90614129565b610be08385612781565b610bfc5760405162461bcd60e51b815260040161086e906139db565b5080516000938452601660209081526040808620948652938152938390209081559281015160018401550151600290910155565b3360009081526018602052604090205460ff16610c5f5760405162461bcd60e51b815260040161086e90613a6a565b82610c6981612552565b610c855760405162461bcd60e51b815260040161086e90614129565b610c8f83856127a4565b610cab5760405162461bcd60e51b815260040161086e90613a22565b8151600085815260146020908152604080832087845282529091208251610cd793919290910190612e9f565b506020808301516000868152601483526040808220878352845290208151610d089360019092019290910190612e9f565b505060408181015160008581526014602090815283822095825294909452922060028101929092556060810151600383015560c08101516006830155600782019290925542600982015560a090910151600590910155565b6000610d6b8361157a565b8210610d895760405162461bcd60e51b815260040161086e90613b44565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b3360009081526018602052604090205460ff16610de45760405162461bcd60e51b815260040161086e90613a6a565b6000610df0600b6127af565b9050610dfc600b6127b3565b610e068c826127bc565b6000818152600e602090815260409091208c51610e25928e0190612e9f565b506000818152600e602090815260409091208b51610e4b926001909201918d0190612e9f565b506000818152600e602090815260409091206002810180546001600160a01b0319166001600160a01b038d161790558951610e8e926003909201918b0190612e9f565b506000818152600e6020908152604090912060048101899055600581018890558651610ec292600690920191880190612e9f565b506000818152600e602090815260409091208551610ee892600790920191870190612e9f565b506000818152600e602090815260409091208451610f0e92600890920191860190612e9f565b506000818152600e60205260408120600a810184905542600c820155600901805460ff191660018302179055506000601160008b6001600160a01b03166001600160a01b0316815260200190815260200160002054905081600f60008f6001600160a01b03166001600160a01b03168152602001908152602001600020600083815260200190815260200160002081905550806010600084815260200190815260200160002081905550601160008e6001600160a01b03166001600160a01b031681526020019081526020016000206000815480929190610fee906143cd565b919050555050505050505050505050505050565b60156020526000908152604090205481565b60176020526000908152604090205481565b6001600160a01b031660009081526011602052604090205490565b601260209081526000928352604080842090915290825290205460ff1681565b3360009081526018602052604090205460ff166110905760405162461bcd60e51b815260040161086e90613a6a565b8261109a81612552565b6110b65760405162461bcd60e51b815260040161086e90614129565b6000848152600e602090815260409091206002810180546001600160a01b0319166001600160a01b03871617905583516110f892600390920191850190612e9f565b5050505050565b61092683838360405180602001604052806000815250611a97565b611125610a1d61256f565b6111415760405162461bcd60e51b815260040161086e90614173565b61114a816127d6565b50565b6000908152600e60205260409020600201546001600160a01b031690565b8161117581612552565b6111915760405162461bcd60e51b815260040161086e90614129565b3360009081526018602052604090205460ff166111c05760405162461bcd60e51b815260040161086e90613a6a565b60008260038111156111e257634e487b7160e01b600052602160045260246000fd5b14156112005760405162461bcd60e51b815260040161086e90613f1f565b6000838152600e60205260409020600901805483919060ff1916600183600381111561123c57634e487b7160e01b600052602160045260246000fd5b0217905550505050565b6000611250610a0c565b821061126e5760405162461bcd60e51b815260040161086e906140dd565b6008828154811061128f57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b3360009081526018602052604090205460ff166112d05760405162461bcd60e51b815260040161086e90613a6a565b816112da81612552565b6112f65760405162461bcd60e51b815260040161086e90614129565b6000838152600e60209081526040909120835161131592850190612e9f565b50505050565b61132361256f565b6001600160a01b0316611334611844565b6001600160a01b03161461135a5760405162461bcd60e51b815260040161086e90613eea565b805161136d90600d906020840190612e9f565b5050565b600061137d838361437b565b9392505050565b6000818152600260205260408120546001600160a01b03168061079b5760405162461bcd60e51b815260040161086e90613e20565b60006113c48361157a565b6113cf906001614344565b82106113ed5760405162461bcd60e51b815260040161086e90613b0d565b506001600160a01b03919091166000908152600f60209081526040808320938352929052205490565b600d805461142390614392565b80601f016020809104026020016040519081016040528092919081815260200182805461144f90614392565b801561149c5780601f106114715761010080835404028352916020019161149c565b820191906000526020600020905b81548152906001019060200180831161147f57829003601f168201915b505050505081565b60009182526012602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000806114db83611ad0565b90506000805b828110156115175760006114f5868361151f565b90506115018184614344565b925050808061150f906143cd565b9150506114e1565b509392505050565b6000828152601460209081526040808320848452909152812060080154816115478242611371565b6000868152601460209081526040808320888452909152902060050154909150611571908261435c565b95945050505050565b60006001600160a01b0382166115a25760405162461bcd60e51b815260040161086e90613dd6565b506001600160a01b031660009081526003602052604090205490565b6115c661256f565b6001600160a01b03166115d7611844565b6001600160a01b0316146115fd5760405162461bcd60e51b815260040161086e90613eea565b611607600061286b565b565b3360009081526018602052604090205460ff166116385760405162461bcd60e51b815260040161086e90613a6a565b600c80546001600160a01b0319166001600160a01b039283161790819055166000908152601860205260409020805460ff19166001179055565b601460209081526000928352604080842090915290825290208054819061169890614392565b80601f01602080910402602001604051908101604052809291908181526020018280546116c490614392565b80156117115780601f106116e657610100808354040283529160200191611711565b820191906000526020600020905b8154815290600101906020018083116116f457829003601f168201915b50505050509080600101805461172690614392565b80601f016020809104026020016040519081016040528092919081815260200182805461175290614392565b801561179f5780601f106117745761010080835404028352916020019161179f565b820191906000526020600020905b81548152906001019060200180831161178257829003601f168201915b505050505090806002015490806003015490806004015490806005015490806006015490806007015490806008015490806009015490508a565b600060035b6000838152600e602052604090206009015460ff16600381111561181257634e487b7160e01b600052602160045260246000fd5b1492915050565b600080611825836114cf565b6000848152600e60205260409020600b015490915061137d908261437b565b600a546001600160a01b031690565b6060600180546107b290614392565b600060026117de565b61136d61187661256f565b83836128bd565b600c546001600160a01b031681565b3360009081526018602052604090205460ff166118bb5760405162461bcd60e51b815260040161086e90613a6a565b816118c581612552565b6118e15760405162461bcd60e51b815260040161086e90614129565b6118ea83610835565b156119075760405162461bcd60e51b815260040161086e90613fee565b815160005b818110156110f85783818151811061193457634e487b7160e01b600052603260045260246000fd5b6020908102919091018101515160008781526016835260408082208583529093529190912055835184908290811061197c57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518101516000878152601683526040808220858352909352919091206001015583518490829081106119c957634e487b7160e01b600052603260045260246000fd5b602090810291909101810151604090810151600088815260168452828120858252845282812060028101929092554260039092019190915587815260179092528120805491611a17836143cd565b91905055508080611a27906143cd565b91505061190c565b611a3761256f565b6001600160a01b0316611a48611844565b6001600160a01b031614611a6e5760405162461bcd60e51b815260040161086e90613eea565b6001600160a01b03166000908152601860205260409020805460ff19811660ff90911615179055565b611aa8611aa261256f565b836125e1565b611ac45760405162461bcd60e51b815260040161086e9061408c565b61131584848484612960565b60009081526015602052604090205490565b6060611aed82612552565b611b095760405162461bcd60e51b815260040161086e90613f9f565b600d600e6000848152602001908152602001600020600101604051602001611b329291906138bc565b6040516020818303038152906040529050919050565b611b50612f23565b6000828152600e60205260409081902081516101a08101909252805482908290611b7990614392565b80601f0160208091040260200160405190810160405280929190818152602001828054611ba590614392565b8015611bf25780601f10611bc757610100808354040283529160200191611bf2565b820191906000526020600020905b815481529060010190602001808311611bd557829003601f168201915b50505050508152602001600182018054611c0b90614392565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3790614392565b8015611c845780601f10611c5957610100808354040283529160200191611c84565b820191906000526020600020905b815481529060010190602001808311611c6757829003601f168201915b505050918352505060028201546001600160a01b03166020820152600382018054604090920191611cb490614392565b80601f0160208091040260200160405190810160405280929190818152602001828054611ce090614392565b8015611d2d5780601f10611d0257610100808354040283529160200191611d2d565b820191906000526020600020905b815481529060010190602001808311611d1057829003601f168201915b505050505081526020016004820154815260200160058201548152602001600682018054611d5a90614392565b80601f0160208091040260200160405190810160405280929190818152602001828054611d8690614392565b8015611dd35780601f10611da857610100808354040283529160200191611dd3565b820191906000526020600020905b815481529060010190602001808311611db657829003601f168201915b50505050508152602001600782018054611dec90614392565b80601f0160208091040260200160405190810160405280929190818152602001828054611e1890614392565b8015611e655780601f10611e3a57610100808354040283529160200191611e65565b820191906000526020600020905b815481529060010190602001808311611e4857829003601f168201915b50505050508152602001600882018054611e7e90614392565b80601f0160208091040260200160405190810160405280929190818152602001828054611eaa90614392565b8015611ef75780601f10611ecc57610100808354040283529160200191611ef7565b820191906000526020600020905b815481529060010190602001808311611eda57829003601f168201915b5050509183525050600982015460209091019060ff166003811115611f2c57634e487b7160e01b600052602160045260246000fd5b6003811115611f4b57634e487b7160e01b600052602160045260246000fd5b8152600a8201546020820152600b8201546040820152600c9091015460609091015292915050565b80611f7d81612552565b611f995760405162461bcd60e51b815260040161086e90614129565b3360009081526018602052604090205460ff16611fc85760405162461bcd60e51b815260040161086e90613a6a565b81611fd281611862565b158015611fe55750611fe3816117d9565b155b6120015760405162461bcd60e51b815260040161086e90613d21565b61200c83600361116b565b600c546113159085906001600160a01b0316856110ff565b3360009081526018602052604090205460ff166120535760405162461bcd60e51b815260040161086e90613a6a565b8161205d81612552565b6120795760405162461bcd60e51b815260040161086e90614129565b61208283611ad0565b1561209f5760405162461bcd60e51b815260040161086e90613ab8565b815160005b81811015612300578381815181106120cc57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101515160008781526014835260408082208583528452902081516120ff93919290910190612e9f565b5083818151811061212057634e487b7160e01b600052603260045260246000fd5b60209081029190910181015181015160008781526014835260408082208583528452902081516121599360019092019290910190612e9f565b5083818151811061217a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160409081015160008881526014845282812085825290935291206002015583518490829081106121c657634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516060015160008781526014835260408082208583529093529190912060030155835184908290811061221457634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516080015160008781526014835260408082208583529093529190912060040155835184908290811061226257634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160a001516000878152601483526040808220858352909352919091206005015583518490829081106122b057634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160c0015160008781526014835260408082208583529093529190912060068101919091556007810186905542600890910155806122f8816143cd565b9150506120a4565b50600093845260156020526040909320929092555050565b600c546001600160a01b031633146123425760405162461bcd60e51b815260040161086e90613a6a565b8161234c81612552565b6123685760405162461bcd60e51b815260040161086e90614129565b6000838152600e60205260408120600b018054849290612389908490614344565b9091555050505050565b6016602090815260009283526040808420909152908252902080546001820154600283015460038401546004909401549293919290919085565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600c546001600160a01b031633146124255760405162461bcd60e51b815260040161086e90613a6a565b8161242f81612552565b61244b5760405162461bcd60e51b815260040161086e90614129565b60008381526012602090815260408083206001600160a01b03861684528252808320805460ff191660011790558583526013909152812080549161248e836143cd565b9190505550505050565b6124a061256f565b6001600160a01b03166124b1611844565b6001600160a01b0316146124d75760405162461bcd60e51b815260040161086e90613eea565b6001600160a01b0381166124fd5760405162461bcd60e51b815260040161086e90613be1565b61114a8161286b565b60136020526000908152604090205481565b60186020526000908152604090205460ff1681565b60006001600160e01b0319821663780e9d6360e01b148061079b575061079b82612993565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906125a882611384565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006125ec82612552565b6126085760405162461bcd60e51b815260040161086e90613cd5565b600061261383611384565b9050806001600160a01b0316846001600160a01b0316148061264e5750836001600160a01b031661264384610847565b6001600160a01b0316145b8061265e575061265e81856123cd565b949350505050565b826001600160a01b031661267982611384565b6001600160a01b03161461269f5760405162461bcd60e51b815260040161086e90613f56565b6001600160a01b0382166126c55760405162461bcd60e51b815260040161086e90613c5e565b6126d08383836129d3565b6126db600082612573565b6001600160a01b038316600090815260036020526040812080546001929061270490849061437b565b90915550506001600160a01b0382166000908152600360205260408120805460019290612732908490614344565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061442b83398151915291a4505050565b600061278c82610835565b83101561279b57506001610daf565b50600092915050565b600061278c82611ad0565b5490565b80546001019055565b61136d8282604051806020016040528060008152506129de565b60006127e182611384565b90506127ef816000846129d3565b6127fa600083612573565b6001600160a01b038116600090815260036020526040812080546001929061282390849061437b565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b0384169060008051602061442b833981519152908390a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156128ef5760405162461bcd60e51b815260040161086e90613ca2565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190612953908590613922565b60405180910390a3505050565b61296b848484612666565b61297784848484612a11565b6113155760405162461bcd60e51b815260040161086e90613b8f565b60006001600160e01b031982166380ac58cd60e01b14806129c457506001600160e01b03198216635b5e139f60e01b145b8061079b575061079b82612b2c565b610926838383612b45565b6129e88383612bce565b6129f56000848484612a11565b6109265760405162461bcd60e51b815260040161086e90613b8f565b6000612a25846001600160a01b0316612c9b565b15612b2157836001600160a01b031663150b7a02612a4161256f565b8786866040518563ffffffff1660e01b8152600401612a6394939291906138e5565b602060405180830381600087803b158015612a7d57600080fd5b505af1925050508015612aad575060408051601f3d908101601f19168201909252612aaa9181019061343f565b60015b612b07573d808015612adb576040519150601f19603f3d011682016040523d82523d6000602084013e612ae0565b606091505b508051612aff5760405162461bcd60e51b815260040161086e90613b8f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061265e565b506001949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b612b50838383610926565b6001600160a01b038316612b6c57612b6781612ca1565b612b8f565b816001600160a01b0316836001600160a01b031614612b8f57612b8f8382612ce5565b6001600160a01b038216612bab57612ba681612d82565b610926565b826001600160a01b0316826001600160a01b031614610926576109268282612e5b565b6001600160a01b038216612bf45760405162461bcd60e51b815260040161086e90613e69565b612bfd81612552565b15612c1a5760405162461bcd60e51b815260040161086e90613c27565b612c26600083836129d3565b6001600160a01b0382166000908152600360205260408120805460019290612c4f908490614344565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b038616908117909155905183929060008051602061442b833981519152908290a45050565b3b151590565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001612cf28461157a565b612cfc919061437b565b600083815260076020526040902054909150808214612d4f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612d949060019061437b565b60008381526009602052604081205460088054939450909284908110612dca57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612df957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612e3f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612e668361157a565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612eab90614392565b90600052602060002090601f016020900481019282612ecd5760008555612f13565b82601f10612ee657805160ff1916838001178555612f13565b82800160010185558215612f13579182015b82811115612f13578251825591602001919060010190612ef8565b50612f1f929150612fb3565b5090565b604051806101a00160405280606081526020016060815260200160006001600160a01b0316815260200160608152602001600081526020016000815260200160608152602001606081526020016060815260200160006003811115612f9857634e487b7160e01b600052602160045260246000fd5b81526020016000815260200160008152602001600081525090565b5b80821115612f1f5760008155600101612fb4565b60006001600160401b03831115612fe157612fe16143fe565b612ff4601f8401601f19166020016142ec565b905082815283838301111561300857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461079e57600080fd5b600082601f830112613046578081fd5b61137d83833560208501612fc8565b600060a08284031215613066578081fd5b60405160a081018181106001600160401b0382111715613088576130886143fe565b806040525080915082358152602083013560208201526040830135604082015260608301356060820152608083013560808201525092915050565b60006101408083850312156130d6578182fd5b6130df816142ec565b91505081356001600160401b03808211156130f957600080fd5b61310585838601613036565b8352602084013591508082111561311b57600080fd5b5061312884828501613036565b60208301525060408201356040820152606082013560608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e082015261010080830135818301525061012080830135818301525092915050565b600060208284031215613199578081fd5b61137d8261301f565b600080604083850312156131b4578081fd5b6131bd8361301f565b91506131cb6020840161301f565b90509250929050565b6000806000606084860312156131e8578081fd5b6131f18461301f565b92506131ff6020850161301f565b9150604084013590509250925092565b60008060008060808587031215613224578081fd5b61322d8561301f565b935061323b6020860161301f565b92506040850135915060608501356001600160401b0381111561325c578182fd5b8501601f8101871361326c578182fd5b61327b87823560208401612fc8565b91505092959194509250565b60008060408385031215613299578182fd5b6132a28361301f565b9150602083013580151581146132b6578182fd5b809150509250929050565b60008060008060008060008060008060006101608c8e0312156132e2578889fd5b6132eb8c61301f565b9a506001600160401b038060208e0135111561330557898afd5b6133158e60208f01358f01613036565b9a508060408e0135111561332757898afd5b6133378e60408f01358f01613036565b995061334560608e0161301f565b98508060808e01351115613357578788fd5b6133678e60808f01358f01613036565b975060a08d0135965060c08d013595508060e08e01351115613387578485fd5b6133978e60e08f01358f01613036565b9450806101008e013511156133aa578384fd5b6133bb8e6101008f01358f01613036565b9350806101208e013511156133ce578283fd5b506133e08d6101208e01358e01613036565b91506101408c013590509295989b509295989b9093969950565b6000806040838503121561340c578182fd5b6134158361301f565b946020939093013593505050565b600060208284031215613434578081fd5b813561137d81614414565b600060208284031215613450578081fd5b815161137d81614414565b60006020828403121561346c578081fd5b81356001600160401b03811115613481578182fd5b61265e84828501613036565b60006020828403121561349e578081fd5b5035919050565b600080604083850312156134b7578182fd5b823591506131cb6020840161301f565b6000806000606084860312156134db578081fd5b833592506134eb6020850161301f565b915060408401356001600160401b03811115613505578182fd5b61351186828701613036565b9150509250925092565b6000806040838503121561352d578182fd5b823591506020808401356001600160401b0381111561354a578283fd5b8401601f8101861361355a578283fd5b803561356d61356882614315565b6142ec565b8181528381019083850160a0808502860187018b101561358b578788fd5b8795505b848610156135b7576135a18b83613055565b845260019590950194928601929081019061358f565b5096999098509650505050505050565b600080604083850312156135d9578182fd5b823591506020808401356001600160401b038111156135f6578283fd5b8401601f81018613613606578283fd5b803561361461356882614315565b81815283810190838501865b848110156135b7576136378b8884358901016130c3565b84529286019290860190600101613620565b6000806040838503121561365b578182fd5b823591506020830135600481106132b6578182fd5b60008060408385031215613682578182fd5b8235915060208301356001600160401b0381111561369e578182fd5b6136aa85828601613036565b9150509250929050565b60008060c083850312156136c6578182fd5b823591506131cb8460208501613055565b600080604083850312156136e9578182fd5b8235915060208301356001600160401b03811115613705578182fd5b6136aa858286016130c3565b60008060408385031215613723578182fd5b50508035926020909101359150565b600080600060e08486031215613746578081fd5b833592506020840135915061375e8560408601613055565b90509250925092565b60008060006060848603121561377b578081fd5b833592506020840135915060408401356001600160401b0381111561379e578182fd5b613511868287016130c3565b6001600160a01b03169052565b60008151808452815b818110156137dc576020818501810151868301820152016137c0565b818111156137ed5782602083870101525b50601f01601f19169290920160200192915050565b6004811061382057634e487b7160e01b600052602160045260246000fd5b9052565b80546000906002810460018083168061383e57607f831692505b602080841082141561385e57634e487b7160e01b86526022600452602486fd5b8180156138725760018114613883576138b0565b60ff198616895284890196506138b0565b61388c88614338565b60005b868110156138a85781548b82015290850190830161388f565b505084890196505b50505050505092915050565b600061265e6138cb8386613824565b84613824565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613918908301846137b7565b9695505050505050565b901515815260200190565b60208101610daf8284613802565b948552602085019390935260408401919091526060830152608082015260a00190565b60006020825261137d60208301846137b7565b60006101408083526139858184018e6137b7565b90508281036020840152613999818d6137b7565b604084019b909b5250506060810197909752608087019590955260a086019390935260c085019190915260e08401526101008301526101209091015292915050565b60208082526027908201527f4b6f6c6f72204c616e64204e46543a20496e76616c696420706f696e7420746f6040820152662075706461746560c81b606082015260800190565b60208082526028908201527f4b6f6c6f72204c616e64204e46543a20496e76616c69642073706563696520746040820152676f2075706461746560c01b606082015260800190565b6020808252602e908201527f4b6f6c6f72204c616e64204e46543a20596f75277265206e6f7420616c6c6f7760408201526d656420746f20646f20746861742160901b606082015260800190565b60208082526035908201527f4b6f6c6f72204c616e64204e46543a2053706563696573206f662074686973206040820152741b185b9908185b1c9958591e481899595b881cd95d605a1b606082015260800190565b6020808252601d908201527f6c616e646f776e657220696e646578206f7574206f6620626f756e6473000000604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252603d908201527f4b6f6c6f72204c616e64204e46543a202054686973206c616e642063616e277460408201527f206265207472616e73666572656420746f204d61726b6574706c616365000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776040820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f4b6f6c6f72204c616e64204e46543a20496e76616c6964205374617465000000604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252603f908201527f4b6f6c6f72204c616e64204e46543a2047656f7370617469616c20706f696e7460408201527f73206f662074686973206c616e6420616c7265616479206265656e2073657400606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252602a908201527f4552433732314d657461646174613a206f7065726174696f6e206f6e206275726040820152696e656420746f6b656e2160b01b606082015260800190565b60208082526030908201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760408201526f1b995c881b9bdc88185c1c1c9bdd995960821b606082015260800190565b60006020825282516101a08060208501526141e26101c08501836137b7565b91506020850151601f198086850301604087015261420084836137b7565b93506040870151915061421660608701836137aa565b606087015191508086850301608087015261423184836137b7565b9350608087015160a087015260a087015160c087015260c08701519150808685030160e087015261426284836137b7565b935060e0870151915061010081878603018188015261428185846137b7565b9450808801519250506101208187860301818801526142a085846137b7565b945080880151925050506101406142b981870183613802565b86015161016086810191909152860151610180808701919091529095015193019290925250919050565b90815260200190565b6040518181016001600160401b038111828210171561430d5761430d6143fe565b604052919050565b60006001600160401b0382111561432e5761432e6143fe565b5060209081020190565b60009081526020902090565b60008219821115614357576143576143e8565b500190565b6000816000190483118215151615614376576143766143e8565b500290565b60008282101561438d5761438d6143e8565b500390565b6002810460018216806143a657607f821691505b602082108114156143c757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156143e1576143e16143e8565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461114a57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220be59e2e75533d750ff4ed1e0e01751042a12c27d7451e948c9ef9da79d029e5c64736f6c63430008000033