Token Baby Demon Legion

Overview CRC721

Total Supply:
200 BDL

Holders:
147 addresses
Balance
1 BDL
0xd156f87ea9f25b7820582b460553ee621eddc258
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
BabyDemonLegion

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

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

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./SafeMathLite.sol";
import "./SafePct.sol";
import "./BaseDrop.sol";

contract BabyDemonLegion is BaseDrop {
    using Counters for Counters.Counter;
    using SafePct for uint256;
    using SafeMathLite for uint256;
    Counters.Counter public _tokenIdCounter;

    uint256 internal memberPrice = 150 ether;
    uint256 internal normalPrice = 150 ether;
    uint256 private MAX_TOKENS = 500;
    address[] whitelist;
    address private lootContract;
    string baseURI = "ipfs://QmYvoyp88hwZiobf4viCPNuuqt9fjbvxWfkFANeabs3kVN/";
    
    // Pass the artist address, and loot token address
    constructor(address _lootersContract, address _artist, address _yako,
        address _lootContract, address _lootCoinContract, address _cdlContract, address _godContract) ERC721("Baby Demon Legion", "BDL")
    {
        
        lootersContract = ERC721(_lootersContract);
        artist = _artist;
        yako = _yako;
        lootContract = _lootContract;
        lootCoinContract = ERC721(_lootCoinContract);
        cdlContract = ERC721(_cdlContract);
        godContract = ERC721(_godContract);
        fee  = 0;

    }

    // Sets a new IPFS URI for metadata after deployment
    function setUri(string memory _uri) public onlyOwner {
        baseURI = _uri;
    }
  
    // Sets a new artist address after deployment
    function setArtist(address _artist) public onlyOwner {
        artist = _artist;
    }

    // Sets a new supply after deployment
    function setSupply(uint256 _supply) public onlyOwner {
        MAX_TOKENS = _supply;
    }
    
    // Adds an array/list of addresses to the WL
    function addWhiteList(address[] memory _addresses) public onlyOwner {
        uint len = _addresses.length;
        for(uint i = 0; i < len; i ++) {
            whitelist.push(_addresses[i]);
        }        
    }

    // Removes a specific address from the WL
    function removeWhiteList(address _address) public onlyOwner {
        uint len = whitelist.length;
        for(uint i = 0; i < len; i ++) {
            if (whitelist[i] == _address) {
                delete whitelist[i];
                return;
            }
        }
    }

    // Allows contract owner to set both the WL and Public Price
    function setCost(uint _cost, bool isMember) public onlyOwner {
        if (isMember) {
            memberPrice = _cost * 1 ether;
        } else {
            normalPrice = _cost * 1 ether;
        }
    }

    // Checks if address has 10M LOOT
    function hasLoot(address _address) internal view returns (bool) {
        uint balance = ERC20(lootContract).balanceOf(_address);
        if (balance >= 10000000) {
            return true;
        }
        return false;
    }

    // Checks is specific address is on the WL and returns a boolean value
    function isWhiteList(address _address) public view returns (bool) {
        uint len = whitelist.length;
        for(uint i = 0; i < len; i ++) {
            if (whitelist[i] == _address) {
                return true;
            }
        }
        return false;
    }

    // Checks if a specified address should receive a discount (FoundingMembers, Loot Holders, and whitelisters)
    function isDiscount(address _address) public view returns (bool) {
        // check if user is member
        if (isMember(_address)) {
            return true;
        }
        // check if user has million loot
        if (hasLoot(_address)) {
            return true;
        }

        // check if user is whitelist
        if (isWhiteList(_address)) {
            return true;
        }
        return false;
    }

    // The public mint function. Must be called along with a payment equal to at least memberPrice or normalPrice
    function mint(uint256 _count) public payable {
        require(_count <= 20, "not mint more than 20");
        uint price;
        bool _isDiscount = isDiscount(msg.sender);

        if(_isDiscount){
            price = memberPrice; 
        } else {
            price = normalPrice; 
        }
        
        uint amountDue = price * _count;
        require(msg.value >= amountDue, "You don't have enough CRO."); 

        for(uint i = 0; i < _count; i++){
            safeMint(msg.sender);
        }

        if(totalSupply() <= MAX_TOKENS.mulDiv(fee, SCALE)){
            _asyncTransfer(yako, amountDue/2);
        } else {
            _asyncTransfer(artist, amountDue);
        }
    }
    
    // Returns URI of a specific tokenID. This function appends the token ID and .json to the base URI
    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
      require(_exists(_tokenId),"ERC721Metadata: URI query for nonexistent token");
      string memory _tokenURI = string(abi.encodePacked(baseURI, Strings.toString(_tokenId), ".json"));
      return _tokenURI;
    }

   function safeMint(address _to) internal {
        uint256 tokenId;
        _tokenIdCounter.increment();
        tokenId = _tokenIdCounter.current();
        require(tokenId <= MAX_TOKENS, "This mint has sold out.");
        _safeMint(_to, tokenId);
    }

    // Auto-mints a set amount of tokens to the artist on contract deployment
    function mintArtist(uint256 _amount) public onlyOwner {
        for(uint i = 0; i < _amount  ; i++){
            safeMint(artist);
        }
    }
}

File 2 of 28 : SafePct.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
 * @dev Compute percentages safely without phantom overflows.
 *
 * Intermediate operations can overflow even when the result will always
 * fit into computed type. Developers usually
 * assume that overflows raise errors. `SafePct` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */

import "./SafeMathLite.sol";

library SafePct {
    using SafeMathLite for uint256;
    /**
     * Requirements:
     *
     * - intermediate operations must revert on overflow
     */
    function mulDiv(uint256 x, uint256 y, uint256 z) internal pure returns (uint256) {
        require(z > 0, "Division by zero");

        if (x == 0) return 0;
        uint256 xy = x * y;
        if (xy / x == y) { // no overflow happened - same as in SafeMath mul
            return xy / z;
        }

        //slither-disable-next-line divide-before-multiply
        uint256 a = x / z;
        uint256 b = x % z; // x = a * z + b

        //slither-disable-next-line divide-before-multiply
        uint256 c = y / z;
        uint256 d = y % z; // y = c * z + d

        return (a.mul(c).mul(z)).add(a.mul(d)).add(b.mul(c)).add(b.mul(d).div(z));
    }


}

File 3 of 28 : SafeMathLite.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
library SafeMathLite{

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

File 4 of 28 : BaseDrop.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/PullPayment.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

abstract contract BaseDrop is ERC721, ERC721Enumerable, Ownable, PullPayment, Pausable, ReentrancyGuard {
    using Address for address payable;
   
    ERC721 public lootersContract;
    ERC721 public lootCoinContract;
    ERC721 public cdlContract;
    ERC721 public godContract;
    address public artist;
    address public yako;
    uint128 constant internal SCALE = 10000;
    uint128 internal fee;
    uint16[] internal order;

    function isMember(address _address) public view returns (bool) {
        return lootersContract.balanceOf(_address) > 0 || lootCoinContract.balanceOf(_address) > 0 || cdlContract.balanceOf(_address) > 0 || godContract.balanceOf(_address) > 0;
    }

    // Allows the artist to withdraw 
    function withdrawPayments(address payable payee) public virtual override nonReentrant{
        super.withdrawPayments(payee);
    }

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

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

    // Allows the contract deployer to withdraw funds
    function withdraw() public payable onlyOwner{
        payable(msg.sender).sendValue(address(this).balance);
    }

    function pause() public onlyOwner{
        _pause();
    }

    function unpause() public onlyOwner{
        _unpause();
    }
}

File 5 of 28 : 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 6 of 28 : 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 7 of 28 : Escrow.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../access/Ownable.sol";
import "../Address.sol";

/**
 * @title Escrow
 * @dev Base escrow contract, holds funds designated for a payee until they
 * withdraw them.
 *
 * Intended usage: This contract (and derived escrow contracts) should be a
 * standalone contract, that only interacts with the contract that instantiated
 * it. That way, it is guaranteed that all Ether will be handled according to
 * the `Escrow` rules, and there is no need to check for payable functions or
 * transfers in the inheritance tree. The contract that uses the escrow as its
 * payment method should be its owner, and provide public methods redirecting
 * to the escrow's deposit and withdraw.
 */
contract Escrow is Ownable {
    using Address for address payable;

    event Deposited(address indexed payee, uint256 weiAmount);
    event Withdrawn(address indexed payee, uint256 weiAmount);

    mapping(address => uint256) private _deposits;

    function depositsOf(address payee) public view returns (uint256) {
        return _deposits[payee];
    }

    /**
     * @dev Stores the sent amount as credit to be withdrawn.
     * @param payee The destination address of the funds.
     */
    function deposit(address payee) public payable virtual onlyOwner {
        uint256 amount = msg.value;
        _deposits[payee] += amount;
        emit Deposited(payee, amount);
    }

    /**
     * @dev Withdraw accumulated balance for a payee, forwarding all gas to the
     * recipient.
     *
     * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
     * Make sure you trust the recipient, or are either following the
     * checks-effects-interactions pattern or using {ReentrancyGuard}.
     *
     * @param payee The address whose funds will be withdrawn and transferred to.
     */
    function withdraw(address payable payee) public virtual onlyOwner {
        uint256 payment = _deposits[payee];

        _deposits[payee] = 0;

        payee.sendValue(payment);

        emit Withdrawn(payee, payment);
    }
}

File 8 of 28 : 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 9 of 28 : 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 10 of 28 : 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 28 : 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 12 of 28 : 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 13 of 28 : 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 14 of 28 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 28 : 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 16 of 28 : 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 17 of 28 : 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 18 of 28 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 19 of 28 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 20 of 28 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens 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 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 21 of 28 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 22 of 28 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 23 of 28 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 24 of 28 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 accountBalance = _balances[id][account];
        require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][account] = accountBalance - amount;
        }

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 accountBalance = _balances[id][account];
            require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][account] = accountBalance - amount;
            }
        }

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver(to).onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver(to).onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 25 of 28 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 26 of 28 : PullPayment.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/escrow/Escrow.sol";

/**
 * @dev Simple implementation of a
 * https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment]
 * strategy, where the paying contract doesn't interact directly with the
 * receiver account, which must withdraw its payments itself.
 *
 * Pull-payments are often considered the best practice when it comes to sending
 * Ether, security-wise. It prevents recipients from blocking execution, and
 * eliminates reentrancy concerns.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * To use, derive from the `PullPayment` contract, and use {_asyncTransfer}
 * instead of Solidity's `transfer` function. Payees can query their due
 * payments with {payments}, and retrieve them with {withdrawPayments}.
 */
abstract contract PullPayment {
    Escrow private immutable _escrow;

    constructor() {
        _escrow = new Escrow();
    }

    /**
     * @dev Withdraw accumulated payments, forwarding all gas to the recipient.
     *
     * Note that _any_ account can call this function, not just the `payee`.
     * This means that contracts unaware of the `PullPayment` protocol can still
     * receive funds this way, by having a separate account call
     * {withdrawPayments}.
     *
     * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
     * Make sure you trust the recipient, or are either following the
     * checks-effects-interactions pattern or using {ReentrancyGuard}.
     *
     * @param payee Whose payments will be withdrawn.
     */
    function withdrawPayments(address payable payee) public virtual {
        _escrow.withdraw(payee);
    }

    /**
     * @dev Returns the payments owed to an address.
     * @param dest The creditor's address.
     */
    function payments(address dest) public view returns (uint256) {
        return _escrow.depositsOf(dest);
    }

    /**
     * @dev Called by the payer to store the sent amount as credit to be pulled.
     * Funds sent in this way are stored in an intermediate {Escrow} contract, so
     * there is no danger of them being spent before withdrawal.
     *
     * @param dest The destination address of the funds.
     * @param amount The amount to transfer.
     */
    function _asyncTransfer(address dest, uint256 amount) internal virtual {
        _escrow.deposit{value: amount}(dest);
    }
}

File 27 of 28 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 28 of 28 : 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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_lootersContract","type":"address"},{"internalType":"address","name":"_artist","type":"address"},{"internalType":"address","name":"_yako","type":"address"},{"internalType":"address","name":"_lootContract","type":"address"},{"internalType":"address","name":"_lootCoinContract","type":"address"},{"internalType":"address","name":"_cdlContract","type":"address"},{"internalType":"address","name":"_godContract","type":"address"}],"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"_tokenIdCounter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addWhiteList","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":"artist","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":"cdlContract","outputs":[{"internalType":"contract ERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"godContract","outputs":[{"internalType":"contract ERC721","name":"","type":"address"}],"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":"address","name":"_address","type":"address"}],"name":"isDiscount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isMember","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhiteList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lootCoinContract","outputs":[{"internalType":"contract ERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lootersContract","outputs":[{"internalType":"contract ERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dest","type":"address"}],"name":"payments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_artist","type":"address"}],"name":"setArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"},{"internalType":"bool","name":"isMember","type":"bool"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUri","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yako","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a0604052680821ab0d4414980000601555680821ab0d44149800006016556101f460175560405180606001604052806036815260200162006abf60369139601a908051906020019062000055929190620004aa565b503480156200006357600080fd5b5060405162006af538038062006af583398181016040528101906200008991906200057f565b6040518060400160405280601181526020017f426162792044656d6f6e204c6567696f6e0000000000000000000000000000008152506040518060400160405280600381526020017f42444c000000000000000000000000000000000000000000000000000000000081525081600090805190602001906200010d929190620004aa565b50806001908051906020019062000126929190620004aa565b505050620001496200013d620003dc60201b60201c565b620003e460201b60201c565b60405162000157906200053b565b604051809103906000f08015801562000174573d6000803e3d6000fd5b5073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250506000600a60146101000a81548160ff0219169083151502179055506001600b8190555086600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083601960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000601260006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555050505050505050620006df565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620004b89062000660565b90600052602060002090601f016020900481019282620004dc576000855562000528565b82601f10620004f757805160ff191683800117855562000528565b8280016001018555821562000528579182015b82811115620005275782518255916020019190600101906200050a565b5b50905062000537919062000549565b5090565b610ccd8062005df283390190565b5b80821115620005645760008160009055506001016200054a565b5090565b6000815190506200057981620006c5565b92915050565b600080600080600080600060e0888a0312156200059b57600080fd5b6000620005ab8a828b0162000568565b9750506020620005be8a828b0162000568565b9650506040620005d18a828b0162000568565b9550506060620005e48a828b0162000568565b9450506080620005f78a828b0162000568565b93505060a06200060a8a828b0162000568565b92505060c06200061d8a828b0162000568565b91505092959891949750929550565b6000620006398262000640565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200067957607f821691505b6020821081141562000690576200068f62000696565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b620006d0816200062c565b8114620006dc57600080fd5b50565b60805160601c6156e66200070c600039600081816121650152818161295a0152612ed101526156e66000f3fe60806040526004361061025c5760003560e01c806370a0823111610144578063a22cb465116100b6578063c8b723d11161007a578063c8b723d1146108b6578063d4c97533146108e1578063e2982c211461090a578063e985e9c514610947578063f2fde38b14610984578063f99031a7146109ad5761025c565b8063a22cb465146107ad578063a230c524146107d6578063a526c5d914610813578063b88d4fde14610850578063c87b56dd146108795761025c565b80638da5cb5b116101085780638da5cb5b146106be57806395d03727146106e957806395d89b4114610712578063975b07e31461073d5780639b642de114610768578063a0712d68146107915761025c565b806370a08231146105fd578063715018a61461063a57806383209481146106515780638456cb591461067c57806384c4bd4b146106935761025c565b806331b3eb94116101dd57806343bc1612116101a157806343bc1612146104db5780634f6ccce7146105065780635c975abb146105435780635e1045ec1461056e578063632bbab4146105975780636352211e146105c05761025c565b806331b3eb941461043f5780633b4c4b25146104685780633ccfd60b146104915780633f4ba83a1461049b57806342842e0e146104b25761025c565b806318160ddd1161022457806318160ddd1461035a5780632042e5c21461038557806323b872dd146103ae5780632f745c59146103d75780632f983b01146104145761025c565b806301ffc9a71461026157806306fdde031461029e578063081812fc146102c9578063095ea7b3146103065780630b269ea51461032f575b600080fd5b34801561026d57600080fd5b5061028860048036038101906102839190614128565b6109ea565b6040516102959190614dd0565b60405180910390f35b3480156102aa57600080fd5b506102b36109fc565b6040516102c09190614e06565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb91906141bb565b610a8e565b6040516102fd9190614d4e565b60405180910390f35b34801561031257600080fd5b5061032d600480360381019061032891906140ab565b610b13565b005b34801561033b57600080fd5b50610344610c2b565b6040516103519190614deb565b60405180910390f35b34801561036657600080fd5b5061036f610c51565b60405161037c9190615188565b60405180910390f35b34801561039157600080fd5b506103ac60048036038101906103a79190613f17565b610c5e565b005b3480156103ba57600080fd5b506103d560048036038101906103d09190613fa5565b610e0e565b005b3480156103e357600080fd5b506103fe60048036038101906103f991906140ab565b610e6e565b60405161040b9190615188565b60405180910390f35b34801561042057600080fd5b50610429610f13565b6040516104369190614deb565b60405180910390f35b34801561044b57600080fd5b5061046660048036038101906104619190613f40565b610f39565b005b34801561047457600080fd5b5061048f600480360381019061048a91906141bb565b610f9b565b005b610499611021565b005b3480156104a757600080fd5b506104b06110c8565b005b3480156104be57600080fd5b506104d960048036038101906104d49190613fa5565b61114e565b005b3480156104e757600080fd5b506104f061116e565b6040516104fd9190614d4e565b60405180910390f35b34801561051257600080fd5b5061052d600480360381019061052891906141bb565b611194565b60405161053a9190615188565b60405180910390f35b34801561054f57600080fd5b5061055861122b565b6040516105659190614dd0565b60405180910390f35b34801561057a57600080fd5b50610595600480360381019061059091906140e7565b611242565b005b3480156105a357600080fd5b506105be60048036038101906105b991906141bb565b61138a565b005b3480156105cc57600080fd5b506105e760048036038101906105e291906141bb565b611453565b6040516105f49190614d4e565b60405180910390f35b34801561060957600080fd5b50610624600480360381019061061f9190613f17565b611505565b6040516106319190615188565b60405180910390f35b34801561064657600080fd5b5061064f6115bd565b005b34801561065d57600080fd5b50610666611645565b6040516106739190614deb565b60405180910390f35b34801561068857600080fd5b5061069161166b565b005b34801561069f57600080fd5b506106a86116f1565b6040516106b59190615188565b60405180910390f35b3480156106ca57600080fd5b506106d36116fd565b6040516106e09190614d4e565b60405180910390f35b3480156106f557600080fd5b50610710600480360381019061070b919061420d565b611727565b005b34801561071e57600080fd5b506107276117e7565b6040516107349190614e06565b60405180910390f35b34801561074957600080fd5b50610752611879565b60405161075f9190614d4e565b60405180910390f35b34801561077457600080fd5b5061078f600480360381019061078a919061417a565b61189f565b005b6107ab60048036038101906107a691906141bb565b611935565b005b3480156107b957600080fd5b506107d460048036038101906107cf919061406f565b611af0565b005b3480156107e257600080fd5b506107fd60048036038101906107f89190613f17565b611c71565b60405161080a9190614dd0565b60405180910390f35b34801561081f57600080fd5b5061083a60048036038101906108359190613f17565b611f46565b6040516108479190614dd0565b60405180910390f35b34801561085c57600080fd5b5061087760048036038101906108729190613ff4565b611f97565b005b34801561088557600080fd5b506108a0600480360381019061089b91906141bb565b611ff9565b6040516108ad9190614e06565b60405180910390f35b3480156108c257600080fd5b506108cb61207b565b6040516108d89190614deb565b60405180910390f35b3480156108ed57600080fd5b5061090860048036038101906109039190613f17565b6120a1565b005b34801561091657600080fd5b50610931600480360381019061092c9190613f17565b612161565b60405161093e9190615188565b60405180910390f35b34801561095357600080fd5b5061096e60048036038101906109699190613f69565b612213565b60405161097b9190614dd0565b60405180910390f35b34801561099057600080fd5b506109ab60048036038101906109a69190613f17565b6122a7565b005b3480156109b957600080fd5b506109d460048036038101906109cf9190613f17565b61239f565b6040516109e19190614dd0565b60405180910390f35b60006109f582612477565b9050919050565b606060008054610a0b906154c4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a37906154c4565b8015610a845780601f10610a5957610100808354040283529160200191610a84565b820191906000526020600020905b815481529060010190602001808311610a6757829003601f168201915b5050505050905090565b6000610a99826124f1565b610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf90615048565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b1e82611453565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b86906150e8565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bae61255d565b73ffffffffffffffffffffffffffffffffffffffff161480610bdd5750610bdc81610bd761255d565b612213565b5b610c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1390614fa8565b60405180910390fd5b610c268383612565565b505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600880549050905090565b610c6661255d565b73ffffffffffffffffffffffffffffffffffffffff16610c846116fd565b73ffffffffffffffffffffffffffffffffffffffff1614610cda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd190615088565b60405180910390fd5b6000601880549050905060005b81811015610e08578273ffffffffffffffffffffffffffffffffffffffff1660188281548110610d40577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610df55760188181548110610dc1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555050610e0b565b8080610e00906154f6565b915050610ce7565b50505b50565b610e1f610e1961255d565b8261261e565b610e5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5590615108565b60405180910390fd5b610e698383836126fc565b505050565b6000610e7983611505565b8210610eba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb190614e48565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002600b541415610f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7690615168565b60405180910390fd5b6002600b81905550610f9081612958565b6001600b8190555050565b610fa361255d565b73ffffffffffffffffffffffffffffffffffffffff16610fc16116fd565b73ffffffffffffffffffffffffffffffffffffffff1614611017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100e90615088565b60405180910390fd5b8060178190555050565b61102961255d565b73ffffffffffffffffffffffffffffffffffffffff166110476116fd565b73ffffffffffffffffffffffffffffffffffffffff161461109d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109490615088565b60405180910390fd5b6110c6473373ffffffffffffffffffffffffffffffffffffffff166129e690919063ffffffff16565b565b6110d061255d565b73ffffffffffffffffffffffffffffffffffffffff166110ee6116fd565b73ffffffffffffffffffffffffffffffffffffffff1614611144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113b90615088565b60405180910390fd5b61114c612ada565b565b61116983838360405180602001604052806000815250611f97565b505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061119e610c51565b82106111df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d690615128565b60405180910390fd5b60088281548110611219577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000600a60149054906101000a900460ff16905090565b61124a61255d565b73ffffffffffffffffffffffffffffffffffffffff166112686116fd565b73ffffffffffffffffffffffffffffffffffffffff16146112be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b590615088565b60405180910390fd5b60008151905060005b8181101561138557601883828151811061130a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808061137d906154f6565b9150506112c7565b505050565b61139261255d565b73ffffffffffffffffffffffffffffffffffffffff166113b06116fd565b73ffffffffffffffffffffffffffffffffffffffff1614611406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fd90615088565b60405180910390fd5b60005b8181101561144f5761143c601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612b7c565b8080611447906154f6565b915050611409565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f390614fe8565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156d90614fc8565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115c561255d565b73ffffffffffffffffffffffffffffffffffffffff166115e36116fd565b73ffffffffffffffffffffffffffffffffffffffff1614611639576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163090615088565b60405180910390fd5b6116436000612be7565b565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61167361255d565b73ffffffffffffffffffffffffffffffffffffffff166116916116fd565b73ffffffffffffffffffffffffffffffffffffffff16146116e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116de90615088565b60405180910390fd5b6116ef612cad565b565b60148060000154905081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61172f61255d565b73ffffffffffffffffffffffffffffffffffffffff1661174d6116fd565b73ffffffffffffffffffffffffffffffffffffffff16146117a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179a90615088565b60405180910390fd5b80156117c857670de0b6b3a7640000826117bd919061534a565b6015819055506117e3565b670de0b6b3a7640000826117dc919061534a565b6016819055505b5050565b6060600180546117f6906154c4565b80601f0160208091040260200160405190810160405280929190818152602001828054611822906154c4565b801561186f5780601f106118445761010080835404028352916020019161186f565b820191906000526020600020905b81548152906001019060200180831161185257829003601f168201915b5050505050905090565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118a761255d565b73ffffffffffffffffffffffffffffffffffffffff166118c56116fd565b73ffffffffffffffffffffffffffffffffffffffff161461191b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191290615088565b60405180910390fd5b80601a9080519060200190611931929190613c7b565b5050565b6014811115611979576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197090614ea8565b60405180910390fd5b60008061198533611f46565b9050801561199757601554915061199d565b60165491505b600083836119ab919061534a565b9050803410156119f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e790615148565b60405180910390fd5b60005b84811015611a1757611a0433612b7c565b8080611a0f906154f6565b9150506119f3565b50611a73601260009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166127106fffffffffffffffffffffffffffffffff16601754612d509092919063ffffffff16565b611a7b610c51565b11611abd57611ab8601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600283611ab39190615319565b612ecf565b611aea565b611ae9601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612ecf565b5b50505050565b611af861255d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5d90614f08565b60405180910390fd5b8060056000611b7361255d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c2061255d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c659190614dd0565b60405180910390a35050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611ccf9190614d4e565b60206040518083038186803b158015611ce757600080fd5b505afa158015611cfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d1f91906141e4565b1180611dd557506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611d839190614d4e565b60206040518083038186803b158015611d9b57600080fd5b505afa158015611daf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd391906141e4565b115b80611e8a57506000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611e389190614d4e565b60206040518083038186803b158015611e5057600080fd5b505afa158015611e64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e8891906141e4565b115b80611f3f57506000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611eed9190614d4e565b60206040518083038186803b158015611f0557600080fd5b505afa158015611f19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3d91906141e4565b115b9050919050565b6000611f5182611c71565b15611f5f5760019050611f92565b611f6882612f5f565b15611f765760019050611f92565b611f7f8261239f565b15611f8d5760019050611f92565b600090505b919050565b611fa8611fa261255d565b8361261e565b611fe7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fde90615108565b60405180910390fd5b611ff38484848461302e565b50505050565b6060612004826124f1565b612043576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203a906150c8565b60405180910390fd5b6000601a6120508461308a565b604051602001612061929190614d0a565b604051602081830303815290604052905080915050919050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6120a961255d565b73ffffffffffffffffffffffffffffffffffffffff166120c76116fd565b73ffffffffffffffffffffffffffffffffffffffff161461211d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211490615088565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663e3a9db1a836040518263ffffffff1660e01b81526004016121bc9190614d4e565b60206040518083038186803b1580156121d457600080fd5b505afa1580156121e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061220c91906141e4565b9050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6122af61255d565b73ffffffffffffffffffffffffffffffffffffffff166122cd6116fd565b73ffffffffffffffffffffffffffffffffffffffff1614612323576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231a90615088565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612393576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238a90614e88565b60405180910390fd5b61239c81612be7565b50565b600080601880549050905060005b8181101561246b578373ffffffffffffffffffffffffffffffffffffffff1660188281548110612406577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561245857600192505050612472565b8080612463906154f6565b9150506123ad565b5060009150505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124ea57506124e982613237565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166125d883611453565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612629826124f1565b612668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265f90614f68565b60405180910390fd5b600061267383611453565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806126e257508373ffffffffffffffffffffffffffffffffffffffff166126ca84610a8e565b73ffffffffffffffffffffffffffffffffffffffff16145b806126f357506126f28185612213565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661271c82611453565b73ffffffffffffffffffffffffffffffffffffffff1614612772576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612769906150a8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d990614ee8565b60405180910390fd5b6127ed838383613319565b6127f8600082612565565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461284891906153a4565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461289f91906152c3565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166351cff8d9826040518263ffffffff1660e01b81526004016129b19190614d69565b600060405180830381600087803b1580156129cb57600080fd5b505af11580156129df573d6000803e3d6000fd5b5050505050565b80471015612a29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2090614f48565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612a4f90614d39565b60006040518083038185875af1925050503d8060008114612a8c576040519150601f19603f3d011682016040523d82523d6000602084013e612a91565b606091505b5050905080612ad5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612acc90614f28565b60405180910390fd5b505050565b612ae261122b565b612b21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1890614e28565b60405180910390fd5b6000600a60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612b6561255d565b604051612b729190614d4e565b60405180910390a1565b6000612b886014613329565b612b92601461333f565b9050601754811115612bd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bd090615028565b60405180910390fd5b612be3828261334d565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612cb561122b565b15612cf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cec90614f88565b60405180910390fd5b6001600a60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d3961255d565b604051612d469190614d4e565b60405180910390a1565b6000808211612d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8b90615068565b60405180910390fd5b6000841415612da65760009050612ec8565b60008385612db4919061534a565b9050838582612dc39190615319565b1415612ddd578281612dd59190615319565b915050612ec8565b60008386612deb9190615319565b905060008487612dfb919061553f565b905060008587612e0b9190615319565b905060008688612e1b919061553f565b9050612ec0612e4588612e37848761336b90919063ffffffff16565b61338190919063ffffffff16565b612eb2612e5b858761336b90919063ffffffff16565b612ea4612e71868a61336b90919063ffffffff16565b612e968d612e888a8d61336b90919063ffffffff16565b61336b90919063ffffffff16565b61339790919063ffffffff16565b61339790919063ffffffff16565b61339790919063ffffffff16565b955050505050505b9392505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f340fa0182846040518363ffffffff1660e01b8152600401612f299190614d4e565b6000604051808303818588803b158015612f4257600080fd5b505af1158015612f56573d6000803e3d6000fd5b50505050505050565b600080601960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401612fbd9190614d4e565b60206040518083038186803b158015612fd557600080fd5b505afa158015612fe9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061300d91906141e4565b9050629896808110613023576001915050613029565b60009150505b919050565b6130398484846126fc565b613045848484846133ad565b613084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307b90614e68565b60405180910390fd5b50505050565b606060008214156130d2576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613232565b600082905060005b600082146131045780806130ed906154f6565b915050600a826130fd9190615319565b91506130da565b60008167ffffffffffffffff811115613146577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131785781602001600182028036833780820191505090505b5090505b6000851461322b5760018261319191906153a4565b9150600a856131a0919061553f565b60306131ac91906152c3565b60f81b8183815181106131e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856132249190615319565b945061317c565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061330257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613312575061331182613544565b5b9050919050565b6133248383836135ae565b505050565b6001816000016000828254019250508190555050565b600081600001549050919050565b6133678282604051806020016040528060008152506136c2565b5050565b60008183613379919061534a565b905092915050565b6000818361338f9190615319565b905092915050565b600081836133a591906152c3565b905092915050565b60006133ce8473ffffffffffffffffffffffffffffffffffffffff1661371d565b15613537578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026133f761255d565b8786866040518563ffffffff1660e01b81526004016134199493929190614d84565b602060405180830381600087803b15801561343357600080fd5b505af192505050801561346457506040513d601f19601f820116820180604052508101906134619190614151565b60015b6134e7573d8060008114613494576040519150601f19603f3d011682016040523d82523d6000602084013e613499565b606091505b506000815114156134df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d690614e68565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061353c565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6135b9838383613730565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156135fc576135f781613735565b61363b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461363a57613639838261377e565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561367e57613679816138eb565b6136bd565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146136bc576136bb8282613a2e565b5b5b505050565b6136cc8383613aad565b6136d960008484846133ad565b613718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161370f90614e68565b60405180910390fd5b505050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161378b84611505565b61379591906153a4565b905060006007600084815260200190815260200160002054905081811461387a576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506138ff91906153a4565b9050600060096000848152602001908152602001600020549050600060088381548110613955577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061399d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613a12577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613a3983611505565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613b1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b1490615008565b60405180910390fd5b613b26816124f1565b15613b66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b5d90614ec8565b60405180910390fd5b613b7260008383613319565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613bc291906152c3565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054613c87906154c4565b90600052602060002090601f016020900481019282613ca95760008555613cf0565b82601f10613cc257805160ff1916838001178555613cf0565b82800160010185558215613cf0579182015b82811115613cef578251825591602001919060010190613cd4565b5b509050613cfd9190613d01565b5090565b5b80821115613d1a576000816000905550600101613d02565b5090565b6000613d31613d2c846151d4565b6151a3565b90508083825260208201905082856020860282011115613d5057600080fd5b60005b85811015613d805781613d668882613e06565b845260208401935060208301925050600181019050613d53565b5050509392505050565b6000613d9d613d9884615200565b6151a3565b905082815260208101848484011115613db557600080fd5b613dc0848285615482565b509392505050565b6000613ddb613dd684615230565b6151a3565b905082815260208101848484011115613df357600080fd5b613dfe848285615482565b509392505050565b600081359050613e158161563d565b92915050565b600081359050613e2a81615654565b92915050565b600082601f830112613e4157600080fd5b8135613e51848260208601613d1e565b91505092915050565b600081359050613e698161566b565b92915050565b600081359050613e7e81615682565b92915050565b600081519050613e9381615682565b92915050565b600082601f830112613eaa57600080fd5b8135613eba848260208601613d8a565b91505092915050565b600082601f830112613ed457600080fd5b8135613ee4848260208601613dc8565b91505092915050565b600081359050613efc81615699565b92915050565b600081519050613f1181615699565b92915050565b600060208284031215613f2957600080fd5b6000613f3784828501613e06565b91505092915050565b600060208284031215613f5257600080fd5b6000613f6084828501613e1b565b91505092915050565b60008060408385031215613f7c57600080fd5b6000613f8a85828601613e06565b9250506020613f9b85828601613e06565b9150509250929050565b600080600060608486031215613fba57600080fd5b6000613fc886828701613e06565b9350506020613fd986828701613e06565b9250506040613fea86828701613eed565b9150509250925092565b6000806000806080858703121561400a57600080fd5b600061401887828801613e06565b945050602061402987828801613e06565b935050604061403a87828801613eed565b925050606085013567ffffffffffffffff81111561405757600080fd5b61406387828801613e99565b91505092959194509250565b6000806040838503121561408257600080fd5b600061409085828601613e06565b92505060206140a185828601613e5a565b9150509250929050565b600080604083850312156140be57600080fd5b60006140cc85828601613e06565b92505060206140dd85828601613eed565b9150509250929050565b6000602082840312156140f957600080fd5b600082013567ffffffffffffffff81111561411357600080fd5b61411f84828501613e30565b91505092915050565b60006020828403121561413a57600080fd5b600061414884828501613e6f565b91505092915050565b60006020828403121561416357600080fd5b600061417184828501613e84565b91505092915050565b60006020828403121561418c57600080fd5b600082013567ffffffffffffffff8111156141a657600080fd5b6141b284828501613ec3565b91505092915050565b6000602082840312156141cd57600080fd5b60006141db84828501613eed565b91505092915050565b6000602082840312156141f657600080fd5b600061420484828501613f02565b91505092915050565b6000806040838503121561422057600080fd5b600061422e85828601613eed565b925050602061423f85828601613e5a565b9150509250929050565b614252816153ea565b82525050565b614261816153d8565b82525050565b614270816153fc565b82525050565b600061428182615275565b61428b818561528b565b935061429b818560208601615491565b6142a48161562c565b840191505092915050565b6142b88161545e565b82525050565b60006142c982615280565b6142d381856152a7565b93506142e3818560208601615491565b6142ec8161562c565b840191505092915050565b600061430282615280565b61430c81856152b8565b935061431c818560208601615491565b80840191505092915050565b60008154614335816154c4565b61433f81866152b8565b9450600182166000811461435a576001811461436b5761439e565b60ff1983168652818601935061439e565b61437485615260565b60005b8381101561439657815481890152600182019150602081019050614377565b838801955050505b50505092915050565b60006143b46014836152a7565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b60006143f4602b836152a7565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061445a6032836152a7565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006144c06026836152a7565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145266015836152a7565b91507f6e6f74206d696e74206d6f7265207468616e20323000000000000000000000006000830152602082019050919050565b6000614566601c836152a7565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b60006145a66024836152a7565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061460c6019836152a7565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b600061464c603a836152a7565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b60006146b2601d836152a7565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b60006146f2602c836152a7565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006147586010836152a7565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b60006147986038836152a7565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006147fe602a836152a7565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006148646029836152a7565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006148ca6020836152a7565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b600061490a6017836152a7565b91507f54686973206d696e742068617320736f6c64206f75742e0000000000000000006000830152602082019050919050565b600061494a602c836152a7565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006149b06005836152b8565b91507f2e6a736f6e0000000000000000000000000000000000000000000000000000006000830152600582019050919050565b60006149f06010836152a7565b91507f4469766973696f6e206279207a65726f000000000000000000000000000000006000830152602082019050919050565b6000614a306020836152a7565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614a706029836152a7565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ad6602f836152a7565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b6000614b3c6021836152a7565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ba260008361529c565b9150600082019050919050565b6000614bbc6031836152a7565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614c22602c836152a7565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000614c88601a836152a7565b91507f596f7520646f6e2774206861766520656e6f7567682043524f2e0000000000006000830152602082019050919050565b6000614cc8601f836152a7565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b614d0481615454565b82525050565b6000614d168285614328565b9150614d2282846142f7565b9150614d2d826149a3565b91508190509392505050565b6000614d4482614b95565b9150819050919050565b6000602082019050614d636000830184614258565b92915050565b6000602082019050614d7e6000830184614249565b92915050565b6000608082019050614d996000830187614258565b614da66020830186614258565b614db36040830185614cfb565b8181036060830152614dc58184614276565b905095945050505050565b6000602082019050614de56000830184614267565b92915050565b6000602082019050614e0060008301846142af565b92915050565b60006020820190508181036000830152614e2081846142be565b905092915050565b60006020820190508181036000830152614e41816143a7565b9050919050565b60006020820190508181036000830152614e61816143e7565b9050919050565b60006020820190508181036000830152614e818161444d565b9050919050565b60006020820190508181036000830152614ea1816144b3565b9050919050565b60006020820190508181036000830152614ec181614519565b9050919050565b60006020820190508181036000830152614ee181614559565b9050919050565b60006020820190508181036000830152614f0181614599565b9050919050565b60006020820190508181036000830152614f21816145ff565b9050919050565b60006020820190508181036000830152614f418161463f565b9050919050565b60006020820190508181036000830152614f61816146a5565b9050919050565b60006020820190508181036000830152614f81816146e5565b9050919050565b60006020820190508181036000830152614fa18161474b565b9050919050565b60006020820190508181036000830152614fc18161478b565b9050919050565b60006020820190508181036000830152614fe1816147f1565b9050919050565b6000602082019050818103600083015261500181614857565b9050919050565b60006020820190508181036000830152615021816148bd565b9050919050565b60006020820190508181036000830152615041816148fd565b9050919050565b600060208201905081810360008301526150618161493d565b9050919050565b60006020820190508181036000830152615081816149e3565b9050919050565b600060208201905081810360008301526150a181614a23565b9050919050565b600060208201905081810360008301526150c181614a63565b9050919050565b600060208201905081810360008301526150e181614ac9565b9050919050565b6000602082019050818103600083015261510181614b2f565b9050919050565b6000602082019050818103600083015261512181614baf565b9050919050565b6000602082019050818103600083015261514181614c15565b9050919050565b6000602082019050818103600083015261516181614c7b565b9050919050565b6000602082019050818103600083015261518181614cbb565b9050919050565b600060208201905061519d6000830184614cfb565b92915050565b6000604051905081810181811067ffffffffffffffff821117156151ca576151c96155fd565b5b8060405250919050565b600067ffffffffffffffff8211156151ef576151ee6155fd565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561521b5761521a6155fd565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561524b5761524a6155fd565b5b601f19601f8301169050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006152ce82615454565b91506152d983615454565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561530e5761530d615570565b5b828201905092915050565b600061532482615454565b915061532f83615454565b92508261533f5761533e61559f565b5b828204905092915050565b600061535582615454565b915061536083615454565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561539957615398615570565b5b828202905092915050565b60006153af82615454565b91506153ba83615454565b9250828210156153cd576153cc615570565b5b828203905092915050565b60006153e382615434565b9050919050565b60006153f582615434565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061546982615470565b9050919050565b600061547b82615434565b9050919050565b82818337600083830152505050565b60005b838110156154af578082015181840152602081019050615494565b838111156154be576000848401525b50505050565b600060028204905060018216806154dc57607f821691505b602082108114156154f0576154ef6155ce565b5b50919050565b600061550182615454565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561553457615533615570565b5b600182019050919050565b600061554a82615454565b915061555583615454565b9250826155655761556461559f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b615646816153d8565b811461565157600080fd5b50565b61565d816153ea565b811461566857600080fd5b50565b615674816153fc565b811461567f57600080fd5b50565b61568b81615408565b811461569657600080fd5b50565b6156a281615454565b81146156ad57600080fd5b5056fea2646970667358221220e6e7b713b3f1979018a119fed23cb90f4e25017f4af80f904c9de8633b582ae764736f6c63430008000033608060405234801561001057600080fd5b5061002d61002261003260201b60201c565b61003a60201b60201c565b6100fe565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610bc08061010d6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a6146100835780638da5cb5b1461009a578063e3a9db1a146100c5578063f2fde38b14610102578063f340fa011461012b575b600080fd5b34801561006657600080fd5b50610081600480360381019061007c91906107f5565b610147565b005b34801561008f57600080fd5b506100986102c7565b005b3480156100a657600080fd5b506100af61034f565b6040516100bc91906109b7565b60405180910390f35b3480156100d157600080fd5b506100ec60048036038101906100e791906107cc565b610378565b6040516100f99190610a52565b60405180910390f35b34801561010e57600080fd5b50610129600480360381019061012491906107cc565b6103c1565b005b610145600480360381019061014091906107cc565b6104b9565b005b61014f6105e2565b73ffffffffffffffffffffffffffffffffffffffff1661016d61034f565b73ffffffffffffffffffffffffffffffffffffffff16146101c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ba90610a32565b60405180910390fd5b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610275818373ffffffffffffffffffffffffffffffffffffffff166105ea90919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516102bb9190610a52565b60405180910390a25050565b6102cf6105e2565b73ffffffffffffffffffffffffffffffffffffffff166102ed61034f565b73ffffffffffffffffffffffffffffffffffffffff1614610343576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161033a90610a32565b60405180910390fd5b61034d60006106de565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6103c96105e2565b73ffffffffffffffffffffffffffffffffffffffff166103e761034f565b73ffffffffffffffffffffffffffffffffffffffff161461043d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043490610a32565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156104ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104a4906109d2565b60405180910390fd5b6104b6816106de565b50565b6104c16105e2565b73ffffffffffffffffffffffffffffffffffffffff166104df61034f565b73ffffffffffffffffffffffffffffffffffffffff1614610535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052c90610a32565b60405180910390fd5b600034905080600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546105899190610a89565b925050819055508173ffffffffffffffffffffffffffffffffffffffff167f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4826040516105d69190610a52565b60405180910390a25050565b600033905090565b8047101561062d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062490610a12565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051610653906109a2565b60006040518083038185875af1925050503d8060008114610690576040519150601f19603f3d011682016040523d82523d6000602084013e610695565b606091505b50509050806106d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d0906109f2565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000813590506107b181610b5c565b92915050565b6000813590506107c681610b73565b92915050565b6000602082840312156107de57600080fd5b60006107ec848285016107a2565b91505092915050565b60006020828403121561080757600080fd5b6000610815848285016107b7565b91505092915050565b61082781610adf565b82525050565b600061083a602683610a78565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006108a0603a83610a78565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b6000610906601d83610a78565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b6000610946602083610a78565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000610986600083610a6d565b9150600082019050919050565b61099c81610b23565b82525050565b60006109ad82610979565b9150819050919050565b60006020820190506109cc600083018461081e565b92915050565b600060208201905081810360008301526109eb8161082d565b9050919050565b60006020820190508181036000830152610a0b81610893565b9050919050565b60006020820190508181036000830152610a2b816108f9565b9050919050565b60006020820190508181036000830152610a4b81610939565b9050919050565b6000602082019050610a676000830184610993565b92915050565b600081905092915050565b600082825260208201905092915050565b6000610a9482610b23565b9150610a9f83610b23565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610ad457610ad3610b2d565b5b828201905092915050565b6000610aea82610b03565b9050919050565b6000610afc82610b03565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b610b6581610adf565b8114610b7057600080fd5b50565b610b7c81610af1565b8114610b8757600080fd5b5056fea2646970667358221220f6650f6c6d37cef9100c6a131b99783c8ca212e1a885708b9234aed27b48fc9364736f6c63430008000033697066733a2f2f516d59766f7970383868775a696f626634766943504e7575717439666a62767857666b46414e65616273336b564e2f000000000000000000000000ee0f2aa0a15d8a7ddc8f0ee59bc555e43555c98d00000000000000000000000066e99e2692f317c5f29d23911e5f3fb0a8ceebd9000000000000000000000000ed8f960d1b0e664cbd2cbeb0e2648abfdb90ce29000000000000000000000000ed34211cdd2cf76c3ccee162761a72d7b6601e2b0000000000000000000000009cdf5ce95cf2c4b5aed1b909eb2fe303a5579b43000000000000000000000000e4c7f4a8dcb74fd531e7b65e55735e9a8e321433000000000000000000000000d366dc03fe6ce8fd620a48cb2b9a0f87752af15b

Deployed Bytecode

0x60806040526004361061025c5760003560e01c806370a0823111610144578063a22cb465116100b6578063c8b723d11161007a578063c8b723d1146108b6578063d4c97533146108e1578063e2982c211461090a578063e985e9c514610947578063f2fde38b14610984578063f99031a7146109ad5761025c565b8063a22cb465146107ad578063a230c524146107d6578063a526c5d914610813578063b88d4fde14610850578063c87b56dd146108795761025c565b80638da5cb5b116101085780638da5cb5b146106be57806395d03727146106e957806395d89b4114610712578063975b07e31461073d5780639b642de114610768578063a0712d68146107915761025c565b806370a08231146105fd578063715018a61461063a57806383209481146106515780638456cb591461067c57806384c4bd4b146106935761025c565b806331b3eb94116101dd57806343bc1612116101a157806343bc1612146104db5780634f6ccce7146105065780635c975abb146105435780635e1045ec1461056e578063632bbab4146105975780636352211e146105c05761025c565b806331b3eb941461043f5780633b4c4b25146104685780633ccfd60b146104915780633f4ba83a1461049b57806342842e0e146104b25761025c565b806318160ddd1161022457806318160ddd1461035a5780632042e5c21461038557806323b872dd146103ae5780632f745c59146103d75780632f983b01146104145761025c565b806301ffc9a71461026157806306fdde031461029e578063081812fc146102c9578063095ea7b3146103065780630b269ea51461032f575b600080fd5b34801561026d57600080fd5b5061028860048036038101906102839190614128565b6109ea565b6040516102959190614dd0565b60405180910390f35b3480156102aa57600080fd5b506102b36109fc565b6040516102c09190614e06565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb91906141bb565b610a8e565b6040516102fd9190614d4e565b60405180910390f35b34801561031257600080fd5b5061032d600480360381019061032891906140ab565b610b13565b005b34801561033b57600080fd5b50610344610c2b565b6040516103519190614deb565b60405180910390f35b34801561036657600080fd5b5061036f610c51565b60405161037c9190615188565b60405180910390f35b34801561039157600080fd5b506103ac60048036038101906103a79190613f17565b610c5e565b005b3480156103ba57600080fd5b506103d560048036038101906103d09190613fa5565b610e0e565b005b3480156103e357600080fd5b506103fe60048036038101906103f991906140ab565b610e6e565b60405161040b9190615188565b60405180910390f35b34801561042057600080fd5b50610429610f13565b6040516104369190614deb565b60405180910390f35b34801561044b57600080fd5b5061046660048036038101906104619190613f40565b610f39565b005b34801561047457600080fd5b5061048f600480360381019061048a91906141bb565b610f9b565b005b610499611021565b005b3480156104a757600080fd5b506104b06110c8565b005b3480156104be57600080fd5b506104d960048036038101906104d49190613fa5565b61114e565b005b3480156104e757600080fd5b506104f061116e565b6040516104fd9190614d4e565b60405180910390f35b34801561051257600080fd5b5061052d600480360381019061052891906141bb565b611194565b60405161053a9190615188565b60405180910390f35b34801561054f57600080fd5b5061055861122b565b6040516105659190614dd0565b60405180910390f35b34801561057a57600080fd5b50610595600480360381019061059091906140e7565b611242565b005b3480156105a357600080fd5b506105be60048036038101906105b991906141bb565b61138a565b005b3480156105cc57600080fd5b506105e760048036038101906105e291906141bb565b611453565b6040516105f49190614d4e565b60405180910390f35b34801561060957600080fd5b50610624600480360381019061061f9190613f17565b611505565b6040516106319190615188565b60405180910390f35b34801561064657600080fd5b5061064f6115bd565b005b34801561065d57600080fd5b50610666611645565b6040516106739190614deb565b60405180910390f35b34801561068857600080fd5b5061069161166b565b005b34801561069f57600080fd5b506106a86116f1565b6040516106b59190615188565b60405180910390f35b3480156106ca57600080fd5b506106d36116fd565b6040516106e09190614d4e565b60405180910390f35b3480156106f557600080fd5b50610710600480360381019061070b919061420d565b611727565b005b34801561071e57600080fd5b506107276117e7565b6040516107349190614e06565b60405180910390f35b34801561074957600080fd5b50610752611879565b60405161075f9190614d4e565b60405180910390f35b34801561077457600080fd5b5061078f600480360381019061078a919061417a565b61189f565b005b6107ab60048036038101906107a691906141bb565b611935565b005b3480156107b957600080fd5b506107d460048036038101906107cf919061406f565b611af0565b005b3480156107e257600080fd5b506107fd60048036038101906107f89190613f17565b611c71565b60405161080a9190614dd0565b60405180910390f35b34801561081f57600080fd5b5061083a60048036038101906108359190613f17565b611f46565b6040516108479190614dd0565b60405180910390f35b34801561085c57600080fd5b5061087760048036038101906108729190613ff4565b611f97565b005b34801561088557600080fd5b506108a0600480360381019061089b91906141bb565b611ff9565b6040516108ad9190614e06565b60405180910390f35b3480156108c257600080fd5b506108cb61207b565b6040516108d89190614deb565b60405180910390f35b3480156108ed57600080fd5b5061090860048036038101906109039190613f17565b6120a1565b005b34801561091657600080fd5b50610931600480360381019061092c9190613f17565b612161565b60405161093e9190615188565b60405180910390f35b34801561095357600080fd5b5061096e60048036038101906109699190613f69565b612213565b60405161097b9190614dd0565b60405180910390f35b34801561099057600080fd5b506109ab60048036038101906109a69190613f17565b6122a7565b005b3480156109b957600080fd5b506109d460048036038101906109cf9190613f17565b61239f565b6040516109e19190614dd0565b60405180910390f35b60006109f582612477565b9050919050565b606060008054610a0b906154c4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a37906154c4565b8015610a845780601f10610a5957610100808354040283529160200191610a84565b820191906000526020600020905b815481529060010190602001808311610a6757829003601f168201915b5050505050905090565b6000610a99826124f1565b610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf90615048565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b1e82611453565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b86906150e8565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bae61255d565b73ffffffffffffffffffffffffffffffffffffffff161480610bdd5750610bdc81610bd761255d565b612213565b5b610c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1390614fa8565b60405180910390fd5b610c268383612565565b505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600880549050905090565b610c6661255d565b73ffffffffffffffffffffffffffffffffffffffff16610c846116fd565b73ffffffffffffffffffffffffffffffffffffffff1614610cda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd190615088565b60405180910390fd5b6000601880549050905060005b81811015610e08578273ffffffffffffffffffffffffffffffffffffffff1660188281548110610d40577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610df55760188181548110610dc1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555050610e0b565b8080610e00906154f6565b915050610ce7565b50505b50565b610e1f610e1961255d565b8261261e565b610e5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5590615108565b60405180910390fd5b610e698383836126fc565b505050565b6000610e7983611505565b8210610eba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb190614e48565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002600b541415610f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7690615168565b60405180910390fd5b6002600b81905550610f9081612958565b6001600b8190555050565b610fa361255d565b73ffffffffffffffffffffffffffffffffffffffff16610fc16116fd565b73ffffffffffffffffffffffffffffffffffffffff1614611017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100e90615088565b60405180910390fd5b8060178190555050565b61102961255d565b73ffffffffffffffffffffffffffffffffffffffff166110476116fd565b73ffffffffffffffffffffffffffffffffffffffff161461109d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109490615088565b60405180910390fd5b6110c6473373ffffffffffffffffffffffffffffffffffffffff166129e690919063ffffffff16565b565b6110d061255d565b73ffffffffffffffffffffffffffffffffffffffff166110ee6116fd565b73ffffffffffffffffffffffffffffffffffffffff1614611144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113b90615088565b60405180910390fd5b61114c612ada565b565b61116983838360405180602001604052806000815250611f97565b505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061119e610c51565b82106111df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d690615128565b60405180910390fd5b60088281548110611219577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000600a60149054906101000a900460ff16905090565b61124a61255d565b73ffffffffffffffffffffffffffffffffffffffff166112686116fd565b73ffffffffffffffffffffffffffffffffffffffff16146112be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b590615088565b60405180910390fd5b60008151905060005b8181101561138557601883828151811061130a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808061137d906154f6565b9150506112c7565b505050565b61139261255d565b73ffffffffffffffffffffffffffffffffffffffff166113b06116fd565b73ffffffffffffffffffffffffffffffffffffffff1614611406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fd90615088565b60405180910390fd5b60005b8181101561144f5761143c601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612b7c565b8080611447906154f6565b915050611409565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f390614fe8565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156d90614fc8565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115c561255d565b73ffffffffffffffffffffffffffffffffffffffff166115e36116fd565b73ffffffffffffffffffffffffffffffffffffffff1614611639576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163090615088565b60405180910390fd5b6116436000612be7565b565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61167361255d565b73ffffffffffffffffffffffffffffffffffffffff166116916116fd565b73ffffffffffffffffffffffffffffffffffffffff16146116e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116de90615088565b60405180910390fd5b6116ef612cad565b565b60148060000154905081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61172f61255d565b73ffffffffffffffffffffffffffffffffffffffff1661174d6116fd565b73ffffffffffffffffffffffffffffffffffffffff16146117a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179a90615088565b60405180910390fd5b80156117c857670de0b6b3a7640000826117bd919061534a565b6015819055506117e3565b670de0b6b3a7640000826117dc919061534a565b6016819055505b5050565b6060600180546117f6906154c4565b80601f0160208091040260200160405190810160405280929190818152602001828054611822906154c4565b801561186f5780601f106118445761010080835404028352916020019161186f565b820191906000526020600020905b81548152906001019060200180831161185257829003601f168201915b5050505050905090565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118a761255d565b73ffffffffffffffffffffffffffffffffffffffff166118c56116fd565b73ffffffffffffffffffffffffffffffffffffffff161461191b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191290615088565b60405180910390fd5b80601a9080519060200190611931929190613c7b565b5050565b6014811115611979576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197090614ea8565b60405180910390fd5b60008061198533611f46565b9050801561199757601554915061199d565b60165491505b600083836119ab919061534a565b9050803410156119f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e790615148565b60405180910390fd5b60005b84811015611a1757611a0433612b7c565b8080611a0f906154f6565b9150506119f3565b50611a73601260009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166127106fffffffffffffffffffffffffffffffff16601754612d509092919063ffffffff16565b611a7b610c51565b11611abd57611ab8601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600283611ab39190615319565b612ecf565b611aea565b611ae9601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612ecf565b5b50505050565b611af861255d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5d90614f08565b60405180910390fd5b8060056000611b7361255d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c2061255d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c659190614dd0565b60405180910390a35050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611ccf9190614d4e565b60206040518083038186803b158015611ce757600080fd5b505afa158015611cfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d1f91906141e4565b1180611dd557506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611d839190614d4e565b60206040518083038186803b158015611d9b57600080fd5b505afa158015611daf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd391906141e4565b115b80611e8a57506000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611e389190614d4e565b60206040518083038186803b158015611e5057600080fd5b505afa158015611e64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e8891906141e4565b115b80611f3f57506000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611eed9190614d4e565b60206040518083038186803b158015611f0557600080fd5b505afa158015611f19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3d91906141e4565b115b9050919050565b6000611f5182611c71565b15611f5f5760019050611f92565b611f6882612f5f565b15611f765760019050611f92565b611f7f8261239f565b15611f8d5760019050611f92565b600090505b919050565b611fa8611fa261255d565b8361261e565b611fe7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fde90615108565b60405180910390fd5b611ff38484848461302e565b50505050565b6060612004826124f1565b612043576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203a906150c8565b60405180910390fd5b6000601a6120508461308a565b604051602001612061929190614d0a565b604051602081830303815290604052905080915050919050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6120a961255d565b73ffffffffffffffffffffffffffffffffffffffff166120c76116fd565b73ffffffffffffffffffffffffffffffffffffffff161461211d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211490615088565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f0000000000000000000000007a4adfb45101abfec8596c8e9d14f985e39dc11473ffffffffffffffffffffffffffffffffffffffff1663e3a9db1a836040518263ffffffff1660e01b81526004016121bc9190614d4e565b60206040518083038186803b1580156121d457600080fd5b505afa1580156121e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061220c91906141e4565b9050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6122af61255d565b73ffffffffffffffffffffffffffffffffffffffff166122cd6116fd565b73ffffffffffffffffffffffffffffffffffffffff1614612323576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231a90615088565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612393576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238a90614e88565b60405180910390fd5b61239c81612be7565b50565b600080601880549050905060005b8181101561246b578373ffffffffffffffffffffffffffffffffffffffff1660188281548110612406577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561245857600192505050612472565b8080612463906154f6565b9150506123ad565b5060009150505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124ea57506124e982613237565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166125d883611453565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612629826124f1565b612668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265f90614f68565b60405180910390fd5b600061267383611453565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806126e257508373ffffffffffffffffffffffffffffffffffffffff166126ca84610a8e565b73ffffffffffffffffffffffffffffffffffffffff16145b806126f357506126f28185612213565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661271c82611453565b73ffffffffffffffffffffffffffffffffffffffff1614612772576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612769906150a8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d990614ee8565b60405180910390fd5b6127ed838383613319565b6127f8600082612565565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461284891906153a4565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461289f91906152c3565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b7f0000000000000000000000007a4adfb45101abfec8596c8e9d14f985e39dc11473ffffffffffffffffffffffffffffffffffffffff166351cff8d9826040518263ffffffff1660e01b81526004016129b19190614d69565b600060405180830381600087803b1580156129cb57600080fd5b505af11580156129df573d6000803e3d6000fd5b5050505050565b80471015612a29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2090614f48565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612a4f90614d39565b60006040518083038185875af1925050503d8060008114612a8c576040519150601f19603f3d011682016040523d82523d6000602084013e612a91565b606091505b5050905080612ad5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612acc90614f28565b60405180910390fd5b505050565b612ae261122b565b612b21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1890614e28565b60405180910390fd5b6000600a60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612b6561255d565b604051612b729190614d4e565b60405180910390a1565b6000612b886014613329565b612b92601461333f565b9050601754811115612bd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bd090615028565b60405180910390fd5b612be3828261334d565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612cb561122b565b15612cf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cec90614f88565b60405180910390fd5b6001600a60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d3961255d565b604051612d469190614d4e565b60405180910390a1565b6000808211612d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8b90615068565b60405180910390fd5b6000841415612da65760009050612ec8565b60008385612db4919061534a565b9050838582612dc39190615319565b1415612ddd578281612dd59190615319565b915050612ec8565b60008386612deb9190615319565b905060008487612dfb919061553f565b905060008587612e0b9190615319565b905060008688612e1b919061553f565b9050612ec0612e4588612e37848761336b90919063ffffffff16565b61338190919063ffffffff16565b612eb2612e5b858761336b90919063ffffffff16565b612ea4612e71868a61336b90919063ffffffff16565b612e968d612e888a8d61336b90919063ffffffff16565b61336b90919063ffffffff16565b61339790919063ffffffff16565b61339790919063ffffffff16565b61339790919063ffffffff16565b955050505050505b9392505050565b7f0000000000000000000000007a4adfb45101abfec8596c8e9d14f985e39dc11473ffffffffffffffffffffffffffffffffffffffff1663f340fa0182846040518363ffffffff1660e01b8152600401612f299190614d4e565b6000604051808303818588803b158015612f4257600080fd5b505af1158015612f56573d6000803e3d6000fd5b50505050505050565b600080601960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401612fbd9190614d4e565b60206040518083038186803b158015612fd557600080fd5b505afa158015612fe9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061300d91906141e4565b9050629896808110613023576001915050613029565b60009150505b919050565b6130398484846126fc565b613045848484846133ad565b613084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307b90614e68565b60405180910390fd5b50505050565b606060008214156130d2576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613232565b600082905060005b600082146131045780806130ed906154f6565b915050600a826130fd9190615319565b91506130da565b60008167ffffffffffffffff811115613146577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131785781602001600182028036833780820191505090505b5090505b6000851461322b5760018261319191906153a4565b9150600a856131a0919061553f565b60306131ac91906152c3565b60f81b8183815181106131e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856132249190615319565b945061317c565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061330257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613312575061331182613544565b5b9050919050565b6133248383836135ae565b505050565b6001816000016000828254019250508190555050565b600081600001549050919050565b6133678282604051806020016040528060008152506136c2565b5050565b60008183613379919061534a565b905092915050565b6000818361338f9190615319565b905092915050565b600081836133a591906152c3565b905092915050565b60006133ce8473ffffffffffffffffffffffffffffffffffffffff1661371d565b15613537578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026133f761255d565b8786866040518563ffffffff1660e01b81526004016134199493929190614d84565b602060405180830381600087803b15801561343357600080fd5b505af192505050801561346457506040513d601f19601f820116820180604052508101906134619190614151565b60015b6134e7573d8060008114613494576040519150601f19603f3d011682016040523d82523d6000602084013e613499565b606091505b506000815114156134df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d690614e68565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061353c565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6135b9838383613730565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156135fc576135f781613735565b61363b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461363a57613639838261377e565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561367e57613679816138eb565b6136bd565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146136bc576136bb8282613a2e565b5b5b505050565b6136cc8383613aad565b6136d960008484846133ad565b613718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161370f90614e68565b60405180910390fd5b505050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161378b84611505565b61379591906153a4565b905060006007600084815260200190815260200160002054905081811461387a576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506138ff91906153a4565b9050600060096000848152602001908152602001600020549050600060088381548110613955577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061399d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613a12577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613a3983611505565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613b1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b1490615008565b60405180910390fd5b613b26816124f1565b15613b66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b5d90614ec8565b60405180910390fd5b613b7260008383613319565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613bc291906152c3565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054613c87906154c4565b90600052602060002090601f016020900481019282613ca95760008555613cf0565b82601f10613cc257805160ff1916838001178555613cf0565b82800160010185558215613cf0579182015b82811115613cef578251825591602001919060010190613cd4565b5b509050613cfd9190613d01565b5090565b5b80821115613d1a576000816000905550600101613d02565b5090565b6000613d31613d2c846151d4565b6151a3565b90508083825260208201905082856020860282011115613d5057600080fd5b60005b85811015613d805781613d668882613e06565b845260208401935060208301925050600181019050613d53565b5050509392505050565b6000613d9d613d9884615200565b6151a3565b905082815260208101848484011115613db557600080fd5b613dc0848285615482565b509392505050565b6000613ddb613dd684615230565b6151a3565b905082815260208101848484011115613df357600080fd5b613dfe848285615482565b509392505050565b600081359050613e158161563d565b92915050565b600081359050613e2a81615654565b92915050565b600082601f830112613e4157600080fd5b8135613e51848260208601613d1e565b91505092915050565b600081359050613e698161566b565b92915050565b600081359050613e7e81615682565b92915050565b600081519050613e9381615682565b92915050565b600082601f830112613eaa57600080fd5b8135613eba848260208601613d8a565b91505092915050565b600082601f830112613ed457600080fd5b8135613ee4848260208601613dc8565b91505092915050565b600081359050613efc81615699565b92915050565b600081519050613f1181615699565b92915050565b600060208284031215613f2957600080fd5b6000613f3784828501613e06565b91505092915050565b600060208284031215613f5257600080fd5b6000613f6084828501613e1b565b91505092915050565b60008060408385031215613f7c57600080fd5b6000613f8a85828601613e06565b9250506020613f9b85828601613e06565b9150509250929050565b600080600060608486031215613fba57600080fd5b6000613fc886828701613e06565b9350506020613fd986828701613e06565b9250506040613fea86828701613eed565b9150509250925092565b6000806000806080858703121561400a57600080fd5b600061401887828801613e06565b945050602061402987828801613e06565b935050604061403a87828801613eed565b925050606085013567ffffffffffffffff81111561405757600080fd5b61406387828801613e99565b91505092959194509250565b6000806040838503121561408257600080fd5b600061409085828601613e06565b92505060206140a185828601613e5a565b9150509250929050565b600080604083850312156140be57600080fd5b60006140cc85828601613e06565b92505060206140dd85828601613eed565b9150509250929050565b6000602082840312156140f957600080fd5b600082013567ffffffffffffffff81111561411357600080fd5b61411f84828501613e30565b91505092915050565b60006020828403121561413a57600080fd5b600061414884828501613e6f565b91505092915050565b60006020828403121561416357600080fd5b600061417184828501613e84565b91505092915050565b60006020828403121561418c57600080fd5b600082013567ffffffffffffffff8111156141a657600080fd5b6141b284828501613ec3565b91505092915050565b6000602082840312156141cd57600080fd5b60006141db84828501613eed565b91505092915050565b6000602082840312156141f657600080fd5b600061420484828501613f02565b91505092915050565b6000806040838503121561422057600080fd5b600061422e85828601613eed565b925050602061423f85828601613e5a565b9150509250929050565b614252816153ea565b82525050565b614261816153d8565b82525050565b614270816153fc565b82525050565b600061428182615275565b61428b818561528b565b935061429b818560208601615491565b6142a48161562c565b840191505092915050565b6142b88161545e565b82525050565b60006142c982615280565b6142d381856152a7565b93506142e3818560208601615491565b6142ec8161562c565b840191505092915050565b600061430282615280565b61430c81856152b8565b935061431c818560208601615491565b80840191505092915050565b60008154614335816154c4565b61433f81866152b8565b9450600182166000811461435a576001811461436b5761439e565b60ff1983168652818601935061439e565b61437485615260565b60005b8381101561439657815481890152600182019150602081019050614377565b838801955050505b50505092915050565b60006143b46014836152a7565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b60006143f4602b836152a7565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061445a6032836152a7565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006144c06026836152a7565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145266015836152a7565b91507f6e6f74206d696e74206d6f7265207468616e20323000000000000000000000006000830152602082019050919050565b6000614566601c836152a7565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b60006145a66024836152a7565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061460c6019836152a7565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b600061464c603a836152a7565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b60006146b2601d836152a7565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b60006146f2602c836152a7565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006147586010836152a7565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b60006147986038836152a7565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006147fe602a836152a7565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006148646029836152a7565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006148ca6020836152a7565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b600061490a6017836152a7565b91507f54686973206d696e742068617320736f6c64206f75742e0000000000000000006000830152602082019050919050565b600061494a602c836152a7565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006149b06005836152b8565b91507f2e6a736f6e0000000000000000000000000000000000000000000000000000006000830152600582019050919050565b60006149f06010836152a7565b91507f4469766973696f6e206279207a65726f000000000000000000000000000000006000830152602082019050919050565b6000614a306020836152a7565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614a706029836152a7565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ad6602f836152a7565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b6000614b3c6021836152a7565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ba260008361529c565b9150600082019050919050565b6000614bbc6031836152a7565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614c22602c836152a7565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000614c88601a836152a7565b91507f596f7520646f6e2774206861766520656e6f7567682043524f2e0000000000006000830152602082019050919050565b6000614cc8601f836152a7565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b614d0481615454565b82525050565b6000614d168285614328565b9150614d2282846142f7565b9150614d2d826149a3565b91508190509392505050565b6000614d4482614b95565b9150819050919050565b6000602082019050614d636000830184614258565b92915050565b6000602082019050614d7e6000830184614249565b92915050565b6000608082019050614d996000830187614258565b614da66020830186614258565b614db36040830185614cfb565b8181036060830152614dc58184614276565b905095945050505050565b6000602082019050614de56000830184614267565b92915050565b6000602082019050614e0060008301846142af565b92915050565b60006020820190508181036000830152614e2081846142be565b905092915050565b60006020820190508181036000830152614e41816143a7565b9050919050565b60006020820190508181036000830152614e61816143e7565b9050919050565b60006020820190508181036000830152614e818161444d565b9050919050565b60006020820190508181036000830152614ea1816144b3565b9050919050565b60006020820190508181036000830152614ec181614519565b9050919050565b60006020820190508181036000830152614ee181614559565b9050919050565b60006020820190508181036000830152614f0181614599565b9050919050565b60006020820190508181036000830152614f21816145ff565b9050919050565b60006020820190508181036000830152614f418161463f565b9050919050565b60006020820190508181036000830152614f61816146a5565b9050919050565b60006020820190508181036000830152614f81816146e5565b9050919050565b60006020820190508181036000830152614fa18161474b565b9050919050565b60006020820190508181036000830152614fc18161478b565b9050919050565b60006020820190508181036000830152614fe1816147f1565b9050919050565b6000602082019050818103600083015261500181614857565b9050919050565b60006020820190508181036000830152615021816148bd565b9050919050565b60006020820190508181036000830152615041816148fd565b9050919050565b600060208201905081810360008301526150618161493d565b9050919050565b60006020820190508181036000830152615081816149e3565b9050919050565b600060208201905081810360008301526150a181614a23565b9050919050565b600060208201905081810360008301526150c181614a63565b9050919050565b600060208201905081810360008301526150e181614ac9565b9050919050565b6000602082019050818103600083015261510181614b2f565b9050919050565b6000602082019050818103600083015261512181614baf565b9050919050565b6000602082019050818103600083015261514181614c15565b9050919050565b6000602082019050818103600083015261516181614c7b565b9050919050565b6000602082019050818103600083015261518181614cbb565b9050919050565b600060208201905061519d6000830184614cfb565b92915050565b6000604051905081810181811067ffffffffffffffff821117156151ca576151c96155fd565b5b8060405250919050565b600067ffffffffffffffff8211156151ef576151ee6155fd565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561521b5761521a6155fd565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561524b5761524a6155fd565b5b601f19601f8301169050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006152ce82615454565b91506152d983615454565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561530e5761530d615570565b5b828201905092915050565b600061532482615454565b915061532f83615454565b92508261533f5761533e61559f565b5b828204905092915050565b600061535582615454565b915061536083615454565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561539957615398615570565b5b828202905092915050565b60006153af82615454565b91506153ba83615454565b9250828210156153cd576153cc615570565b5b828203905092915050565b60006153e382615434565b9050919050565b60006153f582615434565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061546982615470565b9050919050565b600061547b82615434565b9050919050565b82818337600083830152505050565b60005b838110156154af578082015181840152602081019050615494565b838111156154be576000848401525b50505050565b600060028204905060018216806154dc57607f821691505b602082108114156154f0576154ef6155ce565b5b50919050565b600061550182615454565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561553457615533615570565b5b600182019050919050565b600061554a82615454565b915061555583615454565b9250826155655761556461559f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b615646816153d8565b811461565157600080fd5b50565b61565d816153ea565b811461566857600080fd5b50565b615674816153fc565b811461567f57600080fd5b50565b61568b81615408565b811461569657600080fd5b50565b6156a281615454565b81146156ad57600080fd5b5056fea2646970667358221220e6e7b713b3f1979018a119fed23cb90f4e25017f4af80f904c9de8633b582ae764736f6c63430008000033

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

000000000000000000000000ee0f2aa0a15d8a7ddc8f0ee59bc555e43555c98d00000000000000000000000066e99e2692f317c5f29d23911e5f3fb0a8ceebd9000000000000000000000000ed8f960d1b0e664cbd2cbeb0e2648abfdb90ce29000000000000000000000000ed34211cdd2cf76c3ccee162761a72d7b6601e2b0000000000000000000000009cdf5ce95cf2c4b5aed1b909eb2fe303a5579b43000000000000000000000000e4c7f4a8dcb74fd531e7b65e55735e9a8e321433000000000000000000000000d366dc03fe6ce8fd620a48cb2b9a0f87752af15b

-----Decoded View---------------
Arg [0] : _lootersContract (address): 0xee0f2aa0a15d8a7ddc8f0ee59bc555e43555c98d
Arg [1] : _artist (address): 0x66e99e2692f317c5f29d23911e5f3fb0a8ceebd9
Arg [2] : _yako (address): 0xed8f960d1b0e664cbd2cbeb0e2648abfdb90ce29
Arg [3] : _lootContract (address): 0xed34211cdd2cf76c3ccee162761a72d7b6601e2b
Arg [4] : _lootCoinContract (address): 0x9cdf5ce95cf2c4b5aed1b909eb2fe303a5579b43
Arg [5] : _cdlContract (address): 0xe4c7f4a8dcb74fd531e7b65e55735e9a8e321433
Arg [6] : _godContract (address): 0xd366dc03fe6ce8fd620a48cb2b9a0f87752af15b

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000ee0f2aa0a15d8a7ddc8f0ee59bc555e43555c98d
Arg [1] : 00000000000000000000000066e99e2692f317c5f29d23911e5f3fb0a8ceebd9
Arg [2] : 000000000000000000000000ed8f960d1b0e664cbd2cbeb0e2648abfdb90ce29
Arg [3] : 000000000000000000000000ed34211cdd2cf76c3ccee162761a72d7b6601e2b
Arg [4] : 0000000000000000000000009cdf5ce95cf2c4b5aed1b909eb2fe303a5579b43
Arg [5] : 000000000000000000000000e4c7f4a8dcb74fd531e7b65e55735e9a8e321433
Arg [6] : 000000000000000000000000d366dc03fe6ce8fd620a48cb2b9a0f87752af15b


Loading