ETH Price: $2,629.88 (+6.55%)

Token

LuckyDuck (LD)
 

Overview

Max Total Supply

293 LD

Holders

146

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 LD
0x7a0b3da3e037b8eefb045846a10890516f39b107
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
LuckyDuck

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : LuckyDuck.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./ERC721Enumerable.sol";

contract LuckyDuck is ERC721Enumerable, Ownable {
    using SafeMath for uint256;
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdTracker;

    uint256 public constant MAX_ELEMENTS = 9999;
    uint256 public constant PRICE = 0.04 ether;
    uint256 private startSales = 1629748800; // 2021-08-23 à 20:00:00
    uint256 private canMerge = 0;
    uint256 private _balanceCreator = 0;
    uint256 private _balanceNFT = 0;
    uint256 private _balanceDev = 0;
    uint256 private _balanceArtist = 0;

    address public constant creatorAddress = 0x02AE2a244E7Ef69153B3a599ca412cef4079eb47; // 19%
    address public constant artistAddress = 0x66F7d38aa7e0fC5b5daDa6BafAF38e2090327Ac5;  // 6%
    address public constant devAddress = 0xcBCc84766F2950CF867f42D766c43fB2D2Ba3256;  // 24%
    address public constant nftAddress = 0xee297917DC25F0ED13eEE97Aebc34312C75EF9d3; // 31%

    string public baseTokenURI;

    mapping(uint256 => uint256) private ETH_VALUES;
    mapping(uint256 => Duck) private _ducks;

    // Lucky ducks
    struct Duck {
        uint256 tokenId;
        uint256 luck;
        address owner;
    }
    constructor(string memory baseURI) ERC721("LuckyDuck", "LD") {
        setBaseURI(baseURI);
        ETH_VALUES[0] = 0.02 ether;
        ETH_VALUES[1] = 0.04 ether;
        ETH_VALUES[2] = 0.1 ether;
        ETH_VALUES[3] = 0.25 ether;
        ETH_VALUES[4] = 0.5 ether;
        ETH_VALUES[5] = 1 ether;
    }

    modifier saleIsOpen {
        require(_totalSupply() <= MAX_ELEMENTS, "Sale end.");
        if (_msgSender() != owner()) {
            require(block.timestamp >= startSales, "Sales not open.");
        }
        _;
    }
    function _totalSupply() internal view returns (uint) {
        return _tokenIdTracker.current();
    }
    function totalMint() public view returns (uint256) {
        return _totalSupply();
    }
    function price(uint256 _count) public pure returns (uint256) {
        return PRICE.mul(_count);
    }
    function mint(address _to, uint256 _count) public payable saleIsOpen {
        uint256 total = _totalSupply();
        require(total + _count <= MAX_ELEMENTS, "Max limit");
        require(total <= MAX_ELEMENTS, "Sale end");
        require(_count <= 16, "Exceeds number");
        uint256 _price = msg.value;
        require(_price >= price(_count), "Value below price");

        _balanceCreator += _price.mul(19).div(100);
        _balanceArtist += _price.mul(6).div(100);
        _balanceDev += _price.mul(24).div(100);
        _balanceNFT += _price.mul(31).div(100);

        for (uint256 i = 0; i < _count; i++) {
            _mintAnElement(_to);
        }
    }
    function _mintAnElement(address _to) private {
        uint id = _totalSupply() + 1;

        _tokenIdTracker.increment();

        _safeMint(_to, id);

        _ducks[id].tokenId = id;
        _ducks[id].luck = 1;
        _ducks[id].owner = _to;
    }
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }

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

    function walletOfOwner(address _owner) external view returns (Duck[] memory) {
        uint256 tokenCount = balanceOf(_owner);

        Duck[] memory ducks = new Duck[](tokenCount);
        for (uint256 i = 0; i < tokenCount; i++) {
            ducks[i] = _ducks[tokenOfOwnerByIndex(_owner, i)];
        }

        return ducks;
    }

    function setStartSales(uint _start) public onlyOwner {
        startSales = _start;
    }

    function getStartSales() public view returns(uint) {
        return startSales;
    }

    function withdrawAll() public onlyOwner {

        if(_balanceCreator > 0){
            uint256 bCreator = _balanceCreator;
            _balanceCreator = 0;
            _widthdraw(creatorAddress, bCreator);
        }

        if(_balanceArtist > 0){
            uint256 bArtist = _balanceArtist;
            _balanceArtist = 0;
            _widthdraw(artistAddress, bArtist);
        }

        if(_balanceDev > 0){
            uint256 bDev = _balanceDev;
            _balanceDev = 0;
            _widthdraw(devAddress, bDev);
        }

        if(_balanceNFT > 0){
            uint256 bNFT = _balanceNFT;
            _balanceNFT = 0;
            _widthdraw(nftAddress, bNFT);
        }
    }

    function fullWithdraw() public onlyOwner {
        uint256 balance = address(this).balance;

        _balanceCreator = 0;
        _balanceArtist = 0;
        _balanceDev = 0;
        _balanceNFT = 0;

        _widthdraw(devAddress, balance.mul(24).div(100));
        _widthdraw(artistAddress, balance.mul(6).div(100));
        _widthdraw(creatorAddress, address(this).balance);
    }

    function getBalance() public view onlyOwner returns(uint256[] memory) {

        uint256[] memory balances = new uint256[](4);
        balances[0] = _balanceCreator;
        balances[1] = _balanceArtist;
        balances[2] = _balanceDev;
        balances[3] = _balanceNFT;

        return balances;
    }

    function _widthdraw(address _address, uint256 _amount) private {
        if(_amount > 0){
            (bool success, ) = _address.call{value: _amount}("");
            require(success, "Transfer failed.");
        }
    }

    function reserve(uint256 _count) public onlyOwner {
        uint256 total = _totalSupply();
        require(total + _count <= 150, "Exceeded giveaways.");
        for (uint256 i = 0; i < _count; i++) {
            _mintAnElement(_msgSender());
        }
    }

    function duckGet(uint256 _tokenId) public view returns (Duck memory){
        return _ducks[_tokenId];
    }

    function duckGetAll(uint256 offset, uint256 limit) public view returns (Duck[] memory){
        Duck[] memory ducks = new Duck[](limit);
        for(uint i=0;i<limit;i++){
            ducks[i] = _ducks[i+offset];
        }
        return ducks;
    }
    function setLuck(uint256[] memory _tokensId, uint256[] memory _lucks) public onlyOwner{
        for(uint i=0;i<_tokensId.length;i++){
            _ducks[_tokensId[i]].luck = _lucks[i];
        }
    }
    function activeMerge(uint256 active) public onlyOwner{
        canMerge = active;
    }
    function getCanMerge() public view returns (uint256){
        return canMerge;
    }
    function mergeDucks(uint256 _duck1, uint256 _duck2) public {
        // if no more like 5 duck
        require(canMerge == 1, "Merge is not available.");
        if(
            (ownerOf(_duck1) != _msgSender()) ||
            (ownerOf(_duck2) != _msgSender()) ||
            (_ducks[_duck1].luck != _ducks[_duck2].luck) ||
            _ducks[_duck1].luck >= 50
        ){
            revert( 'Something is wrong.' );
        }

        // merge luck
        uint256 totalLuck = 0;
        if (_ducks[_duck1].luck == 1){totalLuck = 3;} // x2 + 1 : 2 ducks = +2 => +3 => +50% | 1 burned
        else if (_ducks[_duck1].luck == 3){totalLuck = 8;} // x2 + 2 : 4 ducks => +4 => +8 => +100% | 3 burned
        else if (_ducks[_duck1].luck == 8){totalLuck = 20;} // x2 + 4 : 8 ducks => +8 => +20 => +250% | 7 burned
        else if (_ducks[_duck1].luck == 20){totalLuck = 50;} // x2 + 5 : 16 ducks => +16 => +50 => +320% | 15 burned

        require(totalLuck > 0 && totalLuck != _ducks[_duck1].luck, "Error calculation luck.");

        // burn _duck2
        _ducks[_duck2].luck = 0;
        _burn(_duck2);

        // save new luck
        _ducks[_duck1].luck = totalLuck;
    }

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

        _ducks[tokenId].owner = to;
    }

    function sendETHtoWinners(uint256 _valueId, address[] memory _winners) public onlyOwner{
        for(uint i=0; i < _winners.length; i++){
            _widthdraw(_winners[i], ETH_VALUES[_valueId]);
        }
    }

    receive() external payable {}
}

File 2 of 15 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
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;

    // Mapping from owner to burn token
    mapping(address => uint256[]) private _ownedBurned;

    /**
     * personal functions
     */

    function hasBurn(address _ad) public view returns (bool){
        return _ownedBurned[_ad].length > 0;
    }
    function getBurnedToken(address _ad) public view returns (uint256[] memory){
        return _ownedBurned[_ad];
    }

    /**
     * @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)) {
            _ownedBurned[from].push(tokenId);
            _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();
    }
}

File 3 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT

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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "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 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(to).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 {}
}

File 5 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT

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;
}

File 6 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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);
}

File 7 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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);
}

File 8 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 15 : Address.sol
// SPDX-License-Identifier: MIT

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);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 10 of 15 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 11 of 15 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 12 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 13 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 14 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 15 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_ELEMENTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"active","type":"uint256"}],"name":"activeMerge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artistAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creatorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"duckGet","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"luck","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct LuckyDuck.Duck","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"duckGetAll","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"luck","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct LuckyDuck.Duck[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fullWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_ad","type":"address"}],"name":"getBurnedToken","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCanMerge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStartSales","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_ad","type":"address"}],"name":"hasBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duck1","type":"uint256"},{"internalType":"uint256","name":"_duck2","type":"uint256"}],"name":"mergeDucks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_valueId","type":"uint256"},{"internalType":"address[]","name":"_winners","type":"address[]"}],"name":"sendETHtoWinners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokensId","type":"uint256[]"},{"internalType":"uint256[]","name":"_lucks","type":"uint256[]"}],"name":"setLuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"}],"name":"setStartSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"luck","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct LuckyDuck.Duck[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052636123fe40600d556000600e556000600f556000601055600060115560006012553480156200003257600080fd5b5060405162006489380380620064898339818101604052810190620000589190620004c4565b6040518060400160405280600981526020017f4c75636b794475636b00000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f4c440000000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000dc92919062000396565b508060019080519060200190620000f592919062000396565b505050620001186200010c620001f360201b60201c565b620001fb60201b60201c565b6200012981620002c160201b60201c565b66470de4df8200006014600080815260200190815260200160002081905550668e1bc9bf04000060146000600181526020019081526020016000208190555067016345785d8a00006014600060028152602001908152602001600020819055506703782dace9d900006014600060038152602001908152602001600020819055506706f05b59d3b20000601460006004815260200190815260200160002081905550670de0b6b3a7640000601460006005815260200190815260200160002081905550506200071c565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002d1620001f360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002f76200036c60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000350576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000347906200053c565b60405180910390fd5b80601390805190602001906200036892919062000396565b5050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003a49062000604565b90600052602060002090601f016020900481019282620003c8576000855562000414565b82601f10620003e357805160ff191683800117855562000414565b8280016001018555821562000414579182015b8281111562000413578251825591602001919060010190620003f6565b5b50905062000423919062000427565b5090565b5b808211156200044257600081600090555060010162000428565b5090565b60006200045d620004578462000587565b6200055e565b9050828152602081018484840111156200047c576200047b620006d3565b5b62000489848285620005ce565b509392505050565b600082601f830112620004a957620004a8620006ce565b5b8151620004bb84826020860162000446565b91505092915050565b600060208284031215620004dd57620004dc620006dd565b5b600082015167ffffffffffffffff811115620004fe57620004fd620006d8565b5b6200050c8482850162000491565b91505092915050565b600062000524602083620005bd565b91506200053182620006f3565b602082019050919050565b60006020820190508181036000830152620005578162000515565b9050919050565b60006200056a6200057d565b90506200057882826200063a565b919050565b6000604051905090565b600067ffffffffffffffff821115620005a557620005a46200069f565b5b620005b082620006e2565b9050602081019050919050565b600082825260208201905092915050565b60005b83811015620005ee578082015181840152602081019050620005d1565b83811115620005fe576000848401525b50505050565b600060028204905060018216806200061d57607f821691505b6020821081141562000634576200063362000670565b5b50919050565b6200064582620006e2565b810181811067ffffffffffffffff821117156200066757620006666200069f565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b615d5d806200072c6000396000f3fe6080604052600436106102815760003560e01c80636352211e1161014f578063b88d4fde116100c1578063dcfca9d21161007a578063dcfca9d2146109d0578063e927fc5c14610a0d578063e985e9c514610a38578063ebfc690914610a75578063f2fde38b14610a9e578063fa914ed514610ac757610288565b8063b88d4fde146108ae578063c87b56dd146108d7578063ce53dd9d14610914578063d1e1f57214610951578063d547cfb71461097a578063d7eb3f3a146109a557610288565b8063853828b611610113578063853828b6146107c45780638d859f3e146107db5780638da5cb5b1461080657806395d89b411461083157806396ab8bf51461085c578063a22cb4651461088557610288565b80636352211e146106e157806370a082311461071e578063715018a61461075b5780637beee7cd14610772578063819b25ba1461079b57610288565b80633502a716116101f357806353eda807116101ac57806353eda807146105bd57806355f804b3146105fa57806359a7715a146106235780635bf8633a1461064e5780635e1b44081461067957806360db6e93146106b657610288565b80633502a716146104a85780633ad10ef6146104d357806340c10f19146104fe57806342842e0e1461051a578063438b6300146105435780634f6ccce71461058057610288565b806312065fe01161024557806312065fe014610384578063163daf31146103af57806318160ddd146103da57806323b872dd1461040557806326a49e371461042e5780632f745c591461046b57610288565b806301ffc9a71461028d57806306fdde03146102ca578063081812fc146102f5578063095ea7b3146103325780630d90d2d51461035b57610288565b3661028857005b600080fd5b34801561029957600080fd5b506102b460048036038101906102af91906143a9565b610ade565b6040516102c19190614c71565b60405180910390f35b3480156102d657600080fd5b506102df610b58565b6040516102ec9190614c8c565b60405180910390f35b34801561030157600080fd5b5061031c6004803603810190610317919061444c565b610bea565b6040516103299190614bc6565b60405180910390f35b34801561033e57600080fd5b50610359600480360381019061035491906142f1565b610c6f565b005b34801561036757600080fd5b50610382600480360381019061037d9190614331565b610d87565b005b34801561039057600080fd5b50610399610e76565b6040516103a69190614c4f565b60405180910390f35b3480156103bb57600080fd5b506103c4610fd5565b6040516103d19190615069565b60405180910390f35b3480156103e657600080fd5b506103ef610fdf565b6040516103fc9190615069565b60405180910390f35b34801561041157600080fd5b5061042c600480360381019061042791906141db565b610fec565b005b34801561043a57600080fd5b506104556004803603810190610450919061444c565b61104c565b6040516104629190615069565b60405180910390f35b34801561047757600080fd5b50610492600480360381019061048d91906142f1565b61106f565b60405161049f9190615069565b60405180910390f35b3480156104b457600080fd5b506104bd611114565b6040516104ca9190615069565b60405180910390f35b3480156104df57600080fd5b506104e861111a565b6040516104f59190614bc6565b60405180910390f35b610518600480360381019061051391906142f1565b611132565b005b34801561052657600080fd5b50610541600480360381019061053c91906141db565b611464565b005b34801561054f57600080fd5b5061056a6004803603810190610565919061416e565b611484565b6040516105779190614c2d565b60405180910390f35b34801561058c57600080fd5b506105a760048036038101906105a2919061444c565b6115c3565b6040516105b49190615069565b60405180910390f35b3480156105c957600080fd5b506105e460048036038101906105df919061416e565b611634565b6040516105f19190614c71565b60405180910390f35b34801561060657600080fd5b50610621600480360381019061061c9190614403565b611682565b005b34801561062f57600080fd5b50610638611718565b6040516106459190615069565b60405180910390f35b34801561065a57600080fd5b50610663611727565b6040516106709190614bc6565b60405180910390f35b34801561068557600080fd5b506106a0600480360381019061069b91906144d5565b61173f565b6040516106ad9190614c2d565b60405180910390f35b3480156106c257600080fd5b506106cb611873565b6040516106d89190615069565b60405180910390f35b3480156106ed57600080fd5b506107086004803603810190610703919061444c565b61187d565b6040516107159190614bc6565b60405180910390f35b34801561072a57600080fd5b506107456004803603810190610740919061416e565b61192f565b6040516107529190615069565b60405180910390f35b34801561076757600080fd5b506107706119e7565b005b34801561077e57600080fd5b50610799600480360381019061079491906144d5565b611a6f565b005b3480156107a757600080fd5b506107c260048036038101906107bd919061444c565b611d1d565b005b3480156107d057600080fd5b506107d9611e27565b005b3480156107e757600080fd5b506107f0611f8d565b6040516107fd9190615069565b60405180910390f35b34801561081257600080fd5b5061081b611f98565b6040516108289190614bc6565b60405180910390f35b34801561083d57600080fd5b50610846611fc2565b6040516108539190614c8c565b60405180910390f35b34801561086857600080fd5b50610883600480360381019061087e9190614479565b612054565b005b34801561089157600080fd5b506108ac60048036038101906108a791906142b1565b61212b565b005b3480156108ba57600080fd5b506108d560048036038101906108d0919061422e565b6122ac565b005b3480156108e357600080fd5b506108fe60048036038101906108f9919061444c565b61230e565b60405161090b9190614c8c565b60405180910390f35b34801561092057600080fd5b5061093b6004803603810190610936919061444c565b6123b5565b604051610948919061504e565b60405180910390f35b34801561095d57600080fd5b506109786004803603810190610973919061444c565b61244c565b005b34801561098657600080fd5b5061098f6124d2565b60405161099c9190614c8c565b60405180910390f35b3480156109b157600080fd5b506109ba612560565b6040516109c79190614bc6565b60405180910390f35b3480156109dc57600080fd5b506109f760048036038101906109f2919061416e565b612578565b604051610a049190614c4f565b60405180910390f35b348015610a1957600080fd5b50610a2261260f565b604051610a2f9190614bc6565b60405180910390f35b348015610a4457600080fd5b50610a5f6004803603810190610a5a919061419b565b612627565b604051610a6c9190614c71565b60405180910390f35b348015610a8157600080fd5b50610a9c6004803603810190610a97919061444c565b6126bb565b005b348015610aaa57600080fd5b50610ac56004803603810190610ac0919061416e565b612741565b005b348015610ad357600080fd5b50610adc612839565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b515750610b5082612983565b5b9050919050565b606060008054610b67906153ee565b80601f0160208091040260200160405190810160405280929190818152602001828054610b93906153ee565b8015610be05780601f10610bb557610100808354040283529160200191610be0565b820191906000526020600020905b815481529060010190602001808311610bc357829003601f168201915b5050505050905090565b6000610bf582612a65565b610c34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2b90614eee565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c7a8261187d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce290614f8e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d0a612ad1565b73ffffffffffffffffffffffffffffffffffffffff161480610d395750610d3881610d33612ad1565b612627565b5b610d78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6f90614e4e565b60405180910390fd5b610d828383612ad9565b505050565b610d8f612ad1565b73ffffffffffffffffffffffffffffffffffffffff16610dad611f98565b73ffffffffffffffffffffffffffffffffffffffff1614610e03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfa90614f0e565b60405180910390fd5b60005b8251811015610e7157818181518110610e2257610e21615587565b5b602002602001015160156000858481518110610e4157610e40615587565b5b60200260200101518152602001908152602001600020600101819055508080610e6990615451565b915050610e06565b505050565b6060610e80612ad1565b73ffffffffffffffffffffffffffffffffffffffff16610e9e611f98565b73ffffffffffffffffffffffffffffffffffffffff1614610ef4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eeb90614f0e565b60405180910390fd5b6000600467ffffffffffffffff811115610f1157610f106155b6565b5b604051908082528060200260200182016040528015610f3f5781602001602082028036833780820191505090505b509050600f5481600081518110610f5957610f58615587565b5b60200260200101818152505060125481600181518110610f7c57610f7b615587565b5b60200260200101818152505060115481600281518110610f9f57610f9e615587565b5b60200260200101818152505060105481600381518110610fc257610fc1615587565b5b6020026020010181815250508091505090565b6000600e54905090565b6000600880549050905090565b610ffd610ff7612ad1565b82612b92565b61103c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103390614fce565b60405180910390fd5b611047838383612c70565b505050565b600061106882668e1bc9bf040000612ecc90919063ffffffff16565b9050919050565b600061107a8361192f565b82106110bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b290614d2e565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61270f81565b73cbcc84766f2950cf867f42d766c43fb2d2ba325681565b61270f61113d612ee2565b111561117e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117590614cae565b60405180910390fd5b611186611f98565b73ffffffffffffffffffffffffffffffffffffffff166111a4612ad1565b73ffffffffffffffffffffffffffffffffffffffff161461120557600d54421015611204576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fb90614cee565b60405180910390fd5b5b600061120f612ee2565b905061270f82826112209190615223565b1115611261576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125890614e0e565b60405180910390fd5b61270f8111156112a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129d90614ece565b60405180910390fd5b60108211156112ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e190614d0e565b60405180910390fd5b60003490506112f88361104c565b81101561133a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133190614f6e565b60405180910390fd5b6113616064611353601384612ecc90919063ffffffff16565b612ef390919063ffffffff16565b600f60008282546113729190615223565b925050819055506113a06064611392600684612ecc90919063ffffffff16565b612ef390919063ffffffff16565b601260008282546113b19190615223565b925050819055506113df60646113d1601884612ecc90919063ffffffff16565b612ef390919063ffffffff16565b601160008282546113f09190615223565b9250508190555061141e6064611410601f84612ecc90919063ffffffff16565b612ef390919063ffffffff16565b6010600082825461142f9190615223565b9250508190555060005b8381101561145d5761144a85612f09565b808061145590615451565b915050611439565b5050505050565b61147f838383604051806020016040528060008152506122ac565b505050565b606060006114918361192f565b905060008167ffffffffffffffff8111156114af576114ae6155b6565b5b6040519080825280602002602001820160405280156114e857816020015b6114d5613e0f565b8152602001906001900390816114cd5790505b50905060005b828110156115b85760156000611504878461106f565b815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505082828151811061159a57611599615587565b5b602002602001018190525080806115b090615451565b9150506114ee565b508092505050919050565b60006115cd610fdf565b821061160e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160590614fee565b60405180910390fd5b6008828154811061162257611621615587565b5b90600052602060002001549050919050565b600080600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050119050919050565b61168a612ad1565b73ffffffffffffffffffffffffffffffffffffffff166116a8611f98565b73ffffffffffffffffffffffffffffffffffffffff16146116fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f590614f0e565b60405180910390fd5b8060139080519060200190611714929190613e46565b5050565b6000611722612ee2565b905090565b73ee297917dc25f0ed13eee97aebc34312c75ef9d381565b606060008267ffffffffffffffff81111561175d5761175c6155b6565b5b60405190808252806020026020018201604052801561179657816020015b611783613e0f565b81526020019060019003908161177b5790505b50905060005b83811015611868576015600086836117b49190615223565b815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505082828151811061184a57611849615587565b5b6020026020010181905250808061186090615451565b91505061179c565b508091505092915050565b6000600d54905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611926576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191d90614e8e565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199790614e6e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6119ef612ad1565b73ffffffffffffffffffffffffffffffffffffffff16611a0d611f98565b73ffffffffffffffffffffffffffffffffffffffff1614611a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5a90614f0e565b60405180910390fd5b611a6d6000612fc5565b565b6001600e5414611ab4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aab90614dae565b60405180910390fd5b611abc612ad1565b73ffffffffffffffffffffffffffffffffffffffff16611adb8361187d565b73ffffffffffffffffffffffffffffffffffffffff16141580611b395750611b01612ad1565b73ffffffffffffffffffffffffffffffffffffffff16611b208261187d565b73ffffffffffffffffffffffffffffffffffffffff1614155b80611b7057506015600082815260200190815260200160002060010154601560008481526020019081526020016000206001015414155b80611b9257506032601560008481526020019081526020016000206001015410155b15611bd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc99061500e565b60405180910390fd5b6000600160156000858152602001908152602001600020600101541415611bfc5760039050611c73565b600360156000858152602001908152602001600020600101541415611c245760089050611c72565b600860156000858152602001908152602001600020600101541415611c4c5760149050611c71565b601460156000858152602001908152602001600020600101541415611c7057603290505b5b5b5b600081118015611c99575060156000848152602001908152602001600020600101548114155b611cd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ccf9061502e565b60405180910390fd5b60006015600084815260200190815260200160002060010181905550611cfd8261308b565b806015600085815260200190815260200160002060010181905550505050565b611d25612ad1565b73ffffffffffffffffffffffffffffffffffffffff16611d43611f98565b73ffffffffffffffffffffffffffffffffffffffff1614611d99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9090614f0e565b60405180910390fd5b6000611da3612ee2565b905060968282611db39190615223565b1115611df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611deb90614cce565b60405180910390fd5b60005b82811015611e2257611e0f611e0a612ad1565b612f09565b8080611e1a90615451565b915050611df7565b505050565b611e2f612ad1565b73ffffffffffffffffffffffffffffffffffffffff16611e4d611f98565b73ffffffffffffffffffffffffffffffffffffffff1614611ea3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9a90614f0e565b60405180910390fd5b6000600f541115611edd576000600f5490506000600f81905550611edb7302ae2a244e7ef69153b3a599ca412cef4079eb478261319c565b505b60006012541115611f1757600060125490506000601281905550611f157366f7d38aa7e0fc5b5dada6bafaf38e2090327ac58261319c565b505b60006011541115611f5157600060115490506000601181905550611f4f73cbcc84766f2950cf867f42d766c43fb2d2ba32568261319c565b505b60006010541115611f8b57600060105490506000601081905550611f8973ee297917dc25f0ed13eee97aebc34312c75ef9d38261319c565b505b565b668e1bc9bf04000081565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611fd1906153ee565b80601f0160208091040260200160405190810160405280929190818152602001828054611ffd906153ee565b801561204a5780601f1061201f5761010080835404028352916020019161204a565b820191906000526020600020905b81548152906001019060200180831161202d57829003601f168201915b5050505050905090565b61205c612ad1565b73ffffffffffffffffffffffffffffffffffffffff1661207a611f98565b73ffffffffffffffffffffffffffffffffffffffff16146120d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c790614f0e565b60405180910390fd5b60005b8151811015612126576121138282815181106120f2576120f1615587565b5b6020026020010151601460008681526020019081526020016000205461319c565b808061211e90615451565b9150506120d3565b505050565b612133612ad1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219890614dee565b60405180910390fd5b80600560006121ae612ad1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661225b612ad1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122a09190614c71565b60405180910390a35050565b6122bd6122b7612ad1565b83612b92565b6122fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f390614fce565b60405180910390fd5b61230884848484613257565b50505050565b606061231982612a65565b612358576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234f90614f4e565b60405180910390fd5b60006123626132b3565b9050600081511161238257604051806020016040528060008152506123ad565b8061238c84613345565b60405160200161239d929190614b8d565b6040516020818303038152906040525b915050919050565b6123bd613e0f565b6015600083815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050919050565b612454612ad1565b73ffffffffffffffffffffffffffffffffffffffff16612472611f98565b73ffffffffffffffffffffffffffffffffffffffff16146124c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bf90614f0e565b60405180910390fd5b80600d8190555050565b601380546124df906153ee565b80601f016020809104026020016040519081016040528092919081815260200182805461250b906153ee565b80156125585780601f1061252d57610100808354040283529160200191612558565b820191906000526020600020905b81548152906001019060200180831161253b57829003601f168201915b505050505081565b7366f7d38aa7e0fc5b5dada6bafaf38e2090327ac581565b6060600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561260357602002820191906000526020600020905b8154815260200190600101908083116125ef575b50505050509050919050565b7302ae2a244e7ef69153b3a599ca412cef4079eb4781565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6126c3612ad1565b73ffffffffffffffffffffffffffffffffffffffff166126e1611f98565b73ffffffffffffffffffffffffffffffffffffffff1614612737576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272e90614f0e565b60405180910390fd5b80600e8190555050565b612749612ad1565b73ffffffffffffffffffffffffffffffffffffffff16612767611f98565b73ffffffffffffffffffffffffffffffffffffffff16146127bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b490614f0e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561282d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282490614d6e565b60405180910390fd5b61283681612fc5565b50565b612841612ad1565b73ffffffffffffffffffffffffffffffffffffffff1661285f611f98565b73ffffffffffffffffffffffffffffffffffffffff16146128b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ac90614f0e565b60405180910390fd5b60004790506000600f8190555060006012819055506000601181905550600060108190555061291e73cbcc84766f2950cf867f42d766c43fb2d2ba3256612919606461290b601886612ecc90919063ffffffff16565b612ef390919063ffffffff16565b61319c565b6129627366f7d38aa7e0fc5b5dada6bafaf38e2090327ac561295d606461294f600686612ecc90919063ffffffff16565b612ef390919063ffffffff16565b61319c565b6129807302ae2a244e7ef69153b3a599ca412cef4079eb474761319c565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a4e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612a5e5750612a5d826134a6565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612b4c8361187d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612b9d82612a65565b612bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bd390614e2e565b60405180910390fd5b6000612be78361187d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612c5657508373ffffffffffffffffffffffffffffffffffffffff16612c3e84610bea565b73ffffffffffffffffffffffffffffffffffffffff16145b80612c675750612c668185612627565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612c908261187d565b73ffffffffffffffffffffffffffffffffffffffff1614612ce6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cdd90614f2e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4d90614dce565b60405180910390fd5b612d61838383613510565b612d6c600082612ad9565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612dbc9190615304565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e139190615223565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008183612eda91906152aa565b905092915050565b6000612eee600c613575565b905090565b60008183612f019190615279565b905092915050565b60006001612f15612ee2565b612f1f9190615223565b9050612f2b600c613583565b612f358282613599565b80601560008381526020019081526020016000206000018190555060016015600083815260200190815260200160002060010181905550816015600083815260200190815260200160002060020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006130968261187d565b90506130a481600084613510565b6130af600083612ad9565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130ff9190615304565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008111156132535760008273ffffffffffffffffffffffffffffffffffffffff16826040516131cb90614bb1565b60006040518083038185875af1925050503d8060008114613208576040519150601f19603f3d011682016040523d82523d6000602084013e61320d565b606091505b5050905080613251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324890614fae565b60405180910390fd5b505b5050565b613262848484612c70565b61326e848484846135b7565b6132ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132a490614d4e565b60405180910390fd5b50505050565b6060601380546132c2906153ee565b80601f01602080910402602001604051908101604052809291908181526020018280546132ee906153ee565b801561333b5780601f106133105761010080835404028352916020019161333b565b820191906000526020600020905b81548152906001019060200180831161331e57829003601f168201915b5050505050905090565b6060600082141561338d576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506134a1565b600082905060005b600082146133bf5780806133a890615451565b915050600a826133b89190615279565b9150613395565b60008167ffffffffffffffff8111156133db576133da6155b6565b5b6040519080825280601f01601f19166020018201604052801561340d5781602001600182028036833780820191505090505b5090505b6000851461349a576001826134269190615304565b9150600a85613435919061549a565b60306134419190615223565b60f81b81838151811061345757613456615587565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856134939190615279565b9450613411565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61351b83838361374e565b816015600083815260200190815260200160002060020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b600081600001549050919050565b6001816000016000828254019250508190555050565b6135b38282604051806020016040528060008152506138c8565b5050565b60006135d88473ffffffffffffffffffffffffffffffffffffffff16613923565b15613741578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613601612ad1565b8786866040518563ffffffff1660e01b81526004016136239493929190614be1565b602060405180830381600087803b15801561363d57600080fd5b505af192505050801561366e57506040513d601f19601f8201168201806040525081019061366b91906143d6565b60015b6136f1573d806000811461369e576040519150601f19603f3d011682016040523d82523d6000602084013e6136a3565b606091505b506000815114156136e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136e090614d4e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613746565b600190505b949350505050565b613759838383613936565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561379c576137978161393b565b6137db565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146137da576137d98382613984565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561388457600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505060019003906000526020600020016000909190919091505561387f81613af1565b6138c3565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146138c2576138c18282613bc2565b5b5b505050565b6138d28383613c41565b6138df60008484846135b7565b61391e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161391590614d4e565b60405180910390fd5b505050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016139918461192f565b61399b9190615304565b9050600060076000848152602001908152602001600020549050818114613a80576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613b059190615304565b9050600060096000848152602001908152602001600020549050600060088381548110613b3557613b34615587565b5b906000526020600020015490508060088381548110613b5757613b56615587565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613ba657613ba5615558565b5b6001900381819060005260206000200160009055905550505050565b6000613bcd8361192f565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613cb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ca890614eae565b60405180910390fd5b613cba81612a65565b15613cfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cf190614d8e565b60405180910390fd5b613d0660008383613510565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613d569190615223565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60405180606001604052806000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b828054613e52906153ee565b90600052602060002090601f016020900481019282613e745760008555613ebb565b82601f10613e8d57805160ff1916838001178555613ebb565b82800160010185558215613ebb579182015b82811115613eba578251825591602001919060010190613e9f565b5b509050613ec89190613ecc565b5090565b5b80821115613ee5576000816000905550600101613ecd565b5090565b6000613efc613ef7846150a9565b615084565b90508083825260208201905082856020860282011115613f1f57613f1e6155ea565b5b60005b85811015613f4f5781613f35888261404d565b845260208401935060208301925050600181019050613f22565b5050509392505050565b6000613f6c613f67846150d5565b615084565b90508083825260208201905082856020860282011115613f8f57613f8e6155ea565b5b60005b85811015613fbf5781613fa58882614159565b845260208401935060208301925050600181019050613f92565b5050509392505050565b6000613fdc613fd784615101565b615084565b905082815260208101848484011115613ff857613ff76155ef565b5b6140038482856153ac565b509392505050565b600061401e61401984615132565b615084565b90508281526020810184848401111561403a576140396155ef565b5b6140458482856153ac565b509392505050565b60008135905061405c81615ccb565b92915050565b600082601f830112614077576140766155e5565b5b8135614087848260208601613ee9565b91505092915050565b600082601f8301126140a5576140a46155e5565b5b81356140b5848260208601613f59565b91505092915050565b6000813590506140cd81615ce2565b92915050565b6000813590506140e281615cf9565b92915050565b6000815190506140f781615cf9565b92915050565b600082601f830112614112576141116155e5565b5b8135614122848260208601613fc9565b91505092915050565b600082601f8301126141405761413f6155e5565b5b813561415084826020860161400b565b91505092915050565b60008135905061416881615d10565b92915050565b600060208284031215614184576141836155f9565b5b60006141928482850161404d565b91505092915050565b600080604083850312156141b2576141b16155f9565b5b60006141c08582860161404d565b92505060206141d18582860161404d565b9150509250929050565b6000806000606084860312156141f4576141f36155f9565b5b60006142028682870161404d565b93505060206142138682870161404d565b925050604061422486828701614159565b9150509250925092565b60008060008060808587031215614248576142476155f9565b5b60006142568782880161404d565b94505060206142678782880161404d565b935050604061427887828801614159565b925050606085013567ffffffffffffffff811115614299576142986155f4565b5b6142a5878288016140fd565b91505092959194509250565b600080604083850312156142c8576142c76155f9565b5b60006142d68582860161404d565b92505060206142e7858286016140be565b9150509250929050565b60008060408385031215614308576143076155f9565b5b60006143168582860161404d565b925050602061432785828601614159565b9150509250929050565b60008060408385031215614348576143476155f9565b5b600083013567ffffffffffffffff811115614366576143656155f4565b5b61437285828601614090565b925050602083013567ffffffffffffffff811115614393576143926155f4565b5b61439f85828601614090565b9150509250929050565b6000602082840312156143bf576143be6155f9565b5b60006143cd848285016140d3565b91505092915050565b6000602082840312156143ec576143eb6155f9565b5b60006143fa848285016140e8565b91505092915050565b600060208284031215614419576144186155f9565b5b600082013567ffffffffffffffff811115614437576144366155f4565b5b6144438482850161412b565b91505092915050565b600060208284031215614462576144616155f9565b5b600061447084828501614159565b91505092915050565b600080604083850312156144905761448f6155f9565b5b600061449e85828601614159565b925050602083013567ffffffffffffffff8111156144bf576144be6155f4565b5b6144cb85828601614062565b9150509250929050565b600080604083850312156144ec576144eb6155f9565b5b60006144fa85828601614159565b925050602061450b85828601614159565b9150509250929050565b60006145218383614aeb565b60608301905092915050565b60006145398383614b6f565b60208301905092915050565b61454e81615338565b82525050565b61455d81615338565b82525050565b600061456e82615183565b61457881856151c9565b935061458383615163565b8060005b838110156145b457815161459b8882614515565b97506145a6836151af565b925050600181019050614587565b5085935050505092915050565b60006145cc8261518e565b6145d681856151da565b93506145e183615173565b8060005b838110156146125781516145f9888261452d565b9750614604836151bc565b9250506001810190506145e5565b5085935050505092915050565b6146288161534a565b82525050565b600061463982615199565b61464381856151eb565b93506146538185602086016153bb565b61465c816155fe565b840191505092915050565b6000614672826151a4565b61467c8185615207565b935061468c8185602086016153bb565b614695816155fe565b840191505092915050565b60006146ab826151a4565b6146b58185615218565b93506146c58185602086016153bb565b80840191505092915050565b60006146de600983615207565b91506146e98261560f565b602082019050919050565b6000614701601383615207565b915061470c82615638565b602082019050919050565b6000614724600f83615207565b915061472f82615661565b602082019050919050565b6000614747600e83615207565b91506147528261568a565b602082019050919050565b600061476a602b83615207565b9150614775826156b3565b604082019050919050565b600061478d603283615207565b915061479882615702565b604082019050919050565b60006147b0602683615207565b91506147bb82615751565b604082019050919050565b60006147d3601c83615207565b91506147de826157a0565b602082019050919050565b60006147f6601783615207565b9150614801826157c9565b602082019050919050565b6000614819602483615207565b9150614824826157f2565b604082019050919050565b600061483c601983615207565b915061484782615841565b602082019050919050565b600061485f600983615207565b915061486a8261586a565b602082019050919050565b6000614882602c83615207565b915061488d82615893565b604082019050919050565b60006148a5603883615207565b91506148b0826158e2565b604082019050919050565b60006148c8602a83615207565b91506148d382615931565b604082019050919050565b60006148eb602983615207565b91506148f682615980565b604082019050919050565b600061490e602083615207565b9150614919826159cf565b602082019050919050565b6000614931600883615207565b915061493c826159f8565b602082019050919050565b6000614954602c83615207565b915061495f82615a21565b604082019050919050565b6000614977602083615207565b915061498282615a70565b602082019050919050565b600061499a602983615207565b91506149a582615a99565b604082019050919050565b60006149bd602f83615207565b91506149c882615ae8565b604082019050919050565b60006149e0601183615207565b91506149eb82615b37565b602082019050919050565b6000614a03602183615207565b9150614a0e82615b60565b604082019050919050565b6000614a266000836151fc565b9150614a3182615baf565b600082019050919050565b6000614a49601083615207565b9150614a5482615bb2565b602082019050919050565b6000614a6c603183615207565b9150614a7782615bdb565b604082019050919050565b6000614a8f602c83615207565b9150614a9a82615c2a565b604082019050919050565b6000614ab2601383615207565b9150614abd82615c79565b602082019050919050565b6000614ad5601783615207565b9150614ae082615ca2565b602082019050919050565b606082016000820151614b016000850182614b6f565b506020820151614b146020850182614b6f565b506040820151614b276040850182614545565b50505050565b606082016000820151614b436000850182614b6f565b506020820151614b566020850182614b6f565b506040820151614b696040850182614545565b50505050565b614b78816153a2565b82525050565b614b87816153a2565b82525050565b6000614b9982856146a0565b9150614ba582846146a0565b91508190509392505050565b6000614bbc82614a19565b9150819050919050565b6000602082019050614bdb6000830184614554565b92915050565b6000608082019050614bf66000830187614554565b614c036020830186614554565b614c106040830185614b7e565b8181036060830152614c22818461462e565b905095945050505050565b60006020820190508181036000830152614c478184614563565b905092915050565b60006020820190508181036000830152614c6981846145c1565b905092915050565b6000602082019050614c86600083018461461f565b92915050565b60006020820190508181036000830152614ca68184614667565b905092915050565b60006020820190508181036000830152614cc7816146d1565b9050919050565b60006020820190508181036000830152614ce7816146f4565b9050919050565b60006020820190508181036000830152614d0781614717565b9050919050565b60006020820190508181036000830152614d278161473a565b9050919050565b60006020820190508181036000830152614d478161475d565b9050919050565b60006020820190508181036000830152614d6781614780565b9050919050565b60006020820190508181036000830152614d87816147a3565b9050919050565b60006020820190508181036000830152614da7816147c6565b9050919050565b60006020820190508181036000830152614dc7816147e9565b9050919050565b60006020820190508181036000830152614de78161480c565b9050919050565b60006020820190508181036000830152614e078161482f565b9050919050565b60006020820190508181036000830152614e2781614852565b9050919050565b60006020820190508181036000830152614e4781614875565b9050919050565b60006020820190508181036000830152614e6781614898565b9050919050565b60006020820190508181036000830152614e87816148bb565b9050919050565b60006020820190508181036000830152614ea7816148de565b9050919050565b60006020820190508181036000830152614ec781614901565b9050919050565b60006020820190508181036000830152614ee781614924565b9050919050565b60006020820190508181036000830152614f0781614947565b9050919050565b60006020820190508181036000830152614f278161496a565b9050919050565b60006020820190508181036000830152614f478161498d565b9050919050565b60006020820190508181036000830152614f67816149b0565b9050919050565b60006020820190508181036000830152614f87816149d3565b9050919050565b60006020820190508181036000830152614fa7816149f6565b9050919050565b60006020820190508181036000830152614fc781614a3c565b9050919050565b60006020820190508181036000830152614fe781614a5f565b9050919050565b6000602082019050818103600083015261500781614a82565b9050919050565b6000602082019050818103600083015261502781614aa5565b9050919050565b6000602082019050818103600083015261504781614ac8565b9050919050565b60006060820190506150636000830184614b2d565b92915050565b600060208201905061507e6000830184614b7e565b92915050565b600061508e61509f565b905061509a8282615420565b919050565b6000604051905090565b600067ffffffffffffffff8211156150c4576150c36155b6565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156150f0576150ef6155b6565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561511c5761511b6155b6565b5b615125826155fe565b9050602081019050919050565b600067ffffffffffffffff82111561514d5761514c6155b6565b5b615156826155fe565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061522e826153a2565b9150615239836153a2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561526e5761526d6154cb565b5b828201905092915050565b6000615284826153a2565b915061528f836153a2565b92508261529f5761529e6154fa565b5b828204905092915050565b60006152b5826153a2565b91506152c0836153a2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156152f9576152f86154cb565b5b828202905092915050565b600061530f826153a2565b915061531a836153a2565b92508282101561532d5761532c6154cb565b5b828203905092915050565b600061534382615382565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156153d95780820151818401526020810190506153be565b838111156153e8576000848401525b50505050565b6000600282049050600182168061540657607f821691505b6020821081141561541a57615419615529565b5b50919050565b615429826155fe565b810181811067ffffffffffffffff82111715615448576154476155b6565b5b80604052505050565b600061545c826153a2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561548f5761548e6154cb565b5b600182019050919050565b60006154a5826153a2565b91506154b0836153a2565b9250826154c0576154bf6154fa565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f53616c6520656e642e0000000000000000000000000000000000000000000000600082015250565b7f4578636565646564206769766561776179732e00000000000000000000000000600082015250565b7f53616c6573206e6f74206f70656e2e0000000000000000000000000000000000600082015250565b7f45786365656473206e756d626572000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4d65726765206973206e6f7420617661696c61626c652e000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4d6178206c696d69740000000000000000000000000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f53616c6520656e64000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f56616c75652062656c6f77207072696365000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f536f6d657468696e672069732077726f6e672e00000000000000000000000000600082015250565b7f4572726f722063616c63756c6174696f6e206c75636b2e000000000000000000600082015250565b615cd481615338565b8114615cdf57600080fd5b50565b615ceb8161534a565b8114615cf657600080fd5b50565b615d0281615356565b8114615d0d57600080fd5b50565b615d19816153a2565b8114615d2457600080fd5b5056fea2646970667358221220f2c52296c106086910ee9cea8d7872ee90a16c3aa438143670f9318fc48b04e664736f6c634300080700330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002068747470733a2f2f6170692e6c75636b796475636b732e77696e2f6475636b2f

Deployed Bytecode

0x6080604052600436106102815760003560e01c80636352211e1161014f578063b88d4fde116100c1578063dcfca9d21161007a578063dcfca9d2146109d0578063e927fc5c14610a0d578063e985e9c514610a38578063ebfc690914610a75578063f2fde38b14610a9e578063fa914ed514610ac757610288565b8063b88d4fde146108ae578063c87b56dd146108d7578063ce53dd9d14610914578063d1e1f57214610951578063d547cfb71461097a578063d7eb3f3a146109a557610288565b8063853828b611610113578063853828b6146107c45780638d859f3e146107db5780638da5cb5b1461080657806395d89b411461083157806396ab8bf51461085c578063a22cb4651461088557610288565b80636352211e146106e157806370a082311461071e578063715018a61461075b5780637beee7cd14610772578063819b25ba1461079b57610288565b80633502a716116101f357806353eda807116101ac57806353eda807146105bd57806355f804b3146105fa57806359a7715a146106235780635bf8633a1461064e5780635e1b44081461067957806360db6e93146106b657610288565b80633502a716146104a85780633ad10ef6146104d357806340c10f19146104fe57806342842e0e1461051a578063438b6300146105435780634f6ccce71461058057610288565b806312065fe01161024557806312065fe014610384578063163daf31146103af57806318160ddd146103da57806323b872dd1461040557806326a49e371461042e5780632f745c591461046b57610288565b806301ffc9a71461028d57806306fdde03146102ca578063081812fc146102f5578063095ea7b3146103325780630d90d2d51461035b57610288565b3661028857005b600080fd5b34801561029957600080fd5b506102b460048036038101906102af91906143a9565b610ade565b6040516102c19190614c71565b60405180910390f35b3480156102d657600080fd5b506102df610b58565b6040516102ec9190614c8c565b60405180910390f35b34801561030157600080fd5b5061031c6004803603810190610317919061444c565b610bea565b6040516103299190614bc6565b60405180910390f35b34801561033e57600080fd5b50610359600480360381019061035491906142f1565b610c6f565b005b34801561036757600080fd5b50610382600480360381019061037d9190614331565b610d87565b005b34801561039057600080fd5b50610399610e76565b6040516103a69190614c4f565b60405180910390f35b3480156103bb57600080fd5b506103c4610fd5565b6040516103d19190615069565b60405180910390f35b3480156103e657600080fd5b506103ef610fdf565b6040516103fc9190615069565b60405180910390f35b34801561041157600080fd5b5061042c600480360381019061042791906141db565b610fec565b005b34801561043a57600080fd5b506104556004803603810190610450919061444c565b61104c565b6040516104629190615069565b60405180910390f35b34801561047757600080fd5b50610492600480360381019061048d91906142f1565b61106f565b60405161049f9190615069565b60405180910390f35b3480156104b457600080fd5b506104bd611114565b6040516104ca9190615069565b60405180910390f35b3480156104df57600080fd5b506104e861111a565b6040516104f59190614bc6565b60405180910390f35b610518600480360381019061051391906142f1565b611132565b005b34801561052657600080fd5b50610541600480360381019061053c91906141db565b611464565b005b34801561054f57600080fd5b5061056a6004803603810190610565919061416e565b611484565b6040516105779190614c2d565b60405180910390f35b34801561058c57600080fd5b506105a760048036038101906105a2919061444c565b6115c3565b6040516105b49190615069565b60405180910390f35b3480156105c957600080fd5b506105e460048036038101906105df919061416e565b611634565b6040516105f19190614c71565b60405180910390f35b34801561060657600080fd5b50610621600480360381019061061c9190614403565b611682565b005b34801561062f57600080fd5b50610638611718565b6040516106459190615069565b60405180910390f35b34801561065a57600080fd5b50610663611727565b6040516106709190614bc6565b60405180910390f35b34801561068557600080fd5b506106a0600480360381019061069b91906144d5565b61173f565b6040516106ad9190614c2d565b60405180910390f35b3480156106c257600080fd5b506106cb611873565b6040516106d89190615069565b60405180910390f35b3480156106ed57600080fd5b506107086004803603810190610703919061444c565b61187d565b6040516107159190614bc6565b60405180910390f35b34801561072a57600080fd5b506107456004803603810190610740919061416e565b61192f565b6040516107529190615069565b60405180910390f35b34801561076757600080fd5b506107706119e7565b005b34801561077e57600080fd5b50610799600480360381019061079491906144d5565b611a6f565b005b3480156107a757600080fd5b506107c260048036038101906107bd919061444c565b611d1d565b005b3480156107d057600080fd5b506107d9611e27565b005b3480156107e757600080fd5b506107f0611f8d565b6040516107fd9190615069565b60405180910390f35b34801561081257600080fd5b5061081b611f98565b6040516108289190614bc6565b60405180910390f35b34801561083d57600080fd5b50610846611fc2565b6040516108539190614c8c565b60405180910390f35b34801561086857600080fd5b50610883600480360381019061087e9190614479565b612054565b005b34801561089157600080fd5b506108ac60048036038101906108a791906142b1565b61212b565b005b3480156108ba57600080fd5b506108d560048036038101906108d0919061422e565b6122ac565b005b3480156108e357600080fd5b506108fe60048036038101906108f9919061444c565b61230e565b60405161090b9190614c8c565b60405180910390f35b34801561092057600080fd5b5061093b6004803603810190610936919061444c565b6123b5565b604051610948919061504e565b60405180910390f35b34801561095d57600080fd5b506109786004803603810190610973919061444c565b61244c565b005b34801561098657600080fd5b5061098f6124d2565b60405161099c9190614c8c565b60405180910390f35b3480156109b157600080fd5b506109ba612560565b6040516109c79190614bc6565b60405180910390f35b3480156109dc57600080fd5b506109f760048036038101906109f2919061416e565b612578565b604051610a049190614c4f565b60405180910390f35b348015610a1957600080fd5b50610a2261260f565b604051610a2f9190614bc6565b60405180910390f35b348015610a4457600080fd5b50610a5f6004803603810190610a5a919061419b565b612627565b604051610a6c9190614c71565b60405180910390f35b348015610a8157600080fd5b50610a9c6004803603810190610a97919061444c565b6126bb565b005b348015610aaa57600080fd5b50610ac56004803603810190610ac0919061416e565b612741565b005b348015610ad357600080fd5b50610adc612839565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b515750610b5082612983565b5b9050919050565b606060008054610b67906153ee565b80601f0160208091040260200160405190810160405280929190818152602001828054610b93906153ee565b8015610be05780601f10610bb557610100808354040283529160200191610be0565b820191906000526020600020905b815481529060010190602001808311610bc357829003601f168201915b5050505050905090565b6000610bf582612a65565b610c34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2b90614eee565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c7a8261187d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce290614f8e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d0a612ad1565b73ffffffffffffffffffffffffffffffffffffffff161480610d395750610d3881610d33612ad1565b612627565b5b610d78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6f90614e4e565b60405180910390fd5b610d828383612ad9565b505050565b610d8f612ad1565b73ffffffffffffffffffffffffffffffffffffffff16610dad611f98565b73ffffffffffffffffffffffffffffffffffffffff1614610e03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfa90614f0e565b60405180910390fd5b60005b8251811015610e7157818181518110610e2257610e21615587565b5b602002602001015160156000858481518110610e4157610e40615587565b5b60200260200101518152602001908152602001600020600101819055508080610e6990615451565b915050610e06565b505050565b6060610e80612ad1565b73ffffffffffffffffffffffffffffffffffffffff16610e9e611f98565b73ffffffffffffffffffffffffffffffffffffffff1614610ef4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eeb90614f0e565b60405180910390fd5b6000600467ffffffffffffffff811115610f1157610f106155b6565b5b604051908082528060200260200182016040528015610f3f5781602001602082028036833780820191505090505b509050600f5481600081518110610f5957610f58615587565b5b60200260200101818152505060125481600181518110610f7c57610f7b615587565b5b60200260200101818152505060115481600281518110610f9f57610f9e615587565b5b60200260200101818152505060105481600381518110610fc257610fc1615587565b5b6020026020010181815250508091505090565b6000600e54905090565b6000600880549050905090565b610ffd610ff7612ad1565b82612b92565b61103c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103390614fce565b60405180910390fd5b611047838383612c70565b505050565b600061106882668e1bc9bf040000612ecc90919063ffffffff16565b9050919050565b600061107a8361192f565b82106110bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b290614d2e565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61270f81565b73cbcc84766f2950cf867f42d766c43fb2d2ba325681565b61270f61113d612ee2565b111561117e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117590614cae565b60405180910390fd5b611186611f98565b73ffffffffffffffffffffffffffffffffffffffff166111a4612ad1565b73ffffffffffffffffffffffffffffffffffffffff161461120557600d54421015611204576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fb90614cee565b60405180910390fd5b5b600061120f612ee2565b905061270f82826112209190615223565b1115611261576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125890614e0e565b60405180910390fd5b61270f8111156112a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129d90614ece565b60405180910390fd5b60108211156112ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e190614d0e565b60405180910390fd5b60003490506112f88361104c565b81101561133a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133190614f6e565b60405180910390fd5b6113616064611353601384612ecc90919063ffffffff16565b612ef390919063ffffffff16565b600f60008282546113729190615223565b925050819055506113a06064611392600684612ecc90919063ffffffff16565b612ef390919063ffffffff16565b601260008282546113b19190615223565b925050819055506113df60646113d1601884612ecc90919063ffffffff16565b612ef390919063ffffffff16565b601160008282546113f09190615223565b9250508190555061141e6064611410601f84612ecc90919063ffffffff16565b612ef390919063ffffffff16565b6010600082825461142f9190615223565b9250508190555060005b8381101561145d5761144a85612f09565b808061145590615451565b915050611439565b5050505050565b61147f838383604051806020016040528060008152506122ac565b505050565b606060006114918361192f565b905060008167ffffffffffffffff8111156114af576114ae6155b6565b5b6040519080825280602002602001820160405280156114e857816020015b6114d5613e0f565b8152602001906001900390816114cd5790505b50905060005b828110156115b85760156000611504878461106f565b815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505082828151811061159a57611599615587565b5b602002602001018190525080806115b090615451565b9150506114ee565b508092505050919050565b60006115cd610fdf565b821061160e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160590614fee565b60405180910390fd5b6008828154811061162257611621615587565b5b90600052602060002001549050919050565b600080600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050119050919050565b61168a612ad1565b73ffffffffffffffffffffffffffffffffffffffff166116a8611f98565b73ffffffffffffffffffffffffffffffffffffffff16146116fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f590614f0e565b60405180910390fd5b8060139080519060200190611714929190613e46565b5050565b6000611722612ee2565b905090565b73ee297917dc25f0ed13eee97aebc34312c75ef9d381565b606060008267ffffffffffffffff81111561175d5761175c6155b6565b5b60405190808252806020026020018201604052801561179657816020015b611783613e0f565b81526020019060019003908161177b5790505b50905060005b83811015611868576015600086836117b49190615223565b815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505082828151811061184a57611849615587565b5b6020026020010181905250808061186090615451565b91505061179c565b508091505092915050565b6000600d54905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611926576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191d90614e8e565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199790614e6e565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6119ef612ad1565b73ffffffffffffffffffffffffffffffffffffffff16611a0d611f98565b73ffffffffffffffffffffffffffffffffffffffff1614611a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5a90614f0e565b60405180910390fd5b611a6d6000612fc5565b565b6001600e5414611ab4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aab90614dae565b60405180910390fd5b611abc612ad1565b73ffffffffffffffffffffffffffffffffffffffff16611adb8361187d565b73ffffffffffffffffffffffffffffffffffffffff16141580611b395750611b01612ad1565b73ffffffffffffffffffffffffffffffffffffffff16611b208261187d565b73ffffffffffffffffffffffffffffffffffffffff1614155b80611b7057506015600082815260200190815260200160002060010154601560008481526020019081526020016000206001015414155b80611b9257506032601560008481526020019081526020016000206001015410155b15611bd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc99061500e565b60405180910390fd5b6000600160156000858152602001908152602001600020600101541415611bfc5760039050611c73565b600360156000858152602001908152602001600020600101541415611c245760089050611c72565b600860156000858152602001908152602001600020600101541415611c4c5760149050611c71565b601460156000858152602001908152602001600020600101541415611c7057603290505b5b5b5b600081118015611c99575060156000848152602001908152602001600020600101548114155b611cd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ccf9061502e565b60405180910390fd5b60006015600084815260200190815260200160002060010181905550611cfd8261308b565b806015600085815260200190815260200160002060010181905550505050565b611d25612ad1565b73ffffffffffffffffffffffffffffffffffffffff16611d43611f98565b73ffffffffffffffffffffffffffffffffffffffff1614611d99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9090614f0e565b60405180910390fd5b6000611da3612ee2565b905060968282611db39190615223565b1115611df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611deb90614cce565b60405180910390fd5b60005b82811015611e2257611e0f611e0a612ad1565b612f09565b8080611e1a90615451565b915050611df7565b505050565b611e2f612ad1565b73ffffffffffffffffffffffffffffffffffffffff16611e4d611f98565b73ffffffffffffffffffffffffffffffffffffffff1614611ea3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9a90614f0e565b60405180910390fd5b6000600f541115611edd576000600f5490506000600f81905550611edb7302ae2a244e7ef69153b3a599ca412cef4079eb478261319c565b505b60006012541115611f1757600060125490506000601281905550611f157366f7d38aa7e0fc5b5dada6bafaf38e2090327ac58261319c565b505b60006011541115611f5157600060115490506000601181905550611f4f73cbcc84766f2950cf867f42d766c43fb2d2ba32568261319c565b505b60006010541115611f8b57600060105490506000601081905550611f8973ee297917dc25f0ed13eee97aebc34312c75ef9d38261319c565b505b565b668e1bc9bf04000081565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611fd1906153ee565b80601f0160208091040260200160405190810160405280929190818152602001828054611ffd906153ee565b801561204a5780601f1061201f5761010080835404028352916020019161204a565b820191906000526020600020905b81548152906001019060200180831161202d57829003601f168201915b5050505050905090565b61205c612ad1565b73ffffffffffffffffffffffffffffffffffffffff1661207a611f98565b73ffffffffffffffffffffffffffffffffffffffff16146120d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c790614f0e565b60405180910390fd5b60005b8151811015612126576121138282815181106120f2576120f1615587565b5b6020026020010151601460008681526020019081526020016000205461319c565b808061211e90615451565b9150506120d3565b505050565b612133612ad1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219890614dee565b60405180910390fd5b80600560006121ae612ad1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661225b612ad1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122a09190614c71565b60405180910390a35050565b6122bd6122b7612ad1565b83612b92565b6122fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f390614fce565b60405180910390fd5b61230884848484613257565b50505050565b606061231982612a65565b612358576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234f90614f4e565b60405180910390fd5b60006123626132b3565b9050600081511161238257604051806020016040528060008152506123ad565b8061238c84613345565b60405160200161239d929190614b8d565b6040516020818303038152906040525b915050919050565b6123bd613e0f565b6015600083815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050919050565b612454612ad1565b73ffffffffffffffffffffffffffffffffffffffff16612472611f98565b73ffffffffffffffffffffffffffffffffffffffff16146124c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124bf90614f0e565b60405180910390fd5b80600d8190555050565b601380546124df906153ee565b80601f016020809104026020016040519081016040528092919081815260200182805461250b906153ee565b80156125585780601f1061252d57610100808354040283529160200191612558565b820191906000526020600020905b81548152906001019060200180831161253b57829003601f168201915b505050505081565b7366f7d38aa7e0fc5b5dada6bafaf38e2090327ac581565b6060600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561260357602002820191906000526020600020905b8154815260200190600101908083116125ef575b50505050509050919050565b7302ae2a244e7ef69153b3a599ca412cef4079eb4781565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6126c3612ad1565b73ffffffffffffffffffffffffffffffffffffffff166126e1611f98565b73ffffffffffffffffffffffffffffffffffffffff1614612737576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272e90614f0e565b60405180910390fd5b80600e8190555050565b612749612ad1565b73ffffffffffffffffffffffffffffffffffffffff16612767611f98565b73ffffffffffffffffffffffffffffffffffffffff16146127bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b490614f0e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561282d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282490614d6e565b60405180910390fd5b61283681612fc5565b50565b612841612ad1565b73ffffffffffffffffffffffffffffffffffffffff1661285f611f98565b73ffffffffffffffffffffffffffffffffffffffff16146128b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ac90614f0e565b60405180910390fd5b60004790506000600f8190555060006012819055506000601181905550600060108190555061291e73cbcc84766f2950cf867f42d766c43fb2d2ba3256612919606461290b601886612ecc90919063ffffffff16565b612ef390919063ffffffff16565b61319c565b6129627366f7d38aa7e0fc5b5dada6bafaf38e2090327ac561295d606461294f600686612ecc90919063ffffffff16565b612ef390919063ffffffff16565b61319c565b6129807302ae2a244e7ef69153b3a599ca412cef4079eb474761319c565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a4e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612a5e5750612a5d826134a6565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612b4c8361187d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612b9d82612a65565b612bdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bd390614e2e565b60405180910390fd5b6000612be78361187d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612c5657508373ffffffffffffffffffffffffffffffffffffffff16612c3e84610bea565b73ffffffffffffffffffffffffffffffffffffffff16145b80612c675750612c668185612627565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612c908261187d565b73ffffffffffffffffffffffffffffffffffffffff1614612ce6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cdd90614f2e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4d90614dce565b60405180910390fd5b612d61838383613510565b612d6c600082612ad9565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612dbc9190615304565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e139190615223565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008183612eda91906152aa565b905092915050565b6000612eee600c613575565b905090565b60008183612f019190615279565b905092915050565b60006001612f15612ee2565b612f1f9190615223565b9050612f2b600c613583565b612f358282613599565b80601560008381526020019081526020016000206000018190555060016015600083815260200190815260200160002060010181905550816015600083815260200190815260200160002060020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006130968261187d565b90506130a481600084613510565b6130af600083612ad9565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130ff9190615304565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008111156132535760008273ffffffffffffffffffffffffffffffffffffffff16826040516131cb90614bb1565b60006040518083038185875af1925050503d8060008114613208576040519150601f19603f3d011682016040523d82523d6000602084013e61320d565b606091505b5050905080613251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324890614fae565b60405180910390fd5b505b5050565b613262848484612c70565b61326e848484846135b7565b6132ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132a490614d4e565b60405180910390fd5b50505050565b6060601380546132c2906153ee565b80601f01602080910402602001604051908101604052809291908181526020018280546132ee906153ee565b801561333b5780601f106133105761010080835404028352916020019161333b565b820191906000526020600020905b81548152906001019060200180831161331e57829003601f168201915b5050505050905090565b6060600082141561338d576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506134a1565b600082905060005b600082146133bf5780806133a890615451565b915050600a826133b89190615279565b9150613395565b60008167ffffffffffffffff8111156133db576133da6155b6565b5b6040519080825280601f01601f19166020018201604052801561340d5781602001600182028036833780820191505090505b5090505b6000851461349a576001826134269190615304565b9150600a85613435919061549a565b60306134419190615223565b60f81b81838151811061345757613456615587565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856134939190615279565b9450613411565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61351b83838361374e565b816015600083815260200190815260200160002060020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b600081600001549050919050565b6001816000016000828254019250508190555050565b6135b38282604051806020016040528060008152506138c8565b5050565b60006135d88473ffffffffffffffffffffffffffffffffffffffff16613923565b15613741578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613601612ad1565b8786866040518563ffffffff1660e01b81526004016136239493929190614be1565b602060405180830381600087803b15801561363d57600080fd5b505af192505050801561366e57506040513d601f19601f8201168201806040525081019061366b91906143d6565b60015b6136f1573d806000811461369e576040519150601f19603f3d011682016040523d82523d6000602084013e6136a3565b606091505b506000815114156136e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136e090614d4e565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613746565b600190505b949350505050565b613759838383613936565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561379c576137978161393b565b6137db565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146137da576137d98382613984565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561388457600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505060019003906000526020600020016000909190919091505561387f81613af1565b6138c3565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146138c2576138c18282613bc2565b5b5b505050565b6138d28383613c41565b6138df60008484846135b7565b61391e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161391590614d4e565b60405180910390fd5b505050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016139918461192f565b61399b9190615304565b9050600060076000848152602001908152602001600020549050818114613a80576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613b059190615304565b9050600060096000848152602001908152602001600020549050600060088381548110613b3557613b34615587565b5b906000526020600020015490508060088381548110613b5757613b56615587565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613ba657613ba5615558565b5b6001900381819060005260206000200160009055905550505050565b6000613bcd8361192f565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613cb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ca890614eae565b60405180910390fd5b613cba81612a65565b15613cfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cf190614d8e565b60405180910390fd5b613d0660008383613510565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613d569190615223565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60405180606001604052806000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b828054613e52906153ee565b90600052602060002090601f016020900481019282613e745760008555613ebb565b82601f10613e8d57805160ff1916838001178555613ebb565b82800160010185558215613ebb579182015b82811115613eba578251825591602001919060010190613e9f565b5b509050613ec89190613ecc565b5090565b5b80821115613ee5576000816000905550600101613ecd565b5090565b6000613efc613ef7846150a9565b615084565b90508083825260208201905082856020860282011115613f1f57613f1e6155ea565b5b60005b85811015613f4f5781613f35888261404d565b845260208401935060208301925050600181019050613f22565b5050509392505050565b6000613f6c613f67846150d5565b615084565b90508083825260208201905082856020860282011115613f8f57613f8e6155ea565b5b60005b85811015613fbf5781613fa58882614159565b845260208401935060208301925050600181019050613f92565b5050509392505050565b6000613fdc613fd784615101565b615084565b905082815260208101848484011115613ff857613ff76155ef565b5b6140038482856153ac565b509392505050565b600061401e61401984615132565b615084565b90508281526020810184848401111561403a576140396155ef565b5b6140458482856153ac565b509392505050565b60008135905061405c81615ccb565b92915050565b600082601f830112614077576140766155e5565b5b8135614087848260208601613ee9565b91505092915050565b600082601f8301126140a5576140a46155e5565b5b81356140b5848260208601613f59565b91505092915050565b6000813590506140cd81615ce2565b92915050565b6000813590506140e281615cf9565b92915050565b6000815190506140f781615cf9565b92915050565b600082601f830112614112576141116155e5565b5b8135614122848260208601613fc9565b91505092915050565b600082601f8301126141405761413f6155e5565b5b813561415084826020860161400b565b91505092915050565b60008135905061416881615d10565b92915050565b600060208284031215614184576141836155f9565b5b60006141928482850161404d565b91505092915050565b600080604083850312156141b2576141b16155f9565b5b60006141c08582860161404d565b92505060206141d18582860161404d565b9150509250929050565b6000806000606084860312156141f4576141f36155f9565b5b60006142028682870161404d565b93505060206142138682870161404d565b925050604061422486828701614159565b9150509250925092565b60008060008060808587031215614248576142476155f9565b5b60006142568782880161404d565b94505060206142678782880161404d565b935050604061427887828801614159565b925050606085013567ffffffffffffffff811115614299576142986155f4565b5b6142a5878288016140fd565b91505092959194509250565b600080604083850312156142c8576142c76155f9565b5b60006142d68582860161404d565b92505060206142e7858286016140be565b9150509250929050565b60008060408385031215614308576143076155f9565b5b60006143168582860161404d565b925050602061432785828601614159565b9150509250929050565b60008060408385031215614348576143476155f9565b5b600083013567ffffffffffffffff811115614366576143656155f4565b5b61437285828601614090565b925050602083013567ffffffffffffffff811115614393576143926155f4565b5b61439f85828601614090565b9150509250929050565b6000602082840312156143bf576143be6155f9565b5b60006143cd848285016140d3565b91505092915050565b6000602082840312156143ec576143eb6155f9565b5b60006143fa848285016140e8565b91505092915050565b600060208284031215614419576144186155f9565b5b600082013567ffffffffffffffff811115614437576144366155f4565b5b6144438482850161412b565b91505092915050565b600060208284031215614462576144616155f9565b5b600061447084828501614159565b91505092915050565b600080604083850312156144905761448f6155f9565b5b600061449e85828601614159565b925050602083013567ffffffffffffffff8111156144bf576144be6155f4565b5b6144cb85828601614062565b9150509250929050565b600080604083850312156144ec576144eb6155f9565b5b60006144fa85828601614159565b925050602061450b85828601614159565b9150509250929050565b60006145218383614aeb565b60608301905092915050565b60006145398383614b6f565b60208301905092915050565b61454e81615338565b82525050565b61455d81615338565b82525050565b600061456e82615183565b61457881856151c9565b935061458383615163565b8060005b838110156145b457815161459b8882614515565b97506145a6836151af565b925050600181019050614587565b5085935050505092915050565b60006145cc8261518e565b6145d681856151da565b93506145e183615173565b8060005b838110156146125781516145f9888261452d565b9750614604836151bc565b9250506001810190506145e5565b5085935050505092915050565b6146288161534a565b82525050565b600061463982615199565b61464381856151eb565b93506146538185602086016153bb565b61465c816155fe565b840191505092915050565b6000614672826151a4565b61467c8185615207565b935061468c8185602086016153bb565b614695816155fe565b840191505092915050565b60006146ab826151a4565b6146b58185615218565b93506146c58185602086016153bb565b80840191505092915050565b60006146de600983615207565b91506146e98261560f565b602082019050919050565b6000614701601383615207565b915061470c82615638565b602082019050919050565b6000614724600f83615207565b915061472f82615661565b602082019050919050565b6000614747600e83615207565b91506147528261568a565b602082019050919050565b600061476a602b83615207565b9150614775826156b3565b604082019050919050565b600061478d603283615207565b915061479882615702565b604082019050919050565b60006147b0602683615207565b91506147bb82615751565b604082019050919050565b60006147d3601c83615207565b91506147de826157a0565b602082019050919050565b60006147f6601783615207565b9150614801826157c9565b602082019050919050565b6000614819602483615207565b9150614824826157f2565b604082019050919050565b600061483c601983615207565b915061484782615841565b602082019050919050565b600061485f600983615207565b915061486a8261586a565b602082019050919050565b6000614882602c83615207565b915061488d82615893565b604082019050919050565b60006148a5603883615207565b91506148b0826158e2565b604082019050919050565b60006148c8602a83615207565b91506148d382615931565b604082019050919050565b60006148eb602983615207565b91506148f682615980565b604082019050919050565b600061490e602083615207565b9150614919826159cf565b602082019050919050565b6000614931600883615207565b915061493c826159f8565b602082019050919050565b6000614954602c83615207565b915061495f82615a21565b604082019050919050565b6000614977602083615207565b915061498282615a70565b602082019050919050565b600061499a602983615207565b91506149a582615a99565b604082019050919050565b60006149bd602f83615207565b91506149c882615ae8565b604082019050919050565b60006149e0601183615207565b91506149eb82615b37565b602082019050919050565b6000614a03602183615207565b9150614a0e82615b60565b604082019050919050565b6000614a266000836151fc565b9150614a3182615baf565b600082019050919050565b6000614a49601083615207565b9150614a5482615bb2565b602082019050919050565b6000614a6c603183615207565b9150614a7782615bdb565b604082019050919050565b6000614a8f602c83615207565b9150614a9a82615c2a565b604082019050919050565b6000614ab2601383615207565b9150614abd82615c79565b602082019050919050565b6000614ad5601783615207565b9150614ae082615ca2565b602082019050919050565b606082016000820151614b016000850182614b6f565b506020820151614b146020850182614b6f565b506040820151614b276040850182614545565b50505050565b606082016000820151614b436000850182614b6f565b506020820151614b566020850182614b6f565b506040820151614b696040850182614545565b50505050565b614b78816153a2565b82525050565b614b87816153a2565b82525050565b6000614b9982856146a0565b9150614ba582846146a0565b91508190509392505050565b6000614bbc82614a19565b9150819050919050565b6000602082019050614bdb6000830184614554565b92915050565b6000608082019050614bf66000830187614554565b614c036020830186614554565b614c106040830185614b7e565b8181036060830152614c22818461462e565b905095945050505050565b60006020820190508181036000830152614c478184614563565b905092915050565b60006020820190508181036000830152614c6981846145c1565b905092915050565b6000602082019050614c86600083018461461f565b92915050565b60006020820190508181036000830152614ca68184614667565b905092915050565b60006020820190508181036000830152614cc7816146d1565b9050919050565b60006020820190508181036000830152614ce7816146f4565b9050919050565b60006020820190508181036000830152614d0781614717565b9050919050565b60006020820190508181036000830152614d278161473a565b9050919050565b60006020820190508181036000830152614d478161475d565b9050919050565b60006020820190508181036000830152614d6781614780565b9050919050565b60006020820190508181036000830152614d87816147a3565b9050919050565b60006020820190508181036000830152614da7816147c6565b9050919050565b60006020820190508181036000830152614dc7816147e9565b9050919050565b60006020820190508181036000830152614de78161480c565b9050919050565b60006020820190508181036000830152614e078161482f565b9050919050565b60006020820190508181036000830152614e2781614852565b9050919050565b60006020820190508181036000830152614e4781614875565b9050919050565b60006020820190508181036000830152614e6781614898565b9050919050565b60006020820190508181036000830152614e87816148bb565b9050919050565b60006020820190508181036000830152614ea7816148de565b9050919050565b60006020820190508181036000830152614ec781614901565b9050919050565b60006020820190508181036000830152614ee781614924565b9050919050565b60006020820190508181036000830152614f0781614947565b9050919050565b60006020820190508181036000830152614f278161496a565b9050919050565b60006020820190508181036000830152614f478161498d565b9050919050565b60006020820190508181036000830152614f67816149b0565b9050919050565b60006020820190508181036000830152614f87816149d3565b9050919050565b60006020820190508181036000830152614fa7816149f6565b9050919050565b60006020820190508181036000830152614fc781614a3c565b9050919050565b60006020820190508181036000830152614fe781614a5f565b9050919050565b6000602082019050818103600083015261500781614a82565b9050919050565b6000602082019050818103600083015261502781614aa5565b9050919050565b6000602082019050818103600083015261504781614ac8565b9050919050565b60006060820190506150636000830184614b2d565b92915050565b600060208201905061507e6000830184614b7e565b92915050565b600061508e61509f565b905061509a8282615420565b919050565b6000604051905090565b600067ffffffffffffffff8211156150c4576150c36155b6565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156150f0576150ef6155b6565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561511c5761511b6155b6565b5b615125826155fe565b9050602081019050919050565b600067ffffffffffffffff82111561514d5761514c6155b6565b5b615156826155fe565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061522e826153a2565b9150615239836153a2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561526e5761526d6154cb565b5b828201905092915050565b6000615284826153a2565b915061528f836153a2565b92508261529f5761529e6154fa565b5b828204905092915050565b60006152b5826153a2565b91506152c0836153a2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156152f9576152f86154cb565b5b828202905092915050565b600061530f826153a2565b915061531a836153a2565b92508282101561532d5761532c6154cb565b5b828203905092915050565b600061534382615382565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156153d95780820151818401526020810190506153be565b838111156153e8576000848401525b50505050565b6000600282049050600182168061540657607f821691505b6020821081141561541a57615419615529565b5b50919050565b615429826155fe565b810181811067ffffffffffffffff82111715615448576154476155b6565b5b80604052505050565b600061545c826153a2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561548f5761548e6154cb565b5b600182019050919050565b60006154a5826153a2565b91506154b0836153a2565b9250826154c0576154bf6154fa565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f53616c6520656e642e0000000000000000000000000000000000000000000000600082015250565b7f4578636565646564206769766561776179732e00000000000000000000000000600082015250565b7f53616c6573206e6f74206f70656e2e0000000000000000000000000000000000600082015250565b7f45786365656473206e756d626572000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4d65726765206973206e6f7420617661696c61626c652e000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4d6178206c696d69740000000000000000000000000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f53616c6520656e64000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f56616c75652062656c6f77207072696365000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f536f6d657468696e672069732077726f6e672e00000000000000000000000000600082015250565b7f4572726f722063616c63756c6174696f6e206c75636b2e000000000000000000600082015250565b615cd481615338565b8114615cdf57600080fd5b50565b615ceb8161534a565b8114615cf657600080fd5b50565b615d0281615356565b8114615d0d57600080fd5b50565b615d19816153a2565b8114615d2457600080fd5b5056fea2646970667358221220f2c52296c106086910ee9cea8d7872ee90a16c3aa438143670f9318fc48b04e664736f6c63430008070033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002068747470733a2f2f6170692e6c75636b796475636b732e77696e2f6475636b2f

-----Decoded View---------------
Arg [0] : baseURI (string): https://api.luckyducks.win/duck/

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [2] : 68747470733a2f2f6170692e6c75636b796475636b732e77696e2f6475636b2f


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

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